Why should I use a virtual COM port?
Most modern desktop computers and laptops no longer have the DB9's that were traditionally used to connect directly to hardware used in commercial or industrial environments. NetBurner provides a free virtual COM port application that transmits data over the network (Internet or LAN) to NetBurner Serial to Ethernet Servers. This saves time and money by allowing you to use your unmodified legacy applications.
Hardware and software required
- A serial communications program, such as MTTTY serial terminal.
- Virtual serial port software, such as NetBurners Virtual COM Port Driver.
- A USB-to-Serial converter.
- A serial to ethernet adapter. Any of the NetBurner serial to ethernet solutions will work.
Our test setup
In our scenario the "legacy serial application" is the MTTTY application on the right. We will create a virtual serial port on COM1 which will send data to the NetBurner serial to Ethernet device server. The serial to ethernet device will send the network data out of its serial port (db9). We will read this data using a serial to USB converter. We will again use the MTTTY application to read serial data on COM3. The expected final behavior is that if we send data from one window, it will show up in the other and vice versa.
How to setup the virtual COM port driver
- Install the Virtual COM Port Driver software. The default installation directory is: C:\nburn\VComm
- Click on "New" in Virtual Serial Port dialog box and click on "Find" to search for NetBurner Serial to Ethernet device IP. The purpose of this step is to fill the Device IP field
- Click "Search Again" if device does not appear in list. Click on your device and then "OK".
- To verify that the device port (called the "listening network port" on the webpage) is set correctly, click on the configure button.
- Set the "Listening network port".
- Make sure the in the "Device Port" field is populated with the the "Listening network port" number set in the last step. Also, choose a COM port. Then click "Ok" twice (the "Dialog" window and "VirtualSerialPorts" dialog window).
- Open two Multi-threaded TTY windows, one for the USB Serial port, and one for the Virtual Serial Port
- Click connect and send data from the Virtual serial port or USB Serial port to confirm data is going back and forth.