Simulating Multiple serial ports.

Hi All,

I am trying to simulate multiple serial ports in my driver. I need to make
the applications believe that, there are abt 6 COM ports available. How can
I achive this.?
Essentially i should be able to show all 6 COM ports in the windows Hyper
terminal application; Provided , the data from all these COM ports being
directed to COM1/COM2 only.

Any help is highly appreciated,

Rgds,
Ashok


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Ashok,

Install 6 ( X ) number of instances of your virtual
serial driver and then you will certainly be able to
see these ports in all the application. It is actually

immaterial that where the data goes thro ( COM1 or
COM2
) in the transport part of the virtual driver.

All you have to make is an INF file for your virtual
driver and then install the requirement number of
instance of these ports.

finally, if your driver is on Windows 2000, see that
there is a comm mapping the SerialMap (registry :
HKLM\HARDWARE\DEVICEMAP\SERIALCOMM ). This is because
many application look at this key to find the number
of ports available on the machine.

Cheers,
Jay


Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi Ashok,

Here are the general steps involved in creating a virtual serial port:

  1. In your driver, (which would act as a function driver for a device
    that enumlates com ports) enumerate PDOs (raw capable) for each virtual
    port (this would involve your driver playing the role of a bus driver).

  2. Name the PDO as \Device\DriverNamennn (DriverName is the name of your
    driver and the value of nnn is the count of your virtual serial ports).

  3. Use a Port Class NULL INF to install the enumerated device. (You can
    install Serenum as a filter with the same inf file if needed).

  4. In the StartDevice routine, create a symbolic link using the PortName
    value created in the devnode registry by the classinstaller.

  5. Handle all the necessary serial port IRPs in your bus driver to
    provide the required functionality.

You might also consider registering an interface, and, for legacy apps,
adding the HKLM\HARDWARE\DEVICEMAP\SERIALCOMM entry.

Once these steps are implemented, the virtual serial port should behave
like a standard physical com port.

Regards,
Youssef

-----Original Message-----
From: xxxxx@wipro.com [mailto:xxxxx@wipro.com]
Sent: Wednesday, August 22, 2001 11:19 PM
To: NT Developers Interest List
Subject: [ntdev] Simulating Multiple serial ports.

Hi All,

I am trying to simulate multiple serial ports in my driver. I need to
make
the applications believe that, there are abt 6 COM ports available. How
can
I achive this.?
Essentially i should be able to show all 6 COM ports in the windows
Hyper
terminal application; Provided , the data from all these COM ports being

directed to COM1/COM2 only.

Any help is highly appreciated,

Rgds,
Ashok


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com