OV9650 v4l2 sample

Post Reply
janiz
Posts: 5
Joined: Thu Feb 19, 2009 3:22 am

OV9650 v4l2 sample

Post by janiz » Tue Aug 11, 2009 10:19 am

Has anybody source how to interface with ov9650 camera from mini2440 board using v4l2 linux interface? Camtest source code that is included in the latest mini2440 software update just do raw device reads and not v4l2 interface commands.

All other v4l2 test codes which work on USB web-cameras drop error on one of the first ioctl commands when using /dev/camera

sinseman44
Posts: 5
Joined: Tue Apr 21, 2009 11:15 pm
Location: ANGERS
Contact:

Re: OV9650 v4l2 sample

Post by sinseman44 » Thu Aug 20, 2009 4:28 pm

Hi,

I'm writing a v4l2 driver for the ov9650 cmos sensor. I use gstreamer as test program (which could be seen as a reference compared to camtest...), and for now I could display the video to the framebuffer but the refresh rate is too slow because the sensor is configured for sxga resolution (15fps).

I'm searching for the ov9650's datasheet in order to configure it in vga resolution and get a 30fps resolution.

Can some1 help me finding this datasheet ?

Regards,

esky-sh
Posts: 1466
Joined: Sat Dec 20, 2008 4:21 am

Re: OV9650 v4l2 sample

Post by esky-sh » Fri Aug 21, 2009 2:04 am

here you go
CAM130.JPG
CAM130.JPG (63.99 KiB) Viewed 3771 times
Attachments
ov9650.rar
(844.87 KiB) Downloaded 580 times

sinseman44
Posts: 5
Joined: Tue Apr 21, 2009 11:15 pm
Location: ANGERS
Contact:

Re: OV9650 v4l2 sample

Post by sinseman44 » Fri Aug 21, 2009 2:53 am

Hi,

Thanks for the schematic of the mini pcb sensor, I didn't have it but i was talking about the registers description. Fortunately, I've found a preliminary datasheet but do you know if a updated datasheet exists ?

esky-sh
Posts: 1466
Joined: Sat Dec 20, 2008 4:21 am

Re: OV9650 v4l2 sample

Post by esky-sh » Fri Aug 21, 2009 5:02 am

yes. the datasheet is there also ov9650.rar

janiz
Posts: 5
Joined: Thu Feb 19, 2009 3:22 am

Re: OV9650 v4l2 sample

Post by janiz » Sun Aug 23, 2009 11:04 am

sinseman44 these are really great news!
I would be very thankful if you shared the driver after you are done with it.

Thanks!
Janis

sinseman44
Posts: 5
Joined: Tue Apr 21, 2009 11:15 pm
Location: ANGERS
Contact:

Re: OV9650 v4l2 sample

Post by sinseman44 » Sun Aug 30, 2009 8:49 am

Here i am with a v4l2 driver BUT the camera configuration isn't well done, so the image isn't good as it could be.

Originally camera's configuration (in s3c2440_ov9650.c file) has been defined for a SXGA resolution but the transfer rate is only 15fps. I've modified the array values but now the image is really poor. Can you try to found the correct configuration to get a good image ?

I'm not really experimented with driver development so if someone could improve the driver, i would really appreciate (maybe with a DMA between driver and user spaces to transfer the image and without a thread polling for a user command to send this image).

I attach the driver's source and the .ko associated. I wanted to attach the datasheet of the camera with the registers definition but the file is too big, so you can download it at this address : http://www2.hawaii.edu/~toyl/CubeSAT/do ... (1.91).pdf

To insert the driver : copy s3c2440camera.ko to /lib/modules/2.6.29-rc7/kernel/drivers/media/video/ then do "modprobe s3c2440camera"

If you have an "unknown symbol" error, try to add the following line to /lib/modules/2.6.29-rc7/modules.dep :
/lib/modules/2.6.29-rc7/kernel/drivers/media/video/s3c2440camera.ko: /lib/modules/2.6.29-rc7/kernel/drivers/media/video/videobuf-vmalloc.ko /lib/modules/2.6.29-rc7/kernel/drivers/media/video/videobuf-core.ko
Attachments
s3c2440camera.tar.gz
(91.27 KiB) Downloaded 420 times

janiz
Posts: 5
Joined: Thu Feb 19, 2009 3:22 am

Re: OV9650 v4l2 sample

Post by janiz » Sun Aug 30, 2009 11:15 pm

OK, thanks, I'll try the code some time later.

I'm actually also not a driver developer so I'm not sure I can make the code better. If I do, I'll post it here.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests