跳到主要内容

M4T/M4N设备属性

设备属性列表

  • pushMode:

    • 0:设备推送定频数据,设备将以 0.5HZ 的频率定时上报 (Topic:thing/product/{device_sn}/osd)
    • 1:设备推送状态数据,设备在状态变化时上报(Topic:thing/product/{device_sn}/state)
  • accessMode:

    • r:属性只读
    • rw:属性可读写 (Topic:thing/product/{gateway_sn}/property/set)
ColumnNameTypeconstraintDescriptionaccessModepushMode
payloads负载状态array{"size": -, "item_type": struct}r1
»payload_index负载编号text负载索引,格式为 {type-subtype-gimbalindex}r1
»sn负载序列号(SN)textr1
mode_code无人机状态enum_int{"0":"待机","1":"起飞准备","2":"起飞准备完毕","3":"手动飞行","4":"自动起飞","5":"航线飞行","6":"全景拍照","7":"智能跟随","8":"ADS-B 躲避", "9":"自动返航","10":"自动降落","11":"强制降落","12":"三桨叶降落","13":"升级中","14":"未连接","15":"APAS","16":"虚拟摇杆状态", "17":"矩形","18":"多边形","19":"倾斜摄影","20":"保留字段","21":"精准复拍","22":"延时摄影","23":"环绕","25":"螺旋","26":"超清", "27":"智能图传打点模式","28":"红外光跟踪","29":"智能任务航带飞行","30":"智能任务多边形仿地","31":"智能任务单体环绕","32":"全景智能检测","33":"安防智能检测", "34":"gps逃逸模式","35":"异常模式状态,当前只是planner进程挂掉,会切换至此模","36":"蜂群编队模式","37":"快速任务", "38":"建模环综模式","39":"kml航线模式"}r0
distance_limit_status无人机限远状态structrw0
»state是否开启限远enum_int{"0":"未设置","1":"已设置"}0
»distance_limit限远距离int{"max":"8000","min":"15","step":"1","unit_name":"米 / m"}0
»is_near_distance_limit是否接近设定的限制距离enum_int{"0":"未达到设定的限制距离","1":"接近设定的限制距离"}r0
cameras无人机相机信息array{"size": -, "item_type": struct}r0
»[array_item]Elements in arraystruct
»»payload_index负载编号text68-0-0负载编号,相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考产品支持页面r0
»»camera_mode相机模式enum_int{"0":"拍照","1":"录像"}相机模式r0
»»zoom_factor变焦倍数float{"max":160,"min":1}r0
»»ir_zoom_factor红外变焦倍数float{"max":16,"min":1}r
»»photoStorageSettings拍照能力集String in array{"zoom":变焦, "wide":广角, "ir":红外,"NightVision": 夜视 }
»»videoStorageSettings录像能力集String in array{"zoom":变焦, "wide":广角, "ir":红外,"NightVision": 夜视 }
horizontal_speed水平速度float{"unit_name":"米每秒 / m/s"}r0
vertical_speed垂直速度float{"unit_name":"米每秒 / m/s"}r0
longitude当前位置经度floatr0
latitude当前位置纬度floatr0
height绝对高度float相对地球椭球面高度, 计算:相对起飞点的高度 + 起飞点的椭球高r0
elevation相对起飞点高度floatr0
attitude_pitch俯仰轴角度floatr0
attitude_roll横滚轴角度floatr0
attitude_head偏航轴角度int偏航轴角度与真北角(经线)的角度,0到6点钟方向为正值,6到12点钟方向为负值r0
home_distance距离 Home 点的距离floatr0
battery无人机电池信息structr0
»capacity_percent电池的总剩余电量int{"max":100,"min":0}r0
»remain_flight_time剩余飞行时长int单位sr0
position_state搜星状态structr0
»coordinate_sysrtk坐标系统Int{0:WGS84, 1:RTK移动站}r0
»fix_stafix状态Int{0:未fix, 1:fix}
»is_fixed是否收敛enum_int{"0":"未开始","1":"收敛中","2":"收敛成功","3":"收敛失败"}r0
»quality搜星档位enum_int{"1":"1档","2":"2档","3":"3档","4":"4档","5":"5档"}r0
»rtk_inposrtk模块是否在位置int{0:没有在位置, 1: 在位置}r0
»rtk_used是否使用rtk定位Int{0:没有使用, 1: 在使用}r0
»rtk_hgtrtk高度Doubler0
»rtk_latrtk纬度Doubler0
»rtk_lonrtk经度Doubler0
»gps_numberGPS 搜星数量intr0
»rtk_numberRTK 搜星数量intr0
{type-subtype-gimbalindex}负载编号struct{{type-subtype-gimbalindex}_cBGPzxWKRQ}r0
»gimbal_pitch云台俯仰轴角度double{"max":"180","min":"-180","step":0.1,"unit_name":"度 / °"}r0
»gimbal_roll云台横滚轴角度double{"max":"180","min":"-180","step":0.1,"unit_name":"度 / °"}r0
»gimbal_yaw云台偏航轴角度double{"max":"180","min":"-180","step":0.1,"unit_name":"度 / °"}r0
»payload_index负载索引,格式为 {type-subtype-gimbalindex}textr1
»zoom_factor变焦倍数doubler0
activation_time无人机激活时间(unix 时间戳)int{"unit_name":"秒 / s"}r0
night_lights_state无人机夜航灯状态enum_int{"0":"关闭","1":"打开"}rw0
height_limit无人机限高int{"max":"1500","min":"20","step":"1","unit_name":"米 / m"}rw0
is_near_height_limit是否接近设定的限制高度enum_int{"0":"未达到设定的限制高度","1":"接近设定的限制高度"}r0
is_near_area_limit是否接近限飞区enum_int{"0":"未达到限飞区","1":"接近限飞区"}r0
obstacle_avoidance无人机避障状态structrw0
»horizon水平避障状态enum_int{"0":"关闭","1":"开启"}注意:目前无人机是统一避障,没有区分0
»upside上视避障状态enum_int{"0":"关闭","1":"开启"}注意:目前无人机是统一避障,没有区分0
»downside下视避障状态enum_int{"0":"关闭","1":"开启"}注意:目前无人机是统一避障,没有区分0
total_flight_time累计飞行时长Int单位sr0
total_armed_time本次打桨累计飞行时长Int单位sr0
alarm_status告警状态Int{0:未告警 1 有告警}0
pos_typertk状态Int{0:无解, 1:位置由FIX POSITION命令指定, 2:不支持 8:多普勒信息导出,16:单点定位 17:伪距差分解 18:SBAS定位 32:L1浮点解 33:消电离层浮点解 34:窄巷浮点解 48:L1固定解 49:宽巷固定解 50:窄巷固定节 52:纯惯导定位解 53:惯导与单点组合解 54: 惯导与伪距差分定位组合解 55:惯导与载波相位差分浮点解组合解 56:惯导与载波相位差分固定解组合解}0
wireless_link链路状态structr0
»fourth_generation_uavQuality4g信号强度Intr0
payload_Index云台负载structr0
»gimbal_pitch云台俯仰角double0
»gimbal_roll云台横滚角double0
»gimbal_yaw云台偏航角double0
»payload_index负载IDtext0
»zoom_factor缩放倍数Int0
lte_card_is_detected是否有插sim卡int{0:没有插卡, 1: 有插卡}{0:没有插卡, 1: 有插卡}
lte_signal4g信号int{0,100}
lte_status4g卡状态int{0:不支持lte模块,1:关闭状态 2:未连接状态 3: 已连接,但网络不可达, 4:已连接}{0:不支持lte模块,1:关闭状态 2:未连接状态 3: 已连接,但网络不可达, 4:已连接}
remote_id_statusRemote id 工作状态int{0:关闭1:开启2:自检异常}
control_source当前控制源text
commander_mode_lost_action指点飞行失控动作enum_int{"0":"继续执行指点飞行任务","1":"退出指点飞行任务,执行普通失控行为"}
ai_enable_funcai功能打开状态int{0:关闭, 1:打开}
country国家代码text
gear_level档位等级int{0:未知,1:平稳档,2:普通档,3:运动档4:低速档}
gimbal_angle_follow_toggle云台角度跟随开关int{0:关闭, 1:打开}
hae椭球高double
infrared_palette_mode红外调色板模式int{0:白热, 1:冷热, 2:彩虹, 3:增强彩虹,4:铁红,5:熔岩,6:极光,7:灼热, 8:渐变,9:热探测, (高德红外)30:白热,31:黑热,32:彩虹1,33:彩虹2,34:铁红,35:熔岩,36:北极,38:医疗,39:描红}rw
measure_target_error_state激光测距状态int{0:关闭, 1:打开}
measure_target_distance激光测距距离double单位:米(measure_target_error_state == 1时有数据)
measure_target_longitude激光测距目标经度double(measure_target_error_state == 1时有数据)
measure_target_latitude激光测距目标纬度double(measure_target_error_state == 1时有数据)
measure_target_altitude激光测距目标高度double(measure_target_error_state == 1时有数据)
main_mode飞机飞行模式int{0:未知, 1:姿态模式, 2:GNNS模式,3:视觉定位}
ned_altitudened坐标高度double
ned_latitudened坐标纬度double
ned_longitudened坐标经度double
ntrip_statusntrip模块状态int{0:不支持,1:未连接,2:已连接,3:账号不合法,4:没有差分数据,5,ntrip已关闭}
infrared_camera_temp_data红外相机温度数据struct
»average_temp平均温度float
»camera_id相机IDtext
»center_temp中心温度float
»cold_temp最冷温度float
»cold_x最冷点X坐标double
»cold_y最冷点Y坐标double
»hot_temp最热温度float
»hot_x最热点X坐标double
»hot_y最热点Y坐标double
»touch_temp触摸点温度float
»zoom_value变焦值int
storage存储信息struct
»storage_type存储类型int{0:SD卡, 1:MMC}
»total总容量int
»used已使用容量int

负载上报

Topic: thing/product/{device_sn}/state

Direction: up

方向:上行(设备->云)

Data:

ColumnNameType备注
payload_list负载列表array
»payload_id负载idint
»payload_type负载类型int
»is_online在线状态int
»last_active_time上次激活时间Long
»payload_position负载位置int
»psdklib_versionpsdk版本String
»payload_version负载版本String

示例:

{
"bid": "6b3665e1-be0f-4c7c-86ee-e387edd668e7",
"data":{
"payloads": [{
"last_active_time": 315535819380,
"payload_id": 10001,
"payload_index": "10306-0-0",
"payload_position": 2,
"payload_version": "",
"psdklib_version": "",
"is_online": 1
}]
},
"gateway": "TH7923350808",
"tid": "c441054b-88f7-4d88-ae66-2732f803310c",
"timestamp": 1724054078099
}