Jump to content

Resolved-Switch USB power off


Recommended Posts

Hi

I have searched and google my day away.

Is there any way possible to switch the power off to the usb port of a pc.

We are running Win XP embedded.

What we are trying to do is unload a USB driver and load a updated version.

It is imperitive that it keeps the original com port (in this case 7) however what seams to happen is the device holds the port and the new driver loads to com 8.

Shutdown of the units cures this but because it is to be run remotely we have to do a restart.

Unplugging the USB device and replugging it in also cures this problem but again we cannot rely on the users to do this.

Does anyone have any ideas?

Thanks

Alistair

Edited by Wena
Link to comment
Share on other sites

Hi Zedna

Thanks for the reply and the link.

Unfortuantly the script just ejects the drive and not power down the the USB hub.

I also failed to mention that the USB driver converts the USB port to act as a serial port.

It then does not show in explorer as a Drive.

If I may I will give an example of a post from 2005.

"Want to switch a USB light off with a script"..No one had a resolution.

Alistair

Link to comment
Share on other sites

I read about a tool called Devcon.exe (in-built I suppose) that can do your job.

Also, when I disable a usb hub via device manager, its power is cut off as well until it is re-enabled.

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Link to comment
Share on other sites

Hi All

This was a complete run around and a waste of everyones time and I do appologies.

On reboot the com port (physical) allways defaults to a baud rate of 1200 and when an application runs and needs it, it will set the speed accordingly via it,s registry settings each time.

The driver we were working with was not reading it's own settings and hence it would fail.

We have created a work around untill our 3rd party supplier has fixed there driver.

Thanks

Alistair

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...