473,498 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7892
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
8788
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 the internet, but it dosen't work. What I want...
11
7055
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 can send data to uart. Does anybody know how to...
4
4721
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 structure such as DCB.. etc and the windows...
7
2727
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 the program starts. My program is once in a...
4
11154
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 legacy system receives data through a serial port. ...
0
1968
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.. let me explain my situation.. i'm doing a system...
4
4785
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 technology. There is a serial component in...
0
4538
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 please tell me how can i do it automatically. ...
2
8240
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 pages, a device connected to the COM1 serial port...
0
2889
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 am trying to simulate the communication on serial...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7002
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7203
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4588
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
290
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.