ZylSerialPort.NET

ZylSerialPort Namespace

ZylSerialPort is a thread based, event driven, asynchronous serial port .NET component (class library). Use ZylSerialPort.NET component to easily communicate with external devices on serial port connection, such as modems, bar code readers, GSM modules and others.

Namespace hierarchy

Classes

Class Description
ConnectionEventArgs Provides data for the Connected and Disconnected events.
DataEventArgs Provides data for the Sent and Received events.
LineStatusEventArgs Provides data for the LineStatusChanged events.
SerialPort Implements the serial port communication.

Delegates

Delegate Description
ConnectionEventHandler Represents the method that will handle the Connected or Disconnected event of the serial port.
DataEventHandler Represents the method that will handle the Sent or Received event of the serial port.
LineStatusEventHandler Represents the method that will handle the LineStatusChanged event of the serial port.

Enumerations

Enumeration Description
SerialPort.SerialBaudRate Baud rate enumeration type. It's the measure of how fast data is moving between instruments that use serial communication. RS-232 uses only two voltage states, called MARK and SPACE. In such a two-state coding scheme, the baud rate is identical to the maximum number of bits of information, including "control" bits, that are transmitted per second.
SerialPort.SerialCommPort Physical serial port enumeration type.
SerialPort.SerialDataWidth Data bits enumeration type. Data bits are transmitted "upside down and backwards." That is, inverted logic is used and the order of transmission is from least significant bit (LSB) to most significant bit (MSB). To interpret the data bits in a character frame, you must read from right to left, and read 1 for negative voltage and 0 for positive voltage.
SerialPort.SerialHardwareFlowControl Hardware flow control enumeration type.
SerialPort.SerialParityBits Parity bits enumeration type. An optional parity bit follows the data bits in the character frame. The parity bit, if present, also follows inverted logic: read 1 for negative voltage and 0 for positive voltage. This bit is included as a simple means of error checking. The idea is this: you specify ahead of time whether the parity of the transmission is to be even or odd. Suppose the parity is chosen to be odd. The transmitter will then set the parity bit in such a way as to make an odd number of 1's among the data bits and the parity bit.
SerialPort.SerialSoftwareFlowControl Software flow control enumeration type.
SerialPort.SerialStopBits Stop bits enumeration type. The last part of a character frame consists of 1, 1.5, or 2 stop bits. These bits are always represented by a negative voltage. If no further characters are transmitted, the line stays in the negative (MARK) condition. The transmission of the next character frame, if any, is heralded by a start bit of positive (SPACE) voltage.