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

@asyba asyba force-pushed the flash_logs_tools branch 2 times, most recently from 7bbb205 to a59ac35 Compare January 3, 2026 00:06
@asyba asyba requested a review from gmarull January 3, 2026 04:00
'diorite': (0x280000, 0x20000),
'silk': (0x280000, 0x20000),

# Robert / Emery
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obelix is Emery now ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

'asterix': (0x1FD0000, 0x20000),

# Obelix
'obelix': (0x1FCF000, 0x20000),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mind adding getafix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@asyba asyba force-pushed the flash_logs_tools branch 2 times, most recently from 3de79f1 to f44903a Compare January 5, 2026 15:50
@asyba asyba requested a review from gmarull January 6, 2026 00:10
Copy link
Member

@gmarull gmarull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you have 4 commits here, please, reorganize

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 f44903a to e5d35f0 Compare January 8, 2026 01:07
@asyba asyba requested a review from gmarull January 8, 2026 01:13
@gmarull gmarull merged commit 3976ecf into coredevices:main Jan 8, 2026
23 checks passed
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