serial-port

C#/.NET wrapper for serial port WIN32 Comm API

I am looking for a way to have as much control as it is possible over serial port in my c# application. The problem is that I need to communicate with a device that has no documentation except for an old c++ program written to control it. I've tried to use SerialPort class to communicate with the device but its behaviour is quite odd (I ...

Hyperterminal quick question

Hello, I need some help on using this pre-historic application: hyperterminal. I need to send some commands to a COM port. Im doing this: new connection > give connection a name and an icon > select COM3 port and 115200kbaud > OK > type some text and press ENTER. I have a loop-back circuit so I expect to receive what I type. However wh...

How to receive multiple tasks at the same time in a single com port in c sharp

Im a novice in c sharp and im stuck with this task. My requirement is , I create many threads and these threads (send using COM1) have to communicate with a single serial port say COM2. All the threads have to send message using a single COM port(receive using COM2). say,send "helloworld1"(using thread1) and "helloworld2"(thread2) usin...

Is it possible to easily debug an iPhone serial-port app?

I'm now trying to connect my iPod Touch(iOS4 jailbroken) with Ecomote(a small embedded system) through serial port. I just followed this instruction: http://hcgilje.wordpress.com/2010/02/15/iphone-serial-communication/. All things going well except that I need to move my application to /Application/MyApp.app and chmod it to 777. However...

communication between two computers with 2 c++ programs

Hello smart people, I have one computer that is running a c++ program to control a robot and another computer that is running a computer vision system (also written in c++). I would like for these two programs to be able to talk to one another. The communication would not have to be complex, I would just need the robot computer to be ab...

Java serial comms : way to set receieve threshold when using async. read notification

Hi All, I have some code that's using the JavaComm API. It implements SerialPortEventListener and the reception of characters happens asynchronously. This works fine except that my serialEvent callback is notified after about 17 chars have been received, for my packet parsing I need it to be notified when <= 6 characters have been rec...

Scale Interface to VB Application

I have a few different scales that I'm building a VB app for. Is there a universal serial port language that is common among weight scales that I can use to import real-time weight into VB? ...

Java : threaded serial port read with Java.util.concurrent thread access

I'm trying to write a Java serial device driver and want to use the (new to me) java.util.concurrent package. I have one method which sends a packet then waits for an ACK. I plan to have char. reception run in a different thread. If the receive thread gets an ACK it should notify the thread with the send packet function. The receive ...

Reverse Engineering a Black-Box Serial Protocol

I am currently writing an OS X driver for the NewTek LiveControl LC-11 as seen here. newtek.com/addons/livecontrol.php In the course of my reverse engineering I have found that it is using a serial to USB converter and that it communicates with hexadecimal output when a button is pushed or an analog value changes. Using this output...

Can't flush Rx buffer on iphone with serial lines

Hi, I'm witing a program on iphone and im stock with the part to receive data on an iphone from the out side world. In fact i can receive and display data and it works great but when i try to read more than one time on the serial port i'm stock with old data in the buffer and can't manage to flush it. What would solve my problem would b...

How to change javacomm async. notification behavior?

I'm using the java comm library to listen for bytes coming in over a serial port. I have it setup for async. notification, i.e. have a class implementing SerialPortEventListener. Is there any way to set the threshold at which the SerialPortEvent.DATA_AVAILABLE event is called. In my case the library waits until about 20 bytes are rece...

How to implement SerialPort with thread/background worker C#?

I'm writing a class which would handle all the serial communications with a external device (i.e. reading and writing). The data is being streamed to the computer at 20Hz, and occasionally data is also written to the device. The class would then output valid data through an event to the main UI. I want to put this class in a separate thr...

com0com RS232 terminal Java program

i made a JAVA program that runs on a computer with 2 RS232 ports it works pretty good i connected 2 devices that comunicate with eachother trough RS232 i put the computer between the cable you can see everything getting send on a terminal window but after a random amount of time 1 device stops responding on queries normally device 1 ...

I want to receive data CONTINUOUSLY from a COM port & simultaneously want to write to file

I want to read serial COM port and to write the data to a file in LINUX. Actually I'm sending data from hyperterminal from other PC. The problem is without while loop I can write only one line. But with while(1) loop I can't write anything to file. Or else I have to send BIG file, then application exits/terminates and writes to the fi...

Delphi multithreaded application built in vista and won't run in XP

I am really stumped. I am running delphi 2007 on vista. I have built many applications and run them in XP with no problem. This latest app had to make use of threads. I'm pretty sure my code is correct. It runs fine on Vista, but when I run it on XP (tried multiple PC's) my program seems to lag (both os's 32 bit, XP sp3 and Vista sp1, d...

reading from barcode scanner

I need to read data from barcode scanner in a web page. I agree that a usb scanner or a scanner equipped with keyboard wedge driver could get the data to a text field in the web page. I'm curious to know how do we read the data from RS-232 based scanner and bluetooth scanner. Will they also get the data to a textfield in a web page witho...

Serial port reading and writing with C

I am writing a C program that will read and write from/to a serial port. Each write will be followed by a read which will contain data based on the write. I will have about 16 different writes to perform, each followed by a read. I am still new to serial programming and am trying to determine how to approach this. Should the program blo...

Recommendation for 3rd Party .NET Serial Port Class/Component

I am looking for a serial port component for .NET that overcomes the issues with the built-in Serial Port component related to sudden unplugging of USB-to-RS232 adapters, and suspension of the computer while the port is open. (Untrappable errors occurring after the the device is unplugged or the computer comes back after being suspended...

Serial Port communication with Arduino and C++

Hi, I am having a problem with a Serial Port communication between Arduino Nano and C++, even though the problem is in C++ side. Basically I want to send integers (or long,...) from the Arduino to a C++ program to be processed. First I did a test sending information from the Arduino to the computer using Matlab. The Arduino code is pr...

Simulate serial port

I am writing a C program in Linux which will read/write to/from a serial port. I know the data that needs to be read and written on the port but I don't have a serial port to currently test this with. Is there any way to simulate a serial port? Would reading/writing to a file be sufficient? I can have one process write to the file whil...