Difference between revisions of "OV3640"

From ArmadeusWiki
Jump to: navigation, search
(Drivers)
(Debugging)
Line 11: Line 11:
  
 
==Debugging==
 
==Debugging==
* Access to sensor registers form userspace:
+
* Access to sensor registers form userspace (here I2C 7 bit @ = 0x30):
 
<pre class="apf">
 
<pre class="apf">
# cd /sys/class/video4linux/video0
+
# ./v4l2-dbg -c 0x30 -g 0x3d
# echo 1 > i2c_reg
+
ioctl: VIDIOC_DBG_G_REGISTER
# cat i2c_val
+
Register 0x0000003d = 99h (153d  10011001b)
 +
 
 +
# ./v4l2-dbg -c 0x30 -s 0x3d 0
 +
Register 0x0000003d set to 0x0
 +
 
 +
# ./v4l2-dbg -c 0x30 -g 0x3d
 +
ioctl: VIDIOC_DBG_G_REGISTER
 +
Register 0x0000003d = 0h (0d  00000000b)
 +
 
 +
# ./v4l2-dbg -c 0x30 -l
 +
ioctl: VIDIOC_DBG_G_REGISTER
 +
 
 +
          00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
 +
00000000: 00 80 80 12 00 00 00 00 00 01 96 52 04 80 01 43
 +
00000010: 40 00 10 8f 4a 00 04 1a ba 01 81 00 7f a2 10 00
 +
...............
 
</pre>
 
</pre>
  
 
==Links==
 
==Links==
 
* http://www.ovt.com/products/sensor.php?id=7&limit=25,24
 
* http://www.ovt.com/products/sensor.php?id=7&limit=25,24

Revision as of 15:05, 28 July 2010

OV3640 is an Omnivision 3 Mpixels sensor that can be found in the following commercial camera modules:

Sensor seems pretty cool but, as always with Omnivision, datasheets are under NDA and init procedure looks like black magic.

Drivers

  • Freescale i.MX27/i.MX51 BSP have a driver for it (very customized one == only usable with Freescale BSP/boards)
  • Somebody from OMAP community tried to push a driver some times ago:

Debugging

  • Access to sensor registers form userspace (here I2C 7 bit @ = 0x30):
# ./v4l2-dbg -c 0x30 -g 0x3d
ioctl: VIDIOC_DBG_G_REGISTER
Register 0x0000003d = 99h (153d  10011001b)

# ./v4l2-dbg -c 0x30 -s 0x3d 0
Register 0x0000003d set to 0x0

# ./v4l2-dbg -c 0x30 -g 0x3d
ioctl: VIDIOC_DBG_G_REGISTER
Register 0x0000003d = 0h (0d  00000000b)

# ./v4l2-dbg -c 0x30 -l
ioctl: VIDIOC_DBG_G_REGISTER

          00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000: 00 80 80 12 00 00 00 00 00 01 96 52 04 80 01 43
00000010: 40 00 10 8f 4a 00 04 1a ba 01 81 00 7f a2 10 00
...............

Links