Author Topic: ressetting usb from c#  (Read 283 times)

ulao

  • Frequent Contributor
  • ****
  • Posts: 83
ressetting usb from c#
« on: July 23, 2017, 11:08:57 pm »
Does anyone know of a way to reset a usb device from c#? I looked over the hidapi I'm using with dllexport and it does not look to offer this. I know devcon can do it but I do not want to have to include that file in my software package. I see a few mentions of .net examples but they seem a bit of an overkill. I was able to implement a reset HID report and that works but because of the way I set up my class it is fighting me to reset more then one device.  I'd even be open to spamming the usb to force a reset if possible.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 2625
    • Lakeview Research
Re: ressetting usb from c#
« Reply #1 on: July 23, 2017, 11:12:28 pm »
The Devcon code is the only method I'm aware of.