Difference between revisions of "USB cameras"

From RobotinoWiki
(Using multiple camera with Robotino v3)
(Using multiple camera with Robotino v3)
Line 38: Line 38:
 
</pre>
 
</pre>
  
In my case I have two Logitech cameras attached.  
+
In my case I have two Logitech cameras attached. The cameras can be accessed by the /dev/video* devices.
  
 
<pre>
 
<pre>
 
#ls /dev/video*
 
#ls /dev/video*
 
/dev/video0  /dev/video1
 
/dev/video0  /dev/video1
 +
</pre>
 +
 +
Let us examine /dev/video0
 +
 +
<pre>
 +
#udevadm info --query=all --attribute-walk --name=/dev/video0
 +
...
 +
ATTRS{idVendor}=="046d"
 +
...
 +
ATTRS{serial}=="25C798AF"
 +
...
 +
ATTRS{idProduct}=="082d"
 +
 +
 +
 
</pre>
 
</pre>

Revision as of 10:29, 17 February 2014

Model Robotino OS JPG RAW
Logitech HD Webcam C920 v3 yes yes
Logitech Webcam Pro 9000 v2.0 yes yes
Logitech C905 v2.4 yes yes

Using multiple camera with Robotino v3

Upon delivery Robotino is equipped with a single USB camera. Currently this is a "Logitech HD Webcam C920". The udev rule /etc/udev/rules.d/99-camd2.rules starts Camd2 which grabs images from this camera and makes the stream available over network to Robotino View and the Robotino API2.

In order to use multiple cameras you have to ensure that only the first camera (most likely the camera looking in forward direction) is attached to Camd2.

Use lsusb to see a list of USB devices attached to your Robotino.

#lsusb
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 018: ID 046d:082d Logitech, Inc. 
Bus 001 Device 019: ID 046d:082d Logitech, Inc. 
Bus 001 Device 004: ID 045e:0291 Microsoft Corp. Xbox 360 Wireless Receiver for Windows
Bus 001 Device 005: ID 1e29:040d Festo AG & Co. KG 

In my case I have two Logitech cameras attached. The cameras can be accessed by the /dev/video* devices.

#ls /dev/video*
/dev/video0  /dev/video1

Let us examine /dev/video0

#udevadm info --query=all --attribute-walk --name=/dev/video0
...
ATTRS{idVendor}=="046d"
...
ATTRS{serial}=="25C798AF"
...
ATTRS{idProduct}=="082d"