跳到主要内容

Command Flight

Event

Flyto Execution Result Event Notification

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: fly_to_point_progress

Data:

ColumnNameTypeconstraintDescription
fly_to_idTarget Point IDtext
statusStatusenum_string{"wayline_cancel":"Fly to target point canceled", "wayline_failed":"Execution failed", "wayline_ok":"Execution successful, reached target point", "wayline_progress":"In progress"}
resultReturn CodeintNon-zero represents an error
way_point_indexCurrent Waypoint Indexint
remaining_distanceRemaining Task Distancefloat{"step":0.1, "unit_name":"meters / m"}
remaining_timeRemaining Task Timefloat{"step":0.1, "unit_name":"seconds / s"}
planned_path_pointsPlanned Path Pointsarray{"}size": -, "item_type": struct}
»latitudeTrajectory Latitudedouble{"max":90,"min":-90}Latitude of the trajectory point, accurate to 6 decimal places
»longitudeTrajectory Longitudedouble{"max":180,"min":-180}Longitude of the trajectory point, accurate to 6 decimal places
»heightTrajectory Heightfloat{"step":0.1,"unit_name":"meters / m"}Height of the trajectory point, in meters

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"fly_to_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"planned_path_points": [
{
"height": 123.234,
"latitude": 13.23,
"longitude": 123.234
}
],
"remaining_distance": 0,
"remaining_time": 0,
"result": 0,
"status": "wayline_progress",
"way_point_index": 0
},
"need_reply": 1,
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 16540709686556,
"method": "fly_to_point_progress"
}

One-click Takeoff Result Event Notification

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: takeoff_to_point_progress

Data:

ColumnNameTypeconstraintDescription
statusTask Statusenum_string{"task_finish":"One-key takeoff task completed", "task_ready":"Ready for takeoff", "wayline_cancel":"Target waypoint flight canceled", "wayline_failed":"Execution failed", "wayline_ok":"Execution successful, target waypoint reached", "wayline_progress":"In progress"}
resultReturn CodeintNon-zero indicates an error
flight_idOne-click Takeoff Task UUIDtext
track_idTrack IDtext
way_point_indexCurrent Waypoint Indexint
remaining_distanceRemaining Task Distancefloat{"step":0.1, "unit_name":"meters / m"}
remaining_timeRemaining Task Timefloat{"step":0.1, "unit_name":"seconds / s"}
planned_path_pointsPlanned Path Pointsarray{"}size": -, "item_type": struct}
»latitudeTrajectory Point Latitude (Degrees)double{"max":90,"min":-90}Latitude of the trajectory point, with 6 decimal place accuracy
»longitudeTrajectory Point Longitude (Degrees)double{"max":180,"min":-180}Longitude of the trajectory point, with 6 decimal place accuracy
»heightTrajectory Point Altitudefloat{"step":0.1, "unit_name":"meters / m"}Altitude of the trajectory point, ellipsoid height

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"flight_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"planned_path_points": [
{
"height": 123.234,
"latitude": 13.23,
"longitude": 123.234
}
],
"remaining_distance": 0,
"remaining_time": 0,
"result": 0,
"status": "wayline_ok",
"track_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"way_point_index": 1
},
"need_reply": 1,
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 16540709686556,
"method": "takeoff_to_point_progress"
}

Flight Control Grab

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: flight_authority_grab

Data: null

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "flight_authority_grab"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: flight_authority_grab

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "flight_authority_grab"
}

Load Control Grab

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: payload_authority_grab

Data:

ColumnNameTypeconstraintDescription
payload_indexPayload enumeration valuetextLens Payload and Mounting Position Enumeration Values
Non-standard device_mode_key, format: {type-subtype-gimbalindex}. Please refer to the product support page for details.

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"payload_index": "68-0-0"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "payload_authority_grab"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: payload_authority_grab

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "payload_authority_grab"
}

Enter Command Flight Control Mode

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: drc_mode_enter

Data:

ColumnNameTypeconstraintDescription
mqtt_brokerBroker Connection InfostructRetrieve the MQTT relay service address and authentication information
»addressServer Connection AddresstextServer connection address, e.g., 192.0.2.1:8883, mqtt.autel.com:8883
»client_idClient IDtextCustomizable MQTT client ID. It is recommended to use the device's SN code, or combine it with a meaningful prefix, e.g., drc-4J4R101
»usernameUsernametextUsername used for establishing the connection
»passwordPasswordtextPassword required for authentication when establishing the connection
»expire_timeAuthentication Expiry Timeint{"unit_name":"seconds / s"}Authentication information can be reused within the validity period, and its expiration does not affect already established connections
»enable_tlsEnable TLSboolEnable TLS to encrypt the MQTT link
osd_frequencyOSD Frequencyint{"max":30,"min":1,"unit_name":"Hertz / Hz"}Set the OSD reporting frequency
hsi_frequencyHSI Frequencyint{"max":30,"min":1,"unit_name":"Hertz / Hz"}Set the HSI reporting frequency

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"hsi_frequency": 1,
"mqtt_broker": {
"address": "mqtt.autel.com:8883",
"client_id": "sn_a",
"enable_tls": true,
"expire_time": 1672744922,
"password": "jwt_token",
"username": "sn_a_username"
},
"osd_frequency": 10
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "drc_mode_enter"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: drc_mode_enter

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "drc_mode_enter"
}

Exit Command Flight Control Mode

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: drc_mode_exit

Data: null

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "drc_mode_exit"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: drc_mode_exit

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "drc_mode_exit"
}

One-click Takeoff

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: takeoff_to_point

Data:

ColumnNameTypeconstraintDescription
target_latitudeTarget Latitude (Degrees)double{"max":90,"min":-90}Target point latitude, in degrees. Negative for south, positive for north. Precision up to six decimal places.
target_longitudeTarget Longitude (Degrees)double{"max":180,"min":-180}Target point longitude, in degrees. Negative for west, positive for east. Precision up to six decimal places.
target_heightTarget Heightfloat{"max":1500, "min":2, "step":0.1, "unit_name":"meters / m"}Target point height (ellipsoid height) based on the WGS84 model. The default action for the drone after reaching the point is to hover.
flight_idOne-click Takeoff Task UUIDtextTask UUID, globally unique, used to identify and distinguish between normal scheduled tasks and one-key takeoff tasks on the cloud.
max_speedMaximum Speed During One-click Takeoffint{"max":15, "min":1, "unit_name":"meters per second / m/s"}

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"flight_id": "ABDEAC21DCADDA",
"max_speed": 12,
"target_height": 100,
"target_latitude": 12.23,
"target_longitude": 12.32
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "takeoff_to_point"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: takeoff_to_point

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "takeoff_to_point"
}

Flyto Fly to the Target Point

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: fly_to_point

Data:

ColumnNameTypeconstraintDescription
fly_to_idFlyto Target Point IDtext
max_speedMaximum Speed During Flytoint{"max":15, "min":0, "unit_name":"meters per second / m/s"}
pointsFlyto Target Points Listarray{"}size": -, "item_type": struct}Only supports 1 target point
»latitudeTarget Point Latitude (Degrees)double{"max":90,"min":-90}Target point latitude, in degrees. Negative for south, positive for north. Precision up to six decimal places
»longitudeTarget Point Longitude (Degrees)double{"max":180,"min":-180}Target point longitude, in degrees. Negative for west, positive for east. Precision up to six decimal places
»heightTarget Point Heightfloat{"max":10000, "min":2, "step":0.1, "unit_name":"meters / m"}Target point height (ellipsoid height) using the WGS84 model

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"fly_to_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"max_speed": 12,
"points": [
{
"height": 100,
"latitude": 12.23,
"longitude": 12.23
}
]
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "fly_to_point"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: fly_to_point

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "fly_to_point"
}

End the Flyto Mission

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: fly_to_point_stop

Data: null

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "fly_to_point_stop"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: fly_to_point_stop

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "fly_to_point_stop"
}

Joystick Control Invalid Reason Notification

The joystick is a comprehensive control feature for the drone. If it is unavailable, the drone_control capability will not be functional, preventing manual control.

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: joystick_invalid_notify

Data:

ColumnNameTypeconstraintDescription
reasonTask Statusint{"0":"Remote controller disconnected","1":"Low battery return","2":"Low battery landing","3":"Approaching no-fly zone","4":"Remote controller took over (e.g., triggered return, controller B took over)"}

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"reason": 0
},
"need_reply": 1,
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "joystick_invalid_notify"
}

Payload Control - Single Shot

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: camera_photo_take

Data:

ColumnNameTypeconstraintDescription
payload_indexCamera EnumtextCamera enumeration value. A non-standard device_mode_key, formatted as {type-subtype-gimbalindex}. You can refer to the [Product Support] for details.

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"payload_index": "68-0-0"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_photo_take"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: camera_photo_take

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_photo_take"
}

Payload Control - Start Recording

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: camera_recording_start

Data:

ColumnNameTypeconstraintDescription
payload_indexCamera EnumtextCamera enumeration value. A non-standard device_mode_key, formatted as {type-subtype-gimbalindex}. You can refer to the [Product Support] for details.

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"payload_index": "68-0-0"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_recording_start"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: camera_recording_start

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_recording_start"
}

Payload Control - Stop Recording

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: camera_recording_stop

Data:

ColumnNameTypeconstraintDescription
payload_indexCamera EnumtextCamera enumeration value. A non-standard device_mode_key, formatted as {type-subtype-gimbalindex}. You can refer to the [Product Support] for details.

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"payload_index": "68-0-0"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_recording_stop"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: camera_recording_stop

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_recording_stop"
}

Payload Control - Frame Drag Control

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: camera_screen_drag

Data:

ColumnNameTypeconstraintDescription
payload_indexCamera EnumtextCamera enumeration value. A non-standard device_mode_key, formatted as {type-subtype-gimbalindex}. You can refer to the [Product Support] for details.
lockedWhether the relationship between the drone head and gimbal is lockedbool{"false":"Only the gimbal rotates, the drone body does not rotate","true":"Lock the drone head, both the gimbal and body rotate together"}
pitch_speedGimbal pitch speeddouble{"unit_name":"degrees per second / deg/s"}Gimbal pitch speed, only supports gimbal rotation
yaw_speedGimbal yaw speeddouble{"unit_name":"degrees per second / deg/s"}Gimbal yaw speed, only supports locked drone head

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"locked": false,
"payload_index": "68-0-0",
"pitch_speed": 0.1,
"yaw_speed": 0.1
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_screen_drag"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: camera_screen_drag

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_screen_drag"
}

Payload Control – Zoom

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: camera_focal_length_set

Data:

ColumnNameTypeconstraintDescription
payload_indexCamera EnumtextCamera enumeration value. A non-standard device_mode_key, formatted as {type-subtype-gimbalindex}. You can refer to the [Product Support] for details.
camera_typeCamera Typeenum_string{"ir":"Infrared","wide":"Wide Angle","zoom":"Zoom"}Enum for camera types
zoom_factorZoom Factordouble{"max":200,"min":2}Zoom factor, visible light range: 2-200, infrared range: 2-20

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"payload_index": "68-0-0",
"zoom_factor": 5
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_focal_length_set"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: camera_focal_length_set

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_focal_length_set"
}

Payload Control - Reset Gimbal

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: gimbal_reset

Data:

ColumnNameTypeconstraintDescription
payload_indexPayload IDtextPayload ID, camera enumeration value. Non-standard device_mode_key, format is {type-subtype-gimbalindex}, refer to [Product Support] for details
reset_modeReset Modeenum_int{"0":"Center","1":"Downward","2":"Yaw Center","3":"45 Degrees Downward"}

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"payload_index": "68-0-0",
"reset_mode": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "gimbal_reset"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: gimbal_reset

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "gimbal_reset"
}

Payload Control—Photo Storage Settings

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: photo_storage_set

Data:

ColumnNameTypeconstraintDescription
payload_indexCamera EnumtextCamera enumeration value. Non-standard device_mode_key, formatted as {type-subtype-gimbalindex}, refer to [Product Support] for details
photo_storage_settingsPhoto Storage Settings Collectionarray{"}size": -, "item_type": enum_string}Photo storage types {current, wide, zoom, ir}, multiple selections are allowed

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"payload_index": "68-0-0",
"photo_storage_settings": [
"current",
"wide",
"zoom",
"ir"
]
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "photo_storage_set"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: photo_storage_set

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "photo_storage_set"
}

Payload Control—Video Storage Settings

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: video_storage_set

Data:

ColumnNameTypeconstraintDescription
payload_indexCamera EnumtextCamera enumeration value. Non-standard device_mode_key, formatted as {type-subtype-gimbalindex}, refer to [Product Support] for details
video_storage_settingsVideo Storage Settings Collectionarray{"}size": -, "item_type": enum_string}Video storage types {current, wide, zoom, ir}, multiple selections are allowed

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"payload_index": "68-0-0",
"video_storage_settings": [
"current",
"wide",
"zoom",
"ir"
]
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "video_storage_set"
}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: video_storage_set

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "video_storage_set"
}

Payload Control—Look At

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: camera_look_at

Data:

ColumnNameTypeconstraintDescription
latitudeTarget Latitudedouble{"max":90,"min":-90}Angle value. Negative for southern latitudes, positive for northern latitudes, accurate to 6 decimal places.
longitudeTarget Longitudedouble{"max":180,"min":-180}Angle value. Positive for eastern longitudes, negative for western longitudes, accurate to 6 decimal places.
heightTarget Heightfloat{"max":10000,"min":2,"step":0.1,"unit_name":"meters / m"}Height of the target point

Example:

{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"height": 100,
"latitude": 12.23,
"longitude": 12.23
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_look_at"
}

DRC

DRC-Flight Control

Once in command flight mode, this instruction allows control of the drone's flight direction and speed. The sending frequency must be maintained between 5-10 Hz to ensure the device can accurately control changes in speed and direction.At the same time, it is necessary to ensure that the aircraft is in a propeller flight state; otherwise, it will be ineffective.

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drone_control

Data:

ColumnNameTypeconstraintDescription
seqCommand SequenceintIncremental sequence number to ensure commands are executed in order. If the x, y, h, or w parameters change, seq must start increasing from 0.
xForward/Backward Speeddouble{"max":17, "min":-17, "unit_name":"meters per second / m/s"}Maximum forward/backward speed, negative values indicate backward movement
yLeft/Right Speeddouble{"max":17, "min":-17, "unit_name":"meters per second / m/s"}Maximum left/right speed, negative values indicate leftward movement
hUp/Down Speeddouble{"max":5, "min":-4, "unit_name":"meters per second / m/s"}Maximum up/down speed, negative values indicate downward movement
wYaw Angular Speeddouble{"max":90, "min":-90, "unit_name":"radians per second / rad/s"}Maximum yaw angular speed, negative values indicate counterclockwise rotation

Example:

{
"data": {
"freq": 10,
"h": 2.76,
"seq": 1,
"w": 2.86,
"x": 2.34,
"y": -2.45
},
"method": "drone_control"
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drone_control

Data:

ColumnNameTypeconstraintDescription
resultColumnNameintTypeNon-zero indicates an error, exceptional cases include: no flight control, no virtual joystick permission, incorrect data packet sequence
resultoutputOutputintstructNon-zero indicates an error, exceptional cases include: no flight control, no virtual joystick permission, incorrect data packet sequence
output»seqCommand SequencestructintIncremental sequence number to ensure commands are executed in order

Example:

{
"data": {
"output": {
"seq": 1
},
"result": 0
},
"method": "drone_control"
}

DRC-Drone Emergency Stop

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: drone_emergency_stop

Data: null

Example:

{
"data": {},
"method": "drone_emergency_stop"
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: drone_emergency_stop

Data:

ColumnNameTypeconstraintDescription
resultReturn CodeintNon-zero represents an error

Example:

{
"data": {
"result": 0
},
"method": "drone_emergency_stop"
}

DRC-Heartbeat

Topic: thing/product/{gateway_sn}/drc/down

Direction: down

Method: heart_beat

Data:

ColumnNameTypeconstraintDescription
seqDRC-Obstacle Avoidance Information ReportingintIncremental sequence number to ensure the command is executed in order
timestampHeartbeat Timestampint{"unit_name":"milliseconds / ms"}Timestamp of when the heartbeat was sent, not the device-side time, to help the cloud calculate delay based on send/receive intervals

Example:

{
"data": {
"seq": 10,
"timestamp": 1670415891013
},
"method": "heart_beat"
}

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: heart_beat

Data:

ColumnNameTypeconstraintDescription
seqCommand SequenceintIncremental sequence number to ensure the command is executed in order
timestampHeartbeat Timestampint{"unit_name":"milliseconds / ms"}Timestamp of when the heartbeat was sent, not the device-side time, to help the cloud calculate delay based on send/receive intervals

Example:

{
"data": {
"seq": 10,
"timestamp": 1670415891013
},
"method": "heart_beat"
}

DRC-Obstacle Avoidance Information Reporting

Topic: thing/product/{gateway_sn}/drc/up

Direction: up

Method: hsi_info_push

Data:

ColumnNameTypeconstraintDescription
down_distanceDistance to obstacle belowintUnit: mm
up_distanceDistance to obstacle aboveintUnit: mm
front1_distanceDistance to obstacle from front radar 1intUnit: mm
front2_distanceDistance to obstacle from front radar 2intUnit: mm
front3_distanceDistance to obstacle from front radar 3intUnit: mm
front4_distanceDistance to obstacle from front radar 4intUnit: mm
left1_distanceDistance to obstacle from left radar 1intUnit: mm
left2_distanceDistance to obstacle from left radar 2intUnit: mm
left3_distanceDistance to obstacle from left radar 3intUnit: mm
rear1_distanceDistance to obstacle from rear radar 1intUnit: mm
rear2_distanceDistance to obstacle from rear radar 2intUnit: mm
rear3_distanceDistance to obstacle from rear radar 3intUnit: mm
rear4_distanceDistance to obstacle from rear radar 4intUnit: mm
right1_distanceDistance to obstacle from right radar 1intUnit: mm
right2_distanceDistance to obstacle from right radar 2intUnit: mm
right3_distanceDistance to obstacle from right radar 3intUnit: mm
radar_enableObstacle avoidance switchboolean

Example:

{
"bid":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data":{
"down_distance":0,
"front1_distance":0,
"front2_distance":0,
"front3_distance":0,
"front4_distance":0,
"left1_distance":0,
"left2_distance":0,
"left3_distance":0,
"radar_enable":true,
"rear1_distance":0,
"rear2_distance":0,
"rear3_distance":0,
"rear4_distance":0,
"right1_distance":0,
"right2_distance":0,
"right3_distance":0,
"up_distance":0
},
"tid":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp":1726131014572,
"method":"hsi_info_push"
}