basic_server Communication Protocol
Heartbeat Command
Section titled “Heartbeat Command”| Type | Command | Description |
|---|---|---|
0x0030 0064 | 0x0000 0005 | Send heartbeat to robot |
JSON Example:
{ "PatrolDevice": { "Type": 0x00300064, "Command": 0x00000005, "Time": "2026-01-01 00:00:00", "Items": {} }}Status Messages
Section titled “Status Messages”Exception Status Report
Section titled “Exception Status Report”| Type | Command | Description |
|---|---|---|
0x0030 007f | 0x00f0 0000 | Get robot exception status information |
Returns ErrorList array, each error contains:
- Code - Error code
- Name - Error name
- Resources - Related resources
- Severities - Severity level
- Source - Error source
Error Codes
Section titled “Error Codes”| ErrorCode | ErrorMessage | Meaning |
|---|---|---|
0x0000 | Success | Success |
0xe001 | Unsupported data format | Data format not supported |
0xe002 | Data parsing failed | Data parsing failed |
0xe003 | Unsupported protocol type | Protocol not supported |
0xe004 | Missing necessary fields | Missing required fields |
0xe005 | Mismatched data type | Field type mismatch |
0xe006 | Mismatched request client | Request client mismatch |
0xe007 | No operation permission | No operation permission |
0xe008 | Not allowed operation | Operation not allowed |
0xe009 | Operation failure | Operation failed |
0xe00a | Unsupported function | Function not supported |
0xe00b | Internal error | Internal error |