Page 1 of 1
Camera controls editing seems to be ignored
Posted: Tue Jan 31, 2006 5:28 pm
by gneuf
I have ZM 1.22.0 installed on Debian Sarge 3.1r0, and most functions work great (us usual!).
However...when I try to add a camera control, or edit an existing control for a camera, nothing changes, or (in the case of Control names that contain spaces), ZM tells me that the names cannot contain spaces or numbers - when in fact those names (as shipped) *already* contain spaces here and there.
I was able to add a control type by adding it directly to the "Controls" DB, but it is still not editable using the web interface.
I tried to delete all the controls from the ZM interface, but no luck - they remain in the interface and in the DB.
I've tried to discover if:
1) I mis-configured ZM upon install.
2) The DB perms for the "Controls" DB is wrong.
3) The file perms are wrong for the files involved.
4) The insert/update code for the "Controls" DB is commented out, or perhaps using an incorrect $VARIABLE to execute the update/insert DB code.
So far, no luck, but I've learned a *lot* about what is where in ZM.
Am I chasing this problem in the wrong places? Any hints for this hunt graciously accepted...
Posted: Tue Jan 31, 2006 6:02 pm
by zoneminder
Thanks for the report. I will look into this and see what' wrong.
Posted: Sat Feb 04, 2006 7:16 pm
by gneuf
I investigated this for a while, and I'm pretty sure the error is occuring in a php script, where the form is submitted with the 'Save' button. I tried comparing it to the other form-submit code that does saving, and I can't detect anything wrong with the code!
Out of curiousity, I de-installed 1.22.0, and installed 1.21.4.
Control editing works using 1.21.4 in my environment (Debian Sarge 3.1r0) - so I've eliminated (to some degree) the possibility that it's the mysql or php installation.
I'm going to start diffing 1.21.4/1.22.0 php files like mad tonight to see if I can find the (tiny? typo? formname mispelling?) difference in the code that's causing this problem.
In the meantime, I'm going to continue testing my PictureTel PTZ2N serial control script so I can move on to getting these Sony SNC M3W cameras controllable and their MJPEG streams decoded...I'll figure out that darn embedded audio yet!
Posted: Tue Feb 07, 2006 12:17 am
by zoneminder
There was a bit of a screw up with some of the commands in zm_actions.php in 1.22.0 which have been fixed now. I suspect this perhaps was one of those
Posted: Tue Feb 21, 2006 11:52 pm
by TheSaint
gneuf, I'm really interested in your control script for the PTZ2N. I have a couple of these cameras (PTZ2P) and was going to *try* and get something working, unfortunately for me, I dont know where to start.
I've found a couple of documents regarding the protocol used (
http://www.hypertony.co.uk/hardware/pictelfiles.htm ).
Not too sure how I would implement this, although the zmcontrol-visca.pl script looks like a good starting place. I'm just confused as to how to use this to send the correct control codes to the camera.
Any chance of seeing your work so far?
Posted: Mon Feb 27, 2006 10:44 pm
by zylantha
zoneminder wrote:There was a bit of a screw up with some of the commands in zm_actions.php in 1.22.0 which have been fixed now. I suspect this perhaps was one of those
I have this same problem, so am keen to get hold of the fix.
Pardon my ignorance, but where is the fixed zm_actions.php file? The 1.22.0 release still has the same broken zm_actions.php as I have in my installation, and I can't seem to find a CVS repository anywhere? The sourceforge one is a little out of date (3 years
)
Posted: Tue Feb 28, 2006 1:29 am
by gneuf
I'm just now getting to downloading zm to check if the _actions are fixed up - still running 1.21.4 in the meantime, so I can continue the PictureTel project.
I've gotten some code written, but I can't seem to get serial i/o working.
I downloaded another program that controls this camera, and the installer (Windoze) destroyed the machine I tried it on...
However, it installed on an XP machine, and it works.
Not only that, but it's sending out the same serial commands (basically) that my code is sending (!).
I'll be able to attack the serial problem and get on with it this weekend. I've amassed a lot of the codes the PTel understands, so when it's working, it'll be fully functional in the time it takes to populate a few subroutines.
Posted: Tue Feb 28, 2006 1:57 am
by gneuf
Well, the zm I downloaded is unchanged as yet. No problem.
TheSaint - Stuff changed in the control code scripts from 1.21 to 1.22 - I'm working in 1.21.4, but the changes -> 1.22 should be straightforward.
I started with the Visca script, but I ended up changing most everything - the Visca script handled real Visca - multiple devices on a single serial loop.
My Ptel script doesn't do that - even though I think that the Ptel might work Visca-style.
I'll post the code as soon as I finish figuring out the snag in my serial i/o.
It's the OS, not zm.
Either that, or it's the air-gap.
Posted: Tue Feb 28, 2006 2:20 am
by gneuf
Sony SNC-M3W
Posted: Mon Mar 06, 2006 12:15 pm
by lourens
Gneuf,
Did you manage to grab mages from the Sony SNC-M3W?
I have one, and I love zoneminder, but I cannot get this camera to work.
Can you please help me with some settings? I cannot fing the correct remote host path
Lourens
Posted: Tue Mar 07, 2006 12:01 am
by gneuf
lourens-
Sorry to say I couldn't make it work simply by setting up ZM, although I think it might be possible when the camera is set to MPEG STREAM mode. I decided to decode the jpeg-stream (MJPEG) the camera sends and support it with some code in ZM. I will be trying to get ZM to work unaltered with the camera's MPEG mode some more soon.
So far I've managed to create a bit of code in zm_remote_camera.cpp that can grab a segment of the MJPEG stream the camera sends, and decode it *enough* so that I can actually be sure I've got the http camera startup and http mode changes working reliably.
I've really been concentrating on the PanTiltZoom control of my PictureTel PTZ2N camera, so that I can apply that knowledge (of ZM *controls*) when I jump back into the SNC-M3W stream/control project I started first.
The PTZ2N code should be finished (read that: BETA!) tonight, so I can post that code and then go back to the SNC-M3W Project, so hopefully I'll get to fool some more with the Sony this week (!).
Posted: Tue Mar 07, 2006 8:56 am
by lourens
Thanks for your reply.
i'll keep my eyes on this forum.
Good luck!
Lourens
Posted: Wed Mar 08, 2006 6:24 am
by gneuf
It's Alive! I'm going to start a new thread to post the *BETA* PTZ2N control script. This means I can go back to investigating the MJPeg streams from the SNC-M3W...