跳转到内容

basic_server 通信协议

TypeCommand说明
0x0030 00640x0000 0005向机器人发送心跳

JSON 示例:

{
"PatrolDevice": {
"Type": 0x00300064,
"Command": 0x00000005,
"Time": "2026-01-01 00:00:00",
"Items": {}
}
}
TypeCommand说明
0x0030 007f0x00f0 0000获取机器人异常状态信息

返回 ErrorList 数组,每个错误包含:

  • Code - 错误码
  • Name - 错误名称
  • Resources - 相关资源
  • Severities - 严重等级
  • Source - 错误来源
ErrorCodeErrorMessage含义
0x0000Success成功
0xe001Unsupported data format数据格式不支持
0xe002Data parsing failed数据解析失败
0xe003Unsupported protocol type不支持的协议
0xe004Missing necessary fields缺少必要字段
0xe005Mismatched data type字段类型不匹配
0xe006Mismatched request client请求客户端不匹配
0xe007No operation permission无操作权限
0xe008Not allowed operation不允许的操作
0xe009Operation failure操作失败
0xe00aUnsupported function不支持的功能
0xe00bInternal error内部错误