Krolyxon
Commit 1978b2f

Branches

Refs →

budctldocsprotocolrealme_t310.md

669 lines · 54.0 KB · Markdown

1# realme Buds T310: control protocol
2
3This is budctl's clean-room description of how to control the realme Buds T310. Code in `crates/budctl-core/src/devices/realme_t310/` is written from this file, not from any other project's source (CLAUDE.md rules 2 and 3). Each constant in that module cites an anchor here (`Spec: realme_t310.md#anchor`).
4
5The T310 speaks the protocol family shared by many OPPO, OnePlus and realme buds. Linux socket, SDP and BlueZ details are in [`transport.md`](transport.md).
6
7<a id="sources"></a>
8## 0. Evidence
9
10Every fact carries an evidence level that says how far it can be trusted. A fact that is not yet *ours* is tested on the owner's buds before budctl relies on it (CLAUDE.md rule 4).
11
12| Level | Meaning |
13|---|---|
14| **t310** | seen on a real T310 by other users, in a report or log. Not yet verified by budctl |
15| **ours-YYYY-MM-DD** | verified by budctl on the owner's T310 (see the [verification log](#verification-log)) |
16| **vendor** | how the vendor apps (realme Link, HeyMelody) behave. Not seen on a T310 |
17| **buds4** | seen on a OnePlus Buds 4. The framing is shared, but the values may differ on the T310 |
18| **derived** | computed by us from the facts above. Never seen on the wire |
19| **guess** | unverified anywhere. budctl must not send it |
20
21<a id="identity"></a>
22## 1. Identity
23
24- **Bluetooth name:** `realme Buds T310`. budctl recognizes the buds by BlueZ's `Name` property, compared exactly. *vendor*
25- **Product id:** `063C12`. The reply to `0x0103` should be `00 12 3C 06`, which is the id in 3 bytes, little endian. The reply format is *buds4*; the T310 bytes are *derived*.
26- **Not a T310.** If the product id is different, budctl stops: the device is renamed, or it is some other model.
27
28<a id="transport"></a>
29## 2. Transport
30
31- **Link:** classic Bluetooth RFCOMM (SPP), not BLE. The connection is one long-lived byte stream, and the buds may send at any time.
32- **Service UUIDs.** Try them in this order; each is resolved to a channel through SDP ([transport.md#sdp](transport.md#sdp)). The owner's T310 offers the first, on channel 6 (*ours-2026-10-27*).
33 1. `0000079A-D102-11E1-9B23-00025B00A5A5`. The vendor app tries it first. *buds4/vendor*
34 2. `00001107-D102-11E1-9B23-00025B00A5A5`. It is kept for other models; on Buds 4 it never connects.
35- **Fixed channel.** Android clients sometimes use a fixed channel 15. budctl does not use a fixed channel.
36- **One client per host.** On one host, only one socket can hold the control channel: a second one gets `EBUSY` (HW1), and budctl reports a busy channel instead of retrying. Across hosts, the owner's T310 served the laptop and a control app on the phone at the same time, with dual connection on (*ours-2026-10-27*, [question 4](#open)).
37- **Lid close.** Closing the case lid ends the link. *buds4*
38
39<a id="frame"></a>
40## 3. Frame format
41
42Every message is wrapped in one frame.
43
44```
45AA len slice 00 [fsn] cmd(2, LE) seq paylen(2, LE) payload
46```
47
48| Field | Size | Meaning |
49|---|---|---|
50| `AA` | 1 | start of frame |
51| len | 1-3 | **LEB128**: 7 bits per byte, low bits first, top bit = another byte follows. It counts every byte after the length itself |
52| slice | 1 | `00` = the whole message in one frame; `01` / `02` / `03` = first / middle / last slice of a long message |
53| `00` | 1 | always zero |
54| fsn | 1 | slice number from `00`; present only in slices (`01`-`03`) |
55| cmd | 2 | command id, little endian |
56| seq | 1 | sequence byte (see [§4](#seq)) |
57| paylen | 2 | payload length, little endian |
58| payload | paylen | message body |
59
60<a id="frame-whole"></a>
61**Whole message.** `len = 7 + paylen`. There is no checksum. *buds4*
62
63Examples (*buds4*):
64
65```
66AA 07 00 00 00 01 01 00 00 handshake 0x0100, seq 01, no payload
67AA 0A 00 00 04 04 06 03 00 01 01 01 0x0404 seq 06, payload 01 01 01
68AA 0C 00 00 04 02 FF 05 00 03 01 01 08 00 0x0204 push (seq FF), payload 03 01 01 08 00
69```
70
71<a id="frame-long"></a>
72**Long lengths.** A 124-byte payload gives `len = 131`, sent as `AA 83 01`. A 250-byte reply arrives as `AA 81 02` (257). *buds4*
73
74<a id="frame-slices"></a>
75**Slices** (*vendor*):
76- A slice frame is `AA len slice 00 fsn <part of cmd/seq/paylen/payload>`, with `len = 3 + part length`.
77- The receiver joins the parts in order and parses the result when the `03` slice arrives. A middle or last slice with no first slice is dropped.
78- Senders slice only above about 660 bytes, so budctl never sends slices.
79
80<a id="frame-from-buds"></a>
81**Frames the buds start** (*ours-2026-10-27*). On the owner's T310, every frame the buds send on their own (requests such as `0x0501` and `0x0204` pushes) has `08` in the slice byte, not `00`. The rest of the frame is laid out as a whole message, and `len = 7 + paylen` holds. Replies carry `00`. budctl therefore reads a slice byte of `00` or `08` as a whole message. Other values are not seen and are still dropped. Captured examples:
82
83```
84AA 07 08 00 01 05 0F 00 00 0x0501 seq 0F, no payload
85AA 0F 08 00 04 02 10 08 00 01 03 02 64 01 64 03 00 0x0204 seq 10, battery push 01 03 02 64 01 64 03 00
86```
87
88<a id="frame-receive"></a>
89**Receiving**:
90- Treat the input as a byte stream: one read may hold several frames or part of one.
91- Throw away bytes before `AA`.
92- If the length is implausible (more than 3 length bytes, below 4, or above 4096), drop that `AA` and look for the next one.
93- If the paylen claims more bytes than the frame holds, keep the bytes that are there.
94
95<a id="seq"></a>
96## 4. Sequence numbers and replies
97
98- **Replies.** The sender picks `seq`. The reply has the same seq and the command id with bit 15 set (`0x0106` → `0x8106`). budctl matches a reply on (seq, cmd), which is also how HeyMelody does it. *buds4/vendor*
99- **budctl's seq values.** budctl uses `01`-`BF`, counting up and wrapping. Pushes from Buds 4 use `FF` (*buds4*); the T310 uses its own counter ([§3](#frame-from-buds)).
100- **Status byte.** The first payload byte of a reply is a status, and `00` means success. A read reply with any other status carries no data.
101- **Command groups:**
102
103 | Range | Group |
104 |---|---|
105 | `0x01xx` | queries |
106 | `0x02xx` | event registration and pushes |
107 | `0x03xx` | firmware update (budctl never sends these; see the non-goals) |
108 | `0x04xx` | writes |
109 | `0x05xx` | requests from the buds |
110 | `0x0Fxx` | private |
111
112<a id="bitmap"></a>
113## 5. Command bitmap
114
115- **Reading it.** The reply to the handshake `0x0100` is `00` followed by the bitmap bytes. Read them least-significant bit first: bit *n* is bit `n % 8` of byte `n / 8`.
116- **Using it.** A set bit enables a fixed group of commands. **budctl never sends a command whose bit is clear**, as the vendor apps don't. Bits beyond the end of the bitmap count as clear. *vendor*
117- **Always allowed:** `0x0100`-`0x0104`, `0x0106`, `0x010B`, `0x010D`. `0x0200` belongs to no bit; the vendor app sends it on every connect. *vendor/buds4*
118
119Gate table for every command budctl uses or documents here:
120
121| Command(s) | Gate |
122|---|---|
123| `0x0100` handshake, `0x0103` product id, `0x0106` battery, `0x010D` switch read, `0x0200` offered events | always |
124| `0x0105` firmware | bit 0 |
125| `0x0108` gesture read, `0x0401` gesture write | bit 3 |
126| `0x0109` wearing | bit 4 |
127| `0x0400` find my earbuds | bit 5 |
128| `0x0403` switch write | bit 7 |
129| `0x010C` noise-control read, `0x0404` noise-control write | bit 8 |
130| `0x0405` fit test | bit 9 |
131| `0x010F` EQ read, `0x0406` EQ select | bit 10 |
132| `0x0114` current codec | bit 17 |
133| `0x0205` subscribe | bit 22 |
134| `0x0112` dual-connection devices | bit 29 |
135| `0x0122` custom EQ list, `0x0418` custom EQ write | bit 34 |
136| `0x0124` bass level read, `0x041B` bass level write | bit 38 |
137
138<a id="bitmap-t310"></a>
139**The T310's command set** (*t310*), from a log of a real T310, as a decoded list:
140
141`0100 0101 0102 0103 0104 0105 0106 0107 0108 0109 010B 010C 010D 010F 0112 0114 0115 0116 0122 0124 0205 0400 0401 0403 0404 0405 0406 0407 040B 040D 040E 040F 0416 0418 041B 0F00 0F03 0F04 EF02`
142
143- **Bits that must be set** for that list (*derived*): 0, 2, 3, 4, 5, 7, 8, 9, 10, 11, 17, 19, 20, 22, 29, 34, 38, 42.
144- **A bitmap reply with exactly those bits:** `00 BD 0F 5A 20 44 04` (*derived*).
145- **The owner's T310 answers** `00 BF 1F 5A 20 45 04 40 00` (*ours-2026-10-27*; the unit tests use it). That is every bit above plus bits 1, 12, 32 and 54, which gate no command budctl uses. Every bit listed under "what the T310 lacks" is clear.
146- **What the T310 lacks.** These commands are absent, so budctl never sends them:
147 - `0x012F` batch query (bit 56): every read goes out alone.
148 - `0x041E` 3D-audio source (bit 43).
149 - `0x0413` phone state (bit 27).
150 - `0x0130`/`0x0427` alert volume (bit 57).
151 - `0x0133`/`0x042D` tap sensitivity (bit 61).
152 - `0x0423` game sound (bit 49).
153 - `0x012A`/`0x0422` spatial type (bit 47).
154 - `0x0429`/`0x0132` dual-connection device manager (bit 59): connect, disconnect, unpair, preferred device ([§9.10](#dual-manager)).
155
156<a id="init"></a>
157## 6. Session start
158
159**The vendor sequence** (*buds4*, matching HeyMelody):
160- Wait 300 ms after the socket connects, then send one message every 200 ms.
161- Order: `0x0100` → `0x0103` → `0x0200` → `0x0205` → reads.
162- There is no authentication or key exchange.
163
164**budctl does:**
1651. Connect, then wait 300 ms. During the wait, keep answering the buds' requests ([§7](#buds-requests)).
1662. `0x0100`. Keep the bitmap.
1673. `0x0103`. The id must be `063C12` ([§1](#identity)).
1684. <a id="events-offered"></a>`0x0200` → `00 <count> <codes...>`: the event codes the buds can push. Buds 4 offers `01 02 03 04 08 0B F1 F2 F3` (*buds4*). The owner's T310 offers `01 02 03 04 05 06 0D F1 F4` (*ours-2026-10-27*).
1695. <a id="subscribe"></a>`0x0205 <count> <codes...>` (count first) subscribes. budctl asks for these codes, keeping only the ones the buds offered (*vendor*):
170 - `01` battery, `02` wearing and `03` noise control;
171 - `04` (fit-test result) if `0x0405` is allowed.
172
173 Other clients also subscribe to `08` when `0x040D` is allowed. budctl does not: this spec does not say what event `08` carries or what `0x040D` does, and budctl handles no such event. Add it only once both are documented here with a source.
174
175 Never send `01 01 02 02`: that means "count 1, code 01". The `0x8205` ack may never arrive (*buds4*, Nord Buds 3 Pro), so budctl does not wait for it. The T310 does send it, about 50 ms later: `00 04 01 00 02 00 03 00 04 00`, a `00` result for each code (*ours-2026-10-27*).
1766. Reads, one per request.
177
178**Spacing.** budctl keeps the captured spacing: at least **200 ms** between any two frames it sends. It waits for each reply before sending the next request.
179
180<a id="buds-requests"></a>
181## 7. Requests from the buds
182
183The buds send some requests of their own. The answer repeats the request's seq and sets bit 15 of its command. Some firmware resets the link 3-5 s after connecting if the time request goes unanswered (Nord Buds 3 Pro, *buds4*-family capture).
184
185| From the buds | budctl answers | Meaning |
186|---|---|---|
187| <a id="time-request"></a>`0x0500` | `00 <Unix seconds, u32 LE>` | time request, sent on connect |
188| `0x050C` | `00 01 00` | "is the foreground app on my list?" — no |
189| `0x051C` | `00 00 00` | host app capabilities: fast discovery off |
190| `0x051D` | `01` | the phone's spatial mode (budctl always answers `01`) |
191| a command outside groups `01`-`05` and `0F` | `01` | unknown request |
192
193- **Test vector** (*buds4*): at Unix time 1750000000, the request `AA 07 00 00 00 05 02 00 00` gets the answer `AA 0C 00 00 00 85 02 05 00 00 80 E1 4E 68`.
194- **Not answered:** other `0x05xx` messages and all pushes. Neither vendor app answers them.
195- **Pushes `F2` and `F4`:** other clients acknowledge these. budctl does not yet; see [open questions](#open).
196- **On the T310** (*ours-2026-10-27*): right after connecting, the buds send `0x0501` with no payload (slice byte `08`, their own seq). budctl does not answer it (it is an "other `0x05xx`" message), and no link reset followed in a 5 s session. No `0x0500` time request was seen.
197
198<a id="pushes"></a>
199## 8. Pushes
200
201budctl reads none of these yet. It skips them while waiting for replies (and prints them with `--debug`).
202
203- **`0x0204` event push.** Seq is `FF`; classify by cmd, because one Buds 4 push used another seq. `payload[0]` is the event code:
204
205 | Code | Event | Layout after the code |
206 |---|---|---|
207 | `01` | battery | `<count> (<part> <raw>)…` (as in [§9.1](#battery)) |
208 | `02` | wearing | `<count> (<part> <state>)…` |
209 | `03` | noise control | `01 01 <mask LE>` = new mode; `02 <kind> <mask>` = new hold cycle (not a mode) |
210 | `04` | fit-test result | `(<dev> <result>)…` |
211 | `05` | game mode | `<state>`. **The T310 never sends this** (*t310*) |
212 | `06` | dual-connection devices | `<count> <entries…>`, as in [§9.10](#dual-devices) (*buds4*) |
213 | `F1` | a gesture fired | `<side> <button> <act> <fn> …`. Diagnostic only |
214
215- **`0x0503`** `<count> (<id> <value>)…`: switch values changed (*vendor*, other realme models).
216- **`0x0504`** `<id>`: the EQ preset changed.
217
218<a id="reads"></a>
219## 9. Reads
220
221<a id="battery"></a>
222### 9.1 Battery: `0x0106`
223
224This command is always allowed. Battery reading is confirmed on a T310 (*t310*); the byte layout is *buds4*.
225
226- **Request:** no payload.
227- **Reply:** `00 <count> (<part> <raw>)…`.
228 - `part` is `01` left, `02` right or `03` case.
229 - `level = raw & 0x7F` (percent). `charging = raw & 0x80`.
230 - A level of 0 means "not known", so leave that part out.
231- **Example:** `00 03 01 64 02 64 03 50` → left 100 %, right 100 %, case 80 %.
232- **No list.** A count of 0, or pairs that run past the end, mean no list.
233- **Lid closed.** The case, and a bud inside it, report only while the lid is open (*buds4*).
234
235<a id="firmware"></a>
236### 9.2 Firmware: `0x0105`
237
238Evidence: *buds4*
239
240- **Reply:** `00 <count> <UTF-8 text>`. The text is a comma-separated list of `device,kind,version` triples, where device `1` is left, `2` right and `3` case.
241- **Display.** Show the versions of kind `2`, in reply order, joined with dots. HeyMelody shows them this way. If there are none, show the raw text.
242- **Example:** `1,2,138,2,2,138,3,1,01,3,2,105` → `138.138.105`.
243- **On the T310** (*ours-2026-10-27*): `00 02` then `1,2,1.1.0.43,2,2,1.1.0.43`. Each version is already a full dotted version, so joining them with dots would be misleading. When any version contains a dot, budctl shows each distinct version once, joined with ` / `: here `1.1.0.43`.
244
245<a id="codec"></a>
246### 9.3 Codec in use: `0x0114`
247
248Evidence: *buds4*
249
250- **Reply:** `00 <codec>`.
251- **Codec values:** `01` SBC, `02` AAC, `03` LDAC, `04` aptX, `05` aptX HD, `06` aptX Adaptive, `07` LHDC, `08` LHDC V5.
252- The T310 offers AAC and SBC (*vendor*).
253
254<a id="anc-read"></a>
255### 9.4 Noise control: `0x010C 01 01`
256
257- **Reply:** `00 01 01 <mask LE>`. The mask is 1-4 bytes; the T310's width is unknown, so read every byte that is there.
258- **Values.** On realme buds the value read back uses the same bits as the write (*vendor*; tested on the Air7 Pro only):
259
260 | Mask | T310 mode |
261 |---|---|
262 | `01` | off |
263 | `02` | transparency |
264 | `04` | noise cancelling, light |
265 | `08` | noise cancelling, deep. Also plain "noise cancelling on": both are the same value |
266 | `10` | noise cancelling, medium |
267
268- **No Smart.** The T310 has no Smart level (`20`).
269- **Decoding `08`.** budctl shows `08` as noise cancelling with level *deep*. This still needs a hardware check (see [open questions](#open)).
270- Noise control as a whole is confirmed on a T310 (*t310*). The bit values above are *vendor*.
271
272<a id="switches"></a>
273### 9.5 Switches: `0x010D`
274
275- **Request:** `<count> <ids…>`. budctl asks only for the T310's ids: `05 06 11 1A 1B 1D`.
276 - `05 06 11 1B 1D` is the vendor app's query list for the T310 (*vendor*).
277 - `1A` is added because the model has the wind-noise row (`windMode`).
278- **Reply:** `00 <count> (<id> <value>)…`. A value of `01` means on, `00` off.
279
280| Id | Switch | Evidence |
281|---|---|---|
282| `05` | unknown. The vendor apps always ask it first and ignore the value | *vendor* |
283| <a id="switch-game"></a>`06` | game mode ("low latency") | confirmed on a T310, *t310* |
284| <a id="switch-dual"></a>`11` | dual connection | seen in a T310 log, *t310* |
285| <a id="switch-wind"></a>`1A` | wind-noise reduction | realme Link shows it for the T310 (*vendor*). The T310 answers this id (*ours-2026-10-27*) |
286| <a id="switch-spatial"></a>`1B` | 3D sound | seen in a T310 log, *t310* |
287| <a id="switch-bass"></a>`1D` | bass boost ("BassWave", "dynamic sound") | seen in a T310 log, *t310* |
288
289- **The T310 answers every id it is asked, even ids it lacks** (a T310 log: all 23 ids came back). A switch being in the reply therefore proves nothing.
290 - Writing ids `04 0B 18 27 35` got status `01`, "the buds lack this id" (*t310*).
291 - That is why budctl asks only for the ids above.
292
293<a id="eq-read"></a>
294### 9.6 EQ preset: `0x010F`
295
296Preset names are the vendor app's (*vendor*).
297
298- **Reply:** `00 <id>`.
299- **Built-in presets** on realme buds (*vendor*, unverified on the T310):
300
301 | id | Preset |
302 |---|---|
303 | `00` | Pure raw |
304 | `01` | Deep bass |
305 | `02` | Pure vocals |
306 | `03` | Pure bass |
307
308- **Any other id** is a custom preset. On Buds 4, custom ids start at `04` (*buds4*).
309
310<a id="bass-read"></a>
311### 9.7 Bass level: `0x0124`
312
313Evidence: *vendor*; the T310's command set lists it.
314
315- **Reply:** `00 <min s8> <max s8> <level s8>`. The usual range bytes are `FB 05`, meaning -5..+5.
316- **The T310 does not answer it with bass boost off** (*ours-2026-10-27*, HW1): an empty `0x0124` got no reply within 3 s, although bit 38 is set. Bass boost (switch `1D`) was off at the time.
317- <a id="bass-read-w6"></a>**Not with bass boost on either** (*ours-2026-10-27*, W6a). The vendor data ties the bass level to the bass engine, so the read might have needed bass boost on. With `0x010D` reporting `1D 01`, an empty `0x0124` again got no reply within 3 s. budctl does not send it. Without a read, a bass-level write ([§10.4](#bass-write)) can only be checked by ear.
318
319<a id="gestures"></a>
320### 9.8 Touch controls: `0x0108`
321
322- **Reply:** `00 <count> (<dev> <btn> <act> <fn>)…`. Each entry is 4 bytes.
323- **`dev`:** `01` left, `02` right, `04` both (on-call rows).
324- **`btn`:** `01` main gestures, `06` the on-call group.
325- **`act`:** `01` single tap, `02` double tap, `03` triple tap, `04` hold, `05` slide, `06` long hold.
326- **`fn` values** (measured on *buds4*; realme uses the same values per *vendor*):
327
328 | `fn` | Function |
329 |---|---|
330 | `00` | none |
331 | `01` | play/pause |
332 | `03` | voice assistant |
333 | `05` | previous track |
334 | `06` | next track |
335 | `07` | volume (slide) |
336 | `08` | noise-control cycle |
337 | `09` | favourite music |
338 | `0A` | switch track (slide) |
339 | `0B` | volume up |
340 | `0C` | volume down |
341 | `0D` | switch devices |
342 | `11` | game mode |
343 | `1C` | decline call |
344 | `1D` | answer/end call |
345
346- <a id="gesture-choices"></a>**What realme Link offers for the T310** (*vendor*). Each bud is set on its own, as `dev` 01/02 with `btn` 01. budctl offers exactly these choices and no others, although the family defines more `fn` values. `budctl touch both …` changes the left and the right bud's entry in one write; it never writes a `dev 04` row.
347
348 | Gesture | Choices |
349 |---|---|
350 | double tap | none, play/pause, next, voice assistant |
351 | triple tap | none, previous, next, voice assistant, volume up, volume down, game mode |
352 | hold | none, noise-control cycle, voice assistant, game mode |
353
354- **Table shape.** No T310 gesture table has ever been captured. Its shape is unknown, so budctl shows every entry it receives.
355
356<a id="hold-cycle"></a>
357### 9.9 Hold noise-control cycle: `0x010C 02 01`
358
359Evidence: *vendor*
360
361- **Reply:** `00 02 01 <mask LE>`. The mask lists which modes a hold steps through, using the noise-control bits: `01` off, `02` transparency, `08` noise cancelling.
362- **Both buds.** On realme buds one setting covers both buds (kind `01`).
363- **When it applies.** The cycle is used only where a bud's hold gesture is `fn 08`.
364
365<a id="dual-devices"></a>
366### 9.10 Dual-connection devices: `0x0112`
367
368The phones and computers the buds keep for dual connection, and which of them are connected now. budctl only reads this list.
369
370- **Gate:** bit 29 (*vendor*). The T310's command set lists `0112` (*t310*), and the owner's T310 sets bit 29 (*ours-2026-10-27*).
371- **Request:** no payload. The T310 answers it (*ours-2026-10-28*, HW2).
372- **Reply:** `00 <count>`, then `count` entries (*ours-2026-10-28*):
373
374 | Bytes | Field |
375 |---|---|
376 | 6 | the device's Bluetooth address, in the order people write it |
377 | 1 | `len`: how many bytes of the entry follow |
378 | 1 | state: `02` connected, `00` not connected |
379 | 1 | flags |
380 | 1 | name length |
381 | name length | the device's name, UTF-8 |
382
383- <a id="dual-address"></a>**Address order.** A capture from another model shows the address last byte first (*buds4*). The T310 sends it first byte first: the laptop's entry held its adapter's address exactly as BlueZ reports it (*ours-2026-10-28*, HW2).
384- **`len`** covers the state, the flags, the name length and the name, so it is 3 more than the name length. It was, in all four entries at HW2 (*ours-2026-10-28*). budctl finds the next entry with `len`, and ignores any bytes after the name (*derived*).
385- **Flags.**
386 - Bit 0 marks the device that asked, for budctl the computer it runs on: the laptop's entry had `01` (*ours-2026-10-28*).
387 - Bit 1 marks the main audio device and bit 2 a device playing audio (*vendor*). No entry had either set at HW2.
388 - Bits 3-5 give the kind of device (*vendor*), but the T310 left them 0 for phones and the laptop alike (*ours-2026-10-28*), so budctl does not use them.
389- **Devices that are not connected stay in the list**, with state `00`. At HW2 two phones that had connected before were listed that way (*ours-2026-10-28*).
390- **Example:** the HW2 reply, with the addresses and two of the names replaced by made-up ones of the same length:
391
392 ```
393 00 04
394 02 00 00 00 00 01 15 02 00 12 "Nothing Phone (3a)" connected
395 02 00 00 00 00 02 09 02 01 06 "Legion" connected, the device that asked
396 02 00 00 00 00 03 0A 00 00 07 "Phone A" not connected
397 02 00 00 00 00 04 0F 00 00 0C "Friend's A16" not connected
398 ```
399- **Push.** Event `06` of `0x0204` carries the same list, `06 <count> <entries…>`, when it changes (*buds4*). The T310 offers event `06` ([§6](#events-offered)), but budctl does not subscribe to it.
400- <a id="dual-manager"></a>**No device manager on the T310.** Connecting, disconnecting or unpairing one of these devices, and choosing a preferred one, are other commands (`0x0429`, read `0x0132`). They belong to bit 59, which the owner's T310 leaves clear (*ours-2026-10-27*, [§5](#bitmap-t310)), and the vendor data gives the T310 no device manager (*vendor*). budctl never sends them.
401
402<a id="writes"></a>
403## 10. Writes
404
405**One at a time.** budctl adds a write only after the previous one passes its hardware checkpoint (see the [roadmap](#roadmap)). Sent so far: [§10.1](#anc-write) off/transparency/on (W1, verified *ours-2026-10-27*), the light/medium/deep levels (W2, verified *ours-2026-10-27*), and [§10.2](#switch-write) game mode (W3, verified *ours-2026-10-27*), and [§10.3](#eq-write) the built-in EQ presets (W4, verified *ours-2026-10-27*), the bass-boost switch `1D` (W5a, verified *ours-2026-10-27*), 3D sound `1B` (W5b, verified *ours-2026-10-27*), wind-noise reduction `1A` (W5c, verified *ours-2026-10-27*), and dual connection `11` (W5d, verified *ours-2026-10-27*); [§10.5](#find) find (W7, verified *ours-2026-10-27*); [§10.6](#gesture-write) touch controls (W8, verified *ours-2026-10-27*); [§10.7](#hold-cycle-write) the hold cycle (W9, verified *ours-2026-10-27*); [§10.4](#bass-write) the bass level (W6b, acked *ours-2026-10-27*; the effect is faint by ear and cannot be read back). The fit test ([§10.8](#fit-test), W10) is acked but does nothing on the T310; it is dropped. The others are not sent yet.
406
407**General rule**:
408- A write reply is `0x84xx <status …>`, and `00` means accepted.
409- Accepted is not the same as applied. **Always read the state back** and compare it.
410- <a id="write-read-back"></a>**How budctl reads back** (budctl's own policy, not a protocol fact): it reads once right after the ack. If the old value is still there, it reads again every 300 ms for up to 2 s. If the value has still not changed, the command fails with exit 4 ("accepted but not applied"). A write that has its own timing, such as game mode ([§10.2](#switch-write)), says so in its section.
411
412<a id="anc-write"></a>
413### 10.1 Noise control: `0x0404 01 01 <mask>`
414
415- **Payload:** one bit set, in the fewest bytes, little endian. The T310 masks are the same as for [§9.4](#anc-read): off `01`, transparency `02`, light `04`, deep or "on" `08`, medium `10`.
416- **Reply:** `0x8404 <status>`.
417 - Status `0E` means no bud is in an ear (*buds4*). The T310 has no in-ear sensor (*t310*), so it may never send it.
418- **Check:** read `0x010C 01 01` again.
419- **`anc on`.** budctl writes `08` (deep), because no "on at the saved level" value is known, and budctl keeps no device state of its own. The buds do remember the level (*ours-2026-10-27*, W2): after `anc light`, `anc transparency` and a hold gesture, noise cancelling came back as light (`04`). How an app turns noise cancelling on at the saved level is unknown. Writing `08` forces deep, and the saved level cannot be read while noise cancelling is off. Finding out needs an Android HCI snoop of realme Link turning noise cancelling on after a level was chosen ([open questions](#open)).
420- **Levels on the T310** (*ours-2026-10-27*, W2): `01 01 04` (light), `01 01 10` (medium) and `01 01 08` (deep) were each acked with `00` within 15-30 ms and read back on the first try.
421- **On the T310** (*ours-2026-10-27*, W1): payloads `01 01 01`, `01 01 02` and `01 01 08` each got `0x8404 00` within 20-80 ms. The first read-back, about 200 ms later, already showed the new mask. The buds played their own voice prompts ("Normal Mode", "Transparent Mode", "Noise Cancelling"). They sent no event-`03` push for the change, although it was subscribed.
422
423<a id="switch-write"></a>
424### 10.2 Switches: `0x0403 <id> <01|00>`
425
426- **Reply:** `0x8403 <status>`:
427 - `00` accepted
428 - `01` the buds lack this id
429 - `02` or anything else: refused for now
430- **Check:** read `0x010D` again.
431- **Game mode on the T310.** The buds never push the new value (*t310*). On Buds 4 the change lands about 1 s after the ack, and a read sooner still returns the old value (*buds4*). So budctl reads back 1 s after the ack, then every 300 ms until 3 s after the ack.
432- **Bass boost on the owner's T310** (*ours-2026-10-27*, W5a): `0x0403 1D 01` and `1D 00` were acked with `00` within 30 ms. The immediate read-back already showed the new value, and no push came. With the EQ on pure-bass, the owner heard no clear difference.
433- **3D sound on the owner's T310** (*ours-2026-10-27*, W5b): `0x0403 1B 01` and `1B 00` were acked with `00` within 30 ms. The immediate read-back showed the new value. The owner heard a difference but could not name it.
434- **Wind-noise reduction on the owner's T310** (*ours-2026-10-27*, W5c): `0x0403 1A 00` and `1A 01` were acked with `00` within 35 ms. The immediate read-back showed the new value. It is not audible in music.
435- **Dual connection on the owner's T310** (*ours-2026-10-27*, W5d): `0x0403 11 01` and `11 00` were acked with `00` within 50 ms. The immediate read-back showed the new value. The laptop's link stayed up both ways. Only one host was connected (the phone's Bluetooth was off), so turning it off with two hosts connected is still untested.
436- **Game mode on the owner's T310** (*ours-2026-10-27*, W3): `0x0403 06 01` and `06 00` were acked with `00` within 13 ms. The read 1 s later already showed the new value. No push came, and the buds played no prompt.
437- **Dual connection.** Other clients also send `0x0413` afterwards. The T310's bitmap lacks it, so budctl sends only `0x0403 11`. Turning dual connection off may drop the link to one host, so it is tested last.
438
439<a id="eq-write"></a>
440### 10.3 EQ preset: `0x0406 <id>`
441
442Evidence: *vendor*
443
444- **Reply:** `0x8406 <status>`.
445- **Check:** read `0x010F` again.
446- **On the owner's T310** (*ours-2026-10-27*, W4): ids `00`-`03` were each acked with `00` within 20-40 ms and read back on the first try. The owner heard a clear difference between them. The names come from the vendor app; the owner did not check by ear that each sound matched its name.
447
448<a id="bass-write"></a>
449### 10.4 Bass level: `0x041B FB 05 <level s8>`
450
451Evidence: *vendor*
452
453- **Range:** -5..+5.
454- **Check:** read `0x0124` again. **Not possible on the T310**, which never answers that read ([§9.7](#bass-read-w6)), so budctl checks only the `0x841B` status and the owner listens.
455- **What budctl does:** `budctl bass <level>` refuses a level outside -5..+5 before sending anything.
456- **Expected frame** (*derived*), for `bass 3` with seq `05`: `AA 0A 00 00 1B 04 05 03 00 FB 05 03`.
457- **On the owner's T310** (*ours-2026-10-27*, W6b): `FB 05 FB` (-5), `FB 05 05` (+5) and `FB 05 00` (0) were each acked with a plain `0x841B 00` within 35 ms. Unlike the gesture write, the ack carries no data. Bass boost was off. By ear the owner heard at most a slight difference between -5 and +5. Whether the level does more with bass boost on is untested.
458
459<a id="find"></a>
460### 10.5 Find my earbuds: `0x0400 01` / `0x0400 00`
461
462Evidence: *buds4*
463
464- `01` starts ringing both buds and `00` stops it. The reply is `0x8400 00`.
465- **It is loud.** `budctl find start` refuses to run (exit 1) without `--yes`, and checks that before it connects. `find stop` needs no flag.
466- Only the ack can be checked: there is no state to read back.
467- **On the owner's T310** (*ours-2026-10-27*, W7): `0x0400 01` and `0x0400 00` were each acked with `0x8400 00` within 18 ms. `01` rang both buds. **The ringing continues after budctl disconnects**, until `00` silences it, so budctl does not need to hold the link while the buds ring.
468
469<a id="gesture-write"></a>
470### 10.6 Touch controls: `0x0401 <count> (<dev> <btn> <act> <fn>)…`
471
472The command and layout are *buds4*; the realme rules are *vendor*.
473
474- **Whole table.** The write carries the whole table. Start from a table read in the same session and change only the targeted entries.
475- **Reply:** `0x8401 00`. On the owner's T310 (*ours-2026-10-27*, W8), the `00` is followed by the table **as it was before the write**, cut to the length of the write's payload: 25 bytes, so the last `fn` byte is missing. budctl checks only the status byte, and reads the table back to see the change.
476- **Check:** read `0x0108` again after about 600 ms and compare.
477- **Wrong command ids fail silently.** For example, `0x0402` gets no reply at all.
478- **What budctl does** (budctl's own policy, not a protocol fact):
479 - It checks the side, gesture and action against [the T310's choices](#gesture-choices) before it sends anything.
480 - It reads `0x0108` and changes the `fn` byte of the targeted `btn 01` entries only. Every other byte, including the order of the entries, is copied from the reply. The payload is the reply without its status byte.
481 - It never adds an entry: if the buds did not report the targeted entry, it refuses.
482 - If the entry already has the action, it sends nothing.
483 - `--dry-run` reads the table and prints the payload it would send, then stops.
484 - After the ack it reads the table back 600 ms later, then every 300 ms until 2 s after the ack ([read-back](#write-read-back)).
485- **On the owner's T310** (*ours-2026-10-27*, W8): `touch left triple-tap volume-up` sent exactly the expected frame below. The ack came within 25 ms, and the first read-back (600 ms after the ack) already showed `fn 0B`. A second write, `volume-up` → `previous` (`fn 05`), behaved the same way. No push came. The owner confirmed that the new triple tap works.
486- **Expected frame** (*derived*, matched on the wire at W8), for `touch left triple-tap volume-up` on the owner's HW1 table, with seq `06`: `AA 20 00 00 01 04 06 19 00 06 01 01 02 01 01 01 03 0B 01 01 04 08 02 01 02 01 02 01 03 06 02 01 04 08`.
487
488<a id="hold-cycle-write"></a>
489### 10.7 Hold cycle: `0x0404 02 01 <mask>`
490
491Evidence: *vendor*
492
493- **Mask:** the fewest bytes that hold it, and at least 2 modes (*vendor*).
494- **Level bits.** The buds silently drop level bits (*buds4*).
495- **Check:** read `0x010C 02 01`.
496- **Reply:** `0x8404 <status>`, as for [§10.1](#anc-write).
497- **What budctl does** (budctl's own policy): `budctl touch cycle <mode> <mode> [<mode>]` accepts `off` (`01`), `transparency` (`02`) and `anc` (`08`), at least two of them and none twice, in any order, because the mask has no order. It never sets the level bits `04` and `10`. It reads the cycle back as for [§10.1](#write-read-back).
498- **Expected frame** (*derived*, matched on the wire at W9 apart from the seq byte), for all three modes with seq `06`: `AA 0A 00 00 04 04 06 03 00 02 01 0B`.
499- **On the owner's T310** (*ours-2026-10-27*, W9): `02 01 0B` (off, transparency, noise cancelling) and `02 01 09` (off, noise cancelling) were each acked with `0x8404 00` within 60 ms. The first read-back already showed the new mask. The owner confirmed that a hold steps through the new cycle. A cycle that includes `off` is accepted.
500- **On the owner's buds** the cycle is `0A` (transparency and noise cancelling, HW1), and every hold gesture is `fn 08`, so the cycle applies to both buds.
501
502<a id="fit-test"></a>
503### 10.8 Fit test: `0x0405 01` / `0x0405 00`
504
505Evidence: *buds4*
506
507- `01` starts the test and `00` stops it.
508- **Result:** arrives as push `04 (<dev> <result>)…`, where `1` = good, `0` = average and `6` = poor. The push needs event `04` subscribed.
509- **Timing:** about 8.6 s on Buds 4. Both buds must be in the ears.
510- **The T310 runs no test** (*ours-2026-10-27*, W10). With both buds in the owner's ears, `AA 08 00 00 05 04 05 01 00 01` (start) got `0x8405 00` within 19 ms. Then nothing came for 15 s: no push of any kind, and no sound. `0x0405 00` (stop) got `0x8405 00`, but after 417 ms, where other writes take about 20 ms. Event `04` was subscribed and acked. Bit 9 of the bitmap is set, so the bitmap overstates what the T310 does here.
511- **budctl does not send it.** The owner dropped the fit test (2026-10-27), and budctl has no `fit-test` command. The W10 implementation is in git history (commit `4c49f6c`): it waited 15 s for the event-`04` push and sent stop if none came.
512
513<a id="custom-eq"></a>
514### 10.9 Custom EQ: list `0x0122`, write `0x0418`
515
516Evidence: *vendor*
517
518- **List reply:** `00 <count>` then, per preset: `<selected> <min> <max> <id> <nameLen> <name> <bands> (<freq u16 LE> <gain s8>)…`.
519- **Write:** `0x0418 <action> <min> <max> <id> <nameLen> <name> <bands> (<freq> <gain>)…`. The reply is `0x8418 00 <id>`.
520 - `01` creates a preset; send id `00` and the buds assign one.
521 - `02` saves the whole preset and selects it.
522 - `03` deletes it.
523- **Ids are renumbered** after a create or delete, so read the list again each time.
524- **Defaults:** 6 bands at 62, 250, 1000, 4000, 8000 and 16000 Hz. Range bytes `FA 06` mean -6..+6 dB. At most 3 presets.
525- **The owner's T310** (*ours-2026-10-27*, W11a) answered the list read within 26 ms with one preset:
526
527 ```
528 00 01 status, 1 preset
529 01 FA 06 04 selected, -6..+6 dB, id 04
530 07 43 75 73 74 6F 6D 31 name, 7 bytes: "Custom1"
531 06 6 bands
532 32 00 00 FA 00 00 E8 03 00 A0 0F 00 40 1F 00 80 3E 00
533 50, 250, 1000, 4000, 8000, 16000 Hz, each 0 dB
534 ```
535
536 - **The lowest band is 50 Hz, not 62.** The vendor default above does not hold on the T310; use the bands the buds report.
537 - **The preset was already there** when budctl first read it. Its origin is unknown: it may be the factory state, or left over from realme Link.
538 - **It was in use:** `0x010F` answered `00 04` at the same time, so `custom-4` is a valid current EQ, and the list's `selected` byte (`01`) agrees.
539- **What budctl does** (W11, one step per checkpoint, no app capture):
540 - **W11a** (read-only): `budctl eq` with no preset reads `0x010F` and the list. A custom preset shows as `custom-<id>`, the name `0x010F` decoding uses, followed by its stored name and bands.
541 - <a id="custom-eq-save"></a>**W11b, save** (`02`): `budctl eq custom-<id> <hz>=<gain>…` reads the list and copies the preset as listed: range bytes, id, name bytes, and the bands and their order. It changes only the gains of the named bands. A band the preset lacks, a band named twice, or a gain outside the preset's range is refused before anything is sent. `budctl eq custom-<id>` with no bands sends the preset unchanged, which only selects it. budctl never selects a custom preset with `0x0406`, since this spec does not say that works.
542 - **Check:** read the list again, as for [read-back](#write-read-back). The preset must have the written bands and its `selected` byte set.
543 - **Expected frame** (*derived*), for `eq custom-4 50=+3 16000=-2` on the owner's list, with seq `06`: `AA 26 00 00 18 04 06 1F 00 02 FA 06 04 07 43 75 73 74 6F 6D 31 06 32 00 03 FA 00 00 E8 03 00 A0 0F 00 40 1F 00 80 3E FE`.
544 - **On the owner's T310** (*ours-2026-10-27*, W11b): that frame went out byte for byte. The buds answered `0x8418 00 04` within 53 ms, and the list read about 150 ms after the ack already had +3 dB at 50 Hz, -2 dB at 16000 Hz, the name unchanged and `selected` `01`. Writing the flat bands back worked the same way.
545 - **`02` selects the preset** (*ours-2026-10-27*): after `eq pure-raw`, a bare `eq custom-4` (the preset saved unchanged) made `0x010F` read `custom-4` again.
546 - <a id="custom-eq-create"></a>**W11c, create** (`01`), wanted by the owner (2026-10-28): `budctl eq new <name>` reads the list first. It refuses before sending anything when the buds keep 3 presets already, or when a preset has that name already.
547 - **The name:** 1 to 16 bytes of UTF-8, with no control characters and no spaces at either end. The 16 bytes are budctl's own limit: the protocol allows 255 (one length byte), and the vendor's limit is unknown.
548 - **The new preset** copies the range bytes and the bands (frequencies and order) of the first listed preset, with every gain at 0 and id `00`. The vendor default bands do not hold on the T310 (see above). With no preset to copy, see [below](#custom-eq-delete).
549 - **Check:** the reply `00 <id>` gives the new id. Ids can be renumbered after a create, so budctl reads the list again, as for [read-back](#write-read-back). It finds the preset by that id and its name, else by its name alone.
550 - **A create selects the new preset** (*ours-2026-10-28*, W11c): in the list read after it, the new preset's `selected` byte is `01` and the others' are `00`.
551 - **Expected frame** (*derived*), for `eq new Test` on the owner's list, with seq `06`: `AA 23 00 00 18 04 06 1C 00 01 FA 06 00 04 54 65 73 74 06 32 00 00 FA 00 00 E8 03 00 A0 0F 00 40 1F 00 80 3E 00`.
552 - **On the owner's T310** (*ours-2026-10-28*, W11c): that frame went out byte for byte. The buds answered `0x8418 00 05` within 50 ms. The list read 150 ms after the ack had two presets: Custom1 (id `04`, unchanged, `selected` `00`) and Test (id `05`, the six bands at 0 dB, `selected` `01`). So the reply's id was the listed id: no renumbering on this create.
553 - <a id="custom-eq-rename"></a>**W11d, rename**, wanted by the owner (2026-10-28): `budctl eq rename custom-<id> <name>` reads the list and saves (`02`) the preset as listed with only its name changed. The name follows the [create](#custom-eq-create) rules, and another preset's name is refused before anything is sent. Like any save, a rename also selects the preset.
554 - **Evidence:** *ours-2026-10-28* (W11d). A save carries the name; one with a different name renames the preset in place, under the same id.
555 - **Check:** read the list again, as for [read-back](#write-read-back). The preset with that id must have the new name.
556 - **Expected frame** (*derived*), for `eq rename custom-5 Gym` on the owner's list after W11c, with seq `06`: `AA 22 00 00 18 04 06 1B 00 02 FA 06 05 03 47 79 6D 06 32 00 00 FA 00 00 E8 03 00 A0 0F 00 40 1F 00 80 3E 00`.
557 - **On the owner's T310** (*ours-2026-10-28*, W11d): that frame went out byte for byte, and the buds answered `0x8418 00 05` within 100 ms. The list read 100 ms after the ack has id `05` named "Gym", with the same flat bands and `selected` `01`; Custom1 is unchanged.
558 - <a id="custom-eq-delete"></a>**W11e, delete** (`03`), wanted by the owner (2026-10-28): `budctl eq delete custom-<id>` reads the list and sends the preset as listed, with action `03`: the write has the same layout for every action. A preset the buds do not have is refused before anything is sent.
559 - **Check:** read the list again, as for [read-back](#write-read-back). It must have one preset fewer, and none left with the deleted one's name and bands. Ids can be renumbered after a delete, so they prove nothing.
560 - **Unknown:** which EQ the buds use after the preset in use is deleted. budctl reads the EQ again after a delete.
561 - **On the owner's T310** (*ours-2026-10-28*, W11e): the delete of Gym (id `05`, not in use) went out byte for byte as the expected frame below, and the buds answered `0x8418 00 05` within 50 ms. The list read 150 ms after the ack was `00 00`: no custom preset left. The EQ in use (deep-bass) did not change. The owner had deleted Custom1 (id `04`) before, from budctl-gui.
562 - **Expected frame** (*derived*), for `eq delete custom-5` on the owner's list after W11d (Gym, flat), with seq `06`: `AA 22 00 00 18 04 06 1B 00 03 FA 06 05 03 47 79 6D 06 32 00 00 FA 00 00 E8 03 00 A0 0F 00 40 1F 00 80 3E 00`.
563 - **With no custom preset left**, a create has nothing to copy. It then uses the layout of the owner's T310 (*ours-2026-10-27*): range `FA 06` and bands at 50, 250, 1000, 4000, 8000 and 16000 Hz.
564
565<a id="absent"></a>
566## 11. Not on the T310
567
568- **Wear detection.** Id `04` was refused with `01` (*t310*), and there is no in-ear sensor. A bud out of the case reads as "out" in every state.
569- **Hi-Res** `18`, **hearing profile** `0B`, **game sound** `27`, **hold volume** `35`: refused with `01` (*t310*).
570- **Not in the T310 bitmap** ([§5](#bitmap-t310)): alert volume, tap sensitivity, spatial type, 3D-audio source, game EQ, head gestures, personalised ANC, batch query, and the dual-connection device manager ([§9.10](#dual-manager)).
571
572<a id="open"></a>
573## 12. Open questions (need a capture or a test on the owner's buds)
574
5751. ~~Which service UUID the T310 offers, and its RFCOMM channel.~~ Answered at HW1: `0000079a-d102-11e1-9b23-00025b00a5a5` on channel 6.
5762. ~~The real bitmap bytes, the product-id reply and the offered events.~~ Answered at HW1; see [§5](#bitmap-t310) and [§6](#events-offered).
5773. Partly answered at HW1: no `0x0500`, but an unanswered `0x0501` with no reset ([§7](#buds-requests)). `F2`/`F4` were offered but not subscribed, so none arrived. What `0x0501` asks for is unknown.
5784. Mostly answered (2026-10-27): with dual connection on and a control app connected on the phone, budctl's `status` got every reply, and changes budctl made showed up in the phone app. So the phone does not make the channel busy. A local holder gives `EBUSY` (HW1). With dual connection off, the phone takes the laptop's whole link (exit 2, HW1); whether a phone app ever leaves the buds silent is unknown, so budctl still treats a silent handshake as "channel busy" (exit 3).
5795. The width of the noise-control value: one byte so far, on reads and writes. `08` is the deep level: light, medium and deep read back as `04`, `10` and `08` (W2).
5806. ~~Whether the T310 answers id `1A` (wind).~~ It does (HW1). What id `05` means is still open: it reads `00`.
5817. How long after the game-mode ack the new value shows up in `0x010D`: at most 1 s on the T310 (W3). Whether it is sooner was not measured.
5828. The shape of the T310 gesture table is answered at HW1: six entries, `<side> <group> <act> <fn>`, double tap, triple tap and hold for each bud. The names of the EQ presets in realme Link are still open.
5839. Whether the minimum 200 ms spacing between sends is needed.
58410. Why the T310 never answers `0x0124`, with bass boost off (HW1) or on (W6a), although bit 38 is set ([§9.7](#bass-read)).
58511. How to turn noise cancelling on at the level the buds saved, without forcing deep ([§10.1](#anc-write)). Would need a realme Link snoop, which the owner declined.
586
587<a id="roadmap"></a>
588## 13. Roadmap and hardware checkpoints
589
590The owner runs each checkpoint with `--debug` and pastes the output. Results go into the [verification log](#verification-log).
591
592**HW1, read-only:**
593- Run `budctl list`, `budctl --debug status`, `budctl --json status` and `budctl --debug touch`.
594- Then run `status` again twice: once while the phone app is connected (the busy path), and once with the case lid closed (the not-connected path).
595
596**HW2, read-only:** `budctl --debug dual` ([§9.10](#dual-devices)) with the phone connected too (dual connection on). Done 2026-10-28. A second run with the phone disconnected was skipped: two other phones already showed state `00`.
597
598**Writes, one per checkpoint, in this order:**
599
600| Step | Write |
601|---|---|
602| W1 | `anc off/transparency/on` |
603| W2 | `anc light/medium/deep` |
604| W3 | `game on/off` |
605| W4 | `eq <preset>` |
606| W5 | `set bass-boost` → `set spatial` → `set wind` → `set dual`, each one checkpoint |
607| W6 | W6a: read `0x0124` with bass boost on; W6b: `bass <level>` |
608| W7 | `find` |
609| W8 | `touch <side> <gesture> <action>` (`--dry-run` first) |
610| W9 | `touch cycle` |
611| W10 | ~~`fit-test`~~: dropped, the T310 runs no test ([§10.8](#fit-test)) |
612| W11 | W11a: `eq` lists the custom presets (read-only); W11b: save an edited preset (`eq custom-<id> <hz>=<gain>…`); W11c: create one (`eq new <name>`); W11d: rename one; W11e: delete one (`eq delete custom-<id>`) |
613
614The owner will not install realme Link (2026-10-27), so there is no app capture. W6 and W11 use only the vendor-documented bytes in this spec, one checkpoint at a time.
615
616<a id="verification-log"></a>
617## 14. Verification log
618
619| Date | Checkpoint | Result | Notes |
620|---|---|---|---|
621| 2026-10-28 | HW2 `budctl --debug dual`, with the phone and the laptop connected | pass, with a fix | The T310 answered `0x0112` in 160 ms with four entries: the owner's phone (connected, flags `00`), the laptop (connected, flags `01`) and two phones that had connected before (state `00`). Every `len` was 3 more than the name length. The addresses came first byte first, so budctl printed them backwards; fixed the same day ([§9.10](#dual-address)). The addresses and other people's device names are left out of this log on purpose |
622| 2026-10-28 | W11e `eq delete custom-5` | pass | The delete matched the derived frame byte for byte, and was acked with `00 05`. The list read back at once is empty. Deleting the preset in use is still untested. See [§10.9](#custom-eq-delete) |
623| 2026-10-28 | W11d `eq rename custom-5 Gym` | pass | The save with the new name matched the derived frame byte for byte, and was acked with `00 05`. The list read back at once has id `05` named Gym, bands unchanged, in use. See [§10.9](#custom-eq-rename) |
624| 2026-10-28 | W11c `eq new Test` | pass | The create frame matched the derived one byte for byte, and was acked with `00 05`. The list read back at once has Test as id `05`, flat, and in use. See [§10.9](#custom-eq-create) |
625| 2026-10-27 | G5 `budctl-gui --debug`, Gestures page: left triple tap by dropdown and by `h`/`l`, transparency into the hold cycle and out | pass (protocol) | Every `0x0401` write (`06`, `03`, `0B`, `03`, `06`, then `05` to restore it) and both `0x0404 02 01` writes (`0B`, `09`) were acked and read back on the first try. Keys pressed during a write went out one by one as each write finished, and the last one was read back. A session closed after 10 s idle; the next pick opened a new one and wrote at once |
626| 2026-10-27 | G4 `budctl-gui --debug`, Equalizer page: the four built-in presets, a band drag on Custom1, then idle | pass (protocol) | `0x0406 00/01/02/03` were acked and read back on the first try. One drag (1 kHz from −6 to +3) sent one `0x0418 02` write: acked `00 04`, and the read-back list shows the new gain with `selected` `01`. The session closed 10 s after the last command, three times; a read when the window got focus after 30 s opened a new session each time. `h`/`l` on a band is not covered yet |
627| 2026-10-27 | G3 `budctl-gui --debug`: the first reading, then noise control transparency → noise cancelling, game mode on → off | pass (protocol) | One session for the reading and all four writes, with no new connection between them. The acks and read-backs match W1 and W3; the game-mode read-back, 1 s after the ack, showed the change. The window named the custom preset from the `0x0122` list. No request from the buds came in while the session waited. The log ends about 1 s after the last write, so the 10 s idle close is not in it yet |
628| 2026-10-27 | `status` with a control app connected on the phone, dual connection on | pass | Every read answered, 40-190 ms after its request (HW1: 50-90 ms). Changes budctl made showed up in the phone app. The T310 serves both hosts at once. See [question 4](#open) |
629| 2026-10-27 | W11b `eq custom-4`, `eq custom-4 50=+3 16000=-2`, then `50=0 16000=0` | pass | The write matched the derived frame, was acked with `00 04` and read back on the first try. The preset is flat again. Then `eq pure-raw`, `eq custom-4` and `status`: `status` showed `custom-4`, so saving also selects. See [§10.9](#custom-eq-save) |
630| 2026-10-27 | W6b `bass -5`, `bass 5`, `bass 0` (bass boost off) | pass (protocol) | All acked with `0x841B 00`. No read-back is possible. By ear, at most a slight difference. See [§10.4](#bass-write) |
631| 2026-10-27 | W11a `eq` (custom list `0x0122`) | pass | One preset, "Custom1" (id `04`, 6 flat bands from 50 Hz), and it is the EQ in use. See [§10.9](#custom-eq) |
632| 2026-10-27 | W6a `status` with bass boost on (`0x0124`) | fail: no reply | Still no answer in 3 s. budctl does not send it. See [§9.7](#bass-read) |
633| 2026-10-27 | W10 `fit-test` | fail: no test | Start and stop were acked, but no result push and no sound came in 15 s. The owner dropped the fit test. See [§10.8](#fit-test) |
634| 2026-10-27 | W9 `touch cycle off transparency anc`, then `off anc` | pass | Masks `0B` and `09` were acked and read back on the first try. The owner confirmed the new cycle with the hold gesture. The cycle is now off → anc. See [§10.7](#hold-cycle-write) |
635| 2026-10-27 | W8 `touch left triple-tap volume-up` (`--dry-run`, then sent), then `previous` | pass | The dry run's payload matched the derived frame. Both writes were acked and read back on the first try, 600 ms after the ack. The ack echoes the old table, cut short. The owner confirmed that the new gesture works. The left triple tap is now `previous`. See [§10.6](#gesture-write) |
636| 2026-10-27 | W7 `find start --yes`, `find stop` | pass | Both acked. Both buds rang, kept ringing after budctl disconnected, and stopped on `find stop`. See [§10.5](#find) |
637| 2026-10-27 | W5d `set dual on`, `off` | pass | Acked, the immediate read-back showed the change, and the laptop stayed connected. Only one host was connected. See [§10.2](#switch-write) |
638| 2026-10-27 | W5c `set wind off`, `on` | pass (protocol) | Acked, and the immediate read-back showed the change. Not audible in music. See [§10.2](#switch-write) |
639| 2026-10-27 | W5b `set spatial on`, `off` | pass | Acked, the immediate read-back showed the change, and the owner heard a difference. See [§10.2](#switch-write) |
640| 2026-10-27 | W5a `set bass-boost on`, `off` | pass (protocol) | Acked, and the immediate read-back showed the change. The owner heard no clear difference with EQ pure-bass. See [§10.2](#switch-write) |
641| 2026-10-27 | W4 `eq pure-raw`, `deep-bass`, `pure-vocals`, `pure-bass` | pass | Acked and read back on the first try; the presets sound clearly different. See [§10.3](#eq-write) |
642| 2026-10-27 | W3 `game on`, `game off` | pass | Acked, and the 1 s read-back showed the change. No push or prompt. See [§10.2](#switch-write) |
643| 2026-10-27 | W2 `anc light`, `anc medium`, `anc deep`; level memory | pass | Each level acked and read back on the first try. The buds keep the level across a hold-gesture cycle. See [§10.1](#anc-write) |
644| 2026-10-27 | W1 `anc transparency`, `anc off`, `anc on` | pass | Acked, read back on the first try, and the buds' voice prompts matched. See [§10.1](#anc-write) |
645| 2026-10-27 | HW1 `list`, `status`, `--json status`, `touch`, not-connected path, busy path (local holder) | pass, with fixes | See below. Busy with the phone app as the holder is still untested |
646
647**HW1, 2026-10-27** (budctl 0.1.0, `--debug` output pasted by the owner):
648- `list` finds `realme Buds T310` at `88:0E:85:46:FE:5C`, connected, recognized by `Name`.
649- SDP: service `0000079a-d102-11e1-9b23-00025b00a5a5` on RFCOMM channel 6.
650- Handshake: bitmap `00 BF 1F 5A 20 45 04 40 00`, product id `00 12 3C 06` (`063C12`), events offered `01 02 03 04 05 06 0D F1 F4`. The subscribe `04 01 02 03 04` is acked.
651- Reads that answered, with what budctl showed:
652 - battery `00 03 02 64 01 64 03 00`: left and right 100 %, case unknown;
653 - noise control `00 01 01 08`: anc, deep;
654 - switches `00 06 05 00 06 00 11 01 1A 01 1B 00 1D 00`: game off, dual on, wind on, 3D off, bass boost off;
655 - EQ `00 03`: pure-bass;
656 - codec `00 01`: SBC;
657 - firmware `1,2,1.1.0.43,2,2,1.1.0.43`;
658 - gestures: both buds double tap play/pause, triple tap next, hold noise cycle;
659 - hold cycle `00 02 01 0A`: transparency and anc.
660- Every reply came 50-90 ms after its request.
661- `0x0124` (bass level) got no reply in 3 s.
662- Lid closed: `status` reports "paired but not connected" and exits 2.
663- Busy path, first try: with the phone app connected, BlueZ listed the buds as not connected to the laptop, so budctl stopped before RFCOMM (exit 2). This is inconclusive: the laptop's link was down, so the control channel was never tried.
664- Busy path, local variant: a second socket on the laptop connected to channel 6 and held it, sending nothing. budctl's connect then failed with `EBUSY` (os error 16), and budctl reported "control channel busy" and exited 3. budctl sent nothing to the buds. This shows that a local client holding the channel gives exit 3. When the phone holds it, the buds decide what happens, and that is still untested.
665- Fixes made from this checkpoint:
666 - the parser accepts slice byte `08` ([§3](#frame-from-buds)); before, it silently dropped every frame the buds start;
667 - `0x0124` is no longer sent;
668 - firmware display ([§9.2](#firmware)).
669- Still to confirm by the owner against the phone app: the noise-control mode and level, the EQ preset, the dual and wind switches, the gestures and the hold cycle.