添加生产镜像制作流程;

修改数据项地址分布;
修复数据读写重发逻辑;
修复字符串数据对`0xFF`数据无法解析的问题;
This commit is contained in:
何 泽隆
2024-05-30 11:28:00 +08:00
parent fb37001c52
commit 85aa6da4dc
3 changed files with 24 additions and 16 deletions

View File

@@ -101,12 +101,15 @@ modbus_map = {
0xAF: ["保留", 1],
0x100: ["版本", 4, 16],
0x110: ["型号", 4, 16],
0x120: ["硬件", 4, 16],
0x130: ["SN", 4, 16],
0x140: ["MES", 4, 16],
0x150: ["Datetime", 4, 16],
0x160: ["载波芯片地址", 4, 16],
0x170: ["厂商", 4, 16],
0x120: ["载波芯片地址", 4, 16],
0x130: ["厂商", 4, 8],
0x138: ["保留", 4, 8],
0x140: ["保留", 4, 16],
0x150: ["保留", 4, 16],
0x160: ["硬件", 4, 16],
0x170: ["SN", 4, 16],
0x180: ["MES", 4, 16],
0x190: ["Datetime", 4, 16],
}
@@ -173,14 +176,14 @@ class LaminaAdapter:
try:
output_text = check_frame_dlt645(frame_recv, block=self.block)
cnt += 1
except Exception as e:
print(e)
cnt += 1
continue
print(output_text)
break
if hasattr(self, 'frame_print'):
if hasattr(self, 'flag_print'):
print(trans_list_to_str(frame))
print(trans_list_to_str(frame_recv))