OV9650 v4l2 sample
OV9650 v4l2 sample
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
All other v4l2 test codes which work on USB web-cameras drop error on one of the first ioctl commands when using /dev/camera
-
- Posts: 5
- Joined: Tue Apr 21, 2009 11:15 pm
- Location: ANGERS
- Contact:
Re: OV9650 v4l2 sample
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,
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,
-
- Posts: 5
- Joined: Tue Apr 21, 2009 11:15 pm
- Location: ANGERS
- Contact:
Re: OV9650 v4l2 sample
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 ?
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 ?
Re: OV9650 v4l2 sample
yes. the datasheet is there also ov9650.rar
Re: OV9650 v4l2 sample
sinseman44 these are really great news!
I would be very thankful if you shared the driver after you are done with it.
Thanks!
Janis
I would be very thankful if you shared the driver after you are done with it.
Thanks!
Janis
-
- Posts: 5
- Joined: Tue Apr 21, 2009 11:15 pm
- Location: ANGERS
- Contact:
Re: OV9650 v4l2 sample
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
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 568 times
Re: OV9650 v4l2 sample
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.
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.
Who is online
Users browsing this forum: No registered users and 5 guests