From a96e7306b2771e3b62fba21380ba88bea2ea05c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=20=E6=B3=BD=E9=9A=86?= Date: Thu, 13 Jun 2024 21:55:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E6=96=B9=E6=A1=88;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/dev_LaminaAdapter.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/source/dev_LaminaAdapter.py b/source/dev_LaminaAdapter.py index 46de959..31849bf 100644 --- a/source/dev_LaminaAdapter.py +++ b/source/dev_LaminaAdapter.py @@ -373,11 +373,17 @@ def test_communication(): if __name__=='__main__': mode_config = { - "Log": {'com_name': None}, + "Log": {'com_name': None, + # 'addr_645': [0x01, 0x00, 0x00, 0x00, 0x00, 0x40], + }, "Debug": {'com_name': 'COM8', 'baudrate': 115200, 'parity': 'N', 'bytesize': 8, 'stopbits': 1, - 'time_out': 0.1}, - "HPLC": {'com_name': 'COM5', 'baudrate': 9600, 'parity': 'E', 'bytesize': 8, 'stopbits': 1, - 'time_out': 1, 'retry': 10, 'retry_sub': 10}, + 'addr_645': [0x01, 0x02, 0x03, 0x04, 0x05, 0x06], + # 'frame_print': True, + 'time_out': 0.1, 'retry': 3, 'retry_sub': 5}, + "HPLC": {'com_name': 'COM4', 'baudrate': 9600, 'parity': 'E', 'bytesize': 8, 'stopbits': 1, + 'addr_645': [0x01, 0x02, 0x03, 0x04, 0x05, 0x06], + # 'frame_print': True, + 'time_out': 1, 'retry': 1, 'retry_sub': 10}, }