我想知道是否有什么可以解释我从wrt到串行端口的错误。
我正在使用USB到RS485电缆连接到epever太阳能控制器。我有一个小的python3程序,可通过Modbus读取寄存器。我已经使用Python3和pymodbus在Windows上成功运行了它。
我找到了一些为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