From e1f883778b1a51241a018a7f0c5918f91026aae7 Mon Sep 17 00:00:00 2001
From: wu_xinjun <bent20140204@outlook.com>
Date: 星期一, 07 三月 2022 17:19:24 +0800
Subject: [PATCH] read change log and readme.md
---
src/protos/aerial.proto | 195 +++++++++++++++++++++++++++---------------------
1 files changed, 108 insertions(+), 87 deletions(-)
diff --git a/src/protos/aerial.proto b/src/protos/aerial.proto
index 4ed8048..6929336 100644
--- a/src/protos/aerial.proto
+++ b/src/protos/aerial.proto
@@ -81,8 +81,7 @@
string capture_device =2; // 閲囬泦璁惧
int32 capture_port = 3; // 閲囬泦璁惧搴忓彿
DataField DataField = 4;
- string data_type = 5; // 閲囬泦鏁版嵁
-
+ string data_type = 5; // 鏁版嵁绫诲瀷 image udp
}
message DataMessage{
@@ -90,105 +89,127 @@
string sending_device = 2;
string target_device = 3;
CapturedData CapturedData = 5;
-
+}
+
+message StateData {
+ int64 state_time = 1;
+ string state_device = 2;
+ DataField DataField = 4;
+}
+
+message StateMessage {
+ int64 sending_time = 1;
+ string sending_device = 2;
+ string target_device = 3;
+ CapturedData StatedData = 5;
+}
+
+message CommandData {
+ SysCommand SysCommand = 1;
+ SubCommand SubCommand = 2;
}
message CommandMessage {
-
-}
-
-
-
-message ImagesMessage
-{
- bytes image1 = 1;
- bytes image2 = 2;
- bytes image3 = 3;
- bytes image4 = 4;
- bytes image5 = 5;
-}
-
-message MicroWaveMessage
-{
- int32 length = 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;
+ int64 sending_time = 1;
+ string sending_device = 2;
+ string target_device = 3;
+ CommandData CommandData =4;
}
+// message ImagesMessage
+// {
+// bytes image1 = 1;
+// bytes image2 = 2;
+// bytes image3 = 3;
+// bytes image4 = 4;
+// bytes image5 = 5;
+// }
-message RequestCommand {
- int32 sync_word = 1; // 鍚屾瀛�
- string device_id = 2; // 璁惧ID
- SysCommand sys_command = 3; // 鍛戒护1
- SubCommand sub_command = 4; // 鍛戒护2
- DataField data1 = 5; // 鏁版嵁1
- DataField data2 = 6; // 鏁版嵁2
- int32 checksum = 7; // 鏍¢獙鐮�
-}
+// message MicroWaveMessage
+// {
+// int32 length = 1; // 鏁版嵁闀垮害
+// bytes data = 2; // 鏁版嵁鍐呭
+// }
-enum ResponseState
-{
- SUCCESS = 0; // 鎴愬姛
- FAILURE = 1; // 澶辫触
- ABNORMAL = 2; // 寮傚父
- INFICIENT_POWER = 3; // 鐢甸噺涓嶈冻
- OTHER = 4; // 鍏朵粬
-}
+// message CommandRequest{
-message ResponseCommand
-{
- string device_id = 1; // 璁惧ID
- SysCommand sys_command = 2; // 鍛戒护1
- SubCommand sub_command = 3; // 鍛戒护2
- ResponseState state = 4; // 鍝嶅簲鐘舵��
- int32 data_length = 5; // 鏁版嵁闀垮害
- bytes data = 6; // 鏁版嵁
- int32 checksum = 7; // 鏍¢獙鐮�
-}
+// }
+
+// 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;
+// }
-// 鏈嶅姟绔悜閲囬泦绔彂閫佺殑涓绘寚浠�
-enum ControlSysCommand {
- DUST_CLEANER_COMMAND = 0;
-}
-// 鏈嶅姟绔悜閲囬泦绔彂閫佺殑瀛愬懡浠�
-enum ControlSubCommand {
- // dust cleaner sub commands
- DUST_CLEANER_ONETIME_CLEAN_SELF = 0;
- DUST_CLEANER_ONETIME_CLEAN_CAMERA = 1;
- DUST_CLEANER_CLOSE_PERIOD_CLEAN_SELF = 2;
- DUST_CLEANER_CLOSE_PERIOD_CLEAN_CAMERA = 3;
- DUST_CLEANER_PERIOD_CLEAN_SELF = 4;
- DUST_CLEANER_PERIOD_CLEAN_CAMERA = 5;
-}
-// dust cleaner command message
-message DustCleanerMessage {
- uint32 period = 1;
-}
-// 鎺у埗涓婁綅鏈烘秷鎭�
-message ControllMessage {
- int32 sync_word = 1; // 鍚屾瀛�
- ControlSysCommand sys_command = 3; // 涓诲懡浠�
- ControlSubCommand sub_command = 4; // 瀛愬懡浠�
- DataField data = 5; // 鏁版嵁
- int32 checksum = 7; // 鏍¢獙鐮�
-}
+
+// message RequestCommand {
+// int32 sync_word = 1; // 鍚屾瀛�
+// string device_id = 2; // 璁惧ID
+// SysCommand sys_command = 3; // 鍛戒护1
+// SubCommand sub_command = 4; // 鍛戒护2
+// DataField data1 = 5; // 鏁版嵁1
+// DataField data2 = 6; // 鏁版嵁2
+// int32 checksum = 7; // 鏍¢獙鐮�
+// }
+
+// enum ResponseState
+// {
+// SUCCESS = 0; // 鎴愬姛
+// FAILURE = 1; // 澶辫触
+// ABNORMAL = 2; // 寮傚父
+// INFICIENT_POWER = 3; // 鐢甸噺涓嶈冻
+// OTHER = 4; // 鍏朵粬
+// }
+
+// message ResponseCommand
+// {
+// string device_id = 1; // 璁惧ID
+// SysCommand sys_command = 2; // 鍛戒护1
+// SubCommand sub_command = 3; // 鍛戒护2
+// ResponseState state = 4; // 鍝嶅簲鐘舵��
+// int32 data_length = 5; // 鏁版嵁闀垮害
+// bytes data = 6; // 鏁版嵁
+// int32 checksum = 7; // 鏍¢獙鐮�
+// }
+
+
+// // 鏈嶅姟绔悜閲囬泦绔彂閫佺殑涓绘寚浠�
+// enum ControlSysCommand {
+// DUST_CLEANER_COMMAND = 0;
+// }
+
+// // 鏈嶅姟绔悜閲囬泦绔彂閫佺殑瀛愬懡浠�
+// enum ControlSubCommand {
+// // dust cleaner sub commands
+// DUST_CLEANER_ONETIME_CLEAN_SELF = 0;
+// DUST_CLEANER_ONETIME_CLEAN_CAMERA = 1;
+// DUST_CLEANER_CLOSE_PERIOD_CLEAN_SELF = 2;
+// DUST_CLEANER_CLOSE_PERIOD_CLEAN_CAMERA = 3;
+// DUST_CLEANER_PERIOD_CLEAN_SELF = 4;
+// DUST_CLEANER_PERIOD_CLEAN_CAMERA = 5;
+// }
+
+// // dust cleaner command message
+// message DustCleanerMessage {
+// uint32 period = 1;
+// }
+
+// // 鎺у埗涓婁綅鏈烘秷鎭�
+// message ControllMessage {
+// int32 sync_word = 1; // 鍚屾瀛�
+// ControlSysCommand sys_command = 3; // 涓诲懡浠�
+// ControlSubCommand sub_command = 4; // 瀛愬懡浠�
+// DataField data = 5; // 鏁版嵁
+// int32 checksum = 7; // 鏍¢獙鐮�
+// }
--
Gitblit v1.9.1