|
@@ -172,8 +172,9 @@ class SRIConnection(asyncio.Protocol):
|
|
|
# 获取消息头
|
|
|
head_data = self.message_data[:self.head_size]
|
|
|
command_id, body_length = struct.unpack(self.head_sequence, head_data)
|
|
|
- methods.debug_log(f'{self.connection_id}|SRIConnection130',
|
|
|
- f"command_id: {command_id}, body_length: {body_length}")
|
|
|
+ if command_id not in [2008]:
|
|
|
+ methods.debug_log(f'{self.connection_id}|SRIConnection176',
|
|
|
+ f"command_id: {command_id}, body_length: {body_length}")
|
|
|
|
|
|
# 检查命令ID是否有效
|
|
|
if not (2000 <= command_id < 5000):
|
|
@@ -210,14 +211,14 @@ class SRIConnection(asyncio.Protocol):
|
|
|
"""
|
|
|
CSAdd: 消息体
|
|
|
CSAdd.serial: string
|
|
|
- CSAdd.type: int32 EgoType::Car | EgoType::None EgoType::User EgoType::Car
|
|
|
+ CSAdd.type: int32 EgoType::Car | 0 EgoType::None 1 EgoType::User 2 EgoType::Car
|
|
|
CSAdd.name: string
|
|
|
"""
|
|
|
object0 = protobuf.CSAdd()
|
|
|
object0.ParseFromString(body_data)
|
|
|
- methods.debug_log(f"{self.connection_id}|SRIConnection90", f"#serial: {object0.serial}")
|
|
|
- methods.debug_log(f"{self.connection_id}|SRIConnection90", f"#name: {object0.name}")
|
|
|
- methods.debug_log(f"{self.connection_id}|SRIConnection90", f"#type: {object0.type}")
|
|
|
+ methods.debug_log(f"{self.connection_id}|SRIConnection219", f"#serial: {object0.serial}")
|
|
|
+ # methods.debug_log(f"{self.connection_id}|SRIConnection90", f"#name: {object0.name}")
|
|
|
+ # methods.debug_log(f"{self.connection_id}|SRIConnection90", f"#type: {object0.type}")
|
|
|
|
|
|
# --- update ---
|
|
|
self.client_type = 'vehicle'
|