This commit is contained in:
2026-08-20 14:56:23 +07:00
parent 7f00e38980
commit be3a0e9549
186 changed files with 350212 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
=============== 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.

View File

@@ -0,0 +1,36 @@
========== CAN MASTER ==========
Interface : can0
Bitrate : 500 kbps
CAN ID : 0x123
DLC : 8
Payload : AA AA AA AA AA AA AA AA
Duration : 10 s
Frame on-wire : 111 bit (nominal) / 135 bit (worst-case stuffing)
TX batch : 64 frame(s) / sendmmsg
Started : 2026-08-20 14:47:13.401
Realtime : SCHED_FIFO prio 80 engaged
14:47:14.410 [ 1s] tx frames=1152 inst 1145 fps 0.073 Mbps bus 25.4/ 30.9% err=0 (+0)
14:47:15.412 [ 2s] tx frames=2112 inst 957 fps 0.061 Mbps bus 21.3/ 25.9% err=0 (+0)
14:47:16.412 [ 3s] tx frames=3200 inst 1088 fps 0.070 Mbps bus 24.1/ 29.4% err=0 (+0)
14:47:17.413 [ 4s] tx frames=4160 inst 960 fps 0.061 Mbps bus 21.3/ 25.9% err=0 (+0)
14:47:18.413 [ 5s] tx frames=5120 inst 960 fps 0.061 Mbps bus 21.3/ 25.9% err=0 (+0)
14:47:19.413 [ 6s] tx frames=6208 inst 1088 fps 0.070 Mbps bus 24.1/ 29.4% err=0 (+0)
14:47:20.413 [ 7s] tx frames=7168 inst 960 fps 0.061 Mbps bus 21.3/ 25.9% err=0 (+0)
14:47:21.413 [ 8s] tx frames=8128 inst 960 fps 0.061 Mbps bus 21.3/ 25.9% err=0 (+0)
14:47:22.414 [ 9s] tx frames=9216 inst 1088 fps 0.070 Mbps bus 24.1/ 29.4% err=0 (+0)
14:47:23.414 [ 10s] tx frames=10176 inst 960 fps 0.061 Mbps bus 21.3/ 25.9% err=0 (+0)
---------- SUMMARY (MASTER) ----------
CAN bitrate : 500 kbps
Duration (actual) : 10.082 s
Frames sent : 10240
Payload bytes : 81920
Average frame/s : 1015.67
Payload throughput : 8125 B/s (0.0650 Mbps)
Bus load : 22.5 % (nominal) / 27.4 % (worst-case stuffing)
canbusload-style : can0@500000 1016 137116 65003 27%
TX errors : 0
SUMMARY role=master interface=can0 bitrate=500000 duration_s=10.082 frames_sent=10240 payload_bytes=81920 tx_frames_per_s=1015.67 payload_mbps=0.0650 bus_bits_per_frame=111 bus_load_pct=22.55 bus_load_pct_worstcase=27.42 tx_batch=64 tx_errors=0
Log written to: /home/robotics/testcan/results/can0-can1_500000_20260820-144712/log/can_master_can0_500k_20260820-144713.log

View File

@@ -0,0 +1,36 @@
========== CAN SLAVE ==========
Interface : can1
Bitrate : 500 kbps
CAN ID : 0x123
DLC : 8
Duration : 13 s
Started : 2026-08-20 14:47:12.396
Realtime : SCHED_FIFO prio 80 engaged
14:47:13.403 [ 1s] rx frames=0 valid=0 inst 0 fps 0.000 Mbps invalid=0 err=0
14:47:14.404 [ 2s] rx frames=999 valid=999 inst 998 fps 0.064 Mbps invalid=0 err=0
14:47:15.405 [ 3s] rx frames=2000 valid=2000 inst 1000 fps 0.064 Mbps invalid=0 err=0
14:47:16.405 [ 4s] rx frames=3000 valid=3000 inst 1000 fps 0.064 Mbps invalid=0 err=0
14:47:17.405 [ 5s] rx frames=4001 valid=4001 inst 1001 fps 0.064 Mbps invalid=0 err=0
14:47:18.405 [ 6s] rx frames=5001 valid=5001 inst 1000 fps 0.064 Mbps invalid=0 err=0
14:47:19.406 [ 7s] rx frames=6001 valid=6001 inst 1000 fps 0.064 Mbps invalid=0 err=0
14:47:20.406 [ 8s] rx frames=7001 valid=7001 inst 1000 fps 0.064 Mbps invalid=0 err=0
14:47:21.406 [ 9s] rx frames=8002 valid=8002 inst 1001 fps 0.064 Mbps invalid=0 err=0
14:47:22.406 [ 10s] rx frames=9002 valid=9002 inst 1000 fps 0.064 Mbps invalid=0 err=0
14:47:23.407 [ 11s] rx frames=10002 valid=10002 inst 1000 fps 0.064 Mbps invalid=0 err=0
14:47:24.407 [ 12s] rx frames=10240 valid=10240 inst 238 fps 0.015 Mbps invalid=0 err=0
14:47:25.407 [ 13s] rx frames=10240 valid=10240 inst 0 fps 0.000 Mbps invalid=0 err=0
---------- SUMMARY (SLAVE) ----------
CAN bitrate : 500 kbps
Duration (actual) : 13.119 s
Frames received : 10240
Valid frames : 10240
Invalid frames : 0
CAN/bus errors : 0
Payload bytes : 81920
Average frame/s : 780.55
Payload throughput : 6244 B/s (0.0500 Mbps)
SUMMARY role=slave interface=can1 bitrate=500000 duration_s=13.119 frames_received=10240 valid_frames=10240 invalid_frames=0 can_errors=0 payload_bytes=81920 rx_frames_per_s=780.55 valid_frames_per_s=780.55 payload_mbps=0.0500
Log written to: /home/robotics/testcan/results/can0-can1_500000_20260820-144712/log/can_slave_can1_500k_20260820-144712.log

View File

@@ -0,0 +1,52 @@
canbusload 2026-08-20 14:47:13 (worst case bitstuffing)
can0@500000 0 0 0 0 0%
can1@500000 0 0 0 0 0%
canbusload 2026-08-20 14:47:14 (worst case bitstuffing)
can0@500000 953 128655 60992 0 25%
can1@500000 954 128790 61056 0 25%
canbusload 2026-08-20 14:47:15 (worst case bitstuffing)
can0@500000 1000 135000 64000 0 27%
can1@500000 1000 135000 64000 0 27%
canbusload 2026-08-20 14:47:16 (worst case bitstuffing)
can0@500000 1000 135000 64000 0 27%
can1@500000 1000 135000 64000 0 27%
canbusload 2026-08-20 14:47:17 (worst case bitstuffing)
can0@500000 1000 135000 64000 0 27%
can1@500000 1000 135000 64000 0 27%
canbusload 2026-08-20 14:47:18 (worst case bitstuffing)
can0@500000 1000 135000 64000 0 27%
can1@500000 1000 135000 64000 0 27%
canbusload 2026-08-20 14:47:19 (worst case bitstuffing)
can0@500000 1000 135000 64000 0 27%
can1@500000 1000 135000 64000 0 27%
canbusload 2026-08-20 14:47:20 (worst case bitstuffing)
can0@500000 1000 135000 64000 0 27%
can1@500000 1000 135000 64000 0 27%
canbusload 2026-08-20 14:47:21 (worst case bitstuffing)
can0@500000 1000 135000 64000 0 27%
can1@500000 1000 135000 64000 0 27%
canbusload 2026-08-20 14:47:22 (worst case bitstuffing)
can0@500000 1000 135000 64000 0 27%
can1@500000 1000 135000 64000 0 27%
canbusload 2026-08-20 14:47:23 (worst case bitstuffing)
can0@500000 1000 135000 64000 0 27%
can1@500000 1000 135000 64000 0 27%
canbusload 2026-08-20 14:47:24 (worst case bitstuffing)
can0@500000 287 38745 18368 0 7%
can1@500000 286 38610 18304 0 7%
canbusload 2026-08-20 14:47:25 (worst case bitstuffing)
can0@500000 0 0 0 0 0%
can1@500000 0 0 0 0 0%

View File

@@ -0,0 +1,14 @@
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 500000 sample-point 0.875
tq 250 prop-seg 3 phase-seg1 3 phase-seg2 1 sjw 1 brp 3
f81604: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp_inc 1
termination 0 [ 0, 120 ]
clock 12000000
re-started bus-errors arbit-lost error-warn error-pass bus-off
0 0 0 0 0 0 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
RX: bytes packets errors dropped missed mcast
305304 38163 0 0 0 0
TX: bytes packets errors dropped carrier collsns
11543463 1512032 0 0 0 0

View File

@@ -0,0 +1,14 @@
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 500000 sample-point 0.875
tq 250 prop-seg 3 phase-seg1 3 phase-seg2 1 sjw 1 brp 3
f81604: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp_inc 1
termination 0 [ 0, 120 ]
clock 12000000
re-started bus-errors arbit-lost error-warn error-pass bus-off
0 0 0 0 0 0 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
RX: bytes packets errors dropped missed mcast
305304 38163 0 0 0 0
TX: bytes packets errors dropped carrier collsns
11461543 1501792 0 0 0 0

View File

@@ -0,0 +1,14 @@
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 500000 sample-point 0.875
tq 250 prop-seg 3 phase-seg1 3 phase-seg2 1 sjw 1 brp 3
f81604: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp_inc 1
termination 0 [ 0, 120 ]
clock 12000000
re-started bus-errors arbit-lost error-warn error-pass bus-off
0 0 0 0 0 0 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
RX: bytes packets errors dropped missed mcast
11543463 1512032 0 0 0 0
TX: bytes packets errors dropped carrier collsns
305304 38163 0 0 0 0

View File

@@ -0,0 +1,14 @@
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 500000 sample-point 0.875
tq 250 prop-seg 3 phase-seg1 3 phase-seg2 1 sjw 1 brp 3
f81604: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp_inc 1
termination 0 [ 0, 120 ]
clock 12000000
re-started bus-errors arbit-lost error-warn error-pass bus-off
0 0 0 0 0 0 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
RX: bytes packets errors dropped missed mcast
11461543 1501792 0 0 0 0
TX: bytes packets errors dropped carrier collsns
305304 38163 0 0 0 0