USB driver Sample

Hi,

I have taken the USBAMP from windows DDK samples.

and i have changed the hardwareid to my device ID.

after successfull installation its not even calling the driver entry.

it says
This device is not working properly because Windows cannot load the drivers
required for this device. (Code 31)

Please help me what is the problem how can i debug since it won’t call even
driver entry.

Regards,
Ravish

What OS? What architecture? Which kit did you use?

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Ravish Yadav
Sent: Thursday, August 21, 2014 9:23 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] USB driver Sample

Hi,

I have taken the USBAMP from windows DDK samples.

and i have changed the hardwareid to my device ID.

after successfull installation its not even calling the driver entry.

it says
This device is not working properly because Windows cannot load the drivers required for this device. (Code 31)

Please help me what is the problem how can i debug since it won’t call even driver entry.

Regards,
Ravish
— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers 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

Hi Doron,

Thanks for the reply .
Its an 4G USB device , i need to register a USB driver to just change the
hardware ID from USb to NET class so that network driver can be installed.

The driverentry is being called now i need to see the problem.

But can you suggest what minimum i need to do for this task.

On Fri, Aug 22, 2014 at 12:26 PM, Doron Holan
wrote:

> What OS? What architecture? Which kit did you use?
>
>
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] *On Behalf Of *Ravish Yadav
> Sent: Thursday, August 21, 2014 9:23 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] USB driver Sample
>
>
>
> Hi,
>
>
>
> I have taken the USBAMP from windows DDK samples.
>
>
>
> and i have changed the hardwareid to my device ID.
>
>
>
> after successfull installation its not even calling the driver entry.
>
>
>
> it says
>
> This device is not working properly because Windows cannot load the
> drivers required for this device. (Code 31)
>
>
>
> Please help me what is the problem how can i debug since it won’t call
> even driver entry.
>
>
>
>
>
> Regards,
>
> Ravish
>
> — NTDEV is sponsored by OSR Visit the list at:
> http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
> http://www.osr.com/careers 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
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> 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
>

Ravish Yadav wrote:

Thanks for the reply .
Its an 4G USB device , i need to register a USB driver to just change
the hardware ID from USb to NET class so that network driver can be
installed.

This is an odd statement. If the device expected to be used as a net
device, it would have exposed a USB interface in the Communication
Device Class. If the device doesn’t expect to be used as a network
device, you can’t force it to simply changing the install class.


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

Hi Tim,

There are two hardware ID given with one it detect as CDROM and then after
installation i need to send a control command to the device and install
driver for the changed device id with the class =net

Regards,
Rabish

On Sat, Aug 23, 2014 at 12:21 AM, Tim Roberts wrote:

> Ravish Yadav wrote:
> >
> > Thanks for the reply .
> > Its an 4G USB device , i need to register a USB driver to just change
> > the hardware ID from USb to NET class so that network driver can be
> > installed.
>
> This is an odd statement. If the device expected to be used as a net
> device, it would have exposed a USB interface in the Communication
> Device Class. If the device doesn’t expect to be used as a network
> device, you can’t force it to simply changing the install class.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> 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
>

Ravish Yadav wrote:

There are two hardware ID given with one it detect as CDROM and then
after installation i need to send a control command to the device and
install driver for the changed device id with the class =net

Is this a device you control? A better plan for this is to have “start
up mode” expose one interface as CDROM and another interface as a WinUSB
interface with no endpoints. The CDROM autoplay will start your
installer, which can use WinUSB to connect to the second interface and
send the control command. The “steady state” mode would not have to
expose the WinUSB interface, to avoid hanky-panky.

This would require no functional changes to the device firmware. The
only change is in the descriptors.

Barring that, your only choice is to install a lower filter driver on
the CDROM interface so you can shove in your control request. That will
require the device to restart.


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