How to programmatically unplug & replug an arbitrary USB device?

后端 未结 13 1703
南笙
南笙 2020-12-07 19:22

I\'m trying to fix a non-responsive USB device that\'s masquerading as a virtual COM port. Manual replugging works, but there may be up to 12 of these units. Is there an API

13条回答
  •  萌比男神i
    2020-12-07 19:41

    The device itself may be able to do this (ie, perform a USB disconnect/reconnect sequence).

    Have you contacted the device manufacturer, or if you are the manufacturer, the EE's that designed it?

    I had to do this when I designed a USB embedded device - programming could be accomplished through USB, but the device had to be able to disconnect and reconnect at several points to complete the process.

    Beyond that there's the brute force method of disabling the USB host device in device manager (I assume this can be done in software) and then re-enabling it.

    If nothing else, Phidget has USB controlled relay boards which you can use to connect power or the USB lines themselves to hubs or individual devices.

    -Adam

提交回复
热议问题