PTZ Saved Position not working - 500 Internal Server Error
CompletedI have a Bosch Autodome IP 7000 HD camera that I'm testing with PTZ functions. Using the Nx Meta desktop app I'm getting a video feed, and the on-screen mouse dragging and zoom functions are working properly. I can click PTZ... Save Current Position... and the position appears to save (and shows in the API's GetPresetsPtzCommand response), but the camera doesn't move to the saved position. If I use the API's ActivatePresetPtzCommand with the saved position's ID the response is 500 Internal Server error, with response body JSON
Could this be an issue with the camera? Or my Nx Meta server set up?
-
Hello Jamie,
Using the Nx Meta desktop app I'm getting a video feed, and the on-screen mouse dragging and zoom functions are working properly. I can click PTZ... Save Current Position... and the position appears to save (and shows in the API's GetPresetsPtzCommand response)
what happens if you active preset via GUI interface?
If I use the API's ActivatePresetPtzCommand with the saved position's ID the response is 500 Internal Server error, with response body JSON
Could you please show me full request/response for GetPresetsPtzCommand and ActivatePresetPtzCommand commands?
0 -
Hi Anton,
When I select a preset using the GUI interface the camera does not move to the saved position. No errors or warnings appear that I can see.
Here are the API requests, made using Postman.
GetPresetsPtzCommand
Request:
Response: 200 OK
{
"error": "0","errorString": "","reply": [{"id": "{5a2f3638-f102-49fe-bd1c-acb29b8b71e8}","name": "Saved Position 1"},{"id": "{471cdc6a-781b-4f73-be1c-e5880428bd7b}","name": "Saved Position 2"}]}ActivatePresetPtzCommandRequest:https://192.168.142.1:7001/api/ptz?cameraId=ae535095-031a-57e5-37df-9c04e836c118&command=ActivatePresetPtzCommand&presetId={5a2f3638-f102-49fe-bd1c-acb29b8b71e8}&speed=0.5Response: 500 Internal Server Error{"error": "0","errorString": "","reply": null}Thanks,
Jamie.
0 -
Hi Jamie,
from the looks of it, server fails to activate present on the camera. I did some tests on Autodome 5000 but couldn't reproduce the problem and we don't have Autodome 7000 in our lab. Please follow steps bellow to collect diagnostic data.
1. Delete camera from the system.
2. Set mediaserver log level to VERBOSE. Here is an article explaining how to do this.
3. Setup WireShark to capture all communication between mediaserver and camera. Here is an article explaining how to do this.
4. Add camera to the system and execute different PTZ commands via GUI.
5. Create 2-3 preset positions and try activating them via GUI.
6. Send me all verbose log files, wireshark capture and tell me media server build number you use(4.X.0.XXXXX).
0 -
Hi Anton,
Please find the requested files here https://we.tl/t-DxfHWtyhEr
Thanks,
Jamie.
0 -
Hi Jamie,
when you active preset via API or GUI mediaserver sends AbsoluteMove command. There is nothing seems to be wrong with how server sends it, but for some reason camera responds with bad request:
<SOAP-ENV:Body> <onvifPtz:AbsoluteMove> <onvifPtz:ProfileToken>0</onvifPtz:ProfileToken> <onvifPtz:Position> <onvifXsd:PanTilt x="0.9521129727" y="0.2780550122" /> <onvifXsd:Zoom x="0.0000000000" /> </onvifPtz:Position> <onvifPtz:Speed> <onvifXsd:PanTilt x="1.0000000000" y="1.0000000000" /> <onvifXsd:Zoom x="1.0000000000" /> </onvifPtz:Speed> </onvifPtz:AbsoluteMove> </SOAP-ENV:Body>
<SOAP-ENV:Text xml:lang="en">Argument Value Invalid</SOAP-ENV:Text>
I have a theory that your camera doesn't support "speed" parameter as it doesn't respond with PanTiltSpeedSpace during initialization. I see that your camera has firmware 21500611, but I was not able to find any references to this version at Bosh website. According to this https://downloadstore.boschsecurity.com/FILES/Bosch_Releaseletter_CPPS_FW_7.50.0826.pdf, support for speed parameter was added recently for some cameras:
ONVIF AbsoluteMove command now allows the optional parameter “speed” for pan and tilt
movements.Could you please check if there is any newer firmware for your camera and test if it would solve the issue?
0 -
Thanks for your help Anton. I'll look at getting the firmware up to date.
Jamie.
0
Please sign in to leave a comment.
Comments
6 comments