Event
无人机开机进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: drone_open
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "drone_open"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: drone_open
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
无人机关机进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: drone_close
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} | |
| »»step_key | 当前步骤 | enum_string | {"download_firmware":"下载固件","upgrade_firmware":"更新固件"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 20,
"step_key": "check_work_mode"
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "drone_close"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: drone_close
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
机场重启进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: device_reboot
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} | |
| »»step_key | 当前步骤 | enum_string | {"download_firmware":"下载固件","upgrade_firmware":"更新固件"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 20,
"step_key": "write_reboot_param_file"
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "device_reboot"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: device_reboot
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
关闭舱盖进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: cover_close
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} | |
| »»step_key | 当前步骤 | enum_string | {"download_firmware":"下载固件","upgrade_firmware":"更新固件"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 58,
"step_key": "drone_paddle_reverse"
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "cover_close"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: cover_close
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
打开舱盖进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: cover_open
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} | |
| »»step_key | 当前步骤 | enum_string | {"download_firmware":"下载固件","upgrade_firmware":"更新固件"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 70,
"step_key": "open_cover"
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "cover_open"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: cover_open
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
打开充电进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: charge_open
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} | |
| »»step_key | 当前步骤 | enum_string | {"download_firmware":"下载固件","upgrade_firmware":"更新固件"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 45,
"step_key": "close_putter"
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "charge_open"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: charge_open
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
关闭充电进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: charge_close
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} | |
| »»step_key | 当前步骤 | enum_string | {"download_firmware":"下载固件","upgrade_firmware":"更新固件"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 80,
"step_key": "stop_charge"
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "charge_close"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: charge_close
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
无人机数据格式化进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: drone_format
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} | |
| »»step_key | 当前步骤 | enum_string | {"download_firmware":"下载固件","upgrade_firmware":"更新固件"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 80,
"step_key": "xxx"
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "drone_format"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: drone_format
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
机场数据格式化进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: device_format
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} | |
| »»step_key | 当前步骤 | enum_string | {"download_firmware":"下载固件","upgrade_firmware":"更新固件"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 80,
"step_key": "xxx"
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "device_format"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: device_format
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
推杆闭合进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: putter_close
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | ||
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} | |
| »»step_key | 当前步骤 | enum_string | {"download_firmware":"下载固件","upgrade_firmware":"更新固件"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 30,
"step_key": "check_work_mode"
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "putter_close"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: putter_close
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
推杆展开进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: putter_open
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | ||
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} | |
| »»step_key | 当前步骤 | enum_string | {"download_firmware":"下载固件","upgrade_firmware":"更新固件"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 80,
"step_key": "free_putter"
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "putter_open"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: putter_open
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
机巢备飞进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: dock_prepare_takeoff
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_int | {"1":"无人机开机中","2":"无人机换电中","3":"机巢开舱门推出停机坪中","4":"无人机开机失败","5":"无人机换电失败","6":"机巢开舱门推出停机坪失败"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 80
},
"status": "1"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "dock_prepare_takeoff"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: dock_prepare_takeoff
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
机巢备降进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: dock_prepare_recycler
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_int | {"1":"收停机坪关舱门中","2":"无人机关机中","3":"收停机坪关舱门失败","4":"无人机关机失败"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 80
},
"status": "1"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "dock_prepare_recycler"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: dock_prepare_recycler
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
RTK标定进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: rtk_calibration
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | ||
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} | |
| »»step_key | 当前步骤 | enum_string | {"rtk_login": "RTK登录中","rtk_login_success": "RTK登录成功", "rtk_positioning": "RTK定位中","rtk_positioning_success": "RTK定位成功","rtk_calibrating": "RTK标定中","rtk_calibration_success": "RTK标定成功"} | |
| »calibration_info | struct | |||
| »»calibration_lat | 标定纬度 | double | ||
| »»calibration_lng | 标定经度 | double | ||
| »»calibration_alt | 标定高度 | double |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 80,
"step_key": "rtk_login"
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "rtk_calibration"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: rtk_calibration
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
云台校准进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: gimbal_calibration
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} | |
| »»step_key | 当前步骤 | enum_string | {"gimbal_calibrating":"云台校准中"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 50,
"step_key": "gimbal_calibrating"
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "gimbal_calibration"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: gimbal_calibration
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
云台除雾进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: gimbal_dehaze
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} | |
| »»step_key | 当前步骤 | enum_string | {"gimbal_dehazing":"云台除雾中"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 50,
"step_key": "gimbal_dehazing"
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "gimbal_dehaze"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: gimbal_dehaze
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
一键换电进度上报
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: web_nest_replace_battery
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 50
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "web_nest_replace_battery"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: web_nest_replace_battery
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
空速计校准进度上报
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: airspeed_calibrate_progress
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 校准进度 | int | 0-100 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"status": "in_progress",
"progress":30
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "airspeed_calibrate_progress"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: airspeed_calibrate_progress
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
对频状态上报
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: dock_binding_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »progress | 进度 | struct | ||
| »»percent | 进度百分比 | int | {"max":"100","min":"0","step":"1","unit_name":"百分比 / %"} | |
| »»step_key | 当前步骤 | enum_string | {"status_pairing":"对频中",“status_suc":"对频成功","status_failed":"对频失败","status_finish":"对频结束","status_unknow":"未知"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 50,
"step_key": "status_pairing"
},
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "dock_binding_set"
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: dock_binding_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
Service
调试模式开启
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: debug_mode_open
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: debug_mode_open
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
调试模式关闭
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: debug_mode_close
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: debug_mode_close
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
机场空调工作模式切换
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: air_conditioner_mode_switch
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| action | 操作 | enum_int | {0:空调关闭,1:空调开启} |
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: air_conditioner_mode_switch
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
机场重启
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: device_reboot
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: device_reboot
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
机场重置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: reset_dock
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: reset_dock
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
无人机开机
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: drone_open
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: drone_open
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
无人机关机
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: drone_close
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: drone_close
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
机场数据格式化
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: device_format
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| type | 存储类型 | int | 1:mmc, 0:sd | 机载闪存和sd卡,根据传入的类型进行格式化 |
Example:*
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"type":1
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "device_format"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: device_format
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
无人机数据格式化
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: drone_format
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| type | 存储类型 | int | 1:mmc, 0:sd | 机载闪存和sd卡,根据传入的类型进行格式化 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"type":1
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "drone_format"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: drone_format
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
打开舱盖
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: cover_open
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: cover_open
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
关闭舱盖
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: cover_close
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: cover_close
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
打开充电
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: charge_open
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: charge_open
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
关闭充电
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: charge_close
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: charge_close
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
推杆展开
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: putter_open
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: putter_open
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | ||
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
推杆闭合
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: putter_close
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: putter_close
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | ||
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
机巢备飞
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: dock_prepare_takeoff
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: dock_prepare_takeoff
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | ||
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
机巢备降
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: dock_prepare_recycler
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: dock_prepare_recycler
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | ||
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
打开补光灯
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: supplement_light_open
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: supplement_light_open
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
关闭补光灯
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: supplement_light_close
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: supplement_light_close
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
补光灯角度模式设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: supplement_light_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| »mode | 云台角度模式 | enum | 0:自动 1:手动 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"mode":0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "supplement_light_mode_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: supplement_light_mode_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "supplement_light_mode_set"
}
补光灯手动模式FOV设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: supplement_light_fov_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| »fov | 补光灯fov | int | {min:12~max:545} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"fov":100
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "supplement_light_fov_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: supplement_light_fov_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"status": "ok"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "supplement_light_fov_set"
}
补光灯手动模式亮度设置
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: supplement_light_light_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| »light | 补光灯亮度 | int | {min:0~max:255} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"light":100
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "supplement_light_light_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: supplement_light_light_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"status": "ok"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "supplement_light_light_set"
}
设置航向角
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: web_nest_yaw_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| »nest_yaw | 机巢航向角 | int | -180~180 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"nest_yaw":97
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "web_nest_yaw_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: web_nest_yaw_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"status": "in_progress"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "web_nest_yaw_set"
}
获取航向角
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: web_nest_yaw_get
**Data:**null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: web_nest_yaw_get
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »nest_yaw | 机巢航向角 | int | -180~180 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"nest_yaw": 97
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "web_nest_yaw_get"
}
RTK标定
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: rtk_calibration
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| action | 操作 | enum_int | {"0":"手动标定","1":"网络标定"} | |
| manual_params | 手动标定参数 | struct | action为0时必须有 | |
| latitude | 标定纬度 | double | ||
| longitude | 标定经度 | double | ||
| altitude | 标定海拔高 | double | ||
| network_params | 网络标定参数 | stuct | action为1时必须有 | |
| domain_name | rtk账号域名 | text | ||
| port | rtk账号端口 | int | ||
| mount_point | rtk账号挂载点 | text | ||
| username | rtk账号用户名 | text | ||
| password | rtk账号密码 | text |
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: rtk_calibration
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"status": "canceled"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "rtk_calibration"
}
获取RTK数据
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: web_nest_rtk_get
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: web_nest_rtk_get
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »rtk_lat | rtk纬度 | Double | -90~90 | |
| »rtk_lng | rtk经度 | Double | -180~180 | |
| »rtk_alt | rtk高度 | Double |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"rtk_lat":23.222,
"rtk_lng":114.2342,
"rtk_alt":100
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "web_nest_rtk_get"
}
云台校准
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: gimbal_calibration
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: gimbal_calibration
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"status": "canceled"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "gimbal_calibration"
}
云台除雾
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: gimbal_dehaze
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: gimbal_dehaze
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"status": "canceled"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "gimbal_dehaze"
}
一键换电
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: web_nest_replace_battery
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: web_nest_replace_battery
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"status": "canceled"
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "web_nest_replace_battery"
}
配置充电槽充电阈值
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: web_nest_charging_threshold_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| configType | 参数类型 | int | {1:设置电池的下限,2:设置电池的上限 ,4:一次性冲到100%} | |
| minPercent | 最小百分比 | Int | 20%表示为20 | |
| maxPercent | 最大百分比 | Int | 20%表示为20 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"configType":1,
"minPercent":30,
"maxPercent":80
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "web_nest_charging_threshold_set"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: web_nest_charging_threshold_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »failMinList | 失败的槽位 下限 | int[] | {"length":6} | |
| »failMaxList | 失败的槽位 上限 | int[] | {"length":6} | |
| »successMinList | 成功的槽位 下制 | int[] | {"length":6} | |
| »successMaxList | 成功的槽位 上限 | int[] | {"length":6} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"status": "canceled",
"failMinList":[1,2,3],
"failMaxList":[2,3],
"successMinList":[4,5,6],
"successMaxList":[4,5,6]
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "web_nest_charging_threshold_set"
}
获取充电槽充电阈值
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: web_nest_charging_threshold_get
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| configType | 参数类型 | int | 1:设置电池的下限,2:设置电池的上限 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"configType":1
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "web_nest_charging_threshold_get"
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: web_nest_charging_threshold_get
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} | |
| »configType | 配置类型 | int | 1:电池充电下限 ,2:电池充电上限 | |
| »thresholdValue | 电量阈值 | int[] | {"length":6} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"status": "canceled",
"configType":1,
"thresholdValue":[20,30,50,60,60,80]
},
"result": 0
},
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655,
"method": "web_nest_charging_threshold_get"
}
开始空速计校准
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: web_airspeed_calibrate
**Data:**null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: web_airspeed_calibrate
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
机巢对频
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: dock_binding_set
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: dock_binding_set
Data:
| Column | Name | Type | constraint | Description |
|---|---|---|---|---|
| result | 返回码 | int | 非 0 代表错误 | |
| output | 输出 | struct | ||
| »status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |