Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 5 months ago.
MBED USB HID fails to detach after unplug USB cable
I downloaded the handbook USB HID sample program to MBED and used HID API on Windows XP PC.
It was all working: read/write feature report, etc.
Then I unplug the USB cable, somehow the Windows HID device driver (as displayed in Control Panel/Device Manger/Human Interface/HID-compliant device) doesn't disappear (detach).
When I re-plug in the USB cable, now I am not able to talk to MBED via HID API (hidtest program) any more.
I have to restart my computer to go back to the initial state.
Anyone has similar experiences?
It seems like my exe crashes during the earlier test. It probably fails to release hid_device handle. So it's more like an operating system issue, not directly related to MBED though.
posted by Zhe Hu 13 Jun 2013