Feature Request: Skydroid C12 with G20 Integration via GR01/LAN

Native Skydroid C12 Camera/Gimbal Support in QGroundControl

Subject: Integration of the Skydroid TOP ASCII/UDP camera control protocol

Target platform: QGroundControl 5.1.5, Android ARM64

Hardware: Skydroid G20 / GR01 / C12 RGB + Thermal camera

Status: Direct UDP camera control successfully tested on real hardware.

1. Overview

I would like to request native support for the Skydroid C12 dual-sensor RGB/thermal gimbal camera in QGroundControl.

The C12 uses a proprietary ASCII-based protocol known as TOP (#TP), transported over UDP. Its video stream is available separately through RTSP.

The camera is already displaying RGB and thermal video successfully in QGroundControl. Direct UDP commands for gimbal centering and absolute horizontal positioning have also been verified on the actual hardware.

The goal is to operate the camera directly from QGroundControl, ideally including joystick control, without needing to switch to the Skydroid Gimbal FPV application.

2. Hardware and software configuration

Component Configuration
Ground controller Skydroid G20
Operating system Android 13, ARM64
Radio receiver Skydroid GR01
Camera Skydroid C12, RGB + thermal
Autopilot Pixhawk 2.4.8
Autopilot firmware ArduRover 4.7.1
Ground control software QGroundControl 5.1.5, Android 64-bit
Camera connection Ethernet/LAN via GR01
Camera IP 192.168.144.108
Camera control UDP port 5000
Video RTSP port 554

The G20 communicates with the GR01 over the Skydroid radio link. The C12 is connected to the GR01 network.

Camera control does not require routing commands through the Pixhawk.

The proprietary Skydroid Gimbal FPV application can control the camera over this connection even when Android Wi-Fi is disabled.

3. Network endpoints

Camera control

  • Protocol: UDP

  • Destination IP: 192.168.144.108

  • Destination port: 5000

  • Tested local source port: 5000

  • Payload encoding: ASCII text

  • No authentication or handshake observed in the successful tests

Video stream

Tested RGB stream:

rtsp://192.168.144.108:554/stream=1

RGB and thermal video reception in QGroundControl has been confirmed.

Additional RTSP stream URLs and thermal switching commands should be validated separately.

4. TOP command structure

Commands are ASCII strings with a two-character hexadecimal checksum appended.

Example:

#TPUG2wPTZ056F

Breakdown:

Field Example Meaning
Header #TP TOP protocol header
Source U External controller
Destination G Gimbal
Data length 2 Number of ASCII payload characters
Operation w Write
Command PTZ Gimbal movement
Payload 05 Center/home
Checksum 6F Modulo-256 ASCII sum

Checksum calculation:

def checksum(command: str) -> str:
    return f"{sum(command.encode('ascii')) & 0xFF:02X}"

The checksum is calculated over the entire command before appending the checksum itself.

Example:

Base:     #TPUG2wPTZ05
Checksum: 6F
Packet:   #TPUG2wPTZ056F

5. Command families

The reverse-engineered implementation identifies these command families:

Command Function Status
PTZ Basic gimbal commands, center, stop Center verified locally
GAY Absolute yaw/pan positioning Verified locally
GAP Absolute pitch/tilt positioning Verified by toolkit developer
GSY Continuous yaw speed Documented in toolkit
GSP Continuous pitch speed Documented in toolkit
GAA Enable attitude telemetry Verified by toolkit developer
GAC Attitude telemetry response Verified by toolkit developer
CAP Capture photo Defined in toolkit; not locally tested
REC Start/stop recording Defined in toolkit; not locally tested
VER Firmware/version query Documented; no local response received

Other camera functions, including optical/digital zoom, thermal palette switching and sensor selection, may be available through additional TOP commands, but require further validation.

6. PTZ fixed commands

Command format:

#TPUG2wPTZXXCC

XX is the action code, and CC is the checksum.

Action Value Complete command
Stop 00 #TPUG2wPTZ006A
Up 01 #TPUG2wPTZ016B
Down 02 #TPUG2wPTZ026C
Left 03 #TPUG2wPTZ036D
Right 04 #TPUG2wPTZ046E
Center 05 #TPUG2wPTZ056F

Hardware observations:

  • Centering works reliably on the tested C12.

  • A single PTZ right command produced no noticeable movement.

  • PTZ directional commands should not be assumed to provide continuous movement.

  • Absolute-angle control is preferable.

7. Absolute pan/yaw control (GAY)

Command format:

#TPUG6wGAYAAAASSCC

Where:

  • AAAA = signed 16-bit target angle, encoded as hexadecimal, in units of 0.01°

  • SS = speed byte in hexadecimal

  • CC = checksum

Signed values use two’s complement.

The toolkit applies an inversion to the requested pan angle before encoding:

angle_raw = round(-degrees * 100)
speed_byte = abs(speed)

Example commands:

Requested angle Speed Complete command
+10° 20 #TPUG6wGAYFC181448
−10° 5 #TPUG6wGAY03E80536

Confirmed local test results:

  • The first command caused a fast horizontal movement.

  • The second command caused movement in the opposite direction, only slightly slower.

  • Both commands were successfully received and executed by the camera.

Mounting orientation

The tested camera is mounted upright, not suspended.

On this installation, the physical horizontal movement was opposite to the direction assumed by the toolkit’s public API:

  • Requested +10°: physical movement to the left

  • Requested −10°: physical movement to the right

Therefore, a configurable pan-axis inversion is required.

The application should not hard-code the physical movement direction for all camera installations.

8. Absolute tilt/pitch control (GAP)

Command format:

#TPUG6wGAPAAAASSCC

The encoding is similar to GAY, but the toolkit does not invert the requested tilt angle.

angle_raw = round(degrees * 100)
speed_byte = abs(speed)

The toolkit developer reports:

  • Positive angle: up

  • Negative angle: down

  • Tested angles: +5°, −5°, +10°

  • Observed physical tilt limits: approximately ±45°

These limits are observations on the developer’s hardware, not manufacturer-certified limits.

The pitch-axis direction and mechanical limits have not yet been verified on our upright-mounted C12.

A configurable tilt inversion and adjustable angle limits would be desirable.

9. Continuous speed control

Pan speed (GSY)

Format:

#TPUG2wGSYSSCC

Tilt speed (GSP)

Format:

#TPUG2wGSPSSCC

Speed encoding:

  • Signed 8-bit value

  • Valid range according to toolkit: −99 to +99

  • Positive and negative values select opposite directions

  • Negative values use two’s complement

The toolkit reports that continuous motion requires command refreshes at approximately 20 Hz.

Without periodic refreshes, the camera automatically stops within tens of milliseconds.

This behaviour is relevant for joystick control.

Recommended integration:

  • Send speed commands periodically while a joystick axis is active.

  • Send stop commands when returning to neutral.

  • Stop on loss of input, focus or control session.

  • Include configurable dead zones and axis inversion.

  • Avoid relying on a single speed command for sustained movement.

10. Gimbal telemetry (GAA/GAC)

The toolkit supports requesting continuous attitude telemetry.

Request format:

#TPUG2wGAARRCC

Where RR represents the requested update frequency in hexadecimal.

The toolkit reports a valid range of 0–100 Hz.

A request for 0 Hz disables streaming.

The camera responds with GAC telemetry packets containing three signed 16-bit values:

Field Encoding
Yaw Signed int16, degrees × 100
Pitch Signed int16, degrees × 100
Roll Signed int16, degrees × 100

The toolkit developer verified that a commanded +20° tilt produced telemetry progressing to +20.00°.

This functionality would enable QGroundControl to display actual gimbal orientation and support closed-loop control.

Local telemetry reception remains unverified. The UDP terminal used in our tests showed outgoing traffic but no received packets.

11. Camera capture and recording

The toolkit defines the following commands:

Function Complete command
Take photo #TPUD2wCAP0166
Start recording #TPUD2wREC016C
Stop recording #TPUD2wREC006B

These are derived from the supplied protocol implementation and checksum algorithm.

Their behaviour has not yet been tested on our camera.

12. Requested QGroundControl functionality

Initial integration

  • Select Skydroid TOP/UDP as camera/gimbal control protocol.

  • Configure camera IP address and UDP port.

  • Configure local source port.

  • Pan and tilt control through the QGC interface.

  • Center/home button.

  • Adjustable speed.

  • Independent horizontal and vertical axis inversion.

  • Adjustable mechanical angle limits.

  • Preserve the existing RTSP video integration.

Extended integration

  • G20 joystick support.

  • Camera zoom.

  • RGB/thermal sensor selection.

  • Thermal palette switching.

  • Photo capture.

  • Video recording.

  • Gimbal orientation telemetry.

  • Camera status and firmware information.

13. Suggested implementation architecture

A possible implementation would use a Qt/C++ TOP protocol backend with QUdpSocket.

The backend would be responsible for:

  1. Encoding TOP commands and checksums.

  2. Sending UDP datagrams to the camera.

  3. Receiving and parsing camera telemetry.

  4. Applying axis inversion and angle limits.

  5. Managing periodic speed-command transmission.

  6. Providing a camera/gimbal control interface to QGroundControl.

The camera should be controllable independently of the vehicle autopilot.

If appropriate, the TOP backend could be adapted to QGroundControl’s existing camera and gimbal control architecture.

14. Reference implementation

Open-source reverse-engineered toolkit:

Relevant source files:

  • protocol.py – TOP packet generation, checksum, UDP transport and telemetry parsing

  • gimbal.py – Higher-level gimbal control, absolute positioning, speed control and safety limits

Additional reverse-engineering reference cited by the toolkit:

These projects are useful implementation references but should not be treated as official Skydroid SDK documentation.

15. Verification summary

Feature Our C12 Toolkit developer
UDP control on port 5000 Confirmed Confirmed
Gimbal centering Confirmed Confirmed
Absolute pan angle Confirmed Confirmed
Absolute tilt angle Not tested Confirmed
Pan speed control Not tested Documented
Tilt speed control Not tested Documented
Attitude telemetry No response observed Confirmed
Photo capture Not tested Implementation available
Recording Not tested Implementation available
Zoom/thermal commands Not tested Further investigation required

16. Development objective

The objective is to enable native operation of the Skydroid C12 from QGroundControl on the G20 Android controller.

The working RTSP stream and successfully tested UDP positioning commands demonstrate that the required network connectivity and basic control functionality already exist.

A native TOP/UDP backend would eliminate the need to switch between QGroundControl and the manufacturer’s separate camera application.

I can provide additional real-hardware tests, including command verification, axis orientation, telemetry and joystick behaviour, to support implementation and testing.

Further more an integration of the 2 rtsp stream of this camera with RGB and Thermal with switching over would be helpfull including color-palettes.

Hi Dirk,

Thank you for sharing such a detailed technical breakdown and, especially, the results from your real-hardware testing.

We are interested in exploring this integration as a potential contribution to QGroundControl.

The proposed TOP/UDP backend looks like a promising approach, particularly if camera and gimbal control can remain independent of the vehicle autopilot.

Before moving toward implementation, we would like to clarify a few points:

  1. Has anyone from the QGroundControl development team already started working on this integration?

  2. Would you be available to support hardware validation and testing during development?

  3. Which features would you consider essential for an initial MVP? Would basic pan/tilt control, centering, axis inversion and existing RTSP video support be sufficient?

  4. Could you provide additional test results for continuous speed control, pitch movement and telemetry reception?

  5. Would you be interested in collaborating on a community-driven implementation?

Our initial preference would be to develop a small, well-defined integration that follows QGroundControl’s existing architecture, rather than introducing a large set of features at once.

We would also welcome feedback from QGroundControl maintainers regarding the preferred integration approach before beginning implementation.

Best regards,
PAMILANGA LIMITED
PX4 PLATFORMU Development Initiative

Hi,

Thank you for your response and your interest in supporting the Skydroid C12 integration into QGroundControl.

I have now completed a series of hardware tests using the official Skydroid TOP protocol (V1.2.0) over UDP. The results are quite promising.

1. Hardware and software setup

My current configuration is:

  • Camera: Skydroid C12 (RGB + Thermal)

  • Controller: Skydroid G20 (Android 13)

  • Receiver: Skydroid GR01

  • Autopilot: Pixhawk 2.4.8 running ArduRover 4.7.1

  • Ground station: QGroundControl 5.1.5 (Android)

  • Camera IP: 192.168.144.108

  • Controller IP: 192.168.144.11

  • Control interface: UDP port 5000

  • RGB video stream: rtsp://192.168.144.108:554/stream=1

The camera is installed on a ground-based rescue robot (KATRAK 400) which I build step by step and want to implement the C12 cam as well as converting the big Motorcontrollers to the G20 Controller..

Communication takes place through the Skydroid G20/GR01 radio link, without an additional Wi-Fi connection. (When Wifi is on the G20 trys to send the UDP Traffice not to the GR01 for any reason)

2. Successfully tested TOP protocol functions

I sent the TOP commands directly using a UDP terminal on the G20 controller.

The following functions have been successfully tested on the actual hardware:

Gimbal control

  • Center gimbal (PTZ)

  • Absolute pan positioning (GAY): ±10°, ±20°, ±30°

  • Absolute tilt positioning (GAP): ±10°, ±20°, ±30°

All tested positioning commands worked.

The camera is mounted upright, and the pan direction needs to be inverted compared to the expected protocol direction.

Camera functions

  • Take photos (CAP) – working

  • Start video recording (REC) – working

  • Stop video recording (REC) – working

  • Digital zoom 1×, 2× and 3× (DZM) – working

  • Zoom in / zoom out (DZM) – working

Thermal camera functions

  • White Hot – working

  • Ironbow – working

  • Rainbow – working

  • Black Hot – working

The thermal color palettes can be changed directly using TOP commands (IMG).

Overall, all 28 directly observable function tests were successful.

3. Continuous movement and speed control

Absolute positioning works reliably.

However, continuous pan/tilt speed control using GSY/GSP has not yet been successfully verified.

The documentation suggests that these commands may need to be transmitted continuously rather than only once.

I also tried changing the movement speed during absolute positioning, but the gimbal reached its target position too quickly to evaluate the result.

This part requires further testing.

4. Current problem: No UDP feedback or telemetry

This is currently the main unresolved issue.

Although the camera responds correctly to control commands, I have not been able to receive any UDP responses.

I tested the following protocol requests:

  • MOD – Camera model

  • SDC – SD card information

  • DZM – Current zoom value

  • IMG – Current thermal palette

  • VER – Firmware version

  • GAA – Enable/disable gimbal angle telemetry

None of these requests produced a visible response in the UDP terminal.

According to the TOP protocol documentation, valid commands should generate responses, and enabling GAA should provide GAC angle telemetry.

I tested local UDP ports 5000 and 9002, as well as port 5760, without receiving feedback.

A port scan also identified TCP ports 21 (FTP) and 23 (Telnet) on the camera. However, these do not explain the missing UDP responses.

At this point, I cannot determine whether the camera is sending responses to a different destination or whether the firmware handles feedback differently from the documentation.

A packet capture would be the logical next step, but I have not performed one yet.

5. Suggested minimum viable integration

Based on the successful hardware tests, I would suggest the following priorities for native QGroundControl support:

MVP – Essential functions

  1. Connect to the camera using a configurable IP address and UDP port.

  2. Pan and tilt control using TOP commands.

  3. Center gimbal.

  4. Configurable axis inversion.

  5. Display the existing RTSP video stream.

Additional functions already confirmed to work

  • Take photos

  • Start/stop video recording (for any reason with the current QGroundControl I have the video feed but when starting to record the recording stops within 2 seconds)

  • Digital zoom 1x-3x

  • Thermal color palette selection

Functions requiring further investigation

  • Continuous pan/tilt speed control

  • Gimbal angle telemetry

  • Camera status feedback

  • Switching between RGB and thermal video streams (which are 2 seperate RTSP Link)

6. Development and testing support

I can provide:

  • Access to the official TOP protocol documentation (V1.2.0) which I recieved from the supplier.

  • Examples of verified working UDP commands.

  • Information about the camera’s network configuration.

  • Hardware testing using the actual Skydroid C12, G20 and GR01 setup.

  • Feedback on experimental QGroundControl builds for Android.

My preference would be to integrate the functionality into the official QGroundControl project rather than maintain a separate custom version.

The positive result is that the TOP protocol already provides reliable control of the gimbal, camera recording functions, zoom and thermal palettes.

The remaining challenge is understanding the UDP feedback mechanism and implementing the controls in QGroundControl.

I would be happy to support further development and testing.

Best regards,
Dirk

Hi Dirk,

Thank you for the detailed hardware validation. Completing 28 successful observable function tests is a significant step toward a practical QGroundControl integration.

The results suggest that the TOP protocol provides a workable control interface for the C12, even though the UDP feedback mechanism remains unresolved.

I agree with your preference for native QGroundControl integration rather than maintaining a separate custom application.

For the initial implementation, I would suggest separating the work into two parts.

1. Minimum viable integration

Start with the functions already confirmed on your hardware:

  • Configurable camera IP address and UDP port

  • Gimbal centering

  • Absolute pan and tilt positioning

  • Configurable axis inversion

  • Photo capture

  • Video recording commands

  • Digital zoom

  • Thermal palette selection

The existing RTSP video functionality could remain responsible for displaying the camera feed.

2. UDP feedback investigation

Before implementing telemetry-dependent features, I would recommend capturing the UDP traffic while sending a known working command and a status request.

The important details would be:

  • Source and destination IP addresses

  • Source and destination UDP ports

  • Whether any response packets are visible

  • Whether responses use the same socket or a separate telemetry port

  • Whether the behavior changes when Wi-Fi is disabled

This should help distinguish camera-side behavior from network routing or UDP terminal configuration issues.

For continuous movement commands, we should also verify whether GSY/GSP require periodic transmission and whether a dedicated stop command is necessary.

I would avoid implementing continuous movement until that behavior is confirmed, particularly because the camera is installed on a physical rescue robot.

Next step

Would you be able to share the relevant sections of the official TOP V1.2.0 documentation covering:

  1. UDP command and response framing

  2. Source and destination port requirements

  3. GAA/GAC telemetry behavior

  4. GSY/GSP continuous movement and stopping behavior

A sanitized packet capture would also be very useful.

With that information, we can define a small, testable TOP protocol adapter for QGroundControl and work toward an upstream contribution.

Thanks again for offering real-hardware validation.

Best regards,
Yiğitcan Öztürk
PAMILANGA LIMITED