472,325 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,325 software developers and data experts.

Serial Port communication

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
3 7817
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andreas Horneff | last post by:
Hi @ all, I've got a problem with serial communication in Borland C++ Builder. I've already found a lot of stuff about serial communication in...
11
by: sarah | last post by:
hI, I have a project. I need to realise serial communication between PC and Altera FPGA in c or c++. The function of FPGA is working well. it...
4
by: Vidya Bhagwath | last post by:
Hello Experts, I am porting the C++ code into the Visual C#.NET. My C++ code is mainly based on the serial communication. So I am using the windows...
7
by: Michael Chong | last post by:
I wrote a program that communicate with SerialComm. In every 300 milliseconds, my program continuously send & receive data via the serial port once...
4
by: joe bloggs | last post by:
I am writing a mobile application to interface with a legacy system and I am planning to use web services to communicate with this system. The...
0
by: usagimys | last post by:
Hi all, i'm very new in serial port communication.. here i got some problem in writing to the serial port.. i have done the connection successfully.....
4
by: max_mont | last post by:
Hi all, I'm a newbie in .NET technology. I've already developed Serial communication applications in C++ (WIN32). And I wanted to migrate to .NET...
0
by: ghjk | last post by:
I want to read sms from GSM modem using C# in serial communication. I wrote the code. But i want to do it automatically. I put my code here and...
2
by: Adrian Chen | last post by:
please help me! I come across a problem. Now I develop a finger print management system which is based on B/S.When users click a button in the web...
0
by: Dhananjay | last post by:
Hi, I am working on an VB.Net application which I want to communicate to external device using comm port (Serial Port) . So for that first I...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.