Author Topic: Unplug and then plug in USB device quits responding  (Read 9425 times)

andyu

  • Member
  • ***
  • Posts: 1
Unplug and then plug in USB device quits responding
« on: August 15, 2019, 09:57:37 pm »
I'm using the usbhidio.vbp sample project in Windows XP and Visual Basic 6.  I've incorporated the FindTheHID, read and write functions with some success to communicate to a USB device.  However, when I unplug the USB cable and then plug it back in the interface stops responding to write and read commands.  I used the recommendations to close the HIDHandle, ReadHandle and set MyDeviceDetected to False found in the ReadReport subroutine of the utility with no luck.  This issue also occurs when using the usbhidio.vbp project with no modifications except for setting the MyVendorID and MyProductID to match the values of my HID.  Has anyone else experienced this and can share a solution?  Thank you.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Unplug and then plug in USB device quits responding
« Reply #1 on: August 22, 2019, 06:30:36 pm »
I suggest using using breakpoints, single stepping, etc to find out where it is failing.