Skip to content

Charge 4: read every info token in a 0x12 frame - #15

Open
silex27 wants to merge 1 commit into
ffrafat:mainfrom
silex27:fix/charge4-info
Open

silex27 wants to merge 1 commit into
ffrafat:mainfrom
silex27:fix/charge4-info

Conversation

@silex27

@silex27 silex27 commented Nov 24, 2026

Copy link
Copy Markdown

Hi! Tried the Windows build with my Charge 4 (PID 1F29, fw 3.4.0.0). It connects fine, but showed up as "Unknown model" with no battery.

Turns out the Charge 4 answers AA 11 00 with everything packed into a single 0x12 frame:

AA 12 21 00  C1 0C "JBL Charge 4"  42 1F 29  43 11  44 64  46 00  47 01  48 <mac>

and we only parsed the first token (the name). This PR reads all of them. Tokens with a known size are read in order; anything unknown still eats the rest of the frame, so the Flip 7 style one-token-per-frame replies parse the same as before.

With this my Charge 4 shows up properly: Squad, 100%, fw 3.4.0.0.

Changed in both the C# and Swift libs + a test from my capture (MAC swapped out). Windows tests pass (30/30). I don't have a Mac, so the Swift side isn't compiled. It's the same change as the C# one, but worth a quick swift test.

Also, in case it's useful for the catalog: it doesn't answer any of the EQ reads (6C, 98, 61, P4 0E01), not even with an EE, so info-only is right for this one.

…own)

The Charge 4 sends name, PID, color, battery etc. all in one 0x12 frame
instead of one frame per token. We only read the first token, so it came
up as an unknown model with no battery.

Tokens with a known size are now read one after another; anything unknown
still takes the rest of the frame, so newer speakers parse as before.
Same change on Mac and Windows, plus a test from my Charge 4.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

No deployments
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.

1 participant