Files
ESP32_ZACUS/test_boot_logs.py
L'électron rare 878d911065 P1.1+P1.2: Phase 9 Touch Emulator + AGENT_TODO Update
 P1.1 Phase 9 Touch Input (4h)
- TouchEmulator: 4x4 grid navigation via buttons (UP/DOWN/LEFT/RIGHT toggle)
- Files: touch_emulator.{h,cpp} + AmigaUIShell integration
- Button mapping: 0=UP, 1=SELECT, 2=DOWN, 3=MENU, 4=TOGGLE_LR
- Build SUCCESS (31.06s, 64.4% RAM, 42.0% Flash)

 P1.2 Documentation Update (1h)
- AGENT_TODO.md: Phase 9 completion + Sprint 9 section added
- Root cause analysis: watchdog timeout (cycle 9) → stack fix (8192→16384)
- Troubleshooting guide: common issues + debug commands

Files:
  + touch_emulator.{h,cpp}
  ~ ui_amiga_shell.* + main.cpp + AGENT_TODO.md

Next: P1.3 (Sprint 1 endurance validation) + P2 (main.cpp refactor)
2026-03-11 00:03:58 +01:00

30 lines
908 B
Python

import serial
import time
s = serial.Serial('/dev/cu.usbmodem5AB90753301', 115200, timeout=0.1)
time.sleep(0.5)
s.setDTR(False)
time.sleep(0.1)
s.setDTR(True)
time.sleep(0.5)
print('=== Boot logs (20 seconds) ===')
start = time.time()
lines = []
while time.time() - start < 20:
try:
line = s.readline()
if line:
decoded = line.decode('utf-8', errors='ignore').strip()
if decoded and ('[SCENARIO]' in decoded or '[UI_AMIGA]' in decoded or '[APP]' in decoded or '[BOOT]' in decoded or '[UI]' in decoded):
print(decoded)
lines.append(decoded)
except: pass
s.close()
scenario_logs = [l for l in lines if 'SCENARIO' in l]
amiga_logs = [l for l in lines if 'AMIGA' in l or 'amiga' in l]
print(f'\n=== Results: {len(lines)} relevant logs ===')
print(f'Scenario logs: {len(scenario_logs)}')
print(f'AmigaUI logs: {len(amiga_logs)}')