locked
Windows USB API functions RRS feed

  • Question

  • Hi,

    I have a 1 Wire device that is connected via USB port and normally works fine.  However sometimes it seems to stop working and i need to swap the usb port it is conected to to get it to work again.  I am not sure if this is to do with the port being suspended and failing to wake back up.  I am after a Win API C++ function that allows me to simply reset the port in question so that it will continue to work.... any ideas if this is possible.

    Thanks

    Regards

    Martin

    Tuesday, June 15, 2010 10:52 PM

Answers

  • Locate and download the DEVCON sample.  DEVCON is a utility with source code that allows you to programatically do everything you can from Device Manager (such as disabling and re-enabling the USB device).  USB reset has varying results depending on the chipset of USB hub, so YMMV.
     
    -- David
     
    • Marked as answer by Kira Qian Monday, June 21, 2010 9:39 AM
    Wednesday, June 16, 2010 2:14 AM