Skip to content

Conversation

@asyba
Copy link
Contributor

@asyba asyba commented Jan 2, 2026

I added a new pbl command to get the logs from the flash region.
and then a script to deash them (using some other existing scripts) and be able to check the logs.

example:

(.venv) PebbleOS % pbl flash_logs --phone 192.168.1.101 --board asterix                         

Reading flash log region: 0x1FD0000 - 0x1FF0000 (128 KB)

Read 131072 bytes from flash
Saved flash logs to /PebbleOS/flash_logs_2026-01-01_22-03-35.bin

To parse and dehash the logs:
 tools/dehash_flash_logs.py flash_logs_2026-01-01_22-03-35.bin
(.venv) PebbleOS % tools/dehash_flash_logs.py flash_logs_2026-01-01_22-03-35.bin

Successfully parsed 1529 messages. Saved to: flash_logs_2026-01-01_22-03-35_parsed_2026-01-01_22-03-42.txt
? 14:13:49.000 unknown:0> Put bytes cleanup. Tok: 0
? 14:13:49.000 unknown:0> Encountered unknown attribute
? 14:13:49.000 unknown:0> ANCS MSG: Before record_app, app_id=<net.whatsapp.WhatsApp>, num_attrs=40, expiration=0
? 14:13:49.000 unknown:0> RECORD APP: Copying 40 existing attributes
? 14:13:49.000 unknown:0> RECORD APP: Copied AttributeIdMuteExpiration=0
? 14:13:49.000 unknown:0> RECORD APP: Preserving existing AttributeIdMuteExpiration=0

Implement 'pbl flash_logs' to download raw logs from the watch flash
and 'tools/dehash_flash_logs.py' to parse and dehash them.

Signed-off-by: Federico Bechini <federico.bechini@gmail.com>
@asyba asyba force-pushed the flash_logs_tools branch from ab50b7f to 7bbb205 Compare January 3, 2026 00:04
Code review

Signed-off-by: Federico Bechini <federico.bechini@gmail.com>
@asyba asyba force-pushed the flash_logs_tools branch from 7bbb205 to a59ac35 Compare January 3, 2026 00:06
@asyba asyba requested a review from gmarull January 3, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants