serial-communication

iphone <-> real world connection

Any pointers on how to initiate serial communication with the iphone? Or any other idea to interact with external hardware? ...

How to do serial communication in c program?

Using vc++ compiler how one can access serial port. Bioscom() function can be used in Turbo C. ...

Calculate Block Check Character (BCC) for serial communication

Hi There, I am communicating with a device via serial via the SerialPort class of .NET and based on third-party device specification requirements I need to calculate a "block check character". The only information I am told is that it is an exclusive OR operation (XOR) and it must be performed over all characters. So if I have the st...

Bogus TimeoutException reading .NETCF SerialPort

EDIT: Was a hardware problem.....getting a duplicate device or cable seemed to solve the problem. Hello, I am pulling my hair out trying to read a large quantity of data (~1MB) from a serial port in .NETCF. I'm reading a dump of GPS data, but I am randomly receiving a TimeoutException on the call to m_serial.Read(..) There is defini...

Should I keep a SerialPort connection open?

I am working with serial communication and I'm wondering whether I should keep the SerialPort open or not? I'm creating a queue of commands and only one will be running at a time. Should I create a SerialPort and open/close it in each command, or should I have another class which holds the port open and is called from the commands? Or d...

How to enforce 250 millisecond delay between writes on a serial port?

I have a device (digital indicator) that I am communicating with using the SerialPort class. The device documentation states that I need to have a 250 millisecond delay between writes. Is there a way to enforce this without putting extra delay into the system? I know this probably sounds like I'm worrying too much about something that's ...

What is the best way to scan for COM ports in C#?

Does C# provide an effective means of scanning the available COM ports? I would like to have a dropdown list in my application wherein the user can select one of the detected COM ports. Creating and populating the dropdown list is not a problem. I just need to know how to scan for the available COM ports using C#. I am using Microsof...

C# Serial Communications - Received Data Lost

Hello. Received data in my C# application is getting lost due to the collector array being over-written, rather than appended. char[] pUartData_c; private void serialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e) { try { pUartData_c = serialPort1.ReadExisting().ToCharArray(); bUartData...

connecting avr atmega32 to shift register using USART??

Hello, I want to connect ATMEGA32 microcontroller to a shift register using USART via TXD pin, the shift register then performs serial to parallel conversion on the received data. but as you know, the shift register needs clocking , this clocking is fed via the microcontroller at baud rate frequency via XCK pin (here the USART acts as...

How to listen multiple serial ports with C#

Hello everybody, I am using Serial COM Simply in C# by Noah Coad http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=320 and I have available ports on my machine whichs COM1,COM2,COM6,COM7,COM8,COM9,COM10,COM11,COM12,COM13 and I use COM6,COM7,COM8,COM9,COM10,COM11,COM12 with ZyXEL Omni 56K modem, I use these 7 ports wit...

Synchronizing a java serial port connection using RXTX

I have a java program that continually listens for messages of a certain format on a serial port. When the sender application is not sending messages, it sends heartbeat messages in the following format: byte 1: 1 byte 2: 0xFE byte 3: 0xED bytes 4-255: 0 If the receiver application is started before the sender, everything functions co...

Serial port communication in common lisp

Is there a library for serial port communication in Common Lisp on Windows? ...

How to control multiple robots through PC using Serial communication?

I want to control multiple robots using my laptop. Robots do not have intelligence, they are sending sensor values to PC which computes the sensors values and sends back result to robots.(Centralized control of robots using PC ). Robots are communicating with PC through serial communication using Zigbee mudule. Problem: How to make & ...

Win32 API: ReadFile not timing out

I'm writing some code to interface with a piece of hardware. The hardware connects to the PC via a USB with a USB-to-Serial converter inside the device (it shows up as a COM port device in Windows). I'm having issues with the Win32 API ReadFile system call. I can't seem to get it to work as advertised. I've setup the COMMTIMEOUTS str...