Home > Back-end >  How to reset the USB device in the program
How to reset the USB device in the program

Time:10-05

Do it himself a MFC PC program, used to control the connected to the computer USB camera, USB camera use Windows own uvc driver usbvideo. Sys, read in MFC PC camera data, sometimes produce XACT ERROR ERROR, the ERROR is to use Bus Hound software to grab, appear this ERROR and found a Bus Hound a reset of the device command can make it back to normal, so want to in their own MFC applications also implements the reset function of the device, so the XACT detected ERROR can through this function recovery, after a lot of information search on the net, the information included in the official Microsoft found, have no a way to achieve this, Microsoft's official documents mentioned a DeviceIoControl function, but I always use this function to send command returns failure, want to consult the familiar with the guys how to implement this function, thank you very much,
  • Related