This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TUSB4020BI: Windows Driver to have control of batEN bits

Part Number: TUSB4020BI


Tool/software:

Hello,

My customer is using the TUSB4020BIPHP device and needs the ability to reset each port individually. They believe that the batEN bits in the Battery Charging Support Register can enable them to do this. The catch is they need to be able to do the resetting through a USB command to this device via Windows. Can we help explain to them how to enable this? Not sure if we have windows drivers that would include this, or guidance on how to do it themselves. 

Thanks,

John

  • Hi John:

         Battery enable has nothing to do with port reset.

         you can use SETPORTFEATURE command and Feature selector is 4 for Port_reset

    Best

    brian

  • Hi Brian,

    Thanks! Do we have any advice on how to update this register via a USB command on Windows? A windows tablet will basically talk to the TUSB4020BI device via USB and they want to be able to individually reset power on each downstream port on the TUSB4020BI.

    John

  • Also, does this reset both ports at once, or can you individually reset each port? Sorry, one more follow up. What standard are you taking that snippet from? Is it an open source standard we can share?

    John

  • Hi John:

       What purpose for customer to do port reset for each port?

        Customer can enable power switching for each downstream port and once overcurrent happens, PWRCTLx pin will disable and enable Vbus and reset the port, is this what customer looking for?

    Best

    Brian

       

  • Hi Brian,

    It is a medical USB hub where there can be two different downstream USB devices (usually sensors) connected. From a user standpoint, a requirement for this project is that either of these devices shall be able to be reset (power cycled) via a USB SW command.  It isn't just for overcurrent, they want to be able to reset a device without having to manually unplug and plugging it back in.

    Are the snippets you show above part of an open source document? They asked if we share this document in its entirety. 

    John

  • John:

        All above information is on USB 2.0 spec section 11.24.2.7 , or they can search SetPortFeature(PORT_RESET)  from the spec.

    Best

    Brian