Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to start the onvif_srvd service of PTZ #51

Open
wu12364564611 opened this issue Sep 25, 2024 · 5 comments
Open

How to start the onvif_srvd service of PTZ #51

wu12364564611 opened this issue Sep 25, 2024 · 5 comments

Comments

@wu12364564611
Copy link

Hello, I would like to know if I want to receive gimbal joystick information, then what parameters need to be configured in my onvif_srvd startup command? Can you provide a gimbal startup example? Thank you very much.

@KoynovStas
Copy link
Owner

I don't know what (gimbal joystick) is. But if you are asking about the PTZ mechanism, one of the users has implemented it, Onvif, the protocol and this daemon(service) simply provides a mechanism for calling a certain command (it can be set via command line parameters) that will be called by the daemon when a command arrives via the protocol.

@wu12364564611
Copy link
Author

The following error occurred when I connected to the service:
SOAP 1.2 fault SOAP-ENV: MustUnderstand[no subcode]
"The data in element 'wsse:Security' must be understood but cannot be processed"
Detail: [no detail]

What is the problem? Thank you for your answer.

@KoynovStas
Copy link
Owner

I have not used wsse:Security, you should study the necessary mechanisms yourself. Perhaps in the specification for wsse:Security from ONVIF, the exchange protocol is described, but below, perhaps, the packages depend on the application. Understand ONVIF, this is an exchange, it does not even transmit a picture, this is done by RTSP. You should open the bindings you need and study their types.

@wu12364564611
Copy link
Author

I have successfully started the service and connected the PTZ joystick to our service. I have a question. Does the service only support the following PTZ parameters? Here is a picture of my joystick. In addition to moving forward, backward, left, and right, the joystick also has clockwise and counterclockwise rotation, and a button in the middle. Can these be supported?

  • --ptz: 启用 PTZ(云台控制)支持。
  • --move_left [value]: 设置调用 PTZ 左转动作的过程。
  • --move_right [value]: 设置调用 PTZ 右转动作的过程。
  • --move_up [value]: 设置调用 PTZ 上抬动作的过程。
  • --move_down [value]: 设置调用 PTZ 下压动作的过程。
  • --move_stop [value]: 设置调用 PTZ 停止动作的过程。
  • --move_preset [value]: 设置调用 PTZ 转到预设位置动作的过程。
    c501817d4a06c39f375e74c6eee3e83

@KoynovStas
Copy link
Owner

Well, look at how move_preset works, you can probably assign them or something like that, as I understand it, these are sets of preset movements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants