Waveshare 360° Omnidirectional High-Torque 2-Axis Expandable Pan-Tilt Camera

Hello,

We would like to integrate the device into a C++ application and have some questions regarding the communication interface. We understand that the device uses http comms using json commands.

  • Is there a C or C++ library provided by the manufacturer that we can integrate in a c++ application?

  • It is possible to send json commands using libCUrl or similar, to interface with the device?

Thank you in advance for your support.

1 Like

Hi @sgimeneza and welcome to our forum!

I had a look at the wiki page for this product, but I did not find libraries for C/C++.

I will ask Waveshare support if they have this.

1 Like

Hi @sgimeneza ,

Here is a reply from Waveshare support:

The source code of the lower computer is based on C++, and there are encapsulated JSON commands that can be sent using serial communication.
Link: http://www.waveshare.com/wiki/2-Axis_Pan-Tilt_Camera_Module

1 Like

Hi @igor_X,

Thanks a lot for your quick response and for checking with Waveshare support!

Just to clarify — since the serial communication is done with the lower computer, meaning that is sent by the rbpi, so will we need to act as the rbpi?

Thanks again for your help!

1 Like

Hello @sgimeneza,

Serial communication is performed by the host computer sending to the slave computer.

You can use an additional host computer to send JSON commands through the serial port to interact with the device.

1 Like

Hi @igor_X,
Thank you so much for your help and support! I really appreciate the clarification.

1 Like

You are welcome!