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.

Can the host USB Hub also act as or port Bulk device data into TI provided Windows driver.

Guru 55673 points
Other Parts Discussed in Thread: TM4C1294NCPDT

It seems (usbhub.c) Host mode can control OTG port and have a total of 5 devices, one dedicated to hub leaves 4 hub device ports with up to 8 end points on each down level device port? Is there a USB diagram of such configuration to clarify exactly what is meant by the library text?

Is there example SW of a Hub and 4 devices with a call back event handler or does that have to be coded to handle function shown below. The Bulk USB is transport is hard to visualize coded for a pass through into the host hub device. The other 3 hub port devices will hook to 3 additional Launch pads making a 4LP USB cluster. The only other alternative would be to have an dedicated endpoint into Windows for console output display. That endpoint seemingly would require an low level driver that TI has not yet invented. Thanks for those great ideas!

USBHHubOpen(tUSBHHubCallback pfnCallback)

 

  • Hello BP101

    Did you check the example

    D:\ti\TivaWare_C_Series-2.1.2.111\examples\boards\dk-tm4c129x\usb_host_hub

    Regards
    Amit
  • Hi Amit,

    Just so happens I had DK but didn't look there. Thanks!  

    Recall you mention in forum some time ago of TI writing a USB example to connect 2 LP together, assumed via a hub?

    BTW: Tivaware 2.11.71 USB library had TM4C1230 as the project default import tool chain. Bulk USB initialize function faults the MCU even after setting chain to TM4C1294NCPDT and recompile the project. The 2.1.0.12573 USB library does not fault the MCU on initialize. Haven't had a chance yet to import 2.1.2.111 though suspect the tool chain may also be TM4C1230.

    Noticed the import of 2.11.71 USB library created linked resources in the host/device folders that were not present in 2.1.0.12573 folders. Not sure what was causing the bus fault ..71 so changed back to 12573 and all is well, even after copy missing host/device files into the work space project folders and recompiled - flashed project.

  • Hello BP101

    I have tested the 2.1.2.111 and 2.1.1.71 release build for the DK-TM4C129X and it has worked both time. Where does the bus fault come and what does the NVIC registers show.

    Regards
    Amit
  • Hi Amit,

    Well at least one answer is the OTG Host Bulk device data can be passed via a Hub port into the low level Windows Bulk driver/console. Backwards at this point since the hub port is PC side but at least it proves down stream bulk device endpoint data pass through the hub port into a Windows display terminal. That makes it easy for bulk data display but challenges the ability to do both a virtual serial COM ports and Bulk endpoints over the same wire connection.

    Perhaps an option is to make one USB member DK-TM4C1294-XL with LCD display, mouse, micro keyboard to handle console directives etc. USB 2.0 device driver fan out tentacles and the 3.0 standard is now topping gigabit transfer rates. It might get more individuals interested in Easily connecting multiple LP together with a PNP like OTG driver? The SW seems ready accept for a USB cluster manager that reports all the connected Launch pads and or can send commands to any member to do some kind of work.
  • Hello BP101

    It can be added to a wishlist

    Regards
    Amit