What is the error code when the camera fails and PTZ is not performed correctly?

I am using XPP+2019R2.

What error will occur if the PTZ value cannot be changed due to a failure of the camera’s PTZ mechanism when the PTZ value is changed using the following method?

RecorderCommandService.PTZMoveAbsolute (string token, Guid deviceId, PTZArgs ptzArgs)

There is no feedback mechanism and unfortunately cannot know whether the camera did the expected PTZ movement or not.

​Dear Kito-san

I understand your answer.

Please let me know if you know how to use another method or management client to solve this problem.

There is no workaround. The issue is that the camera does not have any way to feedback to the camera driver in the recording server, this means the recording server will never know the camera moved, the camera cannot tell the recording server that it moved correctly or it failed to move correctly because of an error.

Thank you for your reply.

I understand that it is difficult to address this issue with XProtect. I think of another way.

When not using XProtect you might be able to communicate with the camera directly but I do not see a way..

One idea. If the camera is of the absolute positioning kind you can ask for the PTZ position of the camera. So after performing a PTZ operation you could ask for the camera position, you might be able to detect if the position is wrong.

https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_messaging_1_1_message_id_1_1_control.html&tree=tree_search.html?search=ptzmoveabsolute

https://doc.developer.milestonesys.com/html/index.html?base=samples/ptzandpresets_sample.html&tree=tree_2.html

Note not all PTZ cameras are of the absolute positioning kind and not all cameras will return a position when asked.