2025-09-28 16:40:13,473 - services.device_handler - INFO - 注册设备协议: vda5050 (standard_vehicle)
2025-09-28 16:40:13,476 - services.device_handler - INFO - 注册设备协议: huarui_vda5050 (huarui_vehicle)
2025-09-28 16:40:13,476 - services.device_handler - INFO - 注册设备协议: huarui_tcp (huarui_vehicle)
2025-09-28 16:40:13,477 - services.device_handler - INFO - 注册设备协议: seer_vda5050 (seer_vehicle)
2025-09-28 16:40:13,478 - services.device_handler - INFO - 注册设备协议: seer_tcp (seer_vehicle)
2025-09-28 16:40:13,478 - services.device_handler - INFO - 注册设备协议: quicktron_vda5050 (quicktron_vehicle)
2025-09-28 16:40:13,479 - services.device_handler - INFO - 注册设备协议: quicktron_tcp (quicktron_vehicle)
2025-09-28 16:40:13,481 - services.device_handler - INFO - 注册设备协议: geek_vda5050 (geek_vehicle)
2025-09-28 16:40:13,481 - services.device_handler - INFO - 注册设备协议: geek_tcp (geek_vehicle)
2025-09-28 16:40:13,482 - services.device_handler - INFO - 注册设备协议: mushiny_vda5050 (mushiny_vehicle)
2025-09-28 16:40:13,482 - services.device_handler - INFO - 注册设备协议: mushiny_tcp (mushiny_vehicle)
2025-09-28 16:40:13,483 - services.device_handler - INFO - 注册设备协议: flashhold_vda5050 (flashhold_vehicle)
2025-09-28 16:40:13,484 - services.device_handler - INFO - 注册设备协议: flashhold_tcp (flashhold_vehicle)
2025-09-28 16:40:13,484 - services.device_handler - INFO - 注册设备协议: hikrobot_vda5050 (hikrobot_vehicle)
2025-09-28 16:40:13,485 - services.device_handler - INFO - 注册设备协议: hikrobot_tcp (hikrobot_vehicle)
2025-09-28 16:40:13,485 - services.device_handler - INFO - 注册设备协议: door_vda5050 (standard_door)
2025-09-28 16:40:13,486 - services.device_handler - INFO - 注册设备协议: door_tcp (standard_door)
2025-09-28 16:40:13,486 - services.device_handler - INFO - 注册设备协议: caller_vda5050 (standard_caller)
2025-09-28 16:40:13,486 - services.device_handler - INFO - 注册设备协议: caller_tcp (standard_caller)
2025-09-28 16:40:13,488 - services.device_handler - INFO - 注册设备协议: lift_vda5050 (standard_lift)
2025-09-28 16:40:13,488 - services.device_handler - INFO - 注册设备协议: lift_tcp (standard_lift)
2025-09-28 16:40:13,489 - services.device_handler - INFO - 注册设备协议: conveyor_vda5050 (standard_conveyor)
2025-09-28 16:40:13,489 - services.device_handler - INFO - 注册设备协议: conveyor_tcp (standard_conveyor)
2025-09-28 16:40:13,490 - services.device_handler - INFO - 注册设备协议: sensor_vda5050 (standard_sensor)
2025-09-28 16:40:13,491 - services.device_handler - INFO - 注册设备协议: sensor_tcp (standard_sensor)
2025-09-28 16:40:13,491 - services.device_handler - INFO - 注册设备协议: camera_vda5050 (standard_camera)
2025-09-28 16:40:13,492 - services.device_handler - INFO - 注册设备协议: camera_tcp (standard_camera)
2025-09-28 16:40:13,492 - services.device_handler - INFO - 注册设备协议: scanner_vda5050 (standard_scanner)
2025-09-28 16:40:13,493 - services.device_handler - INFO - 注册设备协议: scanner_tcp (standard_scanner)
2025-09-28 16:40:13,495 - services.device_handler - INFO - 注册设备协议: robot_vda5050 (standard_robot)
2025-09-28 16:40:13,497 - services.device_handler - INFO - 注册设备协议: robot_tcp (standard_robot)
2025-09-28 16:40:13,499 - services.device_handler - INFO - 注册设备协议: custom_vda5050 (standard_custom)
2025-09-28 16:40:13,499 - services.device_handler - INFO - 注册设备协议: custom_tcp (standard_custom)
2025-09-28 16:40:13,500 - services.device_handler - INFO - 使用异步MQTT服务
2025-09-28 16:40:14,570 - test_fins_module - INFO - 开始基础测试 Fins 模块...
2025-09-28 16:40:14,574 - test_fins_module - INFO - ✓ fins 模块已正确注册
2025-09-28 16:40:14,575 - test_fins_module - INFO - ✓ 方法 read_fins_string 存在
2025-09-28 16:40:14,575 - test_fins_module - INFO - ✓ 方法 read_fins_word 存在
2025-09-28 16:40:14,575 - test_fins_module - INFO - ✓ 方法 read_fins_bit 存在
2025-09-28 16:40:14,575 - test_fins_module - INFO - ✓ 方法 write_fins_word 存在
2025-09-28 16:40:14,575 - test_fins_module - INFO - ✓ 方法 write_fins_bit 存在
2025-09-28 16:40:14,577 - test_fins_module - INFO - 测试方法调用（预期连接失败）...
2025-09-28 16:40:14,577 - services.script_fins_module - INFO - Fins 读取 word - IP: 127.0.0.1, Port: 9999, Area: 0x82, Addr: 100, Offset: 0
2025-09-28 16:40:16,633 - services.script_fins_module - ERROR - [logger.py:274] - error() - Fins 读取 word 失败: [WinError 10061] 由于目标计算机积极拒绝，无法连接。
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\fins_module.py", line 90, in read_fins_word
    sock.connect((ip, port))
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝，无法连接。
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_fins_module.py", line 331, in <module>
    test_fins_module_basic()
  File "D:\jsw_code\project\VWED_server\tests\test_fins_module.py", line 297, in test_fins_module_basic
    result = vwed.fins.read_fins_word("127.0.0.1", 9999, 0x82, 100, 0)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\fins_module.py", line 112, in read_fins_word
    logger.error(f"Fins 读取 word 失败: {str(e)}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 16:40:16,634 - test_fins_module - INFO - ✓ read_fins_word 连接失败处理正确
2025-09-28 16:40:16,635 - services.script_fins_module - INFO - Fins 读取 bit - IP: 127.0.0.1, Port: 9999, Area: 0x82, Addr: 100, Offset: 0
2025-09-28 16:40:18,686 - services.script_fins_module - ERROR - [logger.py:274] - error() - Fins 读取 bit 失败: [WinError 10061] 由于目标计算机积极拒绝，无法连接。
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\fins_module.py", line 135, in read_fins_bit
    sock.connect((ip, port))
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝，无法连接。
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_fins_module.py", line 331, in <module>
    test_fins_module_basic()
  File "D:\jsw_code\project\VWED_server\tests\test_fins_module.py", line 301, in test_fins_module_basic
    result = vwed.fins.read_fins_bit("127.0.0.1", 9999, 0x82, 100, 0)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\fins_module.py", line 157, in read_fins_bit
    logger.error(f"Fins 读取 bit 失败: {str(e)}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 16:40:18,692 - test_fins_module - INFO - ✓ read_fins_bit 连接失败处理正确
2025-09-28 16:40:18,694 - services.script_fins_module - INFO - Fins 读取 string - IP: 127.0.0.1, Port: 9999, Area: 0x82, Addr: 100, Offset: 0, Length: 10
2025-09-28 16:40:20,731 - services.script_fins_module - ERROR - [logger.py:274] - error() - Fins 读取 string 失败: [WinError 10061] 由于目标计算机积极拒绝，无法连接。
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\fins_module.py", line 45, in read_fins_string
    sock.connect((ip, port))
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝，无法连接。
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_fins_module.py", line 331, in <module>
    test_fins_module_basic()
  File "D:\jsw_code\project\VWED_server\tests\test_fins_module.py", line 305, in test_fins_module_basic
    result = vwed.fins.read_fins_string("127.0.0.1", 9999, 0x82, 100, 0, 10)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\fins_module.py", line 67, in read_fins_string
    logger.error(f"Fins 读取 string 失败: {str(e)}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 16:40:20,732 - test_fins_module - INFO - ✓ read_fins_string 连接失败处理正确
2025-09-28 16:40:20,733 - services.script_fins_module - INFO - Fins 写入 word - IP: 127.0.0.1, Port: 9999, Area: 0x82, Addr: 100, Offset: 0, Value: 1234
2025-09-28 17:49:12,053 - services.device_handler - INFO - 注册设备协议: vda5050 (standard_vehicle)
2025-09-28 17:49:12,057 - services.device_handler - INFO - 注册设备协议: huarui_vda5050 (huarui_vehicle)
2025-09-28 17:49:12,057 - services.device_handler - INFO - 注册设备协议: huarui_tcp (huarui_vehicle)
2025-09-28 17:49:12,059 - services.device_handler - INFO - 注册设备协议: seer_vda5050 (seer_vehicle)
2025-09-28 17:49:12,059 - services.device_handler - INFO - 注册设备协议: seer_tcp (seer_vehicle)
2025-09-28 17:49:12,059 - services.device_handler - INFO - 注册设备协议: quicktron_vda5050 (quicktron_vehicle)
2025-09-28 17:49:12,060 - services.device_handler - INFO - 注册设备协议: quicktron_tcp (quicktron_vehicle)
2025-09-28 17:49:12,061 - services.device_handler - INFO - 注册设备协议: geek_vda5050 (geek_vehicle)
2025-09-28 17:49:12,064 - services.device_handler - INFO - 注册设备协议: geek_tcp (geek_vehicle)
2025-09-28 17:49:12,064 - services.device_handler - INFO - 注册设备协议: mushiny_vda5050 (mushiny_vehicle)
2025-09-28 17:49:12,065 - services.device_handler - INFO - 注册设备协议: mushiny_tcp (mushiny_vehicle)
2025-09-28 17:49:12,067 - services.device_handler - INFO - 注册设备协议: flashhold_vda5050 (flashhold_vehicle)
2025-09-28 17:49:12,067 - services.device_handler - INFO - 注册设备协议: flashhold_tcp (flashhold_vehicle)
2025-09-28 17:49:12,067 - services.device_handler - INFO - 注册设备协议: hikrobot_vda5050 (hikrobot_vehicle)
2025-09-28 17:49:12,068 - services.device_handler - INFO - 注册设备协议: hikrobot_tcp (hikrobot_vehicle)
2025-09-28 17:49:12,068 - services.device_handler - INFO - 注册设备协议: door_vda5050 (standard_door)
2025-09-28 17:49:12,068 - services.device_handler - INFO - 注册设备协议: door_tcp (standard_door)
2025-09-28 17:49:12,069 - services.device_handler - INFO - 注册设备协议: caller_vda5050 (standard_caller)
2025-09-28 17:49:12,069 - services.device_handler - INFO - 注册设备协议: caller_tcp (standard_caller)
2025-09-28 17:49:12,069 - services.device_handler - INFO - 注册设备协议: lift_vda5050 (standard_lift)
2025-09-28 17:49:12,069 - services.device_handler - INFO - 注册设备协议: lift_tcp (standard_lift)
2025-09-28 17:49:12,069 - services.device_handler - INFO - 注册设备协议: conveyor_vda5050 (standard_conveyor)
2025-09-28 17:49:12,070 - services.device_handler - INFO - 注册设备协议: conveyor_tcp (standard_conveyor)
2025-09-28 17:49:12,070 - services.device_handler - INFO - 注册设备协议: sensor_vda5050 (standard_sensor)
2025-09-28 17:49:12,070 - services.device_handler - INFO - 注册设备协议: sensor_tcp (standard_sensor)
2025-09-28 17:49:12,070 - services.device_handler - INFO - 注册设备协议: camera_vda5050 (standard_camera)
2025-09-28 17:49:12,070 - services.device_handler - INFO - 注册设备协议: camera_tcp (standard_camera)
2025-09-28 17:49:12,071 - services.device_handler - INFO - 注册设备协议: scanner_vda5050 (standard_scanner)
2025-09-28 17:49:12,071 - services.device_handler - INFO - 注册设备协议: scanner_tcp (standard_scanner)
2025-09-28 17:49:12,071 - services.device_handler - INFO - 注册设备协议: robot_vda5050 (standard_robot)
2025-09-28 17:49:12,071 - services.device_handler - INFO - 注册设备协议: robot_tcp (standard_robot)
2025-09-28 17:49:12,072 - services.device_handler - INFO - 注册设备协议: custom_vda5050 (standard_custom)
2025-09-28 17:49:12,072 - services.device_handler - INFO - 注册设备协议: custom_tcp (standard_custom)
2025-09-28 17:49:12,073 - services.device_handler - INFO - 使用异步MQTT服务
2025-09-28 17:49:13,255 - tests.test_modbus_server - INFO - 启动Modbus TCP服务器: localhost:5020
2025-09-28 17:49:13,256 - tests.test_modbus_server - INFO - Modbus TCP服务器启动成功
2025-09-28 17:49:13,263 - pymodbus.logging - INFO - Server listening.
2025-09-28 17:49:15,269 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取线圈状态异常: ModbusClientMixin.read_coils() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 61, in read_coil_status
    result = client.read_coils(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_coils() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 265, in run_all_tests
    self.test_basic_read_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 53, in test_basic_read_operations
    result = self.modbus_module.read_coil_status(self.host, self.port, self.slave_id, 0)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 70, in read_coil_status
    logger.error(f"读取线圈状态异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,277 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取离散输入异常: ModbusClientMixin.read_discrete_inputs() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 94, in read_input_status
    result = client.read_discrete_inputs(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_discrete_inputs() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 265, in run_all_tests
    self.test_basic_read_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 58, in test_basic_read_operations
    result = self.modbus_module.read_input_status(self.host, self.port, self.slave_id, 0)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 103, in read_input_status
    logger.error(f"读取离散输入异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,292 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取保持寄存器异常: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 128, in read_holding_register
    result = client.read_holding_registers(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 265, in run_all_tests
    self.test_basic_read_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 63, in test_basic_read_operations
    result = self.modbus_module.read_holding_register(self.host, self.port, self.slave_id, 0, 2)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 143, in read_holding_register
    logger.error(f"读取保持寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,300 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取输入寄存器异常: ModbusClientMixin.read_input_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 168, in read_input_register
    result = client.read_input_registers(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_input_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 265, in run_all_tests
    self.test_basic_read_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 68, in test_basic_read_operations
    result = self.modbus_module.read_input_register(self.host, self.port, self.slave_id, 0, 2)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 183, in read_input_register
    logger.error(f"读取输入寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,322 - services.modbus_module - ERROR - [logger.py:274] - error() - 批量读取线圈状态异常: ModbusClientMixin.read_coils() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 208, in batch_read_coil_status
    result = client.read_coils(offset, length, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_coils() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 266, in run_all_tests
    self.test_batch_read_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 79, in test_batch_read_operations
    result = self.modbus_module.batch_read_coil_status(self.host, self.port, self.slave_id, 0, 5)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 218, in batch_read_coil_status
    logger.error(f"批量读取线圈状态异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,328 - services.modbus_module - ERROR - [logger.py:274] - error() - 批量读取离散输入异常: ModbusClientMixin.read_discrete_inputs() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 243, in batch_read_input_status
    result = client.read_discrete_inputs(offset, length, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_discrete_inputs() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 266, in run_all_tests
    self.test_batch_read_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 84, in test_batch_read_operations
    result = self.modbus_module.batch_read_input_status(self.host, self.port, self.slave_id, 0, 5)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 253, in batch_read_input_status
    logger.error(f"批量读取离散输入异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,338 - services.modbus_module - ERROR - [logger.py:274] - error() - 批量读取保持寄存器异常: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 278, in batch_read_holding_registers
    result = client.read_holding_registers(offset, length, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 266, in run_all_tests
    self.test_batch_read_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 89, in test_batch_read_operations
    result = self.modbus_module.batch_read_holding_registers(self.host, self.port, self.slave_id, 0, 5)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 288, in batch_read_holding_registers
    logger.error(f"批量读取保持寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,368 - services.modbus_module - ERROR - [logger.py:274] - error() - 批量读取输入寄存器异常: ModbusClientMixin.read_input_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 313, in batch_read_input_registers
    result = client.read_input_registers(offset, length, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_input_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 266, in run_all_tests
    self.test_batch_read_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 94, in test_batch_read_operations
    result = self.modbus_module.batch_read_input_registers(self.host, self.port, self.slave_id, 0, 5)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 323, in batch_read_input_registers
    logger.error(f"批量读取输入寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,414 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取线圈状态异常: ModbusClientMixin.read_coils() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 61, in read_coil_status
    result = client.read_coils(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_coils() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 267, in run_all_tests
    self.test_write_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 109, in test_write_operations
    read_result = self.modbus_module.read_coil_status(self.host, self.port, self.slave_id, 0)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 70, in read_coil_status
    logger.error(f"读取线圈状态异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,419 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取保持寄存器异常: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 128, in read_holding_register
    result = client.read_holding_registers(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 267, in run_all_tests
    self.test_write_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 118, in test_write_operations
    read_result = self.modbus_module.read_holding_register(self.host, self.port, self.slave_id, 0, 2)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 143, in read_holding_register
    logger.error(f"读取保持寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,445 - services.modbus_module - ERROR - [logger.py:274] - error() - 批量读取线圈状态异常: ModbusClientMixin.read_coils() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 208, in batch_read_coil_status
    result = client.read_coils(offset, length, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_coils() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 268, in run_all_tests
    self.test_batch_write_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 134, in test_batch_write_operations
    read_result = self.modbus_module.batch_read_coil_status(self.host, self.port, self.slave_id, 0, 5)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 218, in batch_read_coil_status
    logger.error(f"批量读取线圈状态异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,451 - services.modbus_module - ERROR - [logger.py:274] - error() - 批量读取保持寄存器异常: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 278, in batch_read_holding_registers
    result = client.read_holding_registers(offset, length, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 268, in run_all_tests
    self.test_batch_write_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 144, in test_batch_write_operations
    read_result = self.modbus_module.batch_read_holding_registers(self.host, self.port, self.slave_id, 0, 5)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 288, in batch_read_holding_registers
    logger.error(f"批量读取保持寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,453 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取线圈状态异常: ModbusClientMixin.read_coils() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 61, in read_coil_status
    result = client.read_coils(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_coils() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 269, in run_all_tests
    self.test_generic_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 156, in test_generic_operations
    result = self.modbus_module.read_single_modbus_value(self.host, self.port, self.slave_id, type_str, 0)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 612, in read_single_modbus_value
    result = self.read_coil_status(ip, port, slave_id, offset)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 70, in read_coil_status
    logger.error(f"读取线圈状态异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,479 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取离散输入异常: ModbusClientMixin.read_discrete_inputs() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 94, in read_input_status
    result = client.read_discrete_inputs(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_discrete_inputs() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 269, in run_all_tests
    self.test_generic_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 156, in test_generic_operations
    result = self.modbus_module.read_single_modbus_value(self.host, self.port, self.slave_id, type_str, 0)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 615, in read_single_modbus_value
    result = self.read_input_status(ip, port, slave_id, offset)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 103, in read_input_status
    logger.error(f"读取离散输入异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,483 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取输入寄存器异常: ModbusClientMixin.read_input_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 168, in read_input_register
    result = client.read_input_registers(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_input_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 269, in run_all_tests
    self.test_generic_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 156, in test_generic_operations
    result = self.modbus_module.read_single_modbus_value(self.host, self.port, self.slave_id, type_str, 0)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 618, in read_single_modbus_value
    return self.read_input_register(ip, port, slave_id, offset, 2)  # 默认无符号
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 183, in read_input_register
    logger.error(f"读取输入寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,486 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取保持寄存器异常: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 128, in read_holding_register
    result = client.read_holding_registers(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 269, in run_all_tests
    self.test_generic_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 156, in test_generic_operations
    result = self.modbus_module.read_single_modbus_value(self.host, self.port, self.slave_id, type_str, 0)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 620, in read_single_modbus_value
    return self.read_holding_register(ip, port, slave_id, offset, 2)  # 默认无符号
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 143, in read_holding_register
    logger.error(f"读取保持寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,493 - services.modbus_module - ERROR - [logger.py:274] - error() - 批量读取线圈状态异常: ModbusClientMixin.read_coils() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 208, in batch_read_coil_status
    result = client.read_coils(offset, length, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_coils() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 269, in run_all_tests
    self.test_generic_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 162, in test_generic_operations
    result = self.modbus_module.read_batch_modbus_value(self.host, self.port, self.slave_id, type_str, 0, 3)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 645, in read_batch_modbus_value
    result = self.batch_read_coil_status(ip, port, slave_id, offset, length)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 218, in batch_read_coil_status
    logger.error(f"批量读取线圈状态异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,496 - services.modbus_module - ERROR - [logger.py:274] - error() - 批量读取离散输入异常: ModbusClientMixin.read_discrete_inputs() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 243, in batch_read_input_status
    result = client.read_discrete_inputs(offset, length, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_discrete_inputs() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 269, in run_all_tests
    self.test_generic_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 162, in test_generic_operations
    result = self.modbus_module.read_batch_modbus_value(self.host, self.port, self.slave_id, type_str, 0, 3)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 648, in read_batch_modbus_value
    result = self.batch_read_input_status(ip, port, slave_id, offset, length)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 253, in batch_read_input_status
    logger.error(f"批量读取离散输入异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,500 - services.modbus_module - ERROR - [logger.py:274] - error() - 批量读取输入寄存器异常: ModbusClientMixin.read_input_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 313, in batch_read_input_registers
    result = client.read_input_registers(offset, length, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_input_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 269, in run_all_tests
    self.test_generic_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 162, in test_generic_operations
    result = self.modbus_module.read_batch_modbus_value(self.host, self.port, self.slave_id, type_str, 0, 3)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 651, in read_batch_modbus_value
    return self.batch_read_input_registers(ip, port, slave_id, offset, length)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 323, in batch_read_input_registers
    logger.error(f"批量读取输入寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,503 - services.modbus_module - ERROR - [logger.py:274] - error() - 批量读取保持寄存器异常: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 278, in batch_read_holding_registers
    result = client.read_holding_registers(offset, length, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 269, in run_all_tests
    self.test_generic_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 162, in test_generic_operations
    result = self.modbus_module.read_batch_modbus_value(self.host, self.port, self.slave_id, type_str, 0, 3)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 653, in read_batch_modbus_value
    return self.batch_read_holding_registers(ip, port, slave_id, offset, length)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 288, in batch_read_holding_registers
    logger.error(f"批量读取保持寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,513 - services.modbus_module - ERROR - [logger.py:274] - error() - 离散输入(1x)不支持写入操作
NoneType: None
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 269, in run_all_tests
    self.test_generic_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 174, in test_generic_operations
    result = self.modbus_module.write_single_modbus_value(self.host, self.port, self.slave_id, type_str, 0, 1)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 490, in write_single_modbus_value
    logger.error(f"离散输入(1x)不支持写入操作")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,514 - services.modbus_module - ERROR - [logger.py:274] - error() - 输入寄存器(3x)不支持写入操作
NoneType: None
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 269, in run_all_tests
    self.test_generic_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 174, in test_generic_operations
    result = self.modbus_module.write_single_modbus_value(self.host, self.port, self.slave_id, type_str, 0, 1)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 493, in write_single_modbus_value
    logger.error(f"输入寄存器(3x)不支持写入操作")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,541 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取保持寄存器异常: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 128, in read_holding_register
    result = client.read_holding_registers(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 270, in run_all_tests
    self.test_instance_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 190, in test_instance_operations
    result = self.modbus_module.read_single_modbus_value_by_instance_name("test_plc", 0)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 677, in read_single_modbus_value_by_instance_name
    return self.read_single_modbus_value(
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 620, in read_single_modbus_value
    return self.read_holding_register(ip, port, slave_id, offset, 2)  # 默认无符号
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 143, in read_holding_register
    logger.error(f"读取保持寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,547 - services.modbus_module - ERROR - [logger.py:274] - error() - 批量读取保持寄存器异常: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 278, in batch_read_holding_registers
    result = client.read_holding_registers(offset, length, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 270, in run_all_tests
    self.test_instance_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 193, in test_instance_operations
    result = self.modbus_module.read_batch_modbus_value_by_instance_name("test_plc", 0, 3)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 705, in read_batch_modbus_value_by_instance_name
    return self.read_batch_modbus_value(
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 653, in read_batch_modbus_value
    return self.batch_read_holding_registers(ip, port, slave_id, offset, length)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 288, in batch_read_holding_registers
    logger.error(f"批量读取保持寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,574 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取保持寄存器异常: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 128, in read_holding_register
    result = client.read_holding_registers(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 270, in run_all_tests
    self.test_instance_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 202, in test_instance_operations
    read_result = self.modbus_module.read_single_modbus_value_by_instance_name("test_plc", 0)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 677, in read_single_modbus_value_by_instance_name
    return self.read_single_modbus_value(
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 620, in read_single_modbus_value
    return self.read_holding_register(ip, port, slave_id, offset, 2)  # 默认无符号
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 143, in read_holding_register
    logger.error(f"读取保持寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,602 - services.modbus_module - ERROR - [logger.py:274] - error() - 批量读取保持寄存器异常: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 278, in batch_read_holding_registers
    result = client.read_holding_registers(offset, length, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 270, in run_all_tests
    self.test_instance_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 210, in test_instance_operations
    read_result = self.modbus_module.read_batch_modbus_value_by_instance_name("test_plc", 1, 3)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 705, in read_batch_modbus_value_by_instance_name
    return self.read_batch_modbus_value(
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 653, in read_batch_modbus_value
    return self.batch_read_holding_registers(ip, port, slave_id, offset, length)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 288, in batch_read_holding_registers
    logger.error(f"批量读取保持寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,605 - services.modbus_module - ERROR - [logger.py:274] - error() - 通过实例名称读取单个地址失败: Modbus实例 'non_exist' 未配置
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 676, in read_single_modbus_value_by_instance_name
    instance = self._get_modbus_instance(name)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 30, in _get_modbus_instance
    raise Exception(f"Modbus实例 '{name}' 未配置")
Exception: Modbus实例 'non_exist' 未配置
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 270, in run_all_tests
    self.test_instance_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 216, in test_instance_operations
    self.modbus_module.read_single_modbus_value_by_instance_name("non_exist", 0)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 685, in read_single_modbus_value_by_instance_name
    logger.error(f"通过实例名称读取单个地址失败: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,613 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取保持寄存器异常: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 128, in read_holding_register
    result = client.read_holding_registers(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 271, in run_all_tests
    self.test_data_type_conversion()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 235, in test_data_type_conversion
    result_unsigned = self.modbus_module.read_holding_register(self.host, self.port, self.slave_id, 10, 2)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 143, in read_holding_register
    logger.error(f"读取保持寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,637 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取保持寄存器异常: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 128, in read_holding_register
    result = client.read_holding_registers(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 271, in run_all_tests
    self.test_data_type_conversion()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 239, in test_data_type_conversion
    result_signed = self.modbus_module.read_holding_register(self.host, self.port, self.slave_id, 10, 3)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 143, in read_holding_register
    logger.error(f"读取保持寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,649 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取保持寄存器异常: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 128, in read_holding_register
    result = client.read_holding_registers(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 271, in run_all_tests
    self.test_data_type_conversion()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 248, in test_data_type_conversion
    result_signed = self.modbus_module.read_holding_register(self.host, self.port, self.slave_id, 11, 3)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 143, in read_holding_register
    logger.error(f"读取保持寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,653 - services.modbus_module - ERROR - [logger.py:274] - error() - 读取保持寄存器异常: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 128, in read_holding_register
    result = client.read_holding_registers(offset, 1, slave=slave_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ModbusClientMixin.read_holding_registers() takes 2 positional arguments but 3 positional arguments (and 1 keyword-only argument) were given
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 271, in run_all_tests
    self.test_data_type_conversion()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 252, in test_data_type_conversion
    result_unsigned = self.modbus_module.read_holding_register(self.host, self.port, self.slave_id, 11, 2)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 143, in read_holding_register
    logger.error(f"读取保持寄存器异常: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:49:15,662 - tests.test_modbus_server - INFO - 正在停止Modbus TCP服务器...
2025-09-28 17:56:04,743 - services.device_handler - INFO - 注册设备协议: vda5050 (standard_vehicle)
2025-09-28 17:56:04,743 - services.device_handler - INFO - 注册设备协议: huarui_vda5050 (huarui_vehicle)
2025-09-28 17:56:04,744 - services.device_handler - INFO - 注册设备协议: huarui_tcp (huarui_vehicle)
2025-09-28 17:56:04,744 - services.device_handler - INFO - 注册设备协议: seer_vda5050 (seer_vehicle)
2025-09-28 17:56:04,744 - services.device_handler - INFO - 注册设备协议: seer_tcp (seer_vehicle)
2025-09-28 17:56:04,744 - services.device_handler - INFO - 注册设备协议: quicktron_vda5050 (quicktron_vehicle)
2025-09-28 17:56:04,745 - services.device_handler - INFO - 注册设备协议: quicktron_tcp (quicktron_vehicle)
2025-09-28 17:56:04,745 - services.device_handler - INFO - 注册设备协议: geek_vda5050 (geek_vehicle)
2025-09-28 17:56:04,745 - services.device_handler - INFO - 注册设备协议: geek_tcp (geek_vehicle)
2025-09-28 17:56:04,745 - services.device_handler - INFO - 注册设备协议: mushiny_vda5050 (mushiny_vehicle)
2025-09-28 17:56:04,745 - services.device_handler - INFO - 注册设备协议: mushiny_tcp (mushiny_vehicle)
2025-09-28 17:56:04,745 - services.device_handler - INFO - 注册设备协议: flashhold_vda5050 (flashhold_vehicle)
2025-09-28 17:56:04,745 - services.device_handler - INFO - 注册设备协议: flashhold_tcp (flashhold_vehicle)
2025-09-28 17:56:04,746 - services.device_handler - INFO - 注册设备协议: hikrobot_vda5050 (hikrobot_vehicle)
2025-09-28 17:56:04,746 - services.device_handler - INFO - 注册设备协议: hikrobot_tcp (hikrobot_vehicle)
2025-09-28 17:56:04,746 - services.device_handler - INFO - 注册设备协议: door_vda5050 (standard_door)
2025-09-28 17:56:04,746 - services.device_handler - INFO - 注册设备协议: door_tcp (standard_door)
2025-09-28 17:56:04,746 - services.device_handler - INFO - 注册设备协议: caller_vda5050 (standard_caller)
2025-09-28 17:56:04,747 - services.device_handler - INFO - 注册设备协议: caller_tcp (standard_caller)
2025-09-28 17:56:04,747 - services.device_handler - INFO - 注册设备协议: lift_vda5050 (standard_lift)
2025-09-28 17:56:04,747 - services.device_handler - INFO - 注册设备协议: lift_tcp (standard_lift)
2025-09-28 17:56:04,747 - services.device_handler - INFO - 注册设备协议: conveyor_vda5050 (standard_conveyor)
2025-09-28 17:56:04,748 - services.device_handler - INFO - 注册设备协议: conveyor_tcp (standard_conveyor)
2025-09-28 17:56:04,748 - services.device_handler - INFO - 注册设备协议: sensor_vda5050 (standard_sensor)
2025-09-28 17:56:04,748 - services.device_handler - INFO - 注册设备协议: sensor_tcp (standard_sensor)
2025-09-28 17:56:04,748 - services.device_handler - INFO - 注册设备协议: camera_vda5050 (standard_camera)
2025-09-28 17:56:04,748 - services.device_handler - INFO - 注册设备协议: camera_tcp (standard_camera)
2025-09-28 17:56:04,748 - services.device_handler - INFO - 注册设备协议: scanner_vda5050 (standard_scanner)
2025-09-28 17:56:04,748 - services.device_handler - INFO - 注册设备协议: scanner_tcp (standard_scanner)
2025-09-28 17:56:04,748 - services.device_handler - INFO - 注册设备协议: robot_vda5050 (standard_robot)
2025-09-28 17:56:04,749 - services.device_handler - INFO - 注册设备协议: robot_tcp (standard_robot)
2025-09-28 17:56:04,749 - services.device_handler - INFO - 注册设备协议: custom_vda5050 (standard_custom)
2025-09-28 17:56:04,749 - services.device_handler - INFO - 注册设备协议: custom_tcp (standard_custom)
2025-09-28 17:56:04,750 - services.device_handler - INFO - 使用异步MQTT服务
2025-09-28 17:56:05,922 - tests.test_modbus_server - INFO - 启动Modbus TCP服务器: localhost:5020
2025-09-28 17:56:05,923 - tests.test_modbus_server - INFO - Modbus TCP服务器启动成功
2025-09-28 17:56:05,928 - pymodbus.logging - INFO - Server listening.
2025-09-28 17:56:08,527 - services.modbus_module - ERROR - [logger.py:274] - error() - 离散输入(1x)不支持写入操作
NoneType: None
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 269, in run_all_tests
    self.test_generic_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 174, in test_generic_operations
    result = self.modbus_module.write_single_modbus_value(self.host, self.port, self.slave_id, type_str, 0, 1)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 490, in write_single_modbus_value
    logger.error(f"离散输入(1x)不支持写入操作")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:56:08,529 - services.modbus_module - ERROR - [logger.py:274] - error() - 输入寄存器(3x)不支持写入操作
NoneType: None
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 269, in run_all_tests
    self.test_generic_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 174, in test_generic_operations
    result = self.modbus_module.write_single_modbus_value(self.host, self.port, self.slave_id, type_str, 0, 1)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 493, in write_single_modbus_value
    logger.error(f"输入寄存器(3x)不支持写入操作")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:56:08,687 - services.modbus_module - ERROR - [logger.py:274] - error() - 通过实例名称读取单个地址失败: Modbus实例 'non_exist' 未配置
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 676, in read_single_modbus_value_by_instance_name
    instance = self._get_modbus_instance(name)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 30, in _get_modbus_instance
    raise Exception(f"Modbus实例 '{name}' 未配置")
Exception: Modbus实例 'non_exist' 未配置
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 294, in <module>
    main()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 290, in main
    tester.run_all_tests()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 270, in run_all_tests
    self.test_instance_operations()
  File "D:\jsw_code\project\VWED_server\tests\test_modbus_client.py", line 216, in test_instance_operations
    self.modbus_module.read_single_modbus_value_by_instance_name("non_exist", 0)
  File "D:\jsw_code\project\VWED_server\tests\..\services\online_script\built_in_modules\modbus_module.py", line 685, in read_single_modbus_value_by_instance_name
    logger.error(f"通过实例名称读取单个地址失败: {e}")
  File "D:\jsw_code\project\VWED_server\tests\..\utils\logger.py", line 274, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-09-28 17:56:08,762 - tests.test_modbus_server - INFO - 正在停止Modbus TCP服务器...
