|
I am just reviewing some code I wrote to communicate with the serial port in C# on CF2.0. I am not using DataReceived event since it's not reliable. MSDN states that:
The DataReceived event is not gauranteed to be raised for every byte received. Use the...
Started by gnomixa on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I haven't used serial ports from C# at all.
You might need to tune the buffer sizes and some of the serial port less CPU time, and other processes also get to run.
Is blocked until characters arrive.
|
|
I am reading data from serial port. The data comes off the scale. I am now using Readline() and getting data dropped even after I removed DiscardInBuffer() . What is the proper way to read the data from the serial port? There are so few examples online...
Started by gnomixa on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If your data is line oriented then ReadLine is a valid function to use, but you may want to look at the NewLine property and be sure that it is set appropriately for your input... .
Depends on what the end-of-line (EOL) character(s) is for your input data .
|
|
I am trying to get two way serial communications going between a Windows XP system and a Linux system (RHEL 5). I have
/sbin/agetty -L 9600 ttyS0
in /etc/inittab.
I am using a generic USB to serial adaptor on Windows (Unitek) and a null modem cable.
I...
Started by Aharon Robbins on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
Are you sure the hardware is working ok? I would suggest opening a serial terminal program on each using two USB-to-serial converters on the Linux box so that I wouldn't have windows in the picture and was able to isolate it to the serial....
|
Ask your Facebook Friends
|
Is there a way to tell whether the serial port has been opened successfully? The problem is that if the serial port not opened, no exception is thrown, and there is no way for users to know what the issue is.
Any input?
Started by gnomixa on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
At least this way you'd have the source to change the behavior .
OpenNETCF serial port implementation .
|
|
Can any ony kindly explain that how we can take serial data as input from parallel port using c#. Or the serial communication through parallel port.
Started by Arman on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
AN external serial to paralell converter....
Hope this helps.
Here is another article specifically addressing the use of the paralell port for serial serial port which your program can read from in the usual way.
|
|
How can I sniff packets communicated through serial port on Linux?
Started by Marija on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Serial to Network Proxy (ser2net) provides a way for a ....
It listens to the specified serial port and logs all data going through this port in both directions.
Sniffer (slsnif) is a serial port logging utility.
|
|
How do I write to the serial port in Vista from Python? The termios package only seem to support posix.
Started by Fylke on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Seems like it wasn't any harder than this using pyserial :
import serial ser = serial.Serial(0) # open.
First serial port with 9600,8,N,1 print ser.portstr # check which port was really used ser.write.
|
|
Are there any bindings to communicate on Serial port using WCF?
Started by harsha on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
|
|
In .Net's SerialPort object, is there a way to determine if a serial port gets unplugged or plugged in.
Started by maxfridbe on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Unlike USB, the serial port doesyou can detect the availables....
Whenever there's any normal device plugged in to the serial port and switched to the remote modem) Of these, the one that answers your OP is DSR.
And DsrChanged.
|
|
I need to test a serial port application on Linux, however, my test machine only has one serial port.
Is there a way to add a virtual serial port to Linux and test my application by emulating a device through a shell or script?
Note: I cannot remap the...
Started by Jeff V on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
A client on one system to emulate a serial port to the local programs, while transparently sending that would implement the client side of the system on your PC - appearing to be a real serial port from Digi, Lantronix, etc....
|