1

我想知道是否有任何人可以帮助解释我在串口下面遇到的错误。

我正在使用 USB 转 RS485 线连接到 epever 太阳能控制器。我有一个小的 python3 程序可以通过 Modbus 读取寄存器。我让它在 Windows 上使用 Python3 和 pymodbus 成功运行。

我找到了一些为 Raspian 编译驱动程序的说明,将其加载并接受。但是,当我运行与在 Windows 中相同的程序时,我没有得到结果并得到以下作为对 'dmesg' 命令的响应。

有谁知道这意味着什么,是否有线索可以尝试?

谢谢

[  448.075850] cdc_xr_usb_serial 1-1.3.1:1.0: xr_usb_serial_port_activate
[  448.076258] cdc_xr_usb_serial 1-1.3.1:1.0: xr_usb_serial_ctrl_msg - rq 0x22,                                                     val 0x3, len 0x0, result 0
[  515.951828] cdc_xr_usb_serial 1-1.3.1:1.0: xr_usb_serial_tty_close
[  515.951876] cdc_xr_usb_serial 1-1.3.1:1.0: xr_usb_serial_port_shutdown
[  515.952299] cdc_xr_usb_serial 1-1.3.1:1.0: xr_usb_serial_ctrl_msg - rq 0x22,                                                     val 0x0, len 0x0, result 0
[  515.952339] cdc_xr_usb_serial 1-1.3.1:1.0: xr_usb_serial_ctrl_irq - urb shutt                                                    ing down with status: -2
[  515.952375] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.952417] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.952450] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.952478] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.952506] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.952534] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.952612] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.952649] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.952730] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.952769] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.952806] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.952883] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.952922] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.953000] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.953037] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.953115] cdc_xr_usb_serial 1-1.3.1:1.1: xr_usb_serial_read_bulk_callback -                                                     non-zero urb status: -2
[  515.953307] cdc_xr_usb_serial 1-1.3.1:1.0: xr_usb_serial_tty_cleanup
4

0 回答 0