View Single Post
  #1   Spotlight this post!  
Unread 10-02-2016, 22:00
Justin Buist Justin Buist is offline
Registered User
FRC #4003 (TriSonics)
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Allendale, MI
Posts: 22
Justin Buist is an unknown quantity at this point
Re: Roborio comms with arduino over USB

USB doesn't really have "ports." The two ports on the roboRIO are basically the same hole, if you will, much like putting a USB hub into one doesn't make 6 new addressable spaces, it's just more holes on the bus.

Your Arduino will show up as /dev/ttyUSB0 or /dev/ttyACM0 in some cases, like a Mega.

The webcam will show up as /dev/video0, then /dev/video1, etc, as you add cameras assuming they're supported in Video4Linux.

The addressing is basically the responsibility of the OS unless you want to get far deeper into USB specs than I have ever bothered.