Serial Port ActiveX Control Properties Overview

provides the following properties:

Line signal:

PropertyBrief Description
DTRSets the status of the DTR signal
RTSSets the status of the RTS signal
CTSGets the status of the CTS signal
DSRGets the status of the DSR signal
RINGGets the status of the RING signal
DCDGets the status of the DCD signal

Line control:

PropertyBrief Description
DatabitsSets/gets the number of bits in the bytes transmitted and received
ParitySets/gets parity checking
StopBitsGets the number of stop bits per character

HandFlow control:

PropertyBrief Description
HandShakeSets/gets flags that defines the modem lines that are used for flow control
FlowReplaceSets/gets flags defining flow control stuff
XOnLimitSets/gets minimum number of bytes allowed in the input buffer before flow control is activated to inhibit the sender
XOffLimitSets/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:

PropertyBrief Description
FullDeviceNameGets full port name
MaxBaudGets maximum allowed baudrate value
MaxOutQueueGets maximum size of the driver’s internal output buffer
MaxInQueueGets maximum size of the driver’s internal input buffer
ProvSubTypeGets the type of the communications provider
ProvCapabilitiesGets details on capabilities offered by the communications provider
SettableParamsGets details on communications parameter that can be changed
SettableDataGets number of data bits that can be set
SettableStopParityGets stop bits and parity settings that can be selected

Special chars:

PropertyBrief Description
CharEofSets/gets the character used to signal the end of data
CharErrorSets/gets the character used to replace bytes received with a parity error
CharBreakSets/gets the character used to signal break event
CharEventSets/gets the character used to signal an event
CharXOnSets/gets the XON character for both transmission and reception
CharXOffSets/gets the XOFF character for both transmission and reception

Timeouts of serial port:

PropertyBrief Description
TimeoutReadIntervalSets/gets maximum time allowed to elapse between the arrival of two characters on the communications line, in milliseconds.
TimeoutReadTotalMultiplierMultiplier 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:

PropertyBrief Description
MonitorEventsSets/gets events to be monitored for the communications device
InCountGets the current number of bytes in the input buffer
OutCountGets the current number of bytes in the output buffer
BaudRateBaud rate at which the communications device operates
HandleControls behaviour of serial port when your application exits
IsOpenedGets the state of serial port
InBufferSizeSets/gets the recommended size of the device’s internal input buffer, in bytes
OutBufferSizeSets/gets the recommended size of the device’s internal output buffer, in bytes
BreakSets break signal

Other:

PropertyBrief Description
CountPortsGets the number of communication ports in a system.
BlockModeSets/gets BlockMode mode.
EnableAutoDetectPortsCalls OnPortAdded, OnPortRemoved and OnChangePortsList events in case the list of serial ports changes.

See also

Methods overview, Events overview