跳到主要内容

远程调试

Event

飞行器关机进度

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: drone_close

Data:

ColumnNameTypeconstraintDescription
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{"get_bid":"获取bid","check_ac_input_state":"检查市电供电状态","upgrading_prevent_reboot":"检查工作模式是否在升级","check_work_mode":"检查工作模式是否远程调试","check_task_state":"检查调试模式任务互斥状态","check_scram_state":"检查急停开关状态","close_drone":"关闭飞机"}

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:

ColumnNameTypeconstraintDescription
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: drone_open

Data:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误

Example:

{
"method": "drone_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: device_reboot

Data:

ColumnNameTypeconstraintDescription
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{"get_bid":"获取bid","check_ac_input_state":"检查市电供电状态","upgrading_prevent_reboot":"检查工作模式是否在升级","check_work_mode":"检查工作模式是否远程调试","check_task_state":"检查调试模式任务互斥状态","write_reboot_param_file":"写入重启标志位"}

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:

ColumnNameTypeconstraintDescription
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: putter_close

Data:

ColumnNameTypeconstraintDescription
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{"get_bid":"获取bid","check_work_mode":"检查工作模式是否远程调试","check_task_state":"检查调试模式任务互斥状态","check_scram_state":"检查急停开关状态","close_putter":"闭合推杆"}

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:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误

Example:

{
"method": "putter_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: putter_open

Data:

ColumnNameTypeconstraintDescription
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{"get_bid":"获取bid","check_work_mode":"检查工作模式是否远程调试","check_task_state":"检查调试模式任务互斥状态","check_scram_state":"检查急停开关状态","free_putter":"释放推杆"}

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:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误

Example:

{
"method": "putter_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: cover_close

Data:

ColumnNameTypeconstraintDescription
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{"get_bid":"获取bid","check_work_mode":"检查工作模式是否远程调试","check_task_state":"检查调试模式任务互斥状态","check_scram_state":"检查急停开关状态","turn_on_drone":"打开飞机","drone_paddle_forward":"飞机正慢转桨","close_cover":"关闭舱盖","drone_paddle_reverse":"飞机反慢转桨","drone_paddle_stop":"飞机停桨"}

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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
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{"get_bid":"获取bid","check_work_mode":"检查工作模式是否远程调试","check_task_state":"检查调试模式任务互斥状态","check_scram_state":"检查急停开关状态","open_cover":"打开舱盖"}

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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
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{"get_bid":"获取bid","check_work_mode":"检查工作模式是否远程调试","check_task_state":"检查调试模式任务互斥状态","check_scram_state":"检查急停开关状态","check_cover":"检查舱盖状态","start_charge":"开启充电"}

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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
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{"get_bid":"获取bid","check_work_mode":"检查工作模式是否远程调试","check_task_state":"检查调试模式任务互斥状态","stop_charge":"停止充电"}

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:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误

Example:

{
"method": "charge_close",
"tid": "6a7bfe89-c386-4043-b600-b518e10096cc",
"bid": "42a19f36-5117-4520-bd13-fd61d818d52e",
"timestamp": "1234567890123",
"data": {
"result": 0
}
}

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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
action操作enum_int{"0":"关闭","1":"开启"}

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: alarm_state_switch

Data:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
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:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误

一键标定

说明:此处不需要添加参数,可以自动连接到固定云端的RTK链路,进行标定。

Topic: thing/product/{gateway_sn}/services

Direction: down

Method: rtk_calibration

Data: null

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: rtk_calibration

Data:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误

推杆展开

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:

ColumnNameTypeconstraintDescription
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_close

Data: null

Topic: thing/product/{gateway_sn}/services_reply

Direction: up

Method: putter_close

Data:

ColumnNameTypeconstraintDescription
result返回码int非 0 代表错误
output输出struct
»status任务状态enum_string{"canceled":"取消或终止","failed":"失败","in_progress":"执行中","ok":"执行成功","paused":"暂停","rejected":"拒绝","sent":"已下发","timeout":"超时"}