AFAIK its not possible to open a COM port from multiple apps so the kind
of problems Doran described wouldn’t happen.
Now you’ve shed more light on what you need it’s easier to understand
your needs.
This isn’t really a driver issue now, but an issue of getting incoming
serial port data to multiple applications.
There are two options I can see.
The first, and more simple is to make a user mode DLL or COM object that
farms the incoming data out to the relevant applications like I
described before. This however means that the applications will need to
change.
If it isn’t possible to change the applications the other option would
be to write a driver that exposes multiple virtual serial port
interfaces and talks to serial.sys itself. Almost like a filter driver
that exposes more COM ports for the underlying ‘real’ port.
It’s pretty easy to write a driver that does the actual serial
communications. However translating that back to multiple serial ports
that ‘get’ the same data back isn’t quite so easy… Shadowing one port
into another by using a filter wouldn’t be that hard a job however
multiplexing that out to multiple ports would be a lot more involved.
Why do all these applications need access at the same time?
Can’t it be limited to one at a time? It’d save a heap of hassle.
BR,
Rob Linegar
Software Engineer
Data Encryption Systems Limited
www.des.co.uk | www.deslock.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Francky
Sent: 27 July 2005 17:49
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Question about Virtual COM Port
All applications are already developed to connect on a COM port to
receive
the data from a GPS device (Serial, USB).
All apps need to receive the same data but only one of them will write
on
the device to initialise it.
“Doron Holan” wrote in message
news:xxxxx@ntdev…
Multiple applications sharing an exclusive device is a bit strange.
Each application expects to have exclusive access to the com port and be
able to read data, change hw settings, etc. If you did this and if 2
apps request different hw settings, one will be broken. If one app is
reading data, will the other app lose that data or will you duplicate
it?
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Francky
Sent: Tuesday, July 26, 2005 10:58 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Question about Virtual COM Port
I have an application connected to a com port that receive data from a
GPS.
Sometime the GPS is connected to a COM Port and sometime on a USB port.
“Francky” wrote in message
news:xxxxx@ntdev…
> Hi,
>
> I’m working to develop a Virtual COM Port and i don’t know if the best
thing
> to do is to create a driver that will connect to serial.sys to send
the
> requests ? Maybe the best thing is to create a driver that don’t need
to
> talk with serial.sys.
>
> Thanks.
>
>
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@des.co.uk
To unsubscribe send a blank email to xxxxx@lists.osr.com