save
This commit is contained in:
30
results/can0-can1_500000_20260820-144712/report/00-BAOCAO.md
Normal file
30
results/can0-can1_500000_20260820-144712/report/00-BAOCAO.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# Báo cáo nhanh — can0 → can1 @ 500 kbps
|
||||
|
||||
Chạy `20260820-144712` · driver `f81604` · USB 12 Mbit/s
|
||||
|
||||
> ⚠️ **Mới dùng 23% bus, chưa xác định được nguyên nhân** — chạy thêm `--full` để phân loại.
|
||||
|
||||
## Số chính
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| Trần lý thuyết CAN (DLC=8, 111 bit/frame) | 4505 fps |
|
||||
| Đạt được | 1015.67 fps |
|
||||
| Hiệu suất | 23% bus |
|
||||
| Payload | 0.0650 Mbps |
|
||||
| Mất frame | 0 / 10240 (0.0000%) |
|
||||
| Lỗi TX / lỗi CAN | 0 / 0 |
|
||||
| Trạng thái | ✅ OK |
|
||||
|
||||
> Cột payload chỉ đếm bit dữ liệu. Một frame CAN chở 8 byte tốn 111 bit trên dây cho
|
||||
> 64 bit dữ liệu, nên kể cả bus 500 kbps chạy đầy tải cũng chỉ tới khoảng 0.2883 Mbps payload —
|
||||
> con số đó nhỏ là bình thường.
|
||||
|
||||
## Đọc tiếp
|
||||
|
||||
- [01 — Thông lượng](01-thongluong.md) — kết quả, độ ổn định theo thời gian, bộ đếm driver
|
||||
- [02 — Nút thắt](02-nutthat.md) — nghẽn ở đâu và vì sao
|
||||
- [03 — Adapter](03-adapter.md) — driver, USB, endpoint
|
||||
- [Bảng so sánh](results_table.md) — một hàng để ghép với các run khác
|
||||
|
||||
Log thô nằm ở [`../log/`](../log/) — báo cáo này đã rút gọn sẵn, thường không cần mở tới.
|
||||
@@ -0,0 +1,45 @@
|
||||
# Thông lượng
|
||||
|
||||
## Kết quả
|
||||
|
||||
| Chỉ số | Giá trị |
|
||||
|---|---|
|
||||
| Thời lượng | 10.082 s |
|
||||
| Frame gửi | 10240 |
|
||||
| Frame nhận hợp lệ | 10240 |
|
||||
| **Mất** | **0** (0.0000%) |
|
||||
| Frame sai nội dung | 0 |
|
||||
| TX f/s | 1015.67 |
|
||||
| Payload | 0.0650 Mbps |
|
||||
| Bus load (nominal) | 22.55% |
|
||||
| Lỗi TX / lỗi CAN | 0 / 0 |
|
||||
|
||||
## Ổn định theo thời gian
|
||||
|
||||
Rút gọn từ thống kê mỗi giây trong log master/slave (8 mẫu sau khi cắt rìa) — thay cho việc đọc hết log.
|
||||
|
||||
| | min | trung bình | max |
|
||||
|---|---:|---:|---:|
|
||||
| TX f/s (master) | 957 | 1008 | 1088 |
|
||||
| RX f/s (slave) | 1000 | 1000 | 1001 |
|
||||
| Bus load % (canbusload, 9 mẫu) | 27 | 27.0 | 27 |
|
||||
|
||||
Biên độ 13% quanh trung bình — đều, nằm trong mức lượng tử hoá của batch 64 frame/syscall.
|
||||
|
||||
## Bộ đếm driver (trước → sau)
|
||||
|
||||
| Interface | TX gói | TX lỗi | TX drop | RX gói | RX lỗi | RX drop |
|
||||
|---|---:|---:|---:|---:|---:|---:|
|
||||
| can0 | 10240 | 0 | 0 | 0 | 0 | 0 |
|
||||
| can1 | 0 | 0 | 0 | 10240 | 0 | 0 |
|
||||
|
||||
| Interface | re-started | bus-errors | arbit-lost | error-warn | error-pass | bus-off |
|
||||
|---|---:|---:|---:|---:|---:|---:|
|
||||
| can0 | 0 | 0 | 0 | 0 | 0 | 0 |
|
||||
| can1 | 0 | 0 | 0 | 0 | 0 | 0 |
|
||||
|
||||
Error frame bắt được bởi `candump -e`: **0**
|
||||
|
||||
Log thô: [`../log/`](../log/)
|
||||
|
||||
[← Báo cáo nhanh](00-BAOCAO.md)
|
||||
@@ -0,0 +1,14 @@
|
||||
# Nút thắt nằm ở đâu
|
||||
|
||||
⚠️ **Mới dùng 23% bus, chưa xác định được nguyên nhân** — chạy thêm `--full` để phân loại.
|
||||
|
||||
## Bằng chứng từ các probe
|
||||
|
||||
_Không probe nào được chạy. Thêm `--full` hoặc `--probe-only` để phân loại nút thắt._
|
||||
|
||||
## Kết luận
|
||||
|
||||
Mới dùng 23% bus nhưng chưa khoanh được nguyên nhân.
|
||||
Chạy lại với `--full` để probe DLC, burst và duplex phân loại giúp.
|
||||
|
||||
[← Báo cáo nhanh](00-BAOCAO.md) · [Probe chi tiết →](04-probe.md)
|
||||
@@ -0,0 +1,64 @@
|
||||
# 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](00-BAOCAO.md)
|
||||
@@ -0,0 +1,3 @@
|
||||
| Device | Interfaces (M→S) | Bitrate | Dur (s) | TX f/s | RX f/s | Frames sent | Valid rx | Invalid | Lost | Loss % | Payload Mbps | TX err | CAN err | Status |
|
||||
|--------|------------------|--------:|--------:|-------:|-------:|------------:|---------:|--------:|-----:|-------:|-------------:|-------:|-------:|:------:|
|
||||
| FINTEK F81604 USB | can0→can1 | 500 kbps | 10.1 | 1015.67 | 1015.67 | 10240 | 10240 | 0 | 0 | 0.0000 | 0.0650 | 0 | 0 | ✅ OK |
|
||||
Reference in New Issue
Block a user