HomeGenie Forum

Development => Feature request => Topic started by: dsa4055 on February 04, 2014, 02:16:32 PM

Title: Raspberry Pi Camera
Post by: dsa4055 on February 04, 2014, 02:16:32 PM
Hi Gene Happy New Year  Nice new Forum
 
Any news about Raspberry Onboard Camera? new driver? a chance that i can use 2014 my Raspberry Onboard Cam? :)


I tried the uv4l driver from
http://www.linux-projects.org/modules/sections/index.php?op=viewarticle&artid=14
 
And then I started the camera with
 sudo uv4l --driver raspicam --auto-video_nr --encoding jpeg --width 160 --height 120 --framerate 1
 It did automatically take /dev/video0
 
HomeGenie did show the image, but most of time it was black or not updating at all. I have tried many different options, like --sched-rr and --mem-lock but it did not help. I have manually started HomeGenie, and have some info from it.
 
Testing source module v4l2...
 Testing source module v4l1...
 Testing source module file...
 Testing source module raw...
 Testing source module test...
 Testing source module v4l2...
 Trying source module v4l2...
 /dev/video0 opened.
 Delaying 10 seconds.
 Unable to use mmap. Using read instead.
 2013-09-16T02:38:10.0352790+02:00 HomeAutomation.HomeGenie SystemInfo HomeGenie service ready HTTP.PORT 91
 
77.158 Media.CameraInput/0/Camera.GetPicture HTTP/1.1 GET
 Unable to read a frame.
 read: Device or resource busy
 gd-jpeg: JPEG library reports unrecoverable error: Empty input file
 
2013-09-16T01:48:32.7130310+02:00 MIG.Gateways.WebServiceGateway 192.168.77.158 Media.CameraInput/0/Camera.GetPicture HTTP/1.1 GET
 Unable to read a frame.
 read: Device or resource busy
 gd-jpeg: JPEG library reports unrecoverable error: Not a JPEG file: starts with 0x50 0xa9



Title: Re: Raspberry Pi Camera
Post by: Gene on February 04, 2014, 02:33:10 PM
HG v4l wrapper has some issues.
I will add this to the to-do list.
Title: Re: Raspberry Pi Camera
Post by: dsa4055 on June 18, 2014, 03:47:59 PM
Hi Gene

And what happens with the Raspberry Pi Camera?

Cheers
David
Title: Re: Raspberry Pi Camera
Post by: Gene on July 18, 2014, 05:36:31 PM
To use rpi camera with hg, the V4L driver must be enabled:

http://www.raspberrypi.org/forums/viewtopic.php?f=43&t=62364 (http://www.raspberrypi.org/forums/viewtopic.php?f=43&t=62364)

g.
Title: Re: Raspberry Pi Camera
Post by: jjr on August 19, 2014, 10:08:31 PM
Yeah works but the image is very dark compared to raspistill. Is the driver used the UV4L2 driver written by RpiName, or the V4L2 driver written and maintained by the Foundation? Can we use motion ect with it? and create wizard scripts?
Title: Re: Raspberry Pi Camera
Post by: dsa4055 on February 10, 2015, 11:13:42 PM
Hello Gene

Can you put the v4l Driver in HG please?
i dont anderstand how to install the Driver...i see the link but i dont anderstand on how to put the Driver in..

thx
David