a USB driver problem

My USB device has two interfaces which adopt a same driver.
After finish loading my driver, the interface0 will be a Modem device and the interface1 a Port device.

How can I design my driver ?
It must be a class driver?

thanks a lot.

Basically , 3 drivers are needed . 2 drivers for each interface respectively and 1 is bus-type driver ,used to enumerate 2 devices .

thanks, The two interfaces use a same driver

I think that’s no problem. But suggest to one driver file with two different names

Also , You request that one INF to support them simutaneously ?

There are two INF files for the two interfaces respectively(one is a modem INF and the other is COM INF)

I want to support the two interfaces by using a same driver with a same name.

thanks

Can anybody give me a good idea ?

thanks

You do not need a bus driver, usbccgp can be used to split the 2 interface functions apart in separate child stacks. You should use the in box driver usbser.sys for the modem function and then have your own driver for the com port. These will installed qwith two different INFs since modems are in a different device class (Modem) than com ports (Ports)

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: xiedong_sl@126.com <xiedong_sl>
Sent: Thursday, August 20, 2009 1:09 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] a USB driver problem

Basically , 3 drivers are needed . 2 drivers for each interface respectively and 1 is bus-type driver ,used to enumerate 2 devices .


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</xiedong_sl>

Doron Holan wrote:

You do not need a bus driver, usbccgp can be used to split the 2
interface functions apart in separate child stacks. You should use
the in box driver usbser.sys for the modem function and then have
your own driver for the com port. These will installed qwith two
different INFs since modems are in a different device class (Modem)
than com ports (Ports)

In this case I would actually suggest to the OP that he create a small lower filter for the second stack that makes his second USB interface look like a CDC ACM device on USB interface #0, then he can leverage usbser.sys for both devices and avoid writing his own COM port driver (usbser.sys will load as a COM port too, not just a modem).

Usbser will load as a com port, but it does not implement the full com port io interface, so if he wants app compat with apps he did not write, usbser is not going to cut it. If the com port function is only going to be used in a controlled scenario where the apps do not require what usbser does not implement, sure it will work

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: xxxxx@gmail.com
Sent: Thursday, August 20, 2009 7:46 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] a USB driver problem

Doron Holan wrote:

> You do not need a bus driver, usbccgp can be used to split the 2
> interface functions apart in separate child stacks. You should use
> the in box driver usbser.sys for the modem function and then have
> your own driver for the com port. These will installed qwith two
> different INFs since modems are in a different device class (Modem)
> than com ports (Ports)

In this case I would actually suggest to the OP that he create a small lower filter for the second stack that makes his second USB interface look like a CDC ACM device on USB interface #0, then he can leverage usbser.sys for both devices and avoid writing his own COM port driver (usbser.sys will load as a COM port too, not just a modem).


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

xxxxx@hotmail.com wrote:

My USB device has two interfaces which adopt a same driver.
After finish loading my driver, the interface0 will be a Modem device and the interface1 a Port device.

How can I design my driver ?
It must be a class driver?

You will have to use two INF files. A single INF can only support one
device class. They can use the same driver binary, although that would
be confusing, in my opinion.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

xiedong_sl@126.com wrote:

Basically , 3 drivers are needed . 2 drivers for each interface respectively and 1 is bus-type driver ,used to enumerate 2 devices .

No. Only 2 drivers. The standard usbccgp driver will already enumerate
two device IDs for the two interfaces.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Doron Holan wrote:

Usbser will load as a com port, but it does not implement the full
com port io interface, so if he wants app compat with apps he did
not write, usbser is not going to cut it.

What exactly are you referring to here? And why suggest usbser for the modem interface, then? The modem is obviously a COM port too, are you assuming it would only be used for “modem” purposes like DUN?

Usbser implements enough of the serial io interface to make a modem work, nothing more. Essentially it is a subset of the full serial io contract.

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: xxxxx@gmail.com
Sent: Thursday, August 20, 2009 10:59 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] a USB driver problem

Doron Holan wrote:

> Usbser will load as a com port, but it does not implement the full
> com port io interface, so if he wants app compat with apps he did
> not write, usbser is not going to cut it.

What exactly are you referring to here? And why suggest usbser for the modem interface, then? The modem is obviously a COM port too, are you assuming it would only be used for “modem” purposes like DUN?


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

thanks everyone.

The usbser.sys can not pass DTM test.
So, My device can’t adopt usbser.sys and I must write the driver by myself.

my problem is as follows:
How to design my driver which can support both Modem and COM device for different USB interface?

thanks a lot.

Which dtm test failed in usbser?

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: xxxxx@hotmail.com
Sent: Thursday, August 20, 2009 7:07 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] a USB driver problem

thanks everyone.

The usbser.sys can not pass DTM test.
So, My device can’t adopt usbser.sys and I must write the driver by myself.

my problem is as follows:
How to design my driver which can support both Modem and COM device for different USB interface?

thanks a lot.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

I have ever used usbser.sys under XP system to do dtm test and found that some items failed.
such as pnp test item etc.

Which dtm test failed in usbser?

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: xxxxx@hotmail.com
Sent: Thursday, August 20, 2009 7:07 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] a USB driver problem

thanks everyone.

The usbser.sys can not pass DTM test.
So, My device can’t adopt usbser.sys and I must write the driver by myself.

my problem is as follows:
How to design my driver which can support both Modem and COM device for
different USB interface?

thanks a lot.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Can you be a little more specific?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Thursday, August 20, 2009 9:59 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] a USB driver problem

I have ever used usbser.sys under XP system to do dtm test and found that some items failed.
such as pnp test item etc.

Which dtm test failed in usbser?

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: xxxxx@hotmail.com
Sent: Thursday, August 20, 2009 7:07 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] a USB driver problem

thanks everyone.

The usbser.sys can not pass DTM test.
So, My device can’t adopt usbser.sys and I must write the driver by myself.

my problem is as follows:
How to design my driver which can support both Modem and COM device for
different USB interface?

thanks a lot.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

The DTM version is 1.1.
My device is a ZTE CDMA handset which adopts MS’s CDC driver.
When I used DTM to do WHQL test, I found there were several items failed, such as PNP test.

Can you be a little more specific?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Thursday, August 20, 2009 9:59 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] a USB driver problem

I have ever used usbser.sys under XP system to do dtm test and found that some
items failed.
such as pnp test item etc.

Which dtm test failed in usbser?

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: xxxxx@hotmail.com
Sent: Thursday, August 20, 2009 7:07 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] a USB driver problem

thanks everyone.

The usbser.sys can not pass DTM test.
So, My device can’t adopt usbser.sys and I must write the driver by myself.

my problem is as follows:
How to design my driver which can support both Modem and COM device for
different USB interface?

thanks a lot.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

I mean which specific tests were failing, not the specific hw

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Thursday, August 20, 2009 11:33 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] a USB driver problem

The DTM version is 1.1.
My device is a ZTE CDMA handset which adopts MS’s CDC driver.
When I used DTM to do WHQL test, I found there were several items failed, such as PNP test.

Can you be a little more specific?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Thursday, August 20, 2009 9:59 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] a USB driver problem

I have ever used usbser.sys under XP system to do dtm test and found that some
items failed.
such as pnp test item etc.

Which dtm test failed in usbser?

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: xxxxx@hotmail.com
Sent: Thursday, August 20, 2009 7:07 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] a USB driver problem

thanks everyone.

The usbser.sys can not pass DTM test.
So, My device can’t adopt usbser.sys and I must write the driver by myself.

my problem is as follows:
How to design my driver which can support both Modem and COM device for
different USB interface?

thanks a lot.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer