远程调试
Event
强制关舱盖进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: cover_force_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":"百分比 / %"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 6
},
"status": "in_progress"
},
"result": 0
},
"method": "cover_force_close",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655
}
飞行器关机进度
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 代表错误 |
Example:
{
"method": "drone_close",
"tid": "6a7bfe89-c386-4043-b600-b518e10096cc",
"bid": "42a19f36-5117-4520-bd13-fd61d818d52e",
"timestamp": "1234567890123",
"data": {
"result": 0
}
}
机场重启进度
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 代表错误 |
Example:
{
"method": "device_reboot",
"tid": "6a7bfe89-c386-4043-b600-b518e10096cc",
"bid": "42a19f36-5117-4520-bd13-fd61d818d52e",
"timestamp": "1234567890123",
"data": {
"result": 0
}
}
关闭舱盖进度
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 代表错误 |
Example:
{
"method": "cover_close",
"tid": "6a7bfe89-c386-4043-b600-b518e10096cc",
"bid": "42a19f36-5117-4520-bd13-fd61d818d52e",
"timestamp": "1234567890123",
"data": {
"result": 0
}
}
打开舱盖进度
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 代表错误 |
Example:
{
"method": "cover_open",
"tid": "6a7bfe89-c386-4043-b600-b518e10096cc",
"bid": "42a19f36-5117-4520-bd13-fd61d818d52e",
"timestamp": "1234567890123",
"data": {
"result": 0
}
}
打开充电进度
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 代表错误 |
Example:
{
"method": "charge_open",
"tid": "6a7bfe89-c386-4043-b600-b518e10096cc",
"bid": "42a19f36-5117-4520-bd13-fd61d818d52e",
"timestamp": "1234567890123",
"data": {
"result": 0
}
}
关闭充电进度
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 代表错误 |
Example:
{
"method": "charge_close",
"tid": "6a7bfe89-c386-4043-b600-b518e10096cc",
"bid": "42a19f36-5117-4520-bd13-fd61d818d52e",
"timestamp": "1234567890123",
"data": {
"result": 0
}
}
飞行器数据格式化进度
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 代表错误 |
Example:
{
"method": "drone_format",
"tid": "6a7bfe89-c386-4043-b600-b518e10096cc",
"bid": "42a19f36-5117-4520-bd13-fd61d818d52e",
"timestamp": "1234567890123",
"data": {
"result": 0
}
}
机场数据格式化进度
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 代表错误 |
Example:
{
"method": "device_format",
"tid": "6a7bfe89-c386-4043-b600-b518e10096cc",
"bid": "42a19f36-5117-4520-bd13-fd61d818d52e",
"timestamp": "1234567890123",
"data": {
"result": 0
}
}
eSIM 激活进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: esim_activate
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":"百分比 / %"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 0
},
"status": "in_progress"
},
"result": 0
},
"gateway": "dock_sn",
"method": "esim_activate",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: esim_activate
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
result | 返回码 | int | 非 0 代表错误 |
Example:
{
"method": "esim_activate",
"tid": "6a7bfe89-c386-4043-b600-b518e10096cc",
"bid": "42a19f36-5117-4520-bd13-fd61d818d52e",
"timestamp": "1234567890123",
"data": {
"result": 0
}
}
eSIM 的运营商切换进度
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: esim_operator_switch
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":"百分比 / %"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"data": {
"output": {
"progress": {
"percent": 0
},
"status": "in_progress"
},
"result": 0
},
"gateway": "dock_sn",
"method": "esim_operator_switch",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"timestamp": 1654070968655
}
Topic: thing/product/{gateway_sn}/events_reply
Direction: down
Method: esim_operator_switch
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
result | 返回码 | int | 非 0 代表错误 |
Example:
{
"method": "esim_operator_switch",
"tid": "6a7bfe89-c386-4043-b600-b518e10096cc",
"bid": "42a19f36-5117-4520-bd13-fd61d818d52e",
"timestamp": "1234567890123",
"data": {
"result": 0
}
}
Service
强制关舱盖
机场“设备属性”推送的 drone_in_dock
字段值为 0 时,且通过机场摄像头观看确认飞行器不在舱内后,可调用该指令强制关闭舱盖。否则可能导致桨叶被夹。
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: cover_force_close
Data: null
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: cover_force_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: 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: 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: battery_maintenance_switch
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
action | 操作 | enum_int | {"0":"关闭","1":"开启"} |
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: battery_maintenance_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: air_conditioner_mode_switch
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
action | 操作 | enum_int | {"0":"使机场空调进入空闲模式(关闭制冷、制热或除湿)","1":"使机场空调进入制冷模式","2":"使机场空调进入制热模式","3":"使机场空调进入除湿模式(除湿包含制冷除湿及制热除湿,由设备端根据自身所处情况自动化处理,无需用户介入)"} |
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: alarm_state_switch
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
action | 操作 | enum_int | {"0":"关闭","1":"开启"} |
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: alarm_state_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: battery_store_mode_switch
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
action | 操作 | enum_int | {"1":"计划模式","2":"待命模式"} |
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: battery_store_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: 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: null
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: null
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: sdr_workmode_switch
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
link_workmode | 图传模式 | enum_int | {"0":"仅使用 SDR","1":"4G 增强模式"} | 在 4G 增强模式下,SDR 与 4G 会同时使用 |
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: sdr_workmode_switch
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
result | 返回码 | int | 非 0 代表错误 |
eSIM 激活
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: esim_activate
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
imei | dongle imei | text | 标识要操作的 Dongle | |
device_type | 目标设备类型 | enum_string | {"dock":"设置机场 Dongle","drone":"设置飞行器 Dongle"} | 标识要操作的目标设备 |
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: esim_activate
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
result | 返回码 | int | ||
output | 输出 | struct | ||
»status | 任务状态 | enum_string | {"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"} |
eSIM 和 SIM 切换
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: sim_slot_switch
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
imei | dongle imei | text | 标识要操作的 Dongle | |
device_type | 目标设备类型 | enum_string | {"dock":"设置机场 Dongle","drone":"设置飞行器 Dongle"} | 标识要操作的目标设备 |
sim_slot | 切换的目标卡槽 | enum_int | {"1":"实体 SIM 卡","2":"eSIM"} | 在使用实体 SIM 卡和使用 eSIM 之间切换 |
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: sim_slot_switch
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
result | 返回码 | int |
eSIM 的运营商切换
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: esim_operator_switch
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
imei | dongle imei | text | 标识要操作的 Dongle | |
device_type | 目标设备类型 | enum_string | {"dock":"设置机场 Dongle","drone":"设置飞行器 Dongle"} | 标识要操作的目标设备 |
telecom_operator | 切换的目标运营商 | enum_int | {"1":"移动","2":"联通","3":"电信"} |
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: esim_operator_switch
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
result | 返回码 | int |