Camera controls editing seems to be ignored

Support and queries relating to all previous versions of ZoneMinder
Locked
gneuf
Posts: 62
Joined: Mon Apr 19, 2004 7:24 pm

Camera controls editing seems to be ignored

Post 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. :D

Am I chasing this problem in the wrong places? Any hints for this hunt graciously accepted...
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks for the report. I will look into this and see what' wrong.
Phil
gneuf
Posts: 62
Joined: Mon Apr 19, 2004 7:24 pm

Post 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!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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 :oops:
Phil
TheSaint
Posts: 1
Joined: Tue Feb 21, 2006 11:15 pm
Location: North Wales, UK

Post 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. :oops:

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?
zylantha
Posts: 8
Joined: Mon Feb 27, 2006 10:36 pm

Post 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 :oops:
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 :?)
gneuf
Posts: 62
Joined: Mon Apr 19, 2004 7:24 pm

Post 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.
gneuf
Posts: 62
Joined: Mon Apr 19, 2004 7:24 pm

Post 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. :roll:
gneuf
Posts: 62
Joined: Mon Apr 19, 2004 7:24 pm

Post by gneuf »

lourens
Posts: 3
Joined: Mon Oct 03, 2005 5:43 pm

Sony SNC-M3W

Post 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
gneuf
Posts: 62
Joined: Mon Apr 19, 2004 7:24 pm

Post 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 (!).
lourens
Posts: 3
Joined: Mon Oct 03, 2005 5:43 pm

Post by lourens »

Thanks for your reply.
i'll keep my eyes on this forum.

Good luck!

Lourens
gneuf
Posts: 62
Joined: Mon Apr 19, 2004 7:24 pm

Post 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...
Locked