1. Gimbal Connection and UDP Configuration
Gimbal Connection Steps
To configure the gimbal, follow these steps:
UDP Send Settings:
- UDP Send Switch: Open
- UDP Send IP: 192.168.2.117 (This is your PC IP. You can change your PC IP to 117 or adjust this setting to match your PC IP, ensuring the network segment is the same, e.g., '2').
- UDP Send Port: 55012
- UDP Send Type: TS
After changing any camera settings, click "submit" and then reboot the gimbal.
Video Stream Check via UDP
The interface displays connection status and network parameters:
- Connection Status: Connected
- Serial Port: COM4
- TCP Remote IP: 192.168.2.119
- UDP Remote IP: 192.168.144.119
- UDP Local IP: 192.168.144.117
- Option: Connect device automatically when application startup
Video stream options include Network video, USB Camera, and Integrated Webcam. The UDP stream is configured as: udp://192.168.2.117:55012
.
Additional settings shown are:
- Baudrate: 115200
- Port: 2000
- Speed: 14551
- Turn to Port: 14550
- PC IP address input
- Push Streaming URL:
rtmp://xx.128.xxx.74:10085/live/JSHYUYV901?sign=_L4eFN5SR
- Connection Type: UDP
- Local KLV Video: Close Video
- Option: Open video automatically when application startup
A simplified visual data display shows:
- Heading Angle: Range -15 to 15
- Pitch Angle: Range -10 to 0
- Roll Angle: 0.000m
- Image: Visible1
- Zoom: Zoom to
- Focus: Focus
The interface allows for displaying the "Nine Palace Grid" visual layer.
2. Command Transmission and GPS Simulation
Sending Commands
Send the command AA 55 2F 04 FF
via the serial port or through the viewlink extended command interface. Using the serial port is recommended. After sending, reboot the gimbal.
The viewlink interface displays command transmission logs, showing sent commands like AA 55 2F 04 FF
.
Simulating GPS Information
Use the serial port assistant to send the following commands at intervals of 1000ms to simulate GPS information:
55 AA DC 2D B1 07 00 00 00 00 00 00 00 00 8F FF 62 E3 23 6C 94 50 96 33 00 00 00 0D 40 1D AD 43 A2 68 BB 00 00 27 10 00 00 00 F0 00 00 00 00 4C
The serial port assistant interface logs show sequences of "OUT" (sent) and "IN" (received) data packets, including timestamps and the simulated GPS command data.
The assistant's configuration options include:
- Serial Port: COM4 (USB-SERIAL CH340)
- Baudrate: 115200
- Options: HEXShow, SaveData ReceivedToFile, SendHEX, SendEvery: 1000 ms/Tim, Show Time and Packe, OverTime: 20 ms, No 4 BytesTo 末尾 Verify None.
3. KLV Functionality Verification
On viewlink, you can obtain simulated GPS information.
The GPS data display shows:
- TAC N 22°13′50.06", E 113°28′18.16", ALT 10.000m
KLV Data Verification
To verify the KLV (Key-Length-Value) function:
- Open "KLV" in viewlink.
- Click the directional controls (left/right/up/down); the angle values should change.
- Click "zoom in/out"; the FOV (Field of View) value should change.
These changes indicate that the KLV function is operating correctly.
The KLV Info panel displays detailed parameters:
- UNIX Time Stamp: 2020-09-13 22:40:13
- Heading Angle: -40.5951019
- Pitch Angle: -0.8673360
- Roll Angle: 0.7843257
- Latitude: 22.2305709
- Longitude: 113.4717115
- True Altitude: 9.7489891
- Horizontal FoV: 44.7397574
- Vertical FoV: 26.0105287
- Rel.Azimuth Angle: -17.2265625
- Rel.Elevation Angle: -19.6875000
- Rel.Roll Angle: -1.4721680
- Slant Range: 0.0000000
- Target Width: 0.0000000
- Center Latitude: 22.2305709
- Center Longitude: 113.4717115
- Center Elevation: 9.7489891
4. GPS Synchronization with FC
Connect the gimbal's serial port to the Flight Controller (FC). Ensure the gimbal receives GPS data from the FC; the time data should also update accordingly.
Refer to the document "Settings for the open-source Viewlink Gimbal Docking.pdf" for further details.