View Single Post
  #1   Spotlight this post!  
Unread 11-04-2016, 13:03
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,086
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Problems with three cameras

Well, if you look at lsusb.txt you'll see exactly what we used in more detail than anyone would want. It's some random usb hub that we've been using on our DS for a few years now. According to lsusb.txt, its a "Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB".

The two USB ports are a camera and the hub. The other two cameras are plugged into the hub, and the usb stick is also plugged in.

We use mjpg-streamer to interact with the cameras. There are potential USB bandwidth issues to be mindful of -- we were not able to open the camera devices until setting the resolution to 160x120, 160x120, and 320x240. I believe mjpg-streamer opens the devices in mjpg mode, as opposed to YUV (which an image processing framework such as NIVision or OpenCV would be more likely to open it in).

What did you use to determine that only two devices were detected? We used two different random hubs and had no issues detecting all cameras on either of them.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote