| | |
| | | int32 checksum = 3; // 校验码 |
| | | } |
| | | |
| | | message CapturedData { |
| | | int64 capture_time = 1; // 采集时间 |
| | | string capture_device =2; // 采集设备 |
| | | int32 capture_port = 3; // 采集设备序号 |
| | | DataField DataField = 4; |
| | | string data_type = 5; // 采集数据 |
| | | |
| | | } |
| | | |
| | | message DataMessage{ |
| | | int64 sending_time = 1; |
| | | string sending_device = 2; |
| | | string target_device = 3; |
| | | CapturedData CapturedData = 5; |
| | | |
| | | } |
| | | |
| | | message CommandMessage { |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | message ImagesMessage |
| | | { |
| | | bytes image1 = 1; |
| | |
| | | bytes data = 2; // 数据内容 |
| | | } |
| | | |
| | | message CommandRequest{ |
| | | |
| | | } |
| | | |
| | | message StateMessage{ |
| | | string message_type = 1; |
| | | int64 generate_time = 2; |
| | | string generate_device = 3; |
| | | string target_device = 4; |
| | | string message_uuid = 5; |
| | | string str_body = 6; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | message RequestCommand { |
| | | int32 sync_word = 1; // 同步字 |
| | | string device_id = 2; // 设备ID |