Skip to content

Bluetooth: JieLi chip and its UART protocol ​

Status: draft, 2026-11

Bluetooth on the AP30 is a separate JieLi SoC (QFN-32, marking ending in -56C4, probably an AC6956C4 [?]) with its own Bluetooth stack and firmware, soldered directly on the board (not a certified module). The RKNanoD switches it on with GPIO2_7 and talks to it over UART1A at 115200 8N1 with a short ASCII protocol whose frames start with C: scan, connect, disconnect, status poll, stream start / stop; the chip answers with readiness, scan results, link state and remote-control keys. No audio travels over the UART and no digital audio interface is wired to it, so the JieLi almost certainly samples the analog output and encodes SBC itself. Codec support (SBC only) and the missing receive (sink) mode are therefore properties of the JieLi chip and its firmware, not of the RKNanoD. This page covers the hardware and the wire protocol; the firmware's Bluetooth logic is in ../firmware/bluetooth.md.

Tags: [AP30] firmware V1.7.8 or the device · [TRM] RKNanoD TRM V1.0 · [DS] a datasheet · [EM] Echo Mini (EchoPod notes) · [WEB] public source · [?] guess.

Square chip with the JL logo and a marking ending in -56C4, a 24.000 MHz crystal to the right and a gold coax crimp tab at the bottom.

JieLi Bluetooth SoC (QFN-32, JL logo, marking ends in -56C4: by JieLi's marking convention probably an AC6956C4 [?]) with its 24.000 MHz crystal and the coax pigtail's crimp tab, side B, top-left corner (jacks-at-bottom view). [AP30]

More photos: photos.md.

Contents ​

Summary ​

ItemValueTag
ChipJieLi (JL logo), QFN-32, marking …-56C4 (serial number before the dash). JieLi puts the chip name after the dash: 56C4 → AC6956C4 (AC695N family) is the likely reading[AP30] marking, [WEB, ?] name
Crystalown 24.000 MHz[AP30]
AntennaFPC sticker B_1597-2.4G_A1 on the back cover, coax pigtail with its crimp tab soldered to a board pad (no U.FL socket)[AP30]
Positionboard side B, top edge (opposite the jacks)[AP30]
Power / enableGPIO2_7 (ball C3), output, 1 = powered[AP30]
LinkUART1A: RKNanoD TX GPIO2_16 (ball D2) → module RX; module TX → GPIO2_17 (ball D3) = RKNanoD RX; no flow control[AP30]
Format115200 baud, 8 data bits, no parity, 1 stop[AP30]
ProtocolASCII frames C + letter (+ length + payload), delimited by idle time[AP30], meanings partly [?]
SpecBluetooth 5.3, SBC only, transmit only[WEB] vendor spec + reviews
Audioanalog: the JieLi samples the DAC / amp output [?][?] (strong inference)

Hardware ​

  • The chip is chip-down with a crystal and a soldered coax to an FPC antenna; no RF shield [AP30].
  • Its update / programming path on this board (USB pins, UART boot, test pads) is unknown; no pads labelled for it were found [AP30, ?].
  • JieLi publishes SDKs for some of its Bluetooth chips (for example the AC63 SDK on Gitee); which family the AP30 part belongs to is unknown [WEB, ?].
  • The Rockchip reference board uses a Realtek RTL8761AT on the same UART1A [WEB] EVK; Hidizs replaced it with the JieLi chip.
ItemValueTag
UARTUART1 (base 0x400B0000), route A: TX GPIO2_16, RX GPIO2_17 (route B would be GPIO1_2 / GPIO1_1, the I2S1A pins)[AP30 + TRM]
ClockUART clock 24 MHz, divisor 13 → 115 384 baud (+0.16 %)[AP30]
InterruptRX only[AP30]
Flow controlnone; the RTS/CTS pins (GPIO2_14 / GPIO2_15) are used for other things[AP30]
Pins while the module is offGPIO2_7, GPIO2_16 and GPIO2_17 are all GPIO outputs driven low (presumably to avoid back-powering the chip [?])[AP30]
Shared use of GPIO2_16the boot loader's console banner and the firmware's crash dumps also go out on this TX line; the chip sees them only if it is powered at that moment (the firmware powers it on demand)[AP30]
Receive framingRX interrupt drains the FIFO into a 128-byte buffer until it has been empty for about 1 ms; the parser looks for the first C in the first 100 bytes. No terminator, no checksum[AP30]
Transmitone pending frame of up to 10 bytes, sent byte by byte[AP30]
Reliabilityno acknowledgement or retransmission; the status poll recovers state[AP30]
Capacity115 200 baud ≈ 11.5 kB/s, far below 16-bit / 44.1 kHz stereo PCM (176 kB/s); the RKNanoD UART can reach 1.5 Mbaud from 24 MHzarithmetic

Power-up handshake ​

[AP30]

  1. Drive GPIO2_7, GPIO2_16, GPIO2_17 low and wait 100 ms (power-cycle reset of the chip).
  2. Mux GPIO2_16 to UART1A TX and GPIO2_17 to RX, 115200 8N1, enable the RX interrupt.
  3. GPIO2_7 high, wait 100 ms.
  4. Wait up to 6 s for the ready frame CV1.
  5. No CV1: power off again (pins low) and report failure.
  6. After CV1: reconnect to the remembered device (CL06 + address) if there is one, otherwise clear the scan list and start a scan (CS00).

Protocol: host to module ​

Frame = ASCII C, a command letter, two ASCII decimal digits giving the payload length, then the payload. The stock sender pads payload-less frames with a NUL (5 bytes on the wire). Meanings are inferred from when the firmware sends each frame [AP30] and agree with the EchoPod reading of the same protocol on the Echo Mini [EM].

FrameBytesWhen the stock firmware sends itMeaning
CS005Bluetooth screen opened with no remembered device; "Search"; after a disconnectstart inquiry (scan)
CP005user cancels a scan; scan running longer than 30 sstop scan
CL06 + 6-byte address10user picks a device; reconnect to the last deviceconnect (pair)
CH06 + 6-byte address105 s into a connect attempt (retry)connect / reconnect to a known device [?: difference from CL]
CT005user cancels a connect; connect longer than 30 s; "Disconnect / Unpair?" confirmed; certain CQL statesdisconnect / cancel
CQ005every 3 s on the Bluetooth screen, every 5 s elsewhere while the module is onstatus poll
CC005long press of A while connectedunknown [?]
CY0 + 1 binary byte50x00 when a link comes up and when playback pauses or stops; 0x14 when playback starts or resumesstream stop / start; the Echo Mini sends 0x1E to start [EM]; the byte's meaning is unknown [?]
55 01 02 01 00 02 AA 008never (unreferenced data)leftover of another module protocol [?]

Protocol: module to host ​

Frame = C, a letter, then fields [AP30]:

FrameMeaning (as the firmware reacts)
CV1module ready (checked only during power-up)
CKKKkeep-alive / acknowledgement [?]; clears the "waiting" flag
CS nn addr[6] nameone scan result; nn = 6 + name length (decimal, ≤ 37 accepted), name UTF-8, ≤ 31 bytes. The firmware keeps at most 6 results and drops repeats by comparing the byte sum of the address (a weak test)
CSENscan finished
CSER, CLER, CHERerror for scan / connect / reconnect
CLOKconnect succeeded; the device is added to the paired list
CHOKreconnect succeeded
CTOKdisconnected
CQO nn addr[6] namestatus: connected to this device
CQSstatus: scanning
CQLstatus: linking
CQIstatus: idle / not connected
CHlink up ("Connected")
CLlink attempt over, back to idle
CP, CCremote play / pause from the headphones (AVRCP) [?]
CA, CBremote next / previous track [?]
CD, CU, CMignored by the firmware (remote volume down / up / mute? [?])

The protocol carries no codec, bitpool, sample-rate or role command in either direction [AP30; EM agrees].

Audio path ​

Evidence [AP30 unless tagged]:

  1. While a link is up, the firmware raises the DAC output level: the CS43198 attenuation is reduced by 5-15 steps of 0.5 dB depending on the volume; it re-applies the volume whenever the link state changes.
  2. A reviewer reports that Bluetooth loudness follows the analog gain setting [WEB].
  3. No I2S or other digital audio interface is configured for the module, and the UART is far too slow for PCM.
  4. On the Echo Mini, same protocol: the module takes the DAC's analog output, with two GPIOs routing the signal [EM]. On the AP30 no GPIO changes when a link comes up.

Conclusion: the JieLi digitises the DAC (or amplifier) output with its own ADC and encodes SBC [?, strong inference, not traced]. The tap is probably permanent; whether the wired outputs stay live while streaming has not been checked. The player volume (0-100) sets the level the chip samples; the Bluetooth screen's volume keys change the same setting [AP30]. The analog hand-off also caps quality at the JieLi's ADC [?].

  RKNanoD ──I2S──► CS43198 ──analog──► RT6863 ──► jacks
     │                  │
     │ UART1A           └──analog (tap point ?)──► JieLi ADC ──► SBC encoder ──► 2.4 GHz ──► headphones
     └── commands / status ─────────────────────► JieLi                    remote keys ──┐
     ◄─────────────────────────────────────────── (CP / CA / CB …) ◄──────────────────────┘

Codec and role limits ​

  • SBC only (17 reviewer complaints) [WEB]: entirely inside the JieLi (silicon, firmware, licences). The RKNanoD cannot add AAC, aptX or LDAC [AP30 + ?].
  • No receive / sink mode (14 complaints) [WEB]. It would need (1) JieLi firmware with an A2DP sink role and a command to switch roles: not present (no sink strings or frames on the AP30 or in any Echo Mini release) [AP30 + EM]; (2) an audio path from the JieLi to the headphones: no JieLi output wired to the amplifier or the DAC is known [?]; compressed audio over a faster UART to the RKNanoD would be possible in principle (SBC ≈ 41 kB/s vs ~150 kB/s at 1.5 Mbaud) but needs custom JieLi firmware [?]; (3) a way to reprogram the JieLi on this board: unknown [?].
  • Vendor Bluetooth battery life 6-8 h; one reviewer measured 7+ h [WEB].
  • Transmit power and antenna gain of the AP30 are not documented; the only regulatory filing that lists the AP30 tests a different player (see board_ap30.md) [WEB].

Stored pairing data ​

Inside the persistent settings block [AP30; persistence of every field ?]: last device address (6 bytes) at +0x1CC; a paired-device list of 0x26-byte entries (6-byte address + 32-byte UTF-8 name) from +0x1D2; current device name at +0x2B6; paired count at +0x2D7; "connected" flag at +0x2D8; "Bluetooth on" at +0x2D9. Settings layout: ../firmware/ui_and_settings.md.

Open questions ​

QuestionHow it could be answered
JieLi part number and capabilities (sink, AAC)confirm AC6956C4 (-56C4); read the chip ID over its programming interface if found
Where the JieLi takes its audio (DAC out, amp out, before or after volume); does it have an output wired anywherecontinuity from its analog pins to the CS43198 / RT6863 / jacks
Meaning of the CY0 byte (0x14 here, 0x1E on the Echo Mini), CC00, CH06 vs CL06, CKKK, CD / CU / CMcapture both UART lines at 115200 while scanning, pairing, playing, pausing and using headphone buttons
PIN / passkey pairing supportsame capture with a device that asks for a PIN
JieLi update path on the boardlook for its USB / UART boot pins; JieLi documentation
Are the wired outputs muted during Bluetooth playbacklisten on a wired headphone while streaming

Sources ​

  • [AP30] analysis of firmware V1.7.8 (BT Music overlay 112, UART driver, settings and power-off code, volume routine); board inspection (JieLi marking, crystal, antenna); the English string table ("Scanning…", "Connect", "Connected", "Disconnect", "Paired", "Unpair?").
  • [TRM] RKNanoD TRM V1.0 ch. 23 (UART).
  • [EM] EchoPod (BasilSkyWalk/echopod) hardware and research notes on the Echo Mini's module protocol.
  • [WEB] vendor spec and reviews (SBC only, no sink, BT level follows gain, battery life): Head-Fi AP30 showcase, ../community/user_feedback.md; JieLi AC63 SDK (example of a public JieLi SDK).

Text CC BY 4.0 · data tables and snippets CC0 1.0 · not affiliated with Hidizs