Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > USB Windows Utility

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



USB Windows Utility
Moderator:
JFMD

Post Reply
Follow this topic



USB Windows Utility

danaaknight posted on 06 Nov 2012 4:33 AM PST
Top Contributor
1773 Forum Posts

I am looking for a freeware Win utility that has the following capabilities -

 

1) Detects all USB devices on a system.

2) Allows user to turn power off on the port, and back on again. Goal is to

force a Win driven renegotiation of a device that is hung, in my case a wireless

link that has dropped connection. ipconfig is no help here. The other case is

a webcam that does not always startup.

3) Can handle scripts to implement 2) to be run in task scheduler.

 

Anybody know of one ?

 

Regards, Dana.




Re: USB Windows Utility

hli posted on 06 Nov 2012 03:26 PM PST
Top Contributor
675 Forum Posts

Computers typically are not designed to switch power on USB ports. If they did, how would a device be detected the first time  - when the power is off it doesn't start up...

The USB ports power lines are always connected to the 5V power lines. There might be exceptions in that some devices disable the port when power negotiations fail, but I don't know of any. Your best guess could be a powered USB hub, whose power supply you could control (but this requires hardware).



Re: USB Windows Utility

danaaknight posted on 12 Nov 2012 02:26 PM PST
Top Contributor
1773 Forum Posts

What I am looking for is a SW equivalent, by running win script, that will

simulate an unplug/plug re-negotiation cycle for a specific USB port,

of my choosing.

 

Regards, Dana.



Re: USB Windows Utility

hli posted on 12 Nov 2012 03:21 PM PST
Top Contributor
675 Forum Posts

It seems like 'devcon' from the Winowd driver kit is what you need:

  • devcon.exe disable <_ID with wild cards_>
  • devcon.exe enable <_ID with wild cards_>

You can also look at http://stackoverflow.com/questions/916296/how-can-i-cycle-a-usb-device-from-c/919836#919836 to find a windows scripting solution.

It looks like googling for "windows software usb unplug" yields some more detailed information.

But this still assumes that the USB-renegotiation will properly re-init the affected devices.



Re: USB Windows Utility

danaaknight posted on 13 Nov 2012 04:45 AM PST
Top Contributor
1773 Forum Posts

Thanks hli, thats exactly what I need.

 

Regards, Dana.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20