Re: USB Device with 2 virtual com-ports

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Mathias Ellinger (me_at_nospam.de)
Date: 01/04/05


Date: Tue, 04 Jan 2005 04:29:06 -0800

Rahul wrote:

> Hello,
> I am trying to emulate virtual Com Port using my USB Device on Windows
> 2000 with SP 4 using usbser.sys.
> I was able to get one Virtual COM Port working properly with windows.
>
> Now, when i try to add functionality of one more COM Port , windows
> machine crashes.
> I want to use the two com ports to provide two different
> functionalities at the same time and i don't want to write any vendor
> specific driver for windows.
>
> Can't i use this usbser.sys for both the com-ports.
> On my device, i receive Set Configuration 1 from the Host.
> And on the Host side it asks for the inf file, while copying the
> driver the windows crashes(restarts).
>
> I don't know whether usbser.sys supports composite device.
> But windows supports composite devices i think :)
>
> Regards,
> Rahu Kaul.

write a new PnP serial driver with special interface to your own USB driver.
This architectur is much better. One driver for USB interface and serial devices emulation
is a bad design. Here is some trouble when a application has open the serial device
and the USB device is plugged out. My architecture use always 2 device driver and
I have never had a problem.

elli



Relevant Pages

  • RE: xp pro sharing printer
    ... How to troubleshoot network printing problems in Windows XP ... SMB-connected print server ... Incompatible print driver ... and then redirect the port to the network server. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: USB device detection via query registry information
    ... specific parts of a driver. ... it correctly enforces exclusivity to the port ... for Windows being crash-prone? ... serenum opens the port, detects the device, ...
    (microsoft.public.development.device.drivers)
  • Re: USB device detection via query registry information
    ... it correctly enforces exclusivity to the port ... WHQL is realistically not going to be able to catch all bugs before shipment, so maybe the answer is for WHQL signing to require a commitment from the driver developer to participate in the BSOD crash dump program and issue timely bug fixes. ... Yes these things would not come free, but is it important to Microsoft to shed the reputation for Windows being crash-prone? ... serenum opens the port, detects the device, ...
    (microsoft.public.development.device.drivers)
  • Re: Adding New Drivers to Currently Installed WinCe 5.0 Image
    ... but the second model has Windows Mobile 5.0 + GSM. ... To add the modem driver I have tried that way before but it didn't work. ... And finally, about the barcode problem, you’re right. ... on that port. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Display of print properties windows
    ... Not sure on the software uninstall. ... probably want the extra features in the HP driver but being able to select ... Windows Printing Team ... If the printer is attached to LPT1 select that port. ...
    (microsoft.public.windowsxp.print_fax)