Virtual Serial Port ActiveX Control provides the following methods to control virtual serial port:
Method | Brief Description |
CreatePort | Creates virtual serial port |
CreatePortEx | Creates virtual serial port for the current user session |
Delete | Deletes virtual serial port |
Attach | Attach existing virtual serial port |
AttachEx | Attach existing virtual serial port for the current user session |
ResetBus | Delete all virtual serial ports from the system |
Signal lines operations
Method | Brief Description |
SetCTS | Change the state of CTS signal line for virtual serial port |
SetDSR | Change the state of DSR signal line for virtual serial port |
SetDCD | Change the state of DCD signal line for virtual serial port |
SetRING | Change the state of RING signal line for virtual serial port |
Port control operation
Method | Brief Description |
SetStrictBaudrate | Changes the state of strict baudrate for virtual serial port |
SetTimeouts | Sets timeouts for virtual serial port |
SetBreak | Emulates physical line break |
SetWiring | Sets connection type depending on parameters |
SetHandflow | Sets the configuration of handshake flow control |
SetLineControl | Sets the line control register (LCR) |
SetChars | Sets the special characters, which are used for handshake flow control. |
Port access operations
Method | Brief Description |
AppendAccessMask | Adds new mask to the mask list |
InsertAccessMask | Inserts new access mask to position. |
GetAccessMask | Gets access mask according to its position. |
DeleteAccessMask | Deletes access mask according to its position. |
ClearAccessMask | Deletes all access masks |
Send/Receive operations
Method | Brief Description |
Write | Send data to port so other application which is listening to virtual serial port will receive it |
WriteStr | Send string to serial port |
WriteArray | Send communication data to serial port as Byte array of VARIANT type |
Read | Receive data other application has sent to virtual serial port |
ReadStr | Receive string from port |
ReadArray | Receive data from port as Byte array of VARIANT type |
Other operations
Method | Brief Description |
PurgeQueue | Discards all characters from the input buffer |
EnumVirtualPort | Returns a name of virtual serial port specified by parameter NumberPort |
Tip: See also: Events overview, Properties overview