| How to allow more than one serial communications program to open the same serial port simultaneously.
Normally Windows will not allow two serial communications programs
to open the same serial port at the same time however it is possible
to use TCP-Com to feed data from a physical RS232 serial port
to multiple "Virtual" serial ports so that more than
one application program can input data from a single RS232 serial
port.
To accomplish the above, configure one instance of TCP-Com to
open a physical serial port (COM1) on your PC and act as a TCP/IP
server using any port number that you like. Next, open a second
instance of TCP-Com (select New from the TCP-Com File menu)
and configure the second instance to create a virtual COM port
(COM2)
and have it connect as a TCP/IP client to the TCP/IP port that
the first (server) instance has been configured to use. Finally,
open a third instance of TCP-Com and configure it to create
another virtual COM port (COM3) and have it also connect as a
TCP/IP
client to the TCP/IP port that the first (server) instance has
been configured to use. After you activate all three instances
of TCP-Com, your computer will behave as if it had two additional
COM ports COM2 and COM3. At this point, you can run two serial
communications programs - one on COM2 and the second on COM3
and both will be able to send and receive data in or out COM1.
The arrangement described above will work for as many virtual
COM ports that you wish to create so you can actually connect
as many separate serial communications programs as you like to
the same physical serial port.
|