LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Force USB HID device to suspend/resume mode

Hello

Is someone know how to force Windows to send USB HID device to Suspend mode (power saving) and how to wake up this device (resume) after that withLabView?

Regards

Guy

0 Kudos
Message 1 of 9
(5,557 Views)

Hi Guy.Co

 

Maybe the information of this forum can help you with your application.

 

Regards

Esteban R.

0 Kudos
Message 2 of 9
(5,524 Views)

Access Denied to that forum.  "Sorry, you do not have sufficient privileges for that action."

0 Kudos
Message 3 of 9
(5,519 Views)

You can call into the Windows libraries which control the USB power states from LabVIEW. You might need to build your driver; you can find more information on these links (these were the references given by Esteban).

 

Introduction to WDM

Implementing power management in USB client drivers

USB Selective Suspend

0 Kudos
Message 4 of 9
(5,495 Views)

You can do it with USB control commands but that requires in-depth understanding of the USB protocol and a method of passing arbitrary control commands to your HID.  You don't say which interface you're using, presumably Microsoft's HID DLL?

 

Shane

0 Kudos
Message 5 of 9
(5,453 Views)

HI

Thanks for your answers

I guess I need to write a driver for my device

I tried to  find out how to do this with NI-VISA USB RAW drivers with no success

there is no control command for HID to move to suspend mode

the OS jus don't send keep alive to the device for 3msec and then the HID go to suspend

so ,I need to force the OS to be quiet for a 3ms

 

Guy

0 Kudos
Message 6 of 9
(5,447 Views)

You can implement a generic/custom HID device with Input and Output Report. Use your own protocol to send wakeup/sleep requests. All you have to do is to interpret those values in your device firmware.

0 Kudos
Message 7 of 9
(5,422 Views)

Has anyone seen any more information regarding whether this is indeed possible or not?

 

Looking through stack-exchange and other sources would indicate that it is possible to disable/enable a HID device but not remove complete power to a port, which in many cases is necessary for a full reset.

0 Kudos
Message 8 of 9
(4,945 Views)

ogk.nz,

 

As this forum is two years old, it's unlikely someone will respond with a solution. Feel free to make a new forum thread about this topic, as you'll be much more likely to receive an answer that way.

0 Kudos
Message 9 of 9
(4,904 Views)