> => yes, I rewrite the power management IRP handing , and the usb device
can work if the device is powered during PC standby. And I can confirm
that select config is sent to device by others, maybe the bus driver.
Nope, that doesn’t happen. You must have a call to
USBD_CreateConfigurationRequestEx in your driver somewhere.
=??yes, select configure is send when device is started by my driver. Here
I mean when PC wakeup, the select configure is sent by system.
Now I still meet the problem with usb device is powered off during PC
standby. Will windows handle this case differently , comparing to usb
device is kept on during PC standby? Or this is related to my wrong
configuration report about power supply?
What are you expecting to happen here? Unless your device is registered
as a “wakeup” source, when the PC goes into standby, the power to your
port will be removed. That’s a fact. You need to be able to put it
back in a working state when power is restored.
=> USB device is not powered off in my desktop at least, according to USB
spec, VBUS is not off in suspend state. I guess there is an user setting to
control this. and Yes, I add restoring virtual serial hardware context in
virtual serial driver, now the problem is solved.
Cheers, the problem is solved!
2013/8/14 Tim Roberts
> xxxxx@gmail.com wrote:
> > => yes, I rewrite the power management IRP handing , and the usb device
> can work if the device is powered during PC standby. And I can confirm
> that select config is sent to device by others, maybe the bus driver.
>
> Nope, that doesn’t happen. You must have a call to
> USBD_CreateConfigurationRequestEx in your driver somewhere.
>
>
> > 3 you need to comply with the USB spec.
> > => I may have a problem here. the device is bus powered, but USB library
> from chipset vendor force the setting of self powered.
>
> That’s a serious problem. However, every USB chipset allows you to
> provide your own descriptors, so you should be able to solve that problem.
>
>
> > Now I still meet the problem with usb device is powered off during
> PC standby. Will windows handle this case differently , comparing to usb
> device is kept on during PC standby? Or this is related to my wrong
> configuration report about power supply?
>
> What are you expecting to happen here? Unless your device is registered
> as a “wakeup” source, when the PC goes into standby, the power to your
> port will be removed. That’s a fact. You need to be able to put it
> back in a working state when power is restored.
>
> –
> 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
>