Click or drag to resize

ZylSoft.Serial Namespace

ZylSerialPort.NET is a thread based, event driven, asynchronous / synchronous 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. You can use it asynchronously or synchronously (AutoReceive = true / false). If you use it asynchronously, all the incoming data is automatically read and discharged in the Received event into e.Buffer. If you use it synchronously, then you have to read the incoming data with one of the Read methods.
Public classConnectionEventArgs Provides data for the Connected and Disconnected events.
Public classDataEventArgs Provides data for the Sent and Received events.
Public classDetectEventArgs Provides data for the Detecting and Reconnecting event.
Public classErrorEventArgs Provides data for the Error events.
Public classExtensionMethods Extension class for SerialCommPort.
Public classLineStatusEventArgs Provides data for the LineStatusChanged events.
Public classLogger Logger class. Used for exception logging.
Public classSerialCommPortExtensions Extension methods for SerialCommPort.
Public classSerialException Implements serial exception class.
Public classSerialPort Implements the serial port communication.
Public enumerationSerialBaudRate 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.
Public enumerationSerialCommPort Physical serial port enumeration type.
Public enumerationSerialCommPortType Serial port type enumeration.
Public enumerationSerialDataWidth Data bits enumeration type (ByteSize). Data bits are transmitted "upside down and backwards." 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.
Public enumerationSerialErrors Serial communication errors enumeration type. It can be one or more of the following values.
Public enumerationSerialHardwareFlowControl Hardware flow control enumeration type.
Public enumerationSerialParityBits 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.
Public enumerationSerialSoftwareFlowControl Software flow control enumeration type.
Public enumerationSerialStopBits 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.