Re: USB Composite Device, Serial + Mass Storage, could not install



Hi Yoann,
I really do that, I also use IAD for the composite device, Windows XP SP2
can begin to install the driver according to the inf file. but there is
question mark on my virtual serial port and my mass storage device can work.
sometimes my windows XP will crash directly (reboot) when it is installing
the driver (usbser.sys). could you share my your inf file if you can do that?

Yingbo

"yoann@xxxxxxxxxx" wrote:

You cannot have a multi-function device using 2 interfaces for one function
(as it is the case with CDC) without using IAD.
The problem is that IAD is only supported by WindowsXP SP2.

However, you can group the 2 CDC interfaces in 1 interface (the CDC ACM one)
by modifying the interface descriptor to have all 3 endpoints in it.
The usbser.sys driver supports this (you must specify the correct interface
in your inf file). However, it does not support 2 single-interface CDC in a
multi-function device thus you can have 1 COM + Mass Starage but not 2 COM +
Mass storage.


Yoann

"yingbohu" wrote:


There are totally three interfaces for my composite device, two for serial
port and one for mass storage.
My composite device can work if it is a mouse and a mass storage, both has
only interface, but for serial port, this function need two interface, one
for CDC ACM, the other is CDC data. I am thinging that usbser.sys could not
group the first two interface together. I also try to use IAD but could not
resolve this problem, my Serial port device still has a question mark and the
error code is 10.

"Maxim S. Shatskih" wrote:

Are you adding 2 interfaces for the same device? or are you emulating 2
devices on the same chip with a hub above them?

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

"yingbohu" <yingbohu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:51E41E21-405B-4FEF-ADA6-14E0150B8C20@xxxxxxxxxxxxxxxx
Vetzak,
I can really install a USB device as a virtual serial port on Win2K and
WinXP by using usbser.sys. A INF file is needed to do that. The problem is
that if I add more function such as Mass Storage then windows could not
install the virtual serial port successfully. Mass storage can still work so
I think the usbser.sys could not support composite virtual serial port.

Thanks for your information

"Vetzak" wrote:

I quickly gave up trying to use usbser.sys, because I couldn't install
it as a COM-port (Ports device class). I believe you can only deploy
usbser.sys for modem (Modem device class). So instead I wrote my own
USB-serial driver for Win2K and later. I runs great for different
device classes (Modem, Ports, Smart card). It's not hard to write such
a driver yourself.




.



Relevant Pages

  • RE: URGENT: Strange problem during installation a device drivers
    ... By deleting existing infs and infcache you force windows to use your inf. ... Have you changed this inf file recently? ... debice reboots with another VID/PID and asks for another driver. ... during the installation I have this strange problem: ...
    (microsoft.public.development.device.drivers)
  • Re: Request for the Location of the ntirp.c file in Platform Build
    ... The serial port test I was running is a standard test that came with Windows ... I've created a test for a SPI port driver that came with the BSP we ... Device Remote System Information seems to load, ...
    (microsoft.public.windowsce.platbuilder)
  • WinME Device Manager Refresh problem
    ... We have a USB based Serial Port and the driver works fine on Windows ... the Device Manager shows our ...
    (microsoft.public.development.device.drivers)
  • Re: What registry key to delete to reinstall a device
    ... OEM*.PNF if your driver is not signed. ... your device identifier will determine the OEM* name of your inf file. ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... I'm of the opinion that ghost or its equivalent, i.e. a fresh>> install, is the best way to do a 'clean install' test. ...
    (microsoft.public.development.device.drivers)
  • Serial ports are unavailable to the driver in the VM (VMware)
    ... I am debugging a driver that has some problems with standby/hiberation ... debugging messages to the serial port using a direct registers access ... registers seem to become unavailable to the driver after Windows boots ... boot-start) but stops to send them when Windows entered GUI mode. ...
    (microsoft.public.development.device.drivers)