Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. USB device/hub reset?

USB device/hub reset?

Scheduled Pinned Locked Moved C / C++ / MFC
csharphelpquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jaycush
    wrote on last edited by
    #1

    Hi, I have a situation where I am communicating with a USB device (based off the FT232 usb chip by ftdi) where it will go into a hanged state when subjected to certain conditions such as large transients on the line. None of the reset device or cycle port commands that come with the driver work to bring it out of this state. I was wondering if it is possible to reset the hub or port the device is connected to in user-mode software? Can I get the symbolic name of the hub, open it, and pass it a certain IOCTL code through DeviceIoControl() that would do this? Any help or links to relevant information would be greatly appreciated. Thank you. Jay jay@bellsouth.net

    J 1 Reply Last reply
    0
    • J jaycush

      Hi, I have a situation where I am communicating with a USB device (based off the FT232 usb chip by ftdi) where it will go into a hanged state when subjected to certain conditions such as large transients on the line. None of the reset device or cycle port commands that come with the driver work to bring it out of this state. I was wondering if it is possible to reset the hub or port the device is connected to in user-mode software? Can I get the symbolic name of the hub, open it, and pass it a certain IOCTL code through DeviceIoControl() that would do this? Any help or links to relevant information would be greatly appreciated. Thank you. Jay jay@bellsouth.net

      J Offline
      J Offline
      jaycush
      wrote on last edited by
      #2

      Answered my own question. If anyone else has similar probs, the devcon example in the DDK shows how to restart a device.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups