触摸屏AI编程260523工作记录

[复制链接]

0

主题

101

回帖

204

积分

管理员

积分
204
发表于 4 天前 | 显示全部楼层
🧠 Memory Search: 持续增长 log 文件 longRecordEnabled 录波设置 运行记录 /VFD/vfd_logs run_logs 2026-05-23
🛠️ Exec: $plink='C:\Program Files\PuTTY\plink.exe'; & $plink -ssh -batch -pw mcgs root@200.200.200.191 "echo '--- proc'; pidof i… (in ~\.openclaw\workspace)
🛠️ Exec: $plink='C:\Program Files\PuTTY\plink.exe'; & $plink -ssh -batch -pw mcgs root@200.200.200.191 "echo '--- status before'… (in ~\.openclaw\workspace)
🛠️ Exec: $plink='C:\Program Files\PuTTY\plink.exe'; & $plink -ssh -batch -pw mcgs root@200.200.200.191 "ls -l /dev/ttyACM* /dev/… (in ~\.openclaw\workspace)
🛠️ Exec: run $p=i:aiwork2026-05-23touchscreen_recorder_params_effective_1151sourcemain.cpp → run $script=@
from pathlib import path
p=path(ri:aiwork2026-05-23touchscreen_recorder_params_effective_1151sourcemain.cpp)
s=p.read_text(encoding=utf-8)
s=s.replace(qstring::fromlatin1(20260523_1151),qstring::fromlatin1(20260523_1200))
s=s.replace( → run (c.seq → run ensurerunlog() → run , → run )
insert timed flush members
s=s.replace( qint64 → run , qint64 → run qint64 lastRunWriteMs → run qint64 lastRunFlushMs → run )
s=s.replace(runlogopen(false), → run if(!runlogopen) return → run qtextstream → run , → run if(!runlogopen) return → run qint64 nowMs → run int periodMs → run if(lastrunwritems → run nowms lastRunWriteMs → run lastrunflushms → run } return → run } lastRunWriteMs → run qtextstream → run )
flush after every write for visible growth
s=s.replace( → run , → run lastrunflushms → run )
make current file name include full year to distinguish
no need
p.write_text(s,encoding=utf-8)
@ → run $tmp=i:aiwork2026-05-23touchscreen_recorder_params_effective_1151patch_1200.py → run set-content UTF8 → run python $tmp → run select-string -> run format-table (+1 steps) (in ~\.openclaw\workspace)
$p='I:\AI\work\2026-05-23\touchscreen_recorder_params_effective_1151\source\main.cpp'; $script=@' from pathlib import P…
🛠️ Exec: $plink='C:\Program Files\PuTTY\plink.exe'; $pscp='C:\Program Files\PuTTY\pscp.exe'; $hk='ssh-ed25519 255 SHA256l27NbL… (in ~\.openclaw\workspace)
🧰 Process: kind-comet
🛠️ Exec: $plink='C:\Program Files\PuTTY\plink.exe'; $pscp='C:\Program Files\PuTTY\pscp.exe'; $hk='ssh-ed25519 255 SHA256l27NbL… (in ~\.openclaw\workspace)
🧰 Process: tide-fjord
🛠️ Exec: $plink='C:\Program Files\PuTTY\plink.exe'; & $plink -ssh -batch -pw mcgs root@200.200.200.191 "echo before; date; ls -l… (in ~\.openclaw\workspace)
🧰 Process: brisk-coral
✍️ Write: to I:\AI\work\2026-05-23\touchscreen_recorder_params_effective_1151\log_growth_fix_1200.md (1165 chars)
🛠️ Exec: @' - 2026-05-23 12:04: 用户反馈文件中没有持续增长的 log 文件。现场检查串口 /dev/ttyACM1 已打开、配置 longRecordEnabled=true/fileFormat=txt/longRecor… (in ~\.openclaw\workspace)
我来查实际触摸屏上的 /VFD 日志、配置和串口录波线程状态。重点看长期记录开关是否默认关闭、串口是否有帧、以及刚修的抽样周期逻辑有没有导致不写。
已查到原因并修复部署。
现场检查结果:
程序进程正常。
串口已打开:/dev/ttyACM1
配置正常:
longRecordEnabled=true
fileFormat=txt
longRecordPeriodSeconds=30
但 11:51 版没有生成新的持续增长 .txt log。
原因:
我上一版把长期记录周期错误地写成了按帧序号取模判断:
类似 seq % longRecordPeriodSeconds
帧序号不适合当秒级周期使用,所以会导致长期记录不按预期持续写入。
已修复:
改成按真实时间间隔控制写入。
longRecordPeriodSeconds=30 现在就是约每 30 秒写一条。
每次写入后立即 flush,文件大小可以及时看到变化。
已部署新版本:
程序:iba_pda_20260523_1200
MD5:d2d185244b60a5a1f7ddfd2a077cf649
触摸屏当前进程:PID 30714
已验证:
新文件已生成:
/VFD/vfd_logs/run_logs/log_run_260523-120311.txt
观察 35 秒:
12:03:28:770 bytes
12:04:03:938 bytes
说明 log 文件已经开始持续增长。
记录文件:
I:\AI\work\2026-05-23\touchscreen_recorder_params_effective_1151\log_growth_fix_1200.md

5

主题

70

回帖

157

积分

管理员

积分
157
 楼主| 发表于 4 天前 | 显示全部楼层
下一步:
1、长期记录规则:按照长期记录周期设置的时间周期,以设置时间周期为间隔,取过去的时间内的平均值,最大值,最小值,记录前缀数据中的64字内容,记录时间戳,保存到:\VFD \vfd_logs\run_logs,文件命名中的时间为保存时的时间,文件名为log_run_20260523-114753.txt或者csv文件,
2、故障记录规则:
前缀数据段(64字)数据0(低字节)出现0xa5时按照故障记录时长的设置存入故障记录表,然后在:\VFD\vfd_logs\fault_logs存储故障记录表,文件名按照存盘时 故障记录文件名前缀 默认log_fault_日期分钟秒   命名,文件格式和大小按照设置建立,记录的内容:按照录波设置中的故障前历史时长和故障后记录时长,记录16个通道的缓存数据,加入时间戳

0

主题

101

回帖

204

积分

管理员

积分
204
发表于 4 天前 | 显示全部楼层
🧠 Memory Search: 长期记录规则 平均值 最大值 最小值 64字 前缀 故障记录 prefix 0xa5 故障前 故障后 缓存 16通道
🛠️ Exec: $prev='I:\AI\work\2026-05-23\touchscreen_recorder_params_effective_1151'; $work='I:\AI\work\2026-05-23\touchscreen_reco… (in ~\.openclaw\workspace)
🛠️ Exec: run $p=i:aiwork2026-05-23touchscreen_recorder_rules_1207sourcemain.cpp → run $script=@
from pathlib import path
p=path(ri:aiwork2026-05-23touchscreen_recorder_rules_1207sourcemain.cpp)
s=p.read_text(encoding=utf-8)
s=s.replace(qstring::fromlatin1(20260523_1200),qstring::fromlatin1(20260523_1207))
add run accumulator members
s=s.replace( qint64 → run , qint64 → run bool runAggActive → run qint64 runAggStartMs → run qint64 runAggCount → run double → run quint16 → run quint16 → run quint16 → run )
s=s.replace(runlogopen(false), → run runaggstartms → run runaggcount → run for(int → run ch<16 → run ch++){ → run runaggmin[ch]=65535 → run runaggmax[ch]=0 → run } → run i<64 → run i++) → run } void → run for(int → run i<64 → run i++) → run for(int → run ch<16 → run ch++){ quint32 → run quint16 → run for(int → run t<64 → run t++){ quint16 → run sum → run if(v<mn) → run if(v>mx) → run } quint16 → run runaggsum[ch] → run if(mn → run if(mx → run } → run } → run for(int → run i<64 → run i++) ts → run ts → run new_header= ts → run for(int → run i<64 → run i++) ts → run for(int → run ch<16 → run ch++) ts → run ts → run if old_header not in s: raise systemexit(run header → run qint64 nowMs → run )
end=s.index( → run runlog.size() → run qint64 nowMs → run if(!runaggactive) → run addrunaggframe(c) → run int periodMs → run if(nowms runAggStartMs → run lastrunflushms → run } return → run } QTextStream → run qstring sep → run ts → run for(int → run i<64 → run i++) ts → run for(int → run ch<16 → run ch++){ int → run ts → run } ts → run runlog.flush() → run lastrunflushms → run lastrunwritems → run resetrunagg(nowms) → run s=s[:start]+new_body+s[end:]
fault trigger type from prefix[0] low byte; replace if(type==0xa5)
s=s.replace( → run , → run )
s=s.replace( → run , → run )
fault snapshot header add frame_time and prefix data? keep 16 ch with timestamp, add frame timestamp already. use sample_time label.
s=s.replace( ts → run , ts → run )
no change needed, it records 16 channels per sample with timestamp
p.write_text(s,encoding=utf-8)
@ → run $tmp=i:aiwork2026-05-23touchscreen_recorder_rules_1207patch.py → run set-content UTF8 → run python $tmp → run select-string -> run format-table (+1 steps) (in ~\.openclaw\workspace)
$p='I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207\source\main.cpp'; $script=@' from pathlib import Path p=Path(…
🛠️ Exec: Select-String -Path I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207\source\main.cpp -Pattern 'ts << "time|prefix0… (in ~\.openclaw\workspace)
🛠️ Exec: run $p=i:aiwork2026-05-23touchscreen_recorder_rules_1207sourcemain.cpp → run $script=@
from pathlib import path
p=path(ri:aiwork2026-05-23touchscreen_recorder_rules_1207sourcemain.cpp)
s=p.read_text(encoding=utf-8)
s=s.replace(qstring::fromlatin1(20260523_1200),qstring::fromlatin1(20260523_1207))
s=s.replace( qint64 → run , qint64 → run bool runAggActive → run qint64 runAggStartMs → run qint64 runAggCount → run double → run quint16 → run quint16 → run quint16 → run )
s=s.replace(runlogopen(false), → run runaggstartms → run runaggcount → run for(int → run ch<16 → run ch++){ → run runaggmin[ch]=65535 → run runaggmax[ch]=0 → run } → run i<64 → run i++) → run } void → run for(int → run i<64 → run i++) → run for(int → run ch<16 → run ch++){ quint32 → run quint16 → run for(int → run t<64 → run t++){ quint16 → run sum → run if(v<mn) → run if(v>mx) → run } quint16 → run runaggsum[ch] → run if(mn → run if(mx → run } → run } → run for(int → run i<64 → run i++) ts → run ts → run , ts → run for(int → run i<64 → run i++) ts → run for(int → run ch<16 → run ch++) ts → run ts → run )
start=s.index( → run qint64 nowMs → run )
end=s.index( → run runlog.size() → run qint64 nowMs → run if(!runaggactive) → run addrunaggframe(c) → run int periodMs → run if(nowms runAggStartMs → run lastrunflushms → run } return → run } QTextStream → run qstring sep → run ts → run for(int → run i<64 → run i++) ts → run for(int → run ch<16 → run ch++){ int → run ts → run } ts → run runlog.flush() → run lastrunflushms → run lastrunwritems → run resetrunagg(nowms) → run s=s[:start]+new_body+s[end:]
s=s.replace( → run , → run )
s=s.replace( → run , → run )
p.write_text(s,encoding=utf-8)
@ → run $tmp=i:aiwork2026-05-23touchscreen_recorder_rules_1207patch2.py → run set-content UTF8 → run python $tmp → run select-string -> run format-table (+1 steps) (in ~\.openclaw\workspace)
$p='I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207\source\main.cpp'; $script=@' from pathlib import Path p=Path(…
🛠️ Exec: Select-String -Path I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207\source\main.cpp -Pattern 'save_time|prefix0|t… (in ~\.openclaw\workspace)
📖 Read: lines 455-489 from I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207\source\main.cpp
🛠️ Exec: $p='I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207\source\main.cpp'; $txt=Get-Content -Raw -Encoding UTF8 $p; $t… (in ~\.openclaw\workspace)
📝 Edit: in I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207\source\main.cpp (398 chars)
🛠️ Exec: $dir='I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207'; (Get-Content -Raw $dir\build_on_vm.sh) -replace 'touchscr… (in ~\.openclaw\workspace)
🛠️ Exec: $plink='C:\Program Files\PuTTY\plink.exe'; $pscp='C:\Program Files\PuTTY\pscp.exe'; $hk='ssh-ed25519 255 SHA256l27NbL… (in ~\.openclaw\workspace)
🧰 Process: rapid-tidepool
🛠️ Exec: Select-String -Path I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207\vm_build.log -Pattern 'error:' -Context 1,2 |… (in ~\.openclaw\workspace)
📖 Read: lines 485-504 from I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207\source\main.cpp
📝 Edit: in I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207\source\main.cpp (19 chars)
🛠️ Exec: $plink='C:\Program Files\PuTTY\plink.exe'; $pscp='C:\Program Files\PuTTY\pscp.exe'; $hk='ssh-ed25519 255 SHA256l27NbL… (in ~\.openclaw\workspace)
🧰 Process: oceanic-bison
🛠️ Exec: $plink='C:\Program Files\PuTTY\plink.exe'; $pscp='C:\Program Files\PuTTY\pscp.exe'; $hk='ssh-ed25519 255 SHA256l27NbL… (in ~\.openclaw\workspace)
🧰 Process: salty-haven
✍️ Write: to I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207\summary.md (1999 chars)
🛠️ Exec: @' - 2026-05-23 12:13: 按用户定义实现录波规则:长期记录按 longRecordPeriodSeconds 周期聚合过去周期内 16 通道平均/最大/最小值,并记录 prefix0~prefix63、保存/周期时间戳… (in ~\.openclaw\workspace)
收到,这一步要把“长期记录”和“故障记录”的业务规则明确落到录波线程里。我会基于 12:00 已验证持续增长的版本继续改:长期记录按周期统计过去一段时间的均值/最大/最小;故障记录按前缀数据低字节 0xA5 触发,并按故障前/后时长保存 16 通道缓存。
已按这两条规则完成实现并部署。
长期记录规则已改为:
按 长期记录周期 作为时间间隔。
在一个周期内聚合 16 个通道数据。
每个周期写一行,内容包括:
保存时间 save_time
周期开始时间 period_start
周期结束时间 period_end
周期内样本帧数 sample_count
前缀数据 prefix0 ~ prefix63
每个通道的:
平均值 ch*_avg
最大值 ch*_max
最小值 ch*_min
保存目录:
/VFD/vfd_logs/run_logs
文件名前缀使用设置中的长期记录前缀,格式使用设置中的 txt/csv。
故障记录规则已改为:
触发条件:
前缀数据段 64 字中,第 0 字低字节为 0xa5
即:prefix[0] & 0x00ff == 0x00a5
触发后保存故障记录表到:
/VFD/vfd_logs/fault_logs
文件名前缀使用设置中的故障记录前缀,默认 log_fault_
文件格式使用设置中的 txt/csv
记录内容:
时间戳
seq / page / type
checksum / lost
sample_index
16 个通道缓存数据
写出窗口按照:
故障前历史时长 + 故障后记录时长
新版本:
工作目录:I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207
程序:source\iba_pda_20260523_1207
MD5:59685f460909da03dfab1343f7c18306
已部署到触摸屏 /root/iba_pda
当前进程:PID 10625
记录文件:
I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207\summary.md

5

主题

70

回帖

157

积分

管理员

积分
157
 楼主| 发表于 4 天前 | 显示全部楼层
将录波设置中的快速数据缓存修改成数据缓存时长

0

主题

101

回帖

204

积分

管理员

积分
204
发表于 4 天前 | 显示全部楼层
🛠️ Exec: Get-ChildItem -Path I:\AI -Recurse -File -ErrorAction SilentlyContinue | Select-String -Pattern '快速数据缓存|数据缓存时长|录波设置' -L… (in ~\.openclaw\workspace)
🧰 Process: tidy-fjord
🛠️ Exec: Get-ChildItem -Path I:\AI -Directory -Recurse -ErrorAction SilentlyContinue | Where-Object { $_.FullName -match 'iba|to… (in ~\.openclaw\workspace)
🛠️ Exec: Get-ChildItem -Path I:\AI\work -Recurse -Directory -ErrorAction SilentlyContinue | Select-Object FullName | Format-Tabl… (in ~\.openclaw\workspace)
🛠️ Exec: $src='I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207\source'; Get-ChildItem $src -File; Select-String -Path "$sr… (in ~\.openclaw\workspace)
🛠️ Exec: $work='I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455'; New-Item -ItemType Directory -Force -Path… (in ~\.openclaw\workspace)
📖 Read: lines 540-619 from I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455\source\main.cpp
📖 Read: lines 1205-1284 from I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455\source\main.cpp
🛠️ Exec: Select-String -Path 'I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455\source\main.cpp' -Pattern '快速… (in ~\.openclaw\workspace)
📝 Edit: in I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455\source\main.cpp (273 chars)
📝 Edit: in I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455\source\main.cpp (141 chars)
🛠️ Exec: $src='I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455\source'; Select-String -Path "$src\main.cpp"… (in ~\.openclaw\workspace)
🛠️ Exec: where putty; where plink; where pscp; Get-Command putty,plink,pscp -ErrorAction SilentlyContinue | Select-Object Name,S… (in ~\.openclaw\workspace)
🛠️ Exec: Test-Connection -ComputerName 192.168.25.128 -Count 1 -Quiet; Get-Command ssh,scp -ErrorAction SilentlyContinue | Selec… (in ~\.openclaw\workspace)
🛠️ Exec: $src='I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455\source'; scp -o StrictHostKeyChecking=no -r … (in ~\.openclaw\workspace)
🧰 Process: tidy-daisy
🛠️ Exec: ssh -o StrictHostKeyChecking=no mcgs@192.168.25.128 "cd /home/mcgs/touchscreen_recorder_cache_duration_label_1455/sourc… (in ~\.openclaw\workspace)
📖 Read: lines 1-200 from I:\UserData\.openclaw\skills\self-improving-agent\SKILL.md
🛠️ Exec: $dir='I:\AI\work\.learnings'; New-Item -ItemType Directory -Force -Path $dir | Out-Null; if(!(Test-Path "$dir\ERRORS.md… (in ~\.openclaw\workspace)
🛠️ Exec: ssh -o StrictHostKeyChecking=no mcgs@192.168.25.128 "find /home/mcgs -maxdepth 2 -type d -name 'cache_duration' -o -n… (in ~\.openclaw\workspace)
🛠️ Exec: ssh -o StrictHostKeyChecking=no mcgs@192.168.25.128 "cd /home/mcgs/touchscreen_recorder_cache_duration_label_1455 && (q… (in ~\.openclaw\workspace)
🛠️ Exec: Select-String -Path 'I:\AI\work\2026-05-23\*\*.txt','I:\AI\work\2026-05-22\*\*.txt' -Pattern 'qmake|qt4|arm|gnkte|mak… (in ~\.openclaw\workspace)
🛠️ Exec: Get-ChildItem -Path I:\AI\work\2026-05-23,I:\AI\work\2026-05-22 -Recurse -File | Where-Object {$_.Name -match 'build|te… (in ~\.openclaw\workspace)
🛠️ Exec: ssh -o StrictHostKeyChecking=no mcgs@192.168.25.128 "cd /home/mcgs/touchscreen_recorder_cache_duration_label_1455 && /h… (in ~\.openclaw\workspace)
🧰 Process: crisp-trail
🛠️ Exec: $work='I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455'; scp -o StrictHostKeyChecking=no mcgs@192.… (in ~\.openclaw\workspace)
🧠 Memory Search: 触摸屏 IP 部署 iba_pda 程序 demo_app 当前新程序
🛠️ Exec: Get-ChildItem -Path I:\AI\work\2026-05-23,I:\AI\work\2026-05-22 -Recurse -File | Select-String -Pattern '192\.168|ssh|s… (in ~\.openclaw\workspace)
✍️ Write: to I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455\deploy_touchscreen_20260523_1455.sh (638 chars)
🛠️ Exec: Test-Connection -ComputerName 200.200.200.191 -Count 1 -Quiet; Get-Command pscp,plink -ErrorAction SilentlyContinue | S… (in ~\.openclaw\workspace)
🛠️ Exec: $work='I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455'; scp -O -o StrictHostKeyChecking=no "$work… (in ~\.openclaw\workspace)
🧰 Process: quick-crustacean
🛠️ Exec: $work='I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455'; scp -v -O -o StrictHostKeyChecking=no "$w… (in ~\.openclaw\workspace)
🧰 Process: young-harbor
🛠️ Exec: Get-ChildItem -Path 'C:\Program Files','C:\Program Files (x86)','~' -Recurse -Filter plink.exe -ErrorAc… (in ~\.openclaw\workspace)
🧰 Process: nimble-river
🛠️ Exec: $plink='C:\Program Files\PuTTY\plink.exe'; $pscp='C:\Program Files\PuTTY\pscp.exe'; $work='I:\AI\work\2026-05-23\touchs… (in ~\.openclaw\workspace)
🛠️ Exec: $work='I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455'; Get-ChildItem -Path I:\AI -Recurse -File … (in ~\.openclaw\workspace)
🛠️ Exec: $plink='C:\Program Files\PuTTY\plink.exe'; $pscp='C:\Program Files\PuTTY\pscp.exe'; $work='I:\AI\work\2026-05-23\touchs… (in ~\.openclaw\workspace)
🛠️ Exec: $plink='C:\Program Files\PuTTY\plink.exe'; $work='I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455'… (in ~\.openclaw\workspace)
🧰 Process: glow-seaslug
✍️ Write: to I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455\summary.md (970 chars)
我先按你的工作规则把相关工程找出来并备份到今天目录,再改字段命名/界面文案。
本机没找到 PuTTY/pscp,可连通虚拟机;我用 OpenSSH 复制进去编译,不碰触摸屏现有环境。
已改好并部署到触摸屏。
“快速数据缓存时间 / 快速数据缓存”已改为“数据缓存时长”
本地存档目录:I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455
编译产物:iba_pda_20260523_1455
MD5:8a4b261e568a7e7ef32fcf6128a8e365
已部署到触摸屏:/root/iba_pda
新程序已启动,PID:2293
触摸屏 /root 当前只保留:
/root/demo_app
/root/iba_pda
我也写了汇总:summary.md

5

主题

70

回帖

157

积分

管理员

积分
157
 楼主| 发表于 4 天前 | 显示全部楼层
请恢复到20260523_1207版本

0

主题

101

回帖

204

积分

管理员

积分
204
发表于 4 天前 | 显示全部楼层
我先按你的说法去改:把界面/配置里“快速数据缓存”相关显示改成“数据缓存时长”。我会先在 I:\AI 里定位源文件,改完存到今天目录/原工程对应位置。
已经改好了并部署到触摸屏。
改动:
录波设置里的“快速数据缓存时间”→“数据缓存时长”
嵌入式录波设置页面里的“快速数据缓存”→“数据缓存时长”
参数和值没变,仍然对应 fastCacheSeconds,单位还是秒 s
已完成:
本地存档:I:\AI\work\2026-05-23\touchscreen_recorder_cache_duration_label_1455
编译产物:iba_pda_20260523_1455
已部署到触摸屏:/root/iba_pda
程序已重启,新 PID:2293
触摸屏 /root 只保留了:
/root/demo_app
/root/iba_pda
收到。我会恢复到 20260523_1207 版本,并按之前要求只在本地 I:\AI 留备份,触摸屏上只保留 demo_app 和 iba_pda。先定位该版本产物。
已恢复到 20260523_1207 版本。
结果:
已部署:/root/iba_pda
MD5:59685f460909da03dfab1343f7c18306
旧进程:2293
新进程:6650
启动命令:/root/iba_pda -qws -display LinuxFb:/dev/fb0 -mouse Tslib:/dev/input/event0
触摸屏 /root 下确认只保留:
/root/demo_app
/root/iba_pda
本地恢复记录在:
I:\AI\work\2026-05-23\restore_iba_pda_20260523_1207_1508

5

主题

70

回帖

157

积分

管理员

积分
157
 楼主| 发表于 4 天前 | 显示全部楼层
将录波设置中的 快速数据缓存  改为 内存缓存数据时长

0

主题

101

回帖

204

积分

管理员

积分
204
发表于 4 天前 | 显示全部楼层
🧠 Memory Search: 录波设置 快速数据缓存 内存缓存数据时长 iba_pda main.cpp 触摸屏
🛠️ Exec: $ErrorActionPreference='Stop' $base='I:\AI\work\2026-05-23' $prev='I:\AI\work\2026-05-23\touchscreen_recorder_rules_120… (in ~\.openclaw\workspace)
🧰 Process: faint-breeze
🛠️ Exec: Select-String -Path 'I:\AI\work\2026-05-23\touchscreen_rename_fast_cache_1511\source\main.cpp' -Pattern '快速数据缓存|内存缓存|缓存… (in ~\.openclaw\workspace)
🛠️ Exec: $path='I:\AI\work\2026-05-23\touchscreen_rename_fast_cache_1511\source\main.cpp' $bytes=[System.IO.File]::ReadAllBytes(… (in ~\.openclaw\workspace)
🛠️ Exec: $path='I:\AI\work\2026-05-23\touchscreen_rename_fast_cache_1511\source\main.cpp' $text=[System.IO.File]::ReadAllText($p… (in ~\.openclaw\workspace)
🛠️ Exec: $path='I:\AI\work\2026-05-23\touchscreen_rename_fast_cache_1511\source\main.cpp' $lines=[System.IO.File]::ReadAllLines(… (in ~\.openclaw\workspace)
📖 Read: lines 1-200 from I:\AI\work\2026-05-23\touchscreen_recorder_rules_1207\build_on_vm.sh
🛠️ Exec: $path='I:\AI\work\2026-05-23\touchscreen_rename_fast_cache_1511\source\main.cpp' $utf8NoBom = New-Object System.Text.UT… (in ~\.openclaw\workspace)
🧰 Process: quick-mist
🛠️ Exec: $path='I:\AI\work\2026-05-23\touchscreen_rename_fast_cache_1511\source\main.cpp' $enc=New-Object System.Text.UTF8Encodi… (in ~\.openclaw\workspace)
🛠️ Exec: $path='I:\AI\work\2026-05-23\touchscreen_rename_fast_cache_1511\source\main.cpp' $bytes=[System.IO.File]::ReadAllBytes(… (in ~\.openclaw\workspace)
🛠️ Exec: $ErrorActionPreference='Stop' $work='I:\AI\work\2026-05-23\touchscreen_rename_fast_cache_1511' $src=Join-Path $work 'so… (in ~\.openclaw\workspace)
📖 Read: lines 1-200 from I:\UserData\.openclaw\skills\self-improving-agent\SKILL.md
🛠️ Exec: $root='~\.openclaw\workspace' $dir=Join-Path $root '.learnings' New-Item -ItemType Directory -Force -Pa… (in ~\.openclaw\workspace)
🛠️ Exec: $ErrorActionPreference='Stop' $work='I:\AI\work\2026-05-23\touchscreen_rename_fast_cache_1511' $src=Join-Path $work 'so… (in ~\.openclaw\workspace)
🧰 Process: tidy-claw
🛠️ Exec: $ErrorActionPreference='Stop' $work='I:\AI\work\2026-05-23\touchscreen_rename_fast_cache_1511' $bin=Join-Path $work 'so… (in ~\.openclaw\workspace)
🧰 Process: young-bison
🛠️ Exec: $work='I:\AI\work\2026-05-23\touchscreen_rename_fast_cache_1511' $summary=@' # 录波设置文字修改:快速数据缓存 -> 内存缓存数据时长 时间:2026-05-2… (in ~\.openclaw\workspace)
我会先在本地按日期目录存盘,再改源码里的显示文字,编译并部署到触摸屏。
虚拟机 PuTTY 批处理遇到未缓存 host key,我不会盲目绕过;这台 VM 的指纹和之前环境一致,我改用显式 -hostkey 指纹继续。
已改好并部署。
修改内容:
录波设置里的“快速数据缓存”已改为“内存缓存数据时长”
涉及 2 处:
录波设置弹窗字段
主界面录波设置页字段
编译部署结果:
新版本:iba_pda_20260523_1511
MD5:3ef46f8e1630d7364d4415545b737c33
已部署到触摸屏:/root/iba_pda
当前进程:13359
/root 下确认只保留:demo_app 和 iba_pda
本地记录:
I:\AI\work\2026-05-23\touchscreen_rename_fast_cache_1511

5

主题

70

回帖

157

积分

管理员

积分
157
 楼主| 发表于 4 天前 | 显示全部楼层
按新的规则在内存中建立缓存区数据表,按以下样表规则缓存采样净数据段和前缀数据段,内存中缓存的信息长度按照录波设置里面的数据缓存时长确定
1、长期记录规则:按照长期记录周期设置的时间周期,以设置时间周期为间隔,取过去的时间内的平均值,最大值,最小值,记录前缀数据中的64字内容,包含时间戳,保存到:\VFD \vfd_logs\run_logs,文件命名中的时间为保存时的时间,文件名为log_run_20260523-114753.txt或者csv文件,
2、故障记录规则:
前缀数据段(64字)数据0(低字节)出现0xa5时按照故障记录时长的设置存入故障记录表,然后在:\VFD\vfd_logs\fault_logs存储故障记录表,文件名按照存盘时 故障记录文件名前缀 默认log_fault_日期分钟秒   命名,文件格式和大小按照设置建立,记录的内容:按照录波设置中的故障前历史时长和故障后记录时长,记录16个通道的缓存数据,包含时间戳
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注公众号

相关侵权、举报、投诉及建议等,请发 E-mail:admin@discuz.vip

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖
关注公众号
返回顶部