I’ve forked the project for the camera, added a build and hopefully added some additonal logging - if you want to try this versions @Bounz happy if you want to fork this and then Ill delete my repo
@David_Wallis how can I install this into HG. I went into HG Package Manager, pointed the link to the installer and the installer is just spinning around. Nothing showing up to install.
@David_Wallis yes I downloaded the Releases file to /usr/local/bin/homegenie folder on the Raspberry Pi and confirmed its there. I go into the Package Manager in HG and on the browser bar I put the location /usr/local/bin/homegenie and nothing showing up on the screen and the progress wheel is just spinning
Is there somewhere else in HG I can install this file.
I think you may be getting confused here. It’s Configure-Maintenance-System Options-Install Package. You have the browser bar above followed by a list of packages that are available to install. The link points to https://api.github.com/repos/Bounz/homegenie-packages/contents which is obviously Bounz repo.
What I’m trying to do is install your file via this method. I am not aware of any other method of installing your file in HG
Thanks Bounz that’s exactly what I was looking for.
@David_Wallis I installed your releases file and I dropped i all the relevant files that Bounz suggested earlier. Here is a section of the debug
2018-02-10 16:51:20.3790 Debug Enabling Interface Media.CameraInput
2018-02-10 16:51:20.3900 Debug 55
2018-02-10 16:51:20.3921 Debug 00
2018-02-10 16:51:20.3975 Debug 00-00-00-00-00-00-00-00
2018-02-10 16:51:20.3996 Debug 00
2018-02-10 16:51:20.4043 Error System.DllNotFoundException: CameraCaptureV4L
at (wrapper managed-to-native) MIG.Interfaces.Media.CameraInput+CameraCaptureV4LInterop:OpenCameraStream (string,uint,uint,uint)
at MIG.Interfaces.Media.CameraInput.Connect () [0x0008c] in <5d803dfdf1dc419b952079a12c633e3f>:0
at MIG.MigService.EnableInterface (System.String domain) [0x0003e] in <0d2ae8560a244b2680fb8ebf44c6713f>:0
at MIG.MigService.StartService () [0x00093] in <0d2ae8560a244b2680fb8ebf44c6713f>:0
What was the contents of that releases file you posted. CameraCaptureV4L file is still being reported as not found
There must be some delay on these posts. Bounz already demonstrated where it could be found. I posted the results above of the debug after installing your releases file.
Did you actually get the Raspberry Pi camera module working using this. As far as I know nobody has managed to get the raspberry pi camera working in Jessie or Stretch. Try it yourself and you’ll see what I mean.
As i said previously - I didn’t claim to have fixed anything yet - just added more debugging… Can you post the full log from the point where you attempt to enable the interface from the version I provide.
the reason being is that the interface looks for certain files to determine which V4L driver to load… I’m not even sure if they are included in the packaging… but will have another look next once I have a bit more detail to debug with
I reverted to v526 which appears to have the relevant files correctly packaged for the MIG installer for Video4Linux.
It’s still reporting that it cannot find that file. I reckon that the only way to successfully debug this problem would be if you had a Raspberry Pi with a camera module attached in front of you.
I do know that I had build the v4l2 driver when I got it working in Wheezy following Genes instructions from the old forum. That was necessary as the v4l2 driver hadn’t been fully integrated into the Linux kernel at that stage.
I have the bcm2835-v4l2 loading at boot in the /etc/modules file and it’s confirmed working with the dmesg command.
The only thing I can think of that may be causing the problem now is that the path that the system is looking for the file in is incorrect or possibly a permissions issue.
As I said if you have access to a Pi and a camera module it would be a lot easier to debug this problem.
I have camera module etc… I will look at it as soon as I can but again - i added logging to that version which should point at exactly which files are missing. ( when I say exactly - not quite, but I know what I mean!)
2018-02-12 12:32:56.2153 Debug Enabling Interface Media.CameraInput
2018-02-12 12:32:56.2415 Error System.DllNotFoundException: CameraCaptureV4L
at (wrapper managed-to-native) MIG.Interfaces.Media.CameraInput+CameraCaptureV4LInterop:OpenCameraStream (string,uint,uint,uint)
at MIG.Interfaces.Media.CameraInput.Connect () [0x0008c] in <5d803dfdf1dc419b952079a12c633e3f>:0
at MIG.MigService.EnableInterface (System.String domain) [0x00039] in <23027418f9174dd68010f21fc4a3aea3>:0
at MIG.MigService.StartService () [0x00097] in <23027418f9174dd68010f21fc4a3aea3>:0
Maybe if you have a look at the C# source code it may help. Also if nothing obvious shows up a possible starting point would be a look at the last working version of the Raspberry Pi camera module in HomeGenie, in Raspbian Wheezy and make a comparison
I cannot see any obvious difference in the boot sequence between HG v526 in Raspbian Wheezy v Raspbian Stretch.
If you could compare both boots you may be able to see where the loading of the camera module falls down in Stretch.
I’m not a programmer and C# is way out of my league but I can see no logic as to why it’s working in one release of Raspbian and not another. The only thing that comes to mind is a change in the Linux kernel firmware between releases which Gene never addressed.
I’m assuming this is the build that Gene included in the MIG Packager. I’m wondering I’d there could be any clues in here as to why it appears to load but not run.