scripts: 修 udp_probe.py 的重组与 fps 两处测量错误
探测脚本是诊断工具,测错比不测更糟——它给出的数字会被当成结论。
**重组状态必须按 (sender_id, frame_id) 存。** 原先只按 sender_id 存,于是丢片
之后下一帧的分片会接着凑上一帧的计数,凑够了交出去一张混着两帧的 JPEG,表现为
"JPEG 不完整"。修完:14 秒 132 帧,0 张坏帧。
换帧时被放弃的半成品单独计为"被新帧取代",不并入"JPEG 不完整"——它们本来就
不完整,混在一起会把两种情形都算成链路有问题。
**分窗 fps 的分子分母必须同量纲。** 原先用累计帧数除以窗口时长,于是报出 39、
61、79 这种随时间单调上升的假数字,看起来像板子越跑越快。改成窗口增量除以窗
口时长后稳定在 22,也就是传感器上限。
顺带修正两处与代码不符的注释:
partitions.csv / sdkconfig.defaults
两处都写死 app 分区在 0x40000,实际是 scripts/flash.sh 自动挑选并写回,
当前为 0x060000。补上 flash.sh 会重编译并复验的原因(重编译会让镜像位移,
所以偏移无法是常量)。
.env.example
补 CAM_VSYNC_INVERT 和 WIFI_AUTH。WIFI_AUTH 一直能用但没进文档:通常不用
设,扫描会报告 AP 的真实认证方式;只有扫不到时(隐藏 SSID)才需要指定,
指定后只试这一种,不成功直接报错而不是挨个试 10 秒——挨个试等于在猜一个
本该已知的值。
This commit is contained in:
+3
-2
@@ -35,8 +35,9 @@ CONFIG_ESP32S3_INSTRUCTION_CACHE_32KB=y
|
||||
# only 1 MB - smaller than the ~1.15 MB this firmware produces, so the image
|
||||
# overflows the partition.
|
||||
#
|
||||
# The custom table also moves the app to 0x40000, which is what keeps the image
|
||||
# off the module's defective flash byte; see partitions.csv for why.
|
||||
# The custom table also carries an app offset that keeps the image off the
|
||||
# module's defective flash byte. That offset is written by scripts/flash.sh, not
|
||||
# fixed here; see partitions.csv for why it cannot be a constant.
|
||||
CONFIG_PARTITION_TABLE_CUSTOM=y
|
||||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="../../../../../../partitions.csv"
|
||||
CONFIG_PARTITION_TABLE_OFFSET=0x8000
|
||||
|
||||
Reference in New Issue
Block a user