Adding USB Host to The Module

I’m trying to connect a hub to the usb host of the module, but I’m not sure if it’s working. Does the Host port need to be enabled or something?

Nope - you should be able to plug something in and, provided it is Linux-compatible (most stuff is), then it will at least get enumerated. You could start with something simple like a thumb drive and then use fdisk -L to see if it got enumerated. Even if you plug something in for which there are no drivers, there are usb tools (like usbview - [url]http://www.kroah.com/linux-usb/[/url]) that will show you the current usb topology.

I’ve connected a plug and play usb dongle that works on the bbb but the module doesn’t seem to start it. It has a light which turns on when it’s active, and when connected to the bbb the bbb creates an access point; all without any other intervention.

I haven’t tried it, but I am wondering if one of the other USB lines (like the current sense) needs to be connected to provide some feedback to the OS that a device is there. That would be my first guess - we need John to ring in here with how he got it working on the TH as Gus mentioned.

Yes I think there is an over current detect pin. I am not sure if this is required.

Remember to twist the usb wires. We are talking about 480mhz on those lines :slight_smile:

Sigh, looks like usb host is going to be a trip:

[url]USB host without VBUS and DRVVBUS - Processors forum - Processors - TI E2E support forums
[url]Redirecting to Google Groups

Kind of suspected this might be the case, so I ordered some SMT breakouts and current-limited switches (the same ones that are on the dev-board schematic). Ordered the ferrites too, just for good measure.

For USB host on TH board, all you need are:

  • GND
  • 5V
  • D+
  • D-
  • VBus -> 5V

@ Dat - So hold Vbus high. Would it be as easy as connecting it to Sys_out (5V)?

@ Mr. John Smith -

yes, just notice that we need USB Host VBus, not USB Host DrvVBus.
There us also USB VBus which is for Usb Client vbus.

Well I tried holding USB Host Vbus high (5V) but the host port still did not come on. Going to try the register approach.

Question GHI, if USB1 is an OTG device, how come you all designed the dev board to hardwire it to usb host? What would the pin connections have been if it was OTG?

I tried adding a micro usb to the module but I don’t know which pin is ID and which I should use for VCC.

Does anyone know if USB.Host.OC# is the ID pin?

@ Mr. John Smith -

That looks like not correct, I think

  1. I don’t see where you supply 5V
  2. USBHost VBus need to be high and 5V. I am not sure why you connected this pin to your VCC.
    And 5V GXP is input, not output.

If you have GHI USB Host module then just simple:

  • GND -> GND
  • 5V -> 5V
  • Pin4 -> D-
  • Pin5 --> D+

About USBVBus host in OSD TH board, just connect it to 5V somewhere.

@ Dat - Thanks much; It’s working. I almost had it correct the first time.

2 Likes

…and the usb hub is also working. Good times! :dance:

3 Likes