serial-port

What is the cause of System.IO.IOException on windows XP embedded version?

Hi, I am running a .Net 3.5 application on windows XP embadded version. This application is writes and reads some data over the com port. The application works fine on my laptop(windows XP Professional) not on windows XP embedded. I keep getting this error "System.IO.IOException: The I/O operation has been aborted because of either a ...

Serial GPS as Speedometer

I've run into a situation where I may feel obligated to develop a simple GPS application to act as a speedometer. It'd be developed for an older PDA with CPU (162MHz ARM) and RAM (4MB) constraints talking to a serial GPS receiver. Is this a feasible project? It doesn't need to be race-accurate, but close enough to obey speed limits. Wh...

BackgroundWorker Thread used for Serial port data processing Throwing "This BackgroundWorker is currently busy and cannot run multiple tasks concurrently"

Hello Guys, I am developing a application in C# which is getting data from Serial Port, Processing it and showing it to UI. The data is coming very fast between 5-50ms speed. Before I was not using any threads. and so application was relying on single App thread which was getting data from Serial Port, Processing data and showing it to U...

How to get caller ID in C# ?

Hello I wanna use 56K modem for getting telephone number of who calls the home phone, is there a way to achieve this with C# ? ...

Any Event in C#.Net which tell me Serial Port dataReceived event stop Receiving data

Hello Guys, I am Working on a Serial Port implementation in C#. I am Getting data from SerialPort and I am adding that data to Queue type of Collection (Globally Declared). I am using BackgroundWorker thread to process data in Queue. The Problem is that. If Serial Port Stop Sending data and data Received stop Receiving data There will be...

Read data from serial port

How do i read data from serial port using C ? and then again transfer the data to modem ? I am using RS 232 cable for serial communication ... ...

Listing serial (COM) ports on Windows?

Hello, I'm looking for a robust way to list the available serial (COM) ports on a Windows machine. There's this post about using WMI, but I would like something less .NET specific - I want to get the list of ports in a Python or a C++ program, without .NET. I currently know of two other approaches: Reading the information in the HARD...

Strange problem writing to SerialPort (C#)... Works after running another program!

Hi, I'm trying to write to an LCD Display using System.IO.Ports in C#, with the SerialPort class. Firstly, it works! My program does write to it successfully and it displays fine... but only after I've run a prior commerical program (LCDC). If I run by program before running LCDC (a full LCD-display GUI program) - the LCD display sits...

Is it possible to configure a serial connection to initiate a program upon receipt of RD signal?

I am currently attempting programming for a serial connection (RS232) through the COM1 port, using hardware handshaking. The OS is Windows XP 32, and I was planning on using C++ to program this (using the .NET serialport class). However, the only way I can currently conceive of doing it is by having a minor program running on start-up, w...

How to call the RJ45 as a serial port for interfacing?

Hi, I'm currently working on a serial interfacing project based upon connecting to the rs232 port. However, seeing as a decent number of laptops and/or PC's seem like they might have their rs232 ports disappear within the next 5 years, I was considering using the RJ45 modular port for my project (EIA/TIA 568). However, I'm not quite sur...

How can I improve this underperforming, terrible Serial Port code?

Hi, I have an ugly piece of Serial Port code which is very unstable. void port_DataReceived(object sender, SerialDataReceivedEventArgs e) { Thread.Sleep(100); while (port.BytesToRead > 0) { var count = port.BytesToRead; byte[] buffer = new byte[count]; var read = port.Read(buffer, 0, count); ...

NetworkStream, is there something similar to DataReceived for a SerialPort? (C#)

Ok, so I'm a little confused as to why I can't find this anywhere, or if it doesn't exist then why have Microsoft not implemented it? So here's my scenario, I have a NetworkStream, which has a lovely little boolean called DataAvailable, and what I need is an event, that jumps out and says "Hey, there's data available for you!" (because ...

threads for reading and writing java

hi, i'm reading data from serial port for average interval say 1 second,and at the same time writing read data to textArea and textfile,problem is i'm not getting correct data at some time,may be because i'm doing all three process in a single program,how to do writing to text area and text file by separate thred? this is my code: impo...

writing to serial port with a shell script

I need to communicate with a serial device by sending it ascii characters. I know that in Linux you can use fopen() to write to a serial port, but I didn't know if you could do that from a shell. If not, is there another simple way to do this? ...

How do i check if inputstream contains no data?

Hi, I am using the javax.comm package to perform read and write operations on the SerialPort. I have created an object of type InputStream as InputStream in; My question is .... Irrespective of data availibility on the SerialPort, in.available() always returns a zero due to which I am not able to decide whether bytes are available o...

where do I get Serial Port Interface API for rails

Can any one tell me where do I get Serial Port Interface API for rails programming ...

RS 232 Break Signal

I got a RS232 signal capture device. and it working great. I need some help making sense of the data. Basically we bought it because we are dealing a late 80's machine controller that uses serial communication. We had little luck despite knowing the port parameters. From the data I dumped machine control is using the break signal as p...

Serial programming (hardware handshake)

I'm trying to to program a serial communication using hardware handshake in linux using C/C++. The signals that implement the handshake are CTS (Clear to send) and RTS (Request to send). Currently my function for setting the CTS signal looks as follows: int setCTS(int fd, int value) { int status; ioctl(fd, TIOCMGET, &status); //...

LCD Output on RS232-connected Module via Ethernet - Request for general information

Hello everyone, currently I am trying to write to an 20x4 LCD Dot-Matrix Module using Perle's TruePort Redirector. I have the GMS-DS LCD Module connected to a Perle Serial to Ethernet Device Server. As of now, I think that I need to write to a local TruePort interface, which then converts the data and sends it to the Device Server via T...

SerialPort.DataReceived repeatedly subscribe/unsubscribe

I am using a serial port to communicate with a remote diagnostics device. The length of the response from the remote device varies depending upon the command but is known ahead of time. So, currently I send the command and wait for the required number of response bytes to be received. I subscribe to the 'SerialPort.DataReceived' e...