|
Edited by Jag at 2017-3-25 20:47
Hi Simon !
Two days ago I was exactly on the same point as you were some days ago.. Yesterday I reply with my first advances.. today I re-edit my reply because yesterday's one had some mistakes.
Let's go:
- I'm working with a ORANGE PI PLUS 2 E board running Armbian - Server Debian Jessie
- About plugging the camera: this is the right schema
(click to enlarge)
You have to face the side where you see the wire connectors on your wire to the white part of the board connector (not facing to the pressing black slide), as shown on the picture. On your schema, it's A configuration- I've tried to connect the cammera directly to my board, but it doesn't work, it needs this adapter provided with the camera (I'm not sure if all the versions of Opi needs the adapter)
Distribution versions:
1st attempt: The first thing I tried was to install the lastest Armbian server Debian Jessie distribution (5.25), but I could not make it work ! (didn't get to see /dev/video0)
- I read (I don't remember where! but I think it was in another post of this forum) that there were some problems with the camera drivers on the new distribution, and recommended to try the older distribution (5.20). On the download page there's a link for get Older Versions (example for OrangePiPlus2E)
2nd attempt: I installed the 5.20 distribution. After installing the camera drivers (you'll find a detailed explanation later) I saw /dev/video0. I did a apt-get update -> atp-get upgrade -> apt-get distro-upgrade and then tryed to follow with my installation (motion service, ..) but It also did'nt work !!
3rd attempt: I decided to retry with the 5.20 installation from zero and don't make the apt-get upgrade.. I installed the drivers and the motion service, i configured everything and it works !! Then (once it's been working properly) I've tried to make the apt-get upgrade and apt-get distro-upgrade... i expected it was going to fail.. but it stills work. I don't understand then what happened with my second try.. but these were the results.
Installation step-by-step: (for my OrangePiPlus2E)
1 - Donwload the Armbian_5.20_Orangepiplus2e_Debian_jessie_3.4.112.7z image (Armbian download page for OrangePiPlus2E and then -> Older versions)
2 - Unzip it, burn it into a SD Card and then boot your OrangePi from this SD
3 - Load the camera drivers
- sudo modprobe gc2035</div><div>sudo modprobe vfe_v4l2
Copy code
4 - Configure the drivers to be loaded on every reboot
and on that file, uncomment (erase the #) from the two drivers (gc2035 and vfe_v4l2)
5 - The device /dev/video0 should exist ! (just list the files on /dev/ to check.. if it doesn't exist you need a better installation manual than mine )
6 - Install the motion service
7 - Edit the configuration file:
- nano /etc/motion/motion.conf
Copy code and on that file, change:
stream_localhost off # otherwise, it will only allow connections from localhost
target_dir /home/youruser/motion/ # or the folder where you want the images to be saved
daemon on # we'll left the service running
8 - Create the target folder and set the permissions (777 for this example to ensure it works.. use the ones that you need)
- mkdir /home/youruser/motion/
Copy code
9 - Set the service as a daemon
and change start_motion_daemon=yes
10 - Start the service
11 - Check if the service is working connecting to your IP at port 8081
Check from your server's console:
Or from another computer, open a web browser and go to http://yourIPAddr:8081
IT WORKS ! (Window Capture from a web browser from another computer)
(click to enlarge)
12 - The log file for this service (motion) is located at /tmp/motion.log (can be changed on nano /etc/motion/motion.conf config file)
13 - If you want to move the installation from the SD to the EMMC:
and once finished, shutdown, remove your SD card and it's ready to boot !
With this configuration, the drivers are loaded at every reboot and the service is started automatically, so, the camera will begin to capture (and will listen at the 8081 port) automatically on every system reboot
I tried to setup Kerberosio Video Surveillance (https://kerberos.io/) but I don't get to activate the camera.. I've tried a as a RasbpiCamera, as VideoCapture, but nothing seems to work
I hope it can be useful to Simon and to anyother in the same situation ;)
|
This thread contains more resources
You need to Log in to download or view,No account?
Register
x
|