Author Topic: Reset USB to switch to a different device behavior  (Read 8971 times)

ftariq68

  • Member
  • ***
  • Posts: 23
Reset USB to switch to a different device behavior
« on: October 31, 2011, 11:02:40 am »
I would like to send a reset command to a microcontroller USB system such that when the device recieves a reset command it not only resets the microcontroller but changes the descriptors so that it appears as a different device.  How can I get the windows to re-enumerate?  Do I have to unplug and plug the USB to do a re-enumeration?  Is this the only way?  I want to leave the USB cable plugged in to the PC and somehow get the enumeration to happen again using soft reset of some sort.

Any help will be greatly appreciated.  Thankyou in advance for your assistance.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Reset USB to switch to a different device behavior
« Reply #1 on: October 31, 2011, 11:15:42 am »
The device has to emulate detach and re-attach by electrically removing and reattaching the pull-up resistor on D+ or D-.

Jan

ftariq68

  • Member
  • ***
  • Posts: 23
Re: Reset USB to switch to a different device behavior
« Reply #2 on: October 31, 2011, 12:13:51 pm »
Thanks a lot.... That is it...  :)