Run Sample
Before Run Sample
Device Binding
After compilation, you can find the executable files in the Edge-SDK/build/bin
directory of the ESDK project.

- Execute ./build/bin/sample_liveview in the root directory of the ESDK project to run the executable file.
- If device binding via Pilot has not been completed or if the key information is lost, an error occurs: "Updating session key... Ensure the device is pre-bound via pilot and the RSA key information is accurate."
- Connect the DJI dock to the remote controller, and in the debugging interface that appears in DJI Pilot, click the "Bind" button to bind the devices.


After a successful binding, the edge computing establishes an encrypted communication link with the DJI Dock.

Note: When the default key information is bound, it is stored in the /tmp directory and will be lost upon power cycle. If the implementation is not modified, re-binding is required every time after power-on.
Subscribe Camera Live Stream
Target Detection and Recognition Display
Execute ./build/bin/sample_liveview at the root directory of ESDK project to display the AI target detection screen of the main camera and the real-time screen of FPV camera. The DJI Dock have no FPV.
Execution sample: ./build/bin/sample_liveview

Subscribe Single Live Stream
Execute ./build/bin/test_liveview {camera} {quality} {lens} at the root directory of ESDK project to subscribe and display single link live stream.
Command parameter | Explanation | Optional Range |
{camera} | Camera | 0 -- FPV Camera 1 -- Payload Camera |
{quality} | Video Quality | 1 -- 520p 2 -- 720p 3 -- 720p High 4 -- 1080p 5 -- 1080p High |
{lens} | Lens | 1 -- Wide Lens 2 -- Zoom Lens 3 -- Infrared Lens |
Execution sample:
Subscribe and display camera live stream of payload camera, 1080P and zoom lens
./build/bin/test_liveview 1 4 2

Pull Media File
Execute ./build/bin/sample_read_media_file at the root directory of ESDK Project to monitor media file generated during the wayline mission. When there is new generated media file, pull the file to dock.

Execute ./build/bin/sample_media_file_list at the root directory of ESDK Project to get generated media file during the wayline mission in the method of file list.

SDK Interconnection
Execute ./build/bin/sample_cloud_api at the root directory of ESDK Project to send custom data to cloud server in 1 second interval. And received data will be printed at the endpoint.
