Hello Cifuen.
I am encountering the exact problem right now. With the new update of the Raspberry pi package for CODESYS, the program code is already replaced with the one you mentioned. But I do not know why mine does not work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
With the new installation of Apache, the working directory is / var / www / html, so replacing the progam code '/ var / www' to '/ var / www / html', the file video.htm will be copied in this directory. It works perfectly both photo and video.
Since the installer must "start" the camera.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the stream example ("c:\Users\<yourwindowsusername>\CODESYS Control for Raspberry PI\2.2.0.2\Examples\CameraStream.project" ) you need to add the path</yourwindowsusername>
IF xStart THEN
//copy video.htm to the webserver
SysFileCopy('/var/www/html/video.htm', 'PlcLogic/Application/video.htm', ADR(dwCopySize));
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I managed to configure my Raspberry Pi and the Camera. The installation of the RPi Cam Control is successful because I can see the user interface and control my camera. The problem right now is in CODESYS, I always end up with an error for the camera visualisation. I have been stuck here for a month and trying all different methods from all over the forum. Still no success.
Hi
I just started digesting the codesys and trying to connect the USB camera to the jitter
on raspberry pi ,use an example for streaming, but I do not turn on the camera.
The question is, can I connect the usb camera and watch the video?
if yes , how to do it ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this heavily depends on the chip, which is used in the USB cam. Then it depends, if there is a linux driver, and if this driver is included in your kernel. The example which Edwin mentioned uses Video4Linux. So virtually every camera which supports v4l can be used in the Web Visu in the way, which is proposed by the example project.
Sorry if I can't help you more with the specific one.
BR,
Ingo
Gesendet von meinem LG-H870 mit Tapatalk
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I run the camera stream example and open the visualization, I see the html/ folder as shown in the screen shot below.
I have made sure to modify the path to as shown below:
SysFileCopy('/var/www/html/video.htm', 'PlcLogic/Application/video.htm', ADR(dwCopySize));
I can click on the html/ folder and this shows the streaming.
Is there something I can do to modify my code so it starts showing streaming as soon as visualization is launched in the browser?
Don't know if this is related or not, but I get precompiler errors: C0046: Identifier 'PiCamera' not defined, C0080: Functionblock 'Camera' must be instantiated to be access, and C0004: 'PiCamera' is no component of 'Camera'.
Otherwise the streaming works.
I am using Codesys 3.5 SP13 patch 1 and RPI 9 Stretch OS
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Since I am new to all of this, I had to determine if this were a RPI, Apache, PHP, or a Codesys issue. I finally figured it out that there were two configuration files in my apache directory on my RPI. The 000-default.conf RootDirectory was /var/www/html and there was another configuration file called raspicam.conf and its RootDirectory was /var/www. So I changed the raspicam.conf RootDirectory to /var/www/html.
Just in case anyone else encounters this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I tried using the camerastream example and not get it to work. (Example camera OK)
In the attachment I show the process followed.
Please help
camerastream_fail.pdf [945.61 KiB]
Hello Cifuen.
I am encountering the exact problem right now. With the new update of the Raspberry pi package for CODESYS, the program code is already replaced with the one you mentioned. But I do not know why mine does not work.
Solved.
With the new installation of Apache, the working directory is / var / www / html, so replacing the progam code '/ var / www' to '/ var / www / html', the file video.htm will be copied in this directory. It works perfectly both photo and video.
Since the installer must "start" the camera.
Hi,
follow these instructions here:
http://elinux.org/RPi-Cam-Web-Interface ... stallation
seems that on installing this on Jessie is slightly different.
In the stream example ("c:\Users\<yourwindowsusername>\CODESYS Control for Raspberry PI\2.2.0.2\Examples\CameraStream.project" ) you need to add the path</yourwindowsusername>
IF xStart THEN
//copy video.htm to the webserver
SysFileCopy('/var/www/html/video.htm', 'PlcLogic/Application/video.htm', ADR(dwCopySize));
BR
Edwin
Hi Edwin,
The PDF file is not there anymore. Where can I find a guide to what to do in Raspberry Pi for the CameraStream Project?
this is here now:
https://help.codesys.com/webapp/_rbp_project_camera;product=CODESYS_Control_for_Raspberry_Pi_SL;version=3.5.16.0
I managed to configure my Raspberry Pi and the Camera. The installation of the RPi Cam Control is successful because I can see the user interface and control my camera. The problem right now is in CODESYS, I always end up with an error for the camera visualisation. I have been stuck here for a month and trying all different methods from all over the forum. Still no success.
This is the screenshot of the program running
Hi
I just started digesting the codesys and trying to connect the USB camera to the jitter
on raspberry pi ,use an example for streaming, but I do not turn on the camera.
The question is, can I connect the usb camera and watch the video?
if yes , how to do it ?
Hello Ernest,
this heavily depends on the chip, which is used in the USB cam. Then it depends, if there is a linux driver, and if this driver is included in your kernel. The example which Edwin mentioned uses Video4Linux. So virtually every camera which supports v4l can be used in the Web Visu in the way, which is proposed by the example project.
Sorry if I can't help you more with the specific one.
BR,
Ingo
Gesendet von meinem LG-H870 mit Tapatalk
Thank you very much for the answer, I connected )))
When I run the camera stream example and open the visualization, I see the html/ folder as shown in the screen shot below.
I have made sure to modify the path to as shown below:
SysFileCopy('/var/www/html/video.htm', 'PlcLogic/Application/video.htm', ADR(dwCopySize));
I can click on the html/ folder and this shows the streaming.
Is there something I can do to modify my code so it starts showing streaming as soon as visualization is launched in the browser?
Don't know if this is related or not, but I get precompiler errors: C0046: Identifier 'PiCamera' not defined, C0080: Functionblock 'Camera' must be instantiated to be access, and C0004: 'PiCamera' is no component of 'Camera'.
Otherwise the streaming works.
I am using Codesys 3.5 SP13 patch 1 and RPI 9 Stretch OS
Since I am new to all of this, I had to determine if this were a RPI, Apache, PHP, or a Codesys issue. I finally figured it out that there were two configuration files in my apache directory on my RPI. The 000-default.conf RootDirectory was /var/www/html and there was another configuration file called raspicam.conf and its RootDirectory was /var/www. So I changed the raspicam.conf RootDirectory to /var/www/html.
Just in case anyone else encounters this.