Skip to content

Commit a5cbaf0

Browse files
authored
Merge pull request #15 from CaFeZn/docs/clarify-can-throughput
说明 CAN 测试中的有效载荷吞吐率与物理波特率的关系
2 parents 1651b9c + e1fab99 commit a5cbaf0

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

docs/perf/perf-can.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ sidebar_position: 2
6363
6464
### 标准帧 8字节数据
6565
66-
8917包/s,每包108位,数据段的速率为0.57Mbps,平均总线负载接近100%
66+
8917包/s,每包108位,数据段的速率[^1]为0.57Mbps,平均总线负载接近100%
6767
6868
理想情况下,数据段的速率位`64 / 108 * 1Mbps / 105% = 0.564Mbps`
6969
@@ -81,11 +81,13 @@ sidebar_position: 2
8181
8282
### FD标准帧 64字节数据
8383
84-
3929包/s,数据段的速率为2.01Mbps,平均总线负载接近100%
84+
3929包/s,数据段的速率[^1]为2.01Mbps,平均总线负载接近100%
8585
8686
### FD拓展帧 64字节数据
8787
88-
3617包/s,数据段的速率为1.85Mbps,平均总线负载接近100%
88+
3617包/s,数据段的速率[^1]为1.85Mbps,平均总线负载接近100%
89+
90+
[^1]: 此处“数据段的速率”指有效载荷吞吐率,即 `包/s × 每包数据字节数 × 8`,不是 CAN FD 控制器中配置的物理数据段 bit rate;按本文测试条件说明,FD 数据段物理 bit rate 为 2.5Mbps。
8991
9092
## 总结
9193

i18n/en/docusaurus-plugin-content-docs/current/perf/perf-can.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Bit stuffing is estimated at 5%.
6363

6464
### Standard Frame (8-byte data)
6565

66-
8917 packets/s, 108 bits per frame, data segment rate = 0.57 Mbps, bus load ≈ 100%
66+
8917 packets/s, 108 bits per frame, data segment rate[^1] = 0.57 Mbps, bus load ≈ 100%
6767

6868
Ideal case: `64 / 108 * 1Mbps / 105% = 0.564 Mbps`
6969

@@ -81,11 +81,13 @@ Ideal case: `64 / 108 * 1Mbps / 105% = 0.564 Mbps`
8181

8282
### FD Standard Frame (64-byte data)
8383

84-
3929 packets/s, data segment rate = 2.01 Mbps, bus load ≈ 100%
84+
3929 packets/s, data segment rate[^1] = 2.01 Mbps, bus load ≈ 100%
8585

8686
### FD Extended Frame (64-byte data)
8787

88-
3617 packets/s, data segment rate = 1.85 Mbps, bus load ≈ 100%
88+
3617 packets/s, data segment rate[^1] = 1.85 Mbps, bus load ≈ 100%
89+
90+
[^1]: Here, “data segment rate” means effective payload throughput, calculated as `packets/s × payload bytes per packet × 8`. It is not the physical CAN FD data-phase bit rate configured in the controller; according to the test conditions above, the physical FD data-phase bit rate is 2.5 Mbps.
8991

9092
## Summary
9193

0 commit comments

Comments
 (0)