Ignorance is not always bliss
So I purchased a PTZ cam, its connected to my computer via a RS232/485 converter. I have ptz control enabled so I see the control tab on the source dialog for the camera. The camera supports pelco-d among other protocols. I am able to view the camera thru ZM and I know that the camera is functioning correctly as it has a hand held control to move it left/right/up/down etc.
I want to begin to configure and test its control capabilities via ZM. Its here I am drawing a blank. I note that the control scripts are installed under /usr/local/bin, more specifically the pelco-d script zmcontrol-pelco-d.pl. I assume I should be able to use perl to execute the script and test the control capabilities of the camera ... but I don't know where to begin!
Any advise on where to begin testing and how to proceed from there would be Greatly Appreciated
Joe
PTZ where to begin
So I got it working
This is the camera I purchased http://direct.stores.yahoo.net/acpa142vaou.html Just over $200 US on sale.
And I hooked it up to my computer with a RS232 -> 485 Converter from http://www.usconverters.com/index.php?m ... lgodgQyf4Q
Then to give credit where credit is due, I found some key information on this post http://www.zoneminder.com/forums/viewto ... f5f3b813dc
Many thanks for this great post.
The key to getting the camera functioning was getting the tty set correctly
stty -F /dev/ttyS0 cs8 -cstopb ignbrk -ixoff -ixon -isig speed 2400
Once that was done I was able to control it via the pelco-d script as follows:
./zmcontrol-pelco-d.pl --device=/dev/ttyS0 --address=1 --speed=2400 --command=move_con_left
./zmcontrol-pelco-d.pl --device=/dev/ttyS0 --address=1 --speed=2400 --command=move_con_right
and
./zmcontrol-pelco-d.pl --device=/dev/ttyS0 --address=1 --speed=2400 --command=move_stop
Finally just a bit of configuration under ZM and its now working with ZM!
I haven't had much time to play with it, but wanted to share what I had found
Now to get the PTZ functionality on my BlackBerry
Joe
This is the camera I purchased http://direct.stores.yahoo.net/acpa142vaou.html Just over $200 US on sale.
And I hooked it up to my computer with a RS232 -> 485 Converter from http://www.usconverters.com/index.php?m ... lgodgQyf4Q
Then to give credit where credit is due, I found some key information on this post http://www.zoneminder.com/forums/viewto ... f5f3b813dc
Many thanks for this great post.
The key to getting the camera functioning was getting the tty set correctly
stty -F /dev/ttyS0 cs8 -cstopb ignbrk -ixoff -ixon -isig speed 2400
Once that was done I was able to control it via the pelco-d script as follows:
./zmcontrol-pelco-d.pl --device=/dev/ttyS0 --address=1 --speed=2400 --command=move_con_left
./zmcontrol-pelco-d.pl --device=/dev/ttyS0 --address=1 --speed=2400 --command=move_con_right
and
./zmcontrol-pelco-d.pl --device=/dev/ttyS0 --address=1 --speed=2400 --command=move_stop
Finally just a bit of configuration under ZM and its now working with ZM!
I haven't had much time to play with it, but wanted to share what I had found
Now to get the PTZ functionality on my BlackBerry
Joe
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Hey Phil, didn't turn out to be too hard once I found the post I cited. I'll probably drag my feet on the upgrade, finally getting things working the way I want.
Cordel,
I posted a bit back and have the xhtml interface working on my BlackBerry Sweet! Even the video download once I tweeked the scripts a bit. I though I might try to do the xhtml to do control on my PT(!z) camera, but maybe you will beat me too it. Right now I can just ssh (from my BB) to my server and move the camera with a couple of scripts.
I'll be watching for your posts
Cheers
Joe
Cordel,
I posted a bit back and have the xhtml interface working on my BlackBerry Sweet! Even the video download once I tweeked the scripts a bit. I though I might try to do the xhtml to do control on my PT(!z) camera, but maybe you will beat me too it. Right now I can just ssh (from my BB) to my server and move the camera with a couple of scripts.
I'll be watching for your posts
Cheers
Joe