Serial Port ActiveX Control Properties Overview

provides the following properties:

Line signal:

Property Brief Description
DTR Sets the status of the DTR signal
RTS Sets the status of the RTS signal
CTS Gets the status of the CTS signal
DSR Gets the status of the DSR signal
RING Gets the status of the RING signal
DCD Gets the status of the DCD signal

Line control:

Property Brief Description
Databits Sets/gets the number of bits in the bytes transmitted and received
Parity Sets/gets parity checking
StopBits Gets the number of stop bits per character

HandFlow control:

Property Brief Description
HandShake Sets/gets flags that defines the modem lines that are used for flow control
FlowReplace Sets/gets flags defining flow control stuff
XOnLimit Sets/gets minimum number of bytes allowed in the input buffer before flow control is activated to inhibit the sender
XOffLimit Sets/gets maximum number of bytes allowed in the input buffer before flow control is activated to allow transmission by the sender

Given serial port information:

Property Brief Description
FullDeviceName Gets full port name
MaxBaud Gets maximum allowed baudrate value
MaxOutQueue Gets maximum size of the driver’s internal output buffer
MaxInQueue Gets maximum size of the driver’s internal input buffer
ProvSubType Gets the type of the communications provider
ProvCapabilities Gets details on capabilities offered by the communications provider
SettableParams Gets details on communications parameter that can be changed
SettableData Gets number of data bits that can be set
SettableStopParity Gets stop bits and parity settings that can be selected

Special chars:

Property Brief Description
CharEof Sets/gets the character used to signal the end of data
CharError Sets/gets the character used to replace bytes received with a parity error
CharBreak Sets/gets the character used to signal break event
CharEvent Sets/gets the character used to signal an event
CharXOn Sets/gets the XON character for both transmission and reception
CharXOff Sets/gets the XOFF character for both transmission and reception

Timeouts of serial port:

Property Brief Description
TimeoutReadInterval Sets/gets maximum time allowed to elapse between the arrival of two characters on the communications line, in milliseconds.
TimeoutReadTotalMultiplier Multiplier used to calculate the total time-out period for read operations, in milliseconds. For each read operation, this value is multiplied by the requested number of bytes to be read.
TimeoutReadTotalConstant Constant used to calculate the total time-out period for read operations, in milliseconds. For each read operation, this value is added to the product of the ReadTotalTimeoutMultiplier member and the requested number of bytes.
TimeoutWriteTotalMultiplier Multiplier used to calculate the total time-out period for write operations, in milliseconds. For each write operation, this value is multiplied by the number of bytes to be written.
TimeoutWriteTotalConstant Constant used to calculate the total time-out period for write operations, in milliseconds. For each write operation, this value is added to the product of the WriteTotalTimeoutMultiplier member and the number of bytes to be written.

Configuration of serial port:

Property Brief Description
MonitorEvents Sets/gets events to be monitored for the communications device
InCount Gets the current number of bytes in the input buffer
OutCount Gets the current number of bytes in the output buffer
BaudRate Baud rate at which the communications device operates
Handle Controls behaviour of serial port when your application exits
IsOpened Gets the state of serial port
InBufferSize Sets/gets the recommended size of the device’s internal input buffer, in bytes
OutBufferSize Sets/gets the recommended size of the device’s internal output buffer, in bytes
Break Sets break signal

Other:

Property Brief Description
CountPorts Gets the number of communication ports in a system.
BlockMode Sets/gets BlockMode mode.
EnableAutoDetectPorts Calls OnPortAdded, OnPortRemoved and OnChangePortsList events in case the list of serial ports changes.

See also

Methods overview, Events overview