Files
testcan/results/can0-can1_500000_20260820-144712/report/03-adapter.md
2026-08-20 14:56:23 +07:00

3.5 KiB

Adapter / driver

Trả lời câu "đang nói chuyện với thiết bị gì" — đọc thẳng từ sysfs lúc chạy, không suy từ tên interface.

=============== ADAPTER / DRIVER FINGERPRINT ===============
captured: 2026-08-20 14:47:12

--- can0
  driver            : f81604
  usb id            : 2c42:1709
  usb product       : USB TO CANBUS BRIDGE  / FINTEK
  usb speed         : 12 Mbit/s -> USB full-speed 12 Mbit/s   (frame 1 ms)
  usb sysfs         : /sys/devices/pci0000:00/0000:00:14.0/usb3/3-5
  usb interface     : 3-5:1.0  (shared by all channels of this device)
    ep_01    type=Bulk      dir=out  wMaxPacketSize=0040   bInterval=00
    ep_03    type=Bulk      dir=out  wMaxPacketSize=0040   bInterval=00
    ep_81    type=Interrupt dir=in   wMaxPacketSize=0010   bInterval=01
    ep_82    type=Bulk      dir=in   wMaxPacketSize=0040   bInterval=00
    ep_83    type=Interrupt dir=in   wMaxPacketSize=0010   bInterval=01
    ep_84    type=Bulk      dir=in   wMaxPacketSize=0040   bInterval=00
  link              :
    6: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
        link/can  promiscuity 0  allmulti 0 minmtu 0 maxmtu 0 
        can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 100 
    	  bitrate 1000000 sample-point 0.750
    	  tq 83 prop-seg 4 phase-seg1 4 phase-seg2 3 sjw 1 brp 1
    	  f81604: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp_inc 1
    	  termination 0 [ 0, 120 ]
    	  clock 12000000 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 tso_max_size 65536 tso_max_segs 65535 gro_max_size 65536 parentbus usb parentdev 3-5:1.0 

--- can1
  driver            : f81604
  usb id            : 2c42:1709
  usb product       : USB TO CANBUS BRIDGE  / FINTEK
  usb speed         : 12 Mbit/s -> USB full-speed 12 Mbit/s   (frame 1 ms)
  usb sysfs         : /sys/devices/pci0000:00/0000:00:14.0/usb3/3-5
  usb interface     : 3-5:1.0  (shared by all channels of this device)
    ep_01    type=Bulk      dir=out  wMaxPacketSize=0040   bInterval=00
    ep_03    type=Bulk      dir=out  wMaxPacketSize=0040   bInterval=00
    ep_81    type=Interrupt dir=in   wMaxPacketSize=0010   bInterval=01
    ep_82    type=Bulk      dir=in   wMaxPacketSize=0040   bInterval=00
    ep_83    type=Interrupt dir=in   wMaxPacketSize=0010   bInterval=01
    ep_84    type=Bulk      dir=in   wMaxPacketSize=0040   bInterval=00
  link              :
    7: can1: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
        link/can  promiscuity 0  allmulti 0 minmtu 0 maxmtu 0 
        can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 100 
    	  bitrate 1000000 sample-point 0.750
    	  tq 83 prop-seg 4 phase-seg1 4 phase-seg2 3 sjw 1 brp 1
    	  f81604: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp_inc 1
    	  termination 0 [ 0, 120 ]
    	  clock 12000000 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 tso_max_size 65536 tso_max_segs 65535 gro_max_size 65536 parentbus usb parentdev 3-5:1.0 

!! NOTE: can0 and can1 are two channels of the SAME USB device.
   They share one host link; a duplex test measures that link, not two independent buses.

Vì sao bInterval quan trọng: trên endpoint interrupt-IN, đây là chu kỳ host hỏi thăm thiết bị. Nếu driver phải đợi trạng thái "TX xong" quay về qua endpoint đó mới gửi frame kế tiếp, thì bInterval chính là sàn cứng cho tốc độ frame.

← Báo cáo nhanh