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:46:48
--- 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 : 1 Mbps
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:46:49.598
Realtime : SCHED_FIFO prio 80 engaged
14:46:50.606 [ 1s] tx frames=1152 inst 1145 fps 0.073 Mbps bus 12.7/ 15.5% err=0 (+0)
14:46:51.609 [ 2s] tx frames=2112 inst 958 fps 0.061 Mbps bus 10.6/ 12.9% err=0 (+0)
14:46:52.609 [ 3s] tx frames=3200 inst 1088 fps 0.070 Mbps bus 12.1/ 14.7% err=0 (+0)
14:46:53.609 [ 4s] tx frames=4160 inst 960 fps 0.061 Mbps bus 10.7/ 13.0% err=0 (+0)
14:46:54.609 [ 5s] tx frames=5120 inst 960 fps 0.061 Mbps bus 10.7/ 13.0% err=0 (+0)
14:46:55.610 [ 6s] tx frames=6208 inst 1088 fps 0.070 Mbps bus 12.1/ 14.7% err=0 (+0)
14:46:56.610 [ 7s] tx frames=7168 inst 960 fps 0.061 Mbps bus 10.7/ 13.0% err=0 (+0)
14:46:57.610 [ 8s] tx frames=8128 inst 960 fps 0.061 Mbps bus 10.7/ 13.0% err=0 (+0)
14:46:58.610 [ 9s] tx frames=9216 inst 1088 fps 0.070 Mbps bus 12.1/ 14.7% err=0 (+0)
14:46:59.611 [ 10s] tx frames=10176 inst 960 fps 0.061 Mbps bus 10.7/ 13.0% err=0 (+0)
---------- SUMMARY (MASTER) ----------
CAN bitrate : 1 Mbps
Duration (actual) : 10.082 s
Frames sent : 10240
Payload bytes : 81920
Average frame/s : 1015.69
Payload throughput : 8126 B/s (0.0650 Mbps)
Bus load : 11.3 % (nominal) / 13.7 % (worst-case stuffing)
canbusload-style : can0@1000000 1016 137118 65004 14%
TX errors : 0
SUMMARY role=master interface=can0 bitrate=1000000 duration_s=10.082 frames_sent=10240 payload_bytes=81920 tx_frames_per_s=1015.69 payload_mbps=0.0650 bus_bits_per_frame=111 bus_load_pct=11.27 bus_load_pct_worstcase=13.71 tx_batch=64 tx_errors=0
Log written to: /home/robotics/testcan/results/can0-can1_1000000_20260820-144648/log/can_master_can0_1m_20260820-144649.log

View File

@@ -0,0 +1,36 @@
========== CAN SLAVE ==========
Interface : can1
Bitrate : 1 Mbps
CAN ID : 0x123
DLC : 8
Duration : 13 s
Started : 2026-08-20 14:46:48.588
Realtime : SCHED_FIFO prio 80 engaged
14:46:49.595 [ 1s] rx frames=0 valid=0 inst 0 fps 0.000 Mbps invalid=0 err=0
14:46:50.596 [ 2s] rx frames=995 valid=995 inst 994 fps 0.064 Mbps invalid=0 err=0
14:46:51.596 [ 3s] rx frames=1995 valid=1995 inst 1000 fps 0.064 Mbps invalid=0 err=0
14:46:52.596 [ 4s] rx frames=2995 valid=2995 inst 1000 fps 0.064 Mbps invalid=0 err=0
14:46:53.596 [ 5s] rx frames=3995 valid=3995 inst 1000 fps 0.064 Mbps invalid=0 err=0
14:46:54.597 [ 6s] rx frames=4996 valid=4996 inst 1001 fps 0.064 Mbps invalid=0 err=0
14:46:55.597 [ 7s] rx frames=5996 valid=5996 inst 1000 fps 0.064 Mbps invalid=0 err=0
14:46:56.597 [ 8s] rx frames=6996 valid=6996 inst 1000 fps 0.064 Mbps invalid=0 err=0
14:46:57.597 [ 9s] rx frames=7996 valid=7996 inst 1000 fps 0.064 Mbps invalid=0 err=0
14:46:58.598 [ 10s] rx frames=8997 valid=8997 inst 1001 fps 0.064 Mbps invalid=0 err=0
14:46:59.598 [ 11s] rx frames=9995 valid=9995 inst 998 fps 0.064 Mbps invalid=0 err=0
14:47:00.598 [ 12s] rx frames=10240 valid=10240 inst 245 fps 0.016 Mbps invalid=0 err=0
14:47:01.599 [ 13s] rx frames=10240 valid=10240 inst 0 fps 0.000 Mbps invalid=0 err=0
---------- SUMMARY (SLAVE) ----------
CAN bitrate : 1 Mbps
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=1000000 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_1000000_20260820-144648/log/can_slave_can1_1m_20260820-144648.log

View File

@@ -0,0 +1,52 @@
canbusload 2026-08-20 14:46:49 (worst case bitstuffing)
can0@1000000 0 0 0 0 0%
can1@1000000 0 0 0 0 0%
canbusload 2026-08-20 14:46:50 (worst case bitstuffing)
can0@1000000 952 128520 60928 0 12%
can1@1000000 953 128655 60992 0 12%
canbusload 2026-08-20 14:46:51 (worst case bitstuffing)
can0@1000000 1000 135000 64000 0 13%
can1@1000000 1000 135000 64000 0 13%
canbusload 2026-08-20 14:46:52 (worst case bitstuffing)
can0@1000000 1000 135000 64000 0 13%
can1@1000000 1000 135000 64000 0 13%
canbusload 2026-08-20 14:46:53 (worst case bitstuffing)
can0@1000000 1000 135000 64000 0 13%
can1@1000000 1000 135000 64000 0 13%
canbusload 2026-08-20 14:46:54 (worst case bitstuffing)
can0@1000000 1001 135135 64064 0 13%
can1@1000000 1000 135000 64000 0 13%
canbusload 2026-08-20 14:46:55 (worst case bitstuffing)
can0@1000000 1000 135000 64000 0 13%
can1@1000000 1000 135000 64000 0 13%
canbusload 2026-08-20 14:46:56 (worst case bitstuffing)
can0@1000000 1000 135000 64000 0 13%
can1@1000000 1000 135000 64000 0 13%
canbusload 2026-08-20 14:46:57 (worst case bitstuffing)
can0@1000000 1000 135000 64000 0 13%
can1@1000000 1001 135135 64064 0 13%
canbusload 2026-08-20 14:46:58 (worst case bitstuffing)
can0@1000000 1000 135000 64000 0 13%
can1@1000000 1000 135000 64000 0 13%
canbusload 2026-08-20 14:46:59 (worst case bitstuffing)
can0@1000000 1000 135000 64000 0 13%
can1@1000000 1000 135000 64000 0 13%
canbusload 2026-08-20 14:47:00 (worst case bitstuffing)
can0@1000000 287 38745 18368 0 3%
can1@1000000 286 38610 18304 0 3%
canbusload 2026-08-20 14:47:01 (worst case bitstuffing)
can0@1000000 0 0 0 0 0%
can1@1000000 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 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
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 @@
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
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
11379623 1491552 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 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
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

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 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
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
11379623 1491552 0 0 0 0
TX: bytes packets errors dropped carrier collsns
305304 38163 0 0 0 0