|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Roborio comms with arduino over USB
Quote:
|
|
#2
|
||||
|
||||
|
Re: Roborio comms with arduino over USB
How do you guys specify which USB port of the RoboRIO to use? We have a webcam and an Arduino board plugged into the two RoboRIO ports. I can be wrong but it seems that the robot code tries to talk to a wrong device sometimes. Can I do something more specific than kUSB? Thanks.
|
|
#3
|
||||
|
||||
|
Re: Roborio comms with arduino over USB
Quote:
|
|
#4
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|