Re: reading data from serial port
- From: "Miroslav Stampar [MCSD.NET / Security+]" <miroslav.stampar@xxxxxxxxx>
- Date: 27 May 2007 15:00:11 -0700
UARTs (Universal Asynchronous Receiver Transmitter) are serial chips
on your PC motherboard (or on an internal modem card). The UART's
purpose is to convert bytes from the PC's parallel bus to a serial bit-
stream. Say you have a terminal hooked up to your PC. When you type a
character, the terminal gives that character to its transmitter (also
a UART). The transmitter sends that byte out onto the serial line, one
bit at a time, at a specific rate. On the PC end, the receiving UART
takes all the bits and rebuilds the (parallel) byte and puts it in a
buffer.
You should not worry about: "UARTS are always 8-bits !".
Set SerialPort.DataBits to 8 and use Read instead of ReadExisting.
hjgvhv uhhgvjuhv je napisao/la:
JR wrote:
And make sure you defined the port as 8 bit.
SerialPort.DataBits Property = 8 (the default).
Also your equipment must define 8 bits.
Please, explain what this means ??
UARTS are always 8-bits !
Its in the software that decides to "fix" it.
donald
JR
.
- References:
- reading data from serial port
- From: Ringo
- Re: reading data from serial port
- From: Jon Skeet [C# MVP]
- Re: reading data from serial port
- From: JR
- Re: reading data from serial port
- From: hjgvhv uhhgvjuhv
- reading data from serial port
- Prev by Date: Re: Sending a file between 2 program
- Next by Date: Re: Capture a programs output.
- Previous by thread: Re: reading data from serial port
- Next by thread: Re: reading data from serial port
- Index(es):
Relevant Pages
|