Skip to content

Device: Log raw bytes of outgoing AAP commands for debugging#509

Merged
d4rken merged 1 commit intomainfrom
chore/aap-log-outgoing-raw-bytes
Apr 14, 2026
Merged

Device: Log raw bytes of outgoing AAP commands for debugging#509
d4rken merged 1 commit intomainfrom
chore/aap-log-outgoing-raw-bytes

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented Apr 14, 2026

What changed

No user-facing behavior change. Outgoing AAP commands (settings writes, ANC mode changes, renames, etc.) now log their raw hex bytes at VERBOSE level.

Technical Context

  • Previously sendRaw logged "Sent command: $command (N bytes)" at DEBUG, so bug-report logs showed the intent but not the actual wire bytes. For settings like PressSpeed where the device doesn't echo the change back, there was no way to verify from a log that the encoder produced what we expected.
  • The new SEND cmd=… len=… raw=… line mirrors the existing incoming MSG cmd=… raw=… format at the same level, so a VERBOSE transcript now contains complete send/receive pairs.
  • Drops the DEBUG summary line — the VERBOSE line is strictly more information and keeps the log at one line per send.

Mirrors the existing incoming MSG log so a full transcript can verify round-trips for settings the device doesn't echo back.
@d4rken d4rken added the coms/AAP Uses Apples AirPod Protocol. Requires Android ROM with fixed L2CAP support on the Bluetooth sockets. label Apr 14, 2026
@d4rken d4rken merged commit 1a0bfbb into main Apr 14, 2026
10 checks passed
@d4rken d4rken deleted the chore/aap-log-outgoing-raw-bytes branch April 14, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coms/AAP Uses Apples AirPod Protocol. Requires Android ROM with fixed L2CAP support on the Bluetooth sockets.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant