跳到主要内容

Device Attributes

Device Attribute List

  • pushMode:

    • 0: The device pushes fixed frequency data, reporting at a frequency of 0.5Hz (Topic:thing/product/{device_sn}/osd)

    • 1: The device pushes status data, reporting when the status changes (Topic:thing/product/{device_sn}/state)

  • accessMode:

    • r: Read-only attribute

    • rw: Read and write attribute (Topic:thing/product/{gateway_sn}/property/set)

ColumnNameTypeconstraintDescriptionaccessModepushMode
live_statusCurrent overall live status of the gatewayarray{"size": -, "item_type": struct}r1
»video_idLive stream identifiertextIdentifier for a video stream, formatted as {sn}/{camera_index}/{video_index}. Where {sn} is the video source device serial number, {camera_index} is the camera index in the format {type-subtype-gimbalindex}, and {video_index} is the stream index for the video source.0
»video_qualityQuality of the live streamenum_int{"0":"Auto","1":"Smooth","2":"HD","3":"Ultra HD"}0
»statusLive statusenum_int{"0":"Not live","1":"Live"}0
live_capacityLive capacity of the gateway devicestructr1
»available_video_numberNumber of available streamsint0
»coexist_video_number_maxMaximum number of concurrent streamsint0
»device_listSelectable video source devicesarray{"size": -, "item_type": struct}Selectable video source devices (device level, e.g., aircraft)0
»»snVideo source device serial number (SN)text0
»»available_video_numberNumber of streams available for this deviceint0
»»coexist_video_number_maxMaximum number of concurrent streams for this deviceint0
»»camera_listList of cameras on this devicearray{"size": -, "item_type": struct}0
»»»camera_indexCamera indextextIn the format {type-subtype-gimbalindex}0
»»»available_video_numberNumber of streams available for this cameraint0
»»»coexist_video_number_maxMaximum number of concurrent streams for this cameraint0
»»»video_listList of available streams for this cameraarray{"size": -, "item_type": struct}0
»»»»video_indexStream index for this cameratext0
»»»»video_typeStream type for this cameratext0
longitudeCurrent longitudefloat{"max":"180","min":"-180","unit_name":"degrees / °"}r0
latitudeCurrent latitudefloat{"max":"180","min":"-180","unit_name":"degrees / °"}r0
heightAbsolute heightfloat{"unit_name":"meters / m"}Height relative to the ellipsoid surfacer0
capacity_percentRemaining battery capacityint{"max":"100","min":"0","step":"1"}r0
firmware_versionFirmware versiontext{"length":"64"}r1
wireless_linkVideo transmission linkstructr0
»dongle_numberNumber of dongles on the aircraftint0
»4g_link_state4G link connection statusenum_int{"0":"Not connected","1":"Connected"}0
»sdr_link_stateSDR link connection statusenum_int{"0":"Not connected","1":"Connected"}0
»link_workmodeTransmission link mode of the baseenum_int{"0":"SDR 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
»4g_uav_qualityUAV 4G signal qualityint{"max":"5","min":"0","step":"1"}{ "biz_code":"device_update_topo", "version":"1.0", "timestamp":146052438362, "data":{}}`json0
»4g_gnd_qualityGround 4G signal qualityint{"max":"5","min":"0","step":"1"}Signal quality between the ground end (e.g., remote controller, AUTEL Dock) and the 4G server0
»sdr_freq_bandSDR frequency bandfloat0
»4g_freq_band4G frequency bandfloat0

Device Attribute Push

Topic: thing/product/{device_sn}/state Status data: Device reports when the status changes

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

Direction: up

API Description: Payload attribute reporting refers to the attributes of the payload mounted on the aircraft, such as the attributes of the camera. A payload is uniquely determined by its payload index (payload index: product type - subtype - mounting position {type-subtype-gimbalIndex}), type, and subtype. The values can be found on the product support page, and the corresponding relationship of gimbalindex can be found in the wpml:payloadPositionIndex of the route file format. Currently, the protocols involved in payload attribute reporting include Device Attribute Push for gateway devices and Live Capability Update for live functions. For Device Attribute Push, the reported payload attributes include information about the camera itself, such as the angles of the gimbal pitch, yaw, and roll. For Live Capability Update, the reported payload attributes include more about the camera's capabilities during live streaming, such as the maximum number of concurrent streams. For the specific structure of the payload attributes, please refer to the example below. Note that the remote controller's device attributes are reported in a single message body, while the airport's device attribute push is reported in multiple pushes.

Data:

ColumnNameTypeconstraintDescription
dataMessage contenttext{}Content can refer to the device's device attributes
»{camera_index}type-subtype-gimbalIndextext{}gimbalIndex is the camera position, type, and subtype refer to the product support page

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"
}