跳到主要内容

Device Properties

Device Property List

  • pushMode:
    • 0: Device pushes periodic data, reporting at a frequency of 0.5Hz (Topic

      /product/{device_sn}/osd)

    • 1: Device pushes state data, reporting when there is a status change (Topic

      /product/{device_sn}/state)

  • accessMode:
    • r: Read-only property

    • rw: Read-write property (Topic

      /product/{gateway_sn}/property/set)

ColumnNameTypeconstraintDescriptionaccessModepushMode
live_statusCurrent live status of the gatewayarray{"size": -, "item_type": struct}r1
»video_idVideo stream identifiertextIdentifier of the video stream in the format of {sn}/{camera_index}/{video_index} where {sn} is the device serial number, {camera_index} follows the {type-subtype-gimbalindex} format, and {video_index} refers to the camera’s available video streamsr0
»video_qualityQuality of the video streamenum_int{"0":"Auto","1":"Smooth","2":"HD","3":"Ultra HD"}r0
»statusLive statusenum_int{"0":"Not live","1":"Live"}r0
longitudeCurrent longitudefloat{"max":"180","min":"-180","unit_name":"degrees / °"}r0
latitudeCurrent latitudefloat{"max":"180","min":"-180","unit_name":"degrees / °"}r0
heightAbsolute altitudefloat{"unit_name":"meters / m"}Altitude relative to the Earth ellipsoidr0
firmware_versionFirmware versiontext{"length":"64"}r1
sub_deviceSub-device statusstructr
»device_snSub-device serial numbertextr
»product_typeSub-device product typetextrFormat: {domain-type-subtype}
»device_online_statusPower status of the drone in the docking stationenum{"0":"Off","1":"On"}r
»device_pairedFrequency pairing status of the drone in the docking stationenum{"0":"Not paired","1":"Paired"}r
cover_stateCabin cover statusenum{"0":"Closed","1":"Open","2":"Half-open","3":"Cover malfunction"}0r
putter_statePushrod statusenum{"0":"Closed","1":"Open","2":"Half-open","3":"Pushrod malfunction"}0r
supplement_light_stateSupplementary light statusenum{"0":"Off","1":"On"}0r
network_stateNetwork statusstructNetwork Status0r
»typeNetwork typeenum{"1":"4G","2":"Ethernet"}
drone_in_dockIs the drone in the dockenum{"0":"Outside","1":"Inside"}0r
rainfallRainfallenum{"0":"No rain","1":"Light rain","2":"Moderate rain","3":"Heavy rain"}0r
wind_speedWind speedfloat0r
environment_temperatureEnvironmental temperaturefloat0r
temperatureCabin temperaturefloat0r
humidityCabin humidityfloat0r
storageStorage capacitystruct0rkb
»totalTotal capacityintr
»usedUsed capacityintr
alternate_land_pointAlternate landing pointstruct0r
»longitudeLongitudefloatr
»latitudeLatitudefloatr
heightEllipsoid heightdouble0r
air_conditionerAir conditioner statusstructr0r
»air_conditioner_stateAir conditioner mode(int type) enum{"0":"Idle","8":"Heating preparation","9":"Dehumidification preparation"}r
emergency_stop_stateEmergency stop button statusenum{"0":"Off","1":"On"}0r
position_stateStar tracking statusstruct0r
»is_calibrationCalibration statusenum{"0":"Not calibrated","1":"Calibrated"}r
»is_fixedFix statusenum{"0":"Not started","1":"In progress","2":"Success","3":"Failure"}r
»qualityStar tracking levelenum{"1":"Level 1","2":"Level 2","3":"Level 3","4":"Level 4","5":"Level 5"}r
»gps_numberGPS star tracking countintr
»rtk_numberRTK star tracking countintr
drone_charge_stateCharging statusstructr
»capacity_percentRemaining battery percentageint{min:0~max:100}0r
»stateCharging stateint{"0":"Charging","1":"Not charging"}0r
flighttask_step_codeTask execution step codeIntr
backup_batteryBackup battery statusstructr
»remain_capRemaining backup battery capacityint{min:0~max:100}0r
»temperatureBattery temperatureintTemperature divided by 1000r
»voltageBattery voltageintVoltage divided by 1000r
»switchBackup battery switchint{"0":"Off","1":"On"}0r
drc_stateDRC statusInt{"0":"Not connected","1":"Connecting","2":"Connected"}0r
environment_humidityEnvironmental humidityr
rth_altitudeReturn-to-home altituderw
scram_statusEmergency stop status{"0":"Not stopped","1":"Stopped"}r
takeoff_altitudeTakeoff altituderw
air_link_signal_strengthAir link signal strengthint{0-100}
rid_configRID configurationstructrw
»regionRegionint{0:UNKNOWN1:CN 2:US 3:EU 4:JP}
»flight_purposeFlight destination, required in CN and UStext
»keyKey (Required in JP)text
»pilot_idPilot IDtext
»remote_idRemote ID (Required in JP)text
wireless_linkVideo transmission linkstructr0
»4g_link_state4G connection stateenum_int{"0":"Not connected","1":"Connected"}0
»sdr_link_stateSDR connection stateenum_int{"0":"Not connected","1":"Connected"}0
»link_workmodeTransmission modeenum_int{"0":"Transmission mode","1":"4G Fusion mode"}0
»sdr_qualitySDR signal qualityint{"max":"5","min":"0","step":"1"}0
»4g_qualityOverall 4G signal qualityint{"max":"5","min":"0","step":"1"}0
air_transfer_enableAir data transmissionint{"0":"Disabled","1":"Enabled"}rw
home_position_is_validHome point validityenum_int{"0":"Invalid","1":"Valid"}
headingDock heading angledouble{"max":"180","min":"-180","step":"","unit_name":"degrees / °"}
activation_timeDock activation time (Unix timestamp)long
live_capacityGateway device streaming capabilitystructr1
»available_video_numberNumber of selectable video streamsint0
»coexist_video_number_maxMaximum number of concurrent streamsint0
»device_listList of available video source devicesarray{"size": -, "item_type": struct}Available video source devices (e.g., drones)0
»»snSerial number of video source devicetext0
»»available_video_numberNumber of selectable streams from deviceint0
»»coexist_video_number_maxMax number of concurrent streams from deviceint0
»»camera_listList of cameras on the devicearray{"size": -, "item_type": struct}0
»»»camera_indexCamera indextextFormat: {type-subtype-gimbalindex}0
»»»available_video_numberNumber of selectable streams from cameraint0
»»»coexist_video_number_maxMax number of concurrent streams from cameraint0
»»»video_listList of selectable streams from cameraarray{"size": -, "item_type": struct}0
»»»»video_indexStream index from cameratext0
»»»»video_typeType of stream from cameratext0
»»»»switchable_video_typesSwitchable video typesarray{"size": -, "item_type": text}

Device Attribute Push

Topic: thing/product/{device_sn}/state State data: reported when the device state changes

Topic: thing/product/{device_sn}/osd Regular data: device reports at a frequency of 0.5Hz

Direction: up

API Description:
Payload attribute reporting refers to the reporting of the attributes of the payloads mounted on the drone, such as the camera attributes. A payload is uniquely identified by its payload index (payload index: product type - subtype - mount position {type-subtype-gimbalIndex}), type, and subtype. Please refer to the product support page for values, and for the corresponding relationship of gimbalindex, check the wayline file format under wpml.
Currently, the protocols that involve payload attribute reporting include the device attribute push of gateway devices and the live capability update for live streaming functionality. For device attribute push, the payload attribute reporting contains information about the camera itself, such as the angles of gimbal pitch, yaw, and roll. For live capability update, the payload attribute reporting focuses more on the camera’s capabilities during live streaming, such as the maximum number of streams that can be pushed simultaneously. The specific payload attribute structure can be found in the example below. Please note that the remote controller's device attributes are reported in a single message body, while the airport's device attributes are reported in multiple pushes.

Data:

ColumnNameTypeconstraintDescription
dataMessage contenttext{}For details, refer to the device properties of the device.
»#{camera_index}type-subtype-gimbalIndextext{}gimbalIndex is the camera position, type, sub_type

Example:

Topic: thing/product/{remote_controller_sn}/state Topic: thing/product/{remote_controller_sn}/osd
{
"bid":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data":{
"capacity_percent":0,
"latitude":0,
"live_status":{
"live_time":0,
"live_trendline":0,
"video_id":"",
"video_quality":65535
},
"longitude":0,
"transmission_signal_quality":0,
"wireless_link":{
"4g_freq_band":5.8,
"4g_gnd_quality":65535,
"4g_link_state":0,
"4g_quality":65535,
"4g_uav_quality":65535,
"dongle_number":0,
"link_workmode":1,
"sdr_freq_band":5.8,
"sdr_link_state":0,
"sdr_quality":65535
},
"wireless_link_state":{
"download_quality":0,
"frequency_band":0,
"upward_quality":0
}
},
"tid":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp":1676434755031,
"gateway":"4LFCJCC001008S"
}
Topic: thing/product/{aircraft_sn}/state Topic: thing/product/{aircraft_sn}/osd
{
"bid":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data":{
"43-0-0":{
"gimbal_pitch":0,
"gimbal_roll":0,
"gimbal_yaw":-103.7,
"measure_target_altitude":100,
"measure_target_distance":1256.800049,
"measure_target_error_state":1,
"measure_target_latitude":21.99849,
"measure_target_longitude":112.987933,
"payload_index":"43-0-0",
"version":1
},
"attitude_head":0,
"attitude_pitch":-0.5,
"attitude_roll":-0.1,
"battery":{
"batteries":[
{
"capacity_percent":90,
"firmware_version":"01.02.05.31",
"index":0,
"loop_times":131,
"sn":"xxxx",
"sub_type":0,
"temperature":23.1,
"type":0,
"voltage":49032
}
],
"capacity_percent":45,
"landing_power":5,
"remain_flight_time":0,
"return_home_power":10
},
"elevation":0,
"firmware_version":"04.00.0014",
"gear":1,
"height":100.020332,
"home_distance":0,
"horizontal_speed":0,
"latitude":22,
"longitude":113,
"mode_code":0,
"position_state":{
"gps_number":15,
"is_fixed":0,
"quality":5,
"rtk_number":0
},
"total_flight_distance":0,
"total_flight_time":0,
"vertical_speed":0,
"wind_direction":0,
"wind_speed":0
},
"tid":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp":1643268212187,
"gateway":"xxxxx"
}

Low-speed channel reporting

Topic: thing/product/{gateway_sn}/state

Direction: up

Direction: Upstream (Device -> Cloud)

Data:

ColumnNameTypeNotes
low_speed_dataLive Streaming Capabilitystruct
»device_idDevice Numberint
»snDrone SNString
»data_typeData Typeint
»payload_idPayload IDint
»dataLow-Speed Channel Datatext{"length":"10240"}
{
"bid": "6b3665e1-be0f-4c7c-86ee-e387edd668e7",
"data": {
"low_speed_data": {
"device_id": 315535819380,
"sn": "10001",
"data_type": 1,
"payload_id": 2,
"data": ""
}
},
"gateway": "TH7923350808",
"tid": "c441054b-88f7-4d88-ae66-2732f803310c",
"timestamp": 1724054078099
}