basic_server 通信协议
| Type | Command | 说明 |
|---|---|---|
0x0030 0064 | 0x0000 0005 | 向机器人发送心跳 |
JSON 示例:
{ "PatrolDevice": { "Type": 0x00300064, "Command": 0x00000005, "Time": "2026-01-01 00:00:00", "Items": {} }}异常状态上报
Section titled “异常状态上报”| Type | Command | 说明 |
|---|---|---|
0x0030 007f | 0x00f0 0000 | 获取机器人异常状态信息 |
返回 ErrorList 数组,每个错误包含:
- Code - 错误码
- Name - 错误名称
- Resources - 相关资源
- Severities - 严重等级
- Source - 错误来源
| ErrorCode | ErrorMessage | 含义 |
|---|---|---|
0x0000 | Success | 成功 |
0xe001 | Unsupported data format | 数据格式不支持 |
0xe002 | Data parsing failed | 数据解析失败 |
0xe003 | Unsupported protocol type | 不支持的协议 |
0xe004 | Missing necessary fields | 缺少必要字段 |
0xe005 | Mismatched data type | 字段类型不匹配 |
0xe006 | Mismatched request client | 请求客户端不匹配 |
0xe007 | No operation permission | 无操作权限 |
0xe008 | Not allowed operation | 不允许的操作 |
0xe009 | Operation failure | 操作失败 |
0xe00a | Unsupported function | 不支持的功能 |
0xe00b | Internal error | 内部错误 |