Using Virtual Serial Port Driver

 Managing Virtual Serial Ports

To add virtual serial pair, please, do the following:

Note: you will not be able to select port names which are already given to ports created by our driver.

Deleting Virtual Serial Ports
To delete virtual serial pair do the following:

Note: you may delete virtual serial pair only if both ports are closed.

Deleting all Virtual Serial Ports

Note: make sure all ports are closed before deleting them, otherwise they will not be deleted.

Enabling/Disabling strict baudrate emulation

You can enable strict baudrate emulation per port. To do this just add a pair of virtual ports (as described above), select one of the newly created ports in Serial Ports Explorer and mark the checkbox "Enable strict baudrate emulation" below. Now, all programs connected to virtual serial ports will work with specified baudrate value, otherwise baudrate value set by the opening application will be ignored. Now you can set the baudrate in a standard way (SetCommConfig() ) and it will not be ignored by the driver.

Note: this features is only available in Windows NT4/2000/XP/2003/Vista.

Breaking line/restoring connection

In order to emulate physical line break, please, mark Break line/Restore connection checkbox within "Manage ports" tab. In fact this option drops all incoming signal lines (DCD, DSR, CTS, RI) and data from one port is not transferred to another.

Note: this feature is only available in Windows NT4/2000/XP/2003/Vista.

Customizing port access rights

With the help of port access list you can restrict access to created virtual serial ports for various applications. Let's review an example:

Now, let's review 5 different examples of masks usage:

1. All applications are forbidden to use the virtual port, except for Windows HyperTerminal:

 2. All applications, which are located on local disc C only can use the virtual port:

3. All applications can use the virtual port, except for those which are located on local disc C: 


4. Windows HyperTerminal and Command Prompt can use the virtual port only:

 

5. All applications, located in Program Files on local disc C only can use the virtual port:

6. In this case, note, that access will be granted to all applications, Windows HyperTerminal will be forbidden. 

Notes: 1) priority for masks is ascending, meaning when first match is met, further masks are ignored.

2) this feature is only available in Windows 2000/XP/2003/Vista

Setting custom pinout

 

Starting from version 5.0 you can choose which signal lines at one end should be connected to signal lines at the other end. In addition, you may save your custom settings as a preset and get back to it later. Custom pinouts/wiring feature has been greatly improved in the 6th edition.

In order to set custom pinout, please, go to "Custom pinout" tab in the Main Window, select virtual serial pair in the Serial Ports Explorer , select one of the required signal lines (RTS, DTR, OUT1, OUT2) in "IN side of the pair" list for internal serial port and mark corresponding checkboxes at the OUT side. After customizing signal lines pinout, you may save settings to your own preset. Just enter the desired name of preset and click "Save preset" button. Select one of the presets in the list and click "Delete" button if you want to delete it.

Different null-modem schemes are available here.

Note: you are not able to save your preset if it has "Standard", "Loopback mode", "Custom" names.

Signal lines:

DTE (Data Terminal Equipment) is a computer or terminal and has a male serial port connector attached.

DCE (Data Circuit-terminating Equipment) is a modem with female serial port attached.

Connector 1 Connector 2 Function
1 7 + 8 RTS2 CTS2 + CD1
2 3 Rx Tx
3 2 Tx Rx
4 6 DTR DSR
5 5 Signal ground
6 4 DSR DTR
7 + 8 1 RTS1 CTS1 + CD2

In the image above you can see RS232 null modem scheme with partial handshaking which VSPD uses by default (standard pinout preset).