Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can 2 apps use same serial port

803 views
Skip to first unread message

Me

unread,
Aug 23, 2012, 8:04:39 AM8/23/12
to
Is it possible to use a already openned serial port?
I need to be able to have two applications running and both use the same
serial port. Is this possible & how can I do it.

ScottMcP [MVP]

unread,
Aug 23, 2012, 6:16:52 PM8/23/12
to
On Thursday, August 23, 2012 8:04:39 AM UTC-4, Me wrote:
> Is it possible to use a already openned serial port? I need to be able to have two applications running and both use the same serial port. Is this possible & how can I do it.

It is not possible for two apps to open a serial port simultaneously. The only possible approach is to have an app that opens the port and provides some form of interprocess communication that the other app can use.

If you only need read access to the port you can build a splitter cable that feeds received data into two ports.

Me

unread,
Aug 25, 2012, 11:16:40 AM8/25/12
to
Then how do serial port monitors work?
They are apparently able use the same port as another application!

ScottMcP [MVP]

unread,
Aug 25, 2012, 7:50:20 PM8/25/12
to
On Saturday, August 25, 2012 11:16:40 AM UTC-4, Me wrote:
> Then how do serial port monitors work? They are apparently able use the same port as another application!

They use a customized device driver. You can do anything you want if you write your own device driver.
0 new messages