Files
hk-aura/docs/09-command-probe.md

5.3 KiB
Raw Permalink Blame History

HarmanSpp command probe

tools/aura_wifi_bt.py --probe-all sends the command IDs recovered from the firmware dispatcher (FUN_08019816) and prints whatever comes back. It opens a fresh RFCOMM session for each command so a short/unknown reply cannot desync the next one.

Command table

ID Command Payload used Category
00 01 query device capability — safe
01 01 query EQ index — safe
01 03 set EQ index 0 00 state
02 01 query volume/mute — safe
02 03 set volume 50 32 state
02 04 set mute 0 00 state
03 01 scan wireless networks — safe
03 04 join wireless network — unsafe (variable payload)
03 05 query wireless IP — safe
03 07 report network number — safe
04 01 query device name — safe
04 03 set device name — unsafe (variable payload)
05 06 upgrade trigger (unknown to the dispatcher) — unsafe
06 01 query version — safe
08 02 key event 0,0 00 00 state
0B 01 query power — safe
0B 03 power off — unsafe (skipped)
0C 01 query series id — safe
0D 02 app query EQ settings 00 state
0D 04 bass settings 0,0 00 00 state
0E 01 query current source — safe
0E 03 set source BT 02 state
53 04 set SSID/share (test/x) 34 74 65 73 74 31 78 state

The command ID is the first two bytes, big-endian, matching the firmware's CONCAT11(frame[0], frame[1]).

Result (2026-11-27)

With A2DP connected and the SPP link up, the 11 safe read-only commands were sent:

00 01  query device capability   -> (none)
01 01  query EQ index            -> (none)
02 01  query volume/mute         -> (none)
03 01  scan wireless networks    -> (none)
03 05  query wireless IP         -> (none)
03 07  report network number     -> (none)
04 01  query device name         -> (none)
06 01  query version             -> (none)
0B 01  query power               -> (none)
0C 01  query series id           -> (none)
0E 01  query current source      -> (none)

No command produced any bytes. Even 00 01 (capability) and 06 01 (version), which do not depend on Wi-Fi, get no reply. This confirms the parser is not consuming the phone's bytes — consistent with the RN52 UART framing/mode mismatch in 07-firmware-spp-state-machine.md, not a missing command in the app protocol.

The state-changing commands were not sent by default. To test them:

python3 tools/aura_wifi_bt.py --probe-all --include-state --recv 1.2
python3 tools/aura_wifi_bt.py --probe-all --unsafe --include-state --recv 1.2

--unsafe still skips commands that need a valid variable-length payload (join network, set name, power off) and prints SKIP.

Post-patch probe (2026-11-27)

After flashing HK_AURA_EU_spp_data_mode.bin (the EU image with the FUN_08017512 mode writes changed from 1 to 0), the safe probe was repeated:

00 01  query device capability   -> 55 04 00 38 00 00 c4   (connection/status frame only)
01 01  query EQ index            -> (none)
02 01  query volume/mute         -> (none)
03 01  scan wireless networks    -> (none)
03 05  query wireless IP         -> (none)
03 07  report network number     -> (none)
04 01  query device name         -> (none)
06 01  query version             -> (none)
0B 01  query power               -> (none)
0C 01  query series id           -> (none)
0E 01  query current source      -> (none)

Also tested:

  • 0xAA <len> <payload> and 0xBB <len> <payload> framing of 00 01, 06 01, 03 01, 03 05, 0E 01 — no response.
  • Echoing valid 0x55 status frames (55 04 00 38 00 00 c4, ...01 c3, 55 02 00 00 fe, 55 02 00 01 fd) — no response.

The 55 frame appears on the first data of a new BT/SPP session (the counter increments per reconnect), so it is a connection/status frame, not a command reply. The MCU still does not consume the phone-to-MCU bytes. The mode patch changed the first-frame behavior but not the data path.

Working channel-2 probe (2026-11-29)

Once the speaker's audio/Wi-Fi hardware was repaired (Power Board CE204/CE4/CE26) and the RFCOMM channel bug was identified — channel 1 is Apple iAP1 (55 04 00 38 00 00 c4 is iAP1 StartIDPS) and connecting to it latches dev[8] = 1 (iAP mode) until a full BT/A2DP disconnect — reconnecting Bluetooth cleanly and probing RFCOMM channel 2 (SPP) succeeded on all 11 / 11 safe read-only commands on stock firmware:

00 01  query device capability   -> 00 02 0f 24 00 00
01 01  query EQ index            -> 01 02 00
02 01  query volume/mute         -> 02 02 00 0a                     (unmuted, vol 10)
03 01  scan wireless networks    -> 03 02 05 03 03 ...             (5–6 visible 2.4 GHz SSIDs)
03 05  query wireless IP         -> 03 06 07 30 2e 30 2e 30 2e 30  ("0.0.0.0")
03 07  report network number     -> 03 08 00
04 01  query device name         -> 04 02 0e 48 4b 20 ...          ("HK Aura WF F60")
06 01  query version             -> 06 02 00 00 04 06 45 55 ...    (0.0.4.6 EU)
0b 01  query power               -> 0b 02 01                       (on)
0c 01  query series id           -> 0c 02 00 00 00 00 00 00 00 00
0e 01  query current source      -> 0e 02 04                       (source 4)