Re: virtual com port driver



subhash wrote:
I am creating a virtual com port driver which is doesnt have any
device attached to it. The purpose of this module is message passing
to user space. But the applications should see this as a com
port(actuall multiple com ports).So I dont want any bus driver to be
attached to it. I am confused, under which class i should install this
device.How i will make my device object.Is it a root enumerated
device.

First of all, your design goal (multiple COM ports) is not possible
without a virtual bus device to enumerate the multiple ports or multiple
(user-driven) installs of a root-enumerated device.

Second, "Ports" is the right class for a single port. "Multiport Serial
Adapters" is the right class for a virtual bus that has "Ports" for
children. You need a separate INF file for the port and for the
multiport device. I usually have the multiport parent specify an
instance id of fhe form "Port%2.2d", where the %2.2d gets replaced by
the port number on the multiport board, in response to IRP_MN_QUERY_ID.
The corresponding device and hardware ids are of the form
"MYBOARD\Port01", where "MYBOARD" is also the name of the driver I
build. The port INF file lists all possible hardware ids in the model
section with separate description strings. That's the simplest way I
know to have the descriptions that appear in device manager correlate
with the port numbers that will be apparent to the end user.

Third, being unloaded after AddDevice returns STATUS_SUCCESS means you
aren't getting any IRP_MJ_PNP requests. Check to be sure you cleared the
DO_DEVICE_INITIALIZING flag in your DEVICE_OBJECT and that you specified
a dispatch routine for the PNP requests.

--
Walter Oney, Consulting and Training
http://www.oneysoft.com
.



Relevant Pages

  • Re: change ISA IP address
    ... You can have multiple IP's on the external interface for web-publishing ... can re-use the same listener for all your web publishing ... >> port 80, as WPAD in DNS does NOT allow specifying a custom port like WPAD ...
    (microsoft.public.isa)
  • Re: Open source processors
    ... extra write port pretty much annul the performance benefits of running ... multiple instructions. ... a memory block if you need to read arbitrary locations as well. ...
    (comp.arch.fpga)
  • Re: Multiple sources ??? Example vhdl code - anyone can help ???
    ... problem with multiple sources (exactly I've got error 'Signal data1 ... resolve this function. ... end entity box2; ...
    (comp.lang.vhdl)
  • Sending multiple files over the network
    ... I want to send the multiple files over the network, ... services that services keep on listening the one port and accept the ... request(multiple client can send the request) that request in the form of ... implement the thread concept for sending the file in each port, if it is, how ...
    (microsoft.public.vb.enterprise)
  • sending multiple files over the network
    ... I want to send the multiple files over the network, ... services that services keep on listening the one port and accept the ... request(multiple client can send the request) that request in the form of ... implement the thread concept for sending the file in each port, if it is, how ...
    (microsoft.public.dotnet.framework)