By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,238 Members | 1,893 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,238 IT Pros & Developers. It's quick & easy.

Serial Port communication

P: n/a
Hi,

If an application is reading data from a serial port, How can I open the
same serial port with another application?

Any idea? Please help.

Thanks,

Ramakant K.
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi

As far as i know, once a port is allocated to a process in windows, another
application cannot access the port. At work we intercept the signal on the
outside with a hardware sniffer, which we then read into another port.

Hope this helps

Publicjoe
C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Snippets at http://www.publicjoe.f9.co.uk/csharp/snip/snippets.html
C# Ebook at http://www.publicjoe.f9.co.uk/csharp/samples/ebook.html
VB Ebook at http://www.publicjoe.f9.co.uk/vbnet/samples/ebook.html
"Ramakant Kasar" <ra*******************@systime.co.in> wrote in message
news:e5**************@tk2msftngp13.phx.gbl...
Hi,

If an application is reading data from a serial port, How can I open the
same serial port with another application?

Any idea? Please help.

Thanks,

Ramakant K.

Nov 16 '05 #2

P: n/a
There is software which does exactly this..try a search.. at least that is
what i did. I needed my serial data to be read by 2 applications
simultanously for debugging.

But beware i tried some and one in particular installed a service which
caused my system to restard whenever the service was started.. But i am sure
you will find what you need.

Thanks

"Mike Kitchen" <pu*******@hotmail.com> wrote in message
news:ed**************@tk2msftngp13.phx.gbl...
Hi

As far as i know, once a port is allocated to a process in windows,
another
application cannot access the port. At work we intercept the signal on the
outside with a hardware sniffer, which we then read into another port.

Hope this helps

Publicjoe
C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Snippets at http://www.publicjoe.f9.co.uk/csharp/snip/snippets.html
C# Ebook at http://www.publicjoe.f9.co.uk/csharp/samples/ebook.html
VB Ebook at http://www.publicjoe.f9.co.uk/vbnet/samples/ebook.html
"Ramakant Kasar" <ra*******************@systime.co.in> wrote in message
news:e5**************@tk2msftngp13.phx.gbl...
Hi,

If an application is reading data from a serial port, How can I open the
same serial port with another application?

Any idea? Please help.

Thanks,

Ramakant K.


Nov 16 '05 #3

P: n/a
Windows will not allow two serial communications programs to access
the same serial port at the same time.
There is a trick that you can use however to accomplish the job.
You can use a program from TAL Technologies called TCPCom to
accomplish the job.
TCPCom is basically a RS232 to TCP/IP converter that will open a RS232
port and feed the data that it receives out a TCP/IP port. TCPCom can
also create "Virtual RS232 COM ports" that are actually connections to
a TCP/IP port.
What you would do is to run TCPCom and configure it to open COM1 (the
physical COM port where the device is connected) and then act as a
TCP/IP server.
You would then use TCPCom to create two "Virtual COM ports" (COM3 and
COM4 perhaps) that are connected as TCP/IP clients to the TCP/IP port
that the COM1 port is configured as the TCP/IP server.
You would then open the COM3 and COM4 ports with the two different
serial communications programs and both would be able to send and
receive data in or out the COM1 port.
You can find a demo copy of TCPCom at:
http://www.taltech.com/products/tcpcom.html

On Tue, 16 Nov 2004 10:20:16 +0530, "Ramakant Kasar"
<ra*******************@systime.co.in> wrote:
Hi,

If an application is reading data from a serial port, How can I open the
same serial port with another application?

Any idea? Please help.

Thanks,

Ramakant K.


Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.