Hardware Developers Community - NI sbRIO & SOM

cancel
Showing results for 
Search instead for 
Did you mean: 

USB on SOM Deployment

We want to implement a embedded SOM base system - that has a USB port to allow for:

1. Updating the SOM code after it's in the target system.

2. Use the USB as a console interface to the 'our' system.

Question:

A. Can the single USB0 do this? or is it limited to being configured as a host?.

B. Do we need to add the USB1 to our system? in addition to the USB0?.

C. One implementation is to run the system in 'datadump' mode and connect a USB thumbdrive to received TDMS streamed data.

So do we need to implement 1 USB port or 2?

Regards

Jack Hamilton

0 Kudos
Message 1 of 2
(3,794 Views)

Hi Jack,

USB0 can be configured to be either a USB Host or a USB Device by pulling USB0_MODE to digital ground or to VCC_3V3, respectively. If you wish to us USB0_MODE as both a Host and a Device then USB0_MODE can be changed during runtime, a reboot is required before the change propogates and USB0 acts as either a USB Host or Device. This is documented in the Carrier Board Design Guide on Page 1-6 (Table 1-6).

You could have your carrier board pull USB0_MODE to digital ground or to VCC_3V3 while also taking care of not power USB VBUS while operating as a device, but the carrier board would require the SOM to restart before the USB0 interface is configured properly. That is, if you wish to use USB0 as both a Device and a Host at different times.

When we talk about USB Device, we utilize this in our driver as an Ethernet connection. In MAX, it would show up as usb0 and have an IP address associated with it so you can push software through MAX, and stream data to it with using our normal networking APIs in LabVIEW.

Alternatively, you could have USB0 always be a USB Device for upgrading code for field maintenance and updates and enable USB1 to only be a Host to either log console information or other data like TDMS.

Please let me know if you have further questions,

- Tanner

Tannerite
National Instruments
0 Kudos
Message 2 of 2
(3,206 Views)