PTZ control from serial port (RS485 and Pelco P protocol)
Posted: Wed May 29, 2013 6:38 pm
Hi.
I'm newbie with zoneminder and I have a little big problem with the PTZ control using a serial port ( /dev/ttyS0 ) with an a RS232-RS485 adapter. It works fine from Windows (tested with 100 meters of cable and PTZController) but do nothing from my Zoneminder installation.
I set the device ( /dev/ttyS0 ), the protocol (Pelco P), ... but it do NOTHING. In the log, when I attempt to move de cámera I get the following records:
COMPONENT PID LEVEL MESSAGE FILE LINE
zmcontrol 4213 INF Starting control server 6/PelcoP zmcontrol.pl 0
zmcontrol 4215 INF Control server 6/PelcoP starting at 13/05/28 19:58:04 zmcontrol.pl 0
zmcontrol 4213 FAT Can't connect: No such file or directory zmcontrol.pl 0
web_php 4094 ERR /usr/bin/zmcontrol.pl --tiltspeed=46 --autostop --command=moveConUp --id=6=> /usr/share/zoneminder/includes/functions.php 2323
web_php 4171 ERR socket_sendto( /tmp/zm/zms-044900s.sock ) failed: No such file or directory /usr/share/zoneminder/includes/functions.php 2323
My OS system is Ubuntu 13.04 desktop 64bit, Zoneminder 1.25
I've tried to another RS485 adapter (USB serial adapter, /dev/ttyUSB0 on my system) and I got the same result.
Any hints or help for me?. What am I doing wrong?. A serial port permissions problem maybe?.
Thanks.
I'm newbie with zoneminder and I have a little big problem with the PTZ control using a serial port ( /dev/ttyS0 ) with an a RS232-RS485 adapter. It works fine from Windows (tested with 100 meters of cable and PTZController) but do nothing from my Zoneminder installation.
I set the device ( /dev/ttyS0 ), the protocol (Pelco P), ... but it do NOTHING. In the log, when I attempt to move de cámera I get the following records:
COMPONENT PID LEVEL MESSAGE FILE LINE
zmcontrol 4213 INF Starting control server 6/PelcoP zmcontrol.pl 0
zmcontrol 4215 INF Control server 6/PelcoP starting at 13/05/28 19:58:04 zmcontrol.pl 0
zmcontrol 4213 FAT Can't connect: No such file or directory zmcontrol.pl 0
web_php 4094 ERR /usr/bin/zmcontrol.pl --tiltspeed=46 --autostop --command=moveConUp --id=6=> /usr/share/zoneminder/includes/functions.php 2323
web_php 4171 ERR socket_sendto( /tmp/zm/zms-044900s.sock ) failed: No such file or directory /usr/share/zoneminder/includes/functions.php 2323
My OS system is Ubuntu 13.04 desktop 64bit, Zoneminder 1.25
I've tried to another RS485 adapter (USB serial adapter, /dev/ttyUSB0 on my system) and I got the same result.
Any hints or help for me?. What am I doing wrong?. A serial port permissions problem maybe?.
Thanks.