指令飞行
Event
负载控制—单拍
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_photo_take
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] |
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:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_photo_take"
}
负载控制—开始录像
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_recording_start
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] |
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:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_recording_start"
}
负载控制—停止录像
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_recording_stop
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] |
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:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_recording_stop"
}
负载控制—画面拖动控制
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_screen_drag
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| locked | 机头和云台的相对关系是否锁定 | bool | {"false":"仅云台转,机身不转","true":"锁定机头,云台和机身一起转"} | |
| pitch_speed | 云台 pitch 速度 | double | {"unit_name":"度每秒 / deg/s"} | 云台 pitch 速度,仅支持云台转 |
| yaw_speed | 云台 yaw 速度 | double | {"unit_name":"度每秒 / deg/s"} | 云台 yaw 速度,仅支持锁机头 |
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:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_screen_drag"
}
负载控制—变焦
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_focal_length_set
Data:
| Column | Name | Type | constraint | Description | |
|---|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | 小于1HZ频率下发 | |
| camera_type | 相机类型 | enum_string | {"ir":"红外","wide":"广角","zoom":"变焦"} | 相机类型枚举 | |
| zoom_factor | 变焦倍数 | double | {"max":200,"min":2} | 变焦倍数,可见光是2-200,红外是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:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_focal_length_set"
}
负载控制—变焦拖动控制
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_focal_length_drag
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"ir":"红外","wide":"广角","zoom":"变焦"} | 相机类型枚举 |
| zoom_type | 变焦类型 | enum_int | {"0":缩小,"1":放大,“2”:"停止变焦"} | 持续下发的指令,指令序列要以2结尾 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"payload_index": "68-0-0",
"zoom_type": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_focal_length_drag"
}
负载控制—重置云台
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: gimbal_reset
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 负载编号 | text | 负载编号,相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| reset_mode | 重置模式类型 | enum_int | {"0":"回中","1":"向下","2":"偏航回中","3":"向下45度","4":"俯仰回中} |
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:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "gimbal_reset"
}
负载控制—重置相机设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_reset
Data:
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_reset
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_reset"
}
负载控制—相机存储位置设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: web_set_storage_type
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| type | 储存类型 | enum_string | {sd:sd卡,mmc:机载闪存} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"type": "sd"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "web_set_storage_type"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: web_set_storage_type
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "web_set_storage_type"
}
负载控制—照片存储设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: photo_storage_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| photo_storage_settings | 照片存储设置集合 | array | {"size": -, "item_type": enum_string} | 拍照存储类型{current, wide, zoom, ir},可多选 |
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:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "photo_storage_set"
}
负载控制—视频存储设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: video_storage_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| video_storage_settings | 视频存储设置集合 | array | {"size": -, "item_type": enum_string} | 视频存储类型{current, wide, zoom, ir},可多选 |
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:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "video_storage_set"
}
负载控制—双击成为 AIM
双击 aim 功能为在相机镜头的视野范围内,双击镜头中的目标点,该目标点将成为镜头视野的中心
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_aim
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"ir":"红外","wide":"广角","zoom":"变焦"} | |
| locked | 机头和云台的相对关系是否锁定 | bool | {"false":"仅云台转,机身不转","true":"锁定机头,云台和机身一起转"} | 固定翼不支持锁定机头,只生效false |
| x | 目标坐标 x | double | {"max":1,"min":0} | 目标坐标 x,以镜头的左上角为坐标中心点,水平方向为 x |
| y | 目标坐标 y | double | {"max":1,"min":0} | 目标坐标 y,以镜头的左上角为坐标中心点,竖直方向为 y |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"locked": true,
"payload_index": "39-0-7",
"x": 0.5,
"y": 0.5
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_aim"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_aim
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_aim"
}
负载控制—红外测温模式设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: ir_metering_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| mode | 测温模式 | enum_int | {"0":"关闭测温","1":"点测温","2":"区域测温"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"mode": 1,
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "ir_metering_mode_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: ir_metering_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "ir_metering_mode_set"
}
负载控制—红外测温点设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: ir_metering_point_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| x | 测温点坐标 x | double | {"max":1,"min":0} | 以镜头的左上角为坐标中心点,水平方向为 x |
| y | 测温点坐标 y | double | {"max":1,"min":0} | 以镜头的左上角为坐标中心点,竖直方向为 y |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"payload_index": "39-0-7",
"x": 0.5,
"y": 0.5
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "ir_metering_point_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: ir_metering_point_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "ir_metering_point_set"
}
负载控制—红外测温区域设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: ir_metering_area_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| x | 测温区域左上角点坐标 x | double | {"max":1,"min":0} | 以镜头的左上角为坐标中心点,水平方向为 x |
| y | 测温区域左上角点坐标 y | double | {"max":1,"min":0} | 以镜头的左上角为坐标中心点,竖直方向为 y |
| width | 测温区域宽度 | double | {"max":1,"min":0} | |
| height | 测温区域高度 | double | {"max":1,"min":0} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"height": 0.5,
"payload_index": "39-0-7",
"width": 0.5,
"x": 0.5,
"y": 0.5
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "ir_metering_area_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: ir_metering_area_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "ir_metering_area_set"
}
负载控制—相机对焦模式设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_focus_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"wide":"广角","zoom":"变焦"} | 相机类型枚举 |
| focus_mode | 对焦模式 | enum_int | {"1":"AF","2":"MF"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"focus_mode": 1,
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_focus_mode_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_focus_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_focus_mode_set"
}
负载控制—相机对焦值设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_focus_value_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"wide":"广角","zoom":"变焦"} | 相机类型枚举 |
| focus_value | 对焦值 | int | 对焦值,范围参见飞行器物模型属性 zoom_max_focus_value 和 zoom_min_focus_value |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"focus_value": 5,
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_focus_value_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_focus_value_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_focus_value_set"
}
负载控制—相机感光度模式设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_iso_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"wide":"广角","zoom":"变焦"} | 相机类型枚举 |
| iso_mode | 对焦模式 | enum_int | {0:自动,1:手动} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"iso_mode": 1,
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_iso_mode_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_iso_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_iso_mode_set"
}
负载控制—相机感光度值设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_iso_value_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"wide":"广角","zoom":"变焦"} | 相机类型枚举 |
| iso_value | 感光度值 | int | 感光度值,范围参见飞行器物模型属性 zoom_iso 和 wide_iso |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"iso_value": 5,
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_iso_value_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_iso_value_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_iso_value_set"
}
负载控制—相机快门模式设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_shutter_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"wide":"广角","zoom":"变焦"} | 相机类型枚举 |
| shutter_mode | 快门模式 | enum_int | {"0":"自动","1":"手动"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"shutter_mode": 1,
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_shutter_mode_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_shutter_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_shutter_mode_set"
}
负载控制—相机快门速度值设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_shutter_value_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"wide":"广角","zoom":"变焦"} | 相机类型枚举 |
| shutter_value | 快门速度值 | string | 快门速度值,范围参见飞行器物模型属性 zoom_shutter_speed和 wide_shutter_speed |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"shutter_value": "1/5",
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_shutter_value_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_shutter_value_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_shutter_value_set"
}
负载控制—相机曝光补偿设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_exposure_compensation_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"wide":"广角","zoom":"变焦"} | |
| exposure_compensation_value | 曝光补偿值 | int | 曝光补偿值,范围参见飞行器物模型属性 max_exposure_compensation和 min_exposure_compensation |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"exposure_compensation_value": 5,
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_exposure_compensation_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_exposure_compensation_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_exposure_compensation_set"
}
负载控制—相机白平衡模式设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_white_balance_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"wide":"广角","zoom":"变焦"} | 相机类型枚举 |
| white_balance_mode | 白平衡模式 | enum_int | {0:自动,1:日光,2:阴天,3:白炽灯,4:荧光灯,5:自定义} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"white_balance_mode": 1,
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_white_balance_mode_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_white_balance_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_white_balance_mode_set"
}
负载控制—相机白平衡色温值设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_white_balance_value_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"wide":"广角","zoom":"变焦"} | 相机类型枚举 |
| white_balance_value | 白平衡色温值 | int | 白平衡色温值,范围参见飞行器物模型属性 zoom_white_balance_min_value和 zoom_white_balance_max_value |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"white_balance_value": 5,
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_white_balance_value_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_white_balance_value_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_white_balance_value_set"
}
负载控制—相机电子去雾模式设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_defog_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| defog_mode | 电子去雾模式 | enum_int | {0:关闭 , 1:开启弱档 , 2:开启中档 , 3:开启强档} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"defog_mode": 0,
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_defog_mode_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_defog_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_defog_mode_set"
}
负载控制—相机亮度设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_brightness_value_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| brightness_value | 相机亮度温值 | int | 范围 百分比值,取值0~100 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"brightness_value": 5,
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_brightness_value_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_brightness_value_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_brightness_value_set"
}
负载控制—相机超感光模式设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_ultra_pixel_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| ultra_pixel_mode | 超感光模式 | enum_int | {0:关闭,1:开启} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"ultra_pixel_mode": 0,
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_ultra_pixel_mode_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_ultra_pixel_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_ultra_pixel_mode_set"
}
负载控制—相机照片尺寸设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_photo_size_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"wide":"广角","zoom":"变焦","ir":红外,"NightVision": 夜视} | 相机类型枚举 |
| photo_size | 照片尺寸 | enum_string | {"3000x4000":3000x4000} | 范围参考对应设备型号的能力集 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"photo_size": "640x512",
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_photo_size_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_photo_size_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_photo_size_set"
}
负载控制—相机照片格式设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_photo_format_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"wide":"广角","zoom":"变焦","ir":红外,"NightVision": 夜视} | 相机类型枚举 |
| photo_format | 照片格式 | enum_int | {0:JPG} | 范围参考对应设备型号的能力集 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"photo_format": 0,
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_photo_format_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_photo_format_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_photo_format_set"
}
负载控制—相机视频分辨率设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_video_resolution_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"wide":"广角","zoom":"变焦","ir":红外,"NightVision": 夜视} | 相机类型枚举 |
| video_resolution | 视频分辨率 | enum_string | {"640x512":640x512} | 范围参考对应设备型号的能力集 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"video_resolution": "640x512",
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_video_resolution_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_video_resolution_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_video_resolution_set"
}
负载控制—相机视频帧率设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: camera_video_fps_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| payload_index | 相机枚举 | text | 相机枚举值。非标准的 device_mode_key,格式为 {type-subtype-gimbalindex},可以参考[产品支持] | |
| camera_type | 相机类型 | enum_string | {"wide":"广角","zoom":"变焦","ir":红外,"NightVision": 夜视} | 相机类型枚举 |
| video_fps | 视频帧率 | int | 范围参考对应设备型号的能力集 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"camera_type": "zoom",
"video_fps": 5,
"payload_index": "39-0-7"
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_video_fps_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: camera_video_fps_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "camera_video_fps_set"
}