XNBK12 12-Outlet E-Bike Charger
Product
| 12-outlet e-bike charger | |
|---|---|
| Model | XNBK12 |
| Outlets | 12 × 86-type 220 V sockets |
| Cabinet power | 11 kW |
| Input | AC 220 V 50 Hz, cable 3 × 10 mm² |
| Output wiring | Live 2.5 mm² × 12, neutral 4 mm² × 1 |
| Size | 280 × 400 × 120 mm |
| Ingress | IP54, outdoor |
| Network | 4G Cat-1 |
| Payment | WeChat mini program, prepaid |
| Recognition | 0–900 W per outlet, automatic |
| Firmware | APPVER 124, build 2026-11-17, AFR 202604-LTS |
Specification: XNBK12 12-Outlet E-Bike Charger.
Telemetry
The cabinet publishes these keys when a value changes:
| Key | Meaning |
|---|---|
_voltage |
Cabinet line-to-neutral voltage, V |
_current |
Cabinet total current, mA |
_energy |
Cabinet total energy, Wh |
_lteSign |
LTE RSSI |
_fastloads |
Fast-report counter remaining |
_tmpL, _tmpB, _tmpR |
Left, board and right temperature, °C |
_swt0 … _swt11 |
Outlet switch state, 0 open, 1 closed |
_cur0 … _cur11 |
Outlet current, mA |
_pow0 … _pow11 |
Outlet power, W |
_stp0 … _stp11 |
Outlet stop reason, see the codes below |
_latitude, _longitude, _altitude |
GPS fix, published when the cabinet gets one |
The cabinet also sends the events evt_rptavgpow (total and 12 outlet averages), evt_switchOFF (it opened outlets itself) and evt_rptgpsloc (GPS location) as RPC requests.
Requests and replies
The cabinet sends two-way RPC requests to the server, and the XNBK12 Charger rule chain that this package installs answers each one with an RPC reply. The reply carries the same method:
| Request | params |
Reply the cabinet expects |
|---|---|---|
getCurrentTime |
{} |
{"method":"getCurrentTime","value":"YYYYMMDDhhmmssW","status":"ok"}. value is the Beijing time (UTC+8); W is the weekday and 0 is Sunday. |
evt_rptavgpow |
{"sumpow":<W total>,"stv":<int>,"avg":[<12 outlet averages in W>]} |
{"method":"evt_rptavgpow","value":1,"status":"ok"} |
evt_switchOFF |
{"ports":<outlet index>,"stf":[<12 stop reasons>],"avg":[<12 outlet averages in W>],"stpow":<W>,"curpow":<W>} |
{"method":"evt_switchOFF","value":<ports>,"status":"ok"} |
evt_rptgpsloc |
{"nsta":<int>,"latitude":<number>,"longitude":<number>,"alt":<number>,"try":<int>} |
{"method":"evt_rptgpsloc","value":1,"status":"ok"} |
The firmware uses the value of the getCurrentTime reply to set its RTC. If you connect the cabinet to another server, answer these requests the same way.
Client attributes
The firmware publishes these client-side attributes:
| Attribute | Meaning |
|---|---|
fmVersion |
Application version, 124 |
fmBuild |
Build date, 2026-11-17 |
powerTimes |
Power-on counter |
bootFlag |
Reset or boot reason, see the codes below |
onlTimes |
Online counter |
lteICCID, lteIMEI, lteIMSI |
SIM identifiers |
hasGPS |
1 when the build has GPS |
devtype |
4 for the 12-outlet cabinet |
debugLvl |
Remote debug level |
boardKeys |
K1–K4 in bits 0–3 |
sockets |
12 |
afrVer |
202604-LTS |
zeroVfy |
Zero-verification setting |
Standard attributes
ThingsBoard maintains these server attributes; the dashboard uses them.
| Attribute | Meaning |
|---|---|
active |
true while the device is online |
lastActivityTime |
Time of the last activity; the Cabinets table shows it |
Shared attributes
| Attribute | Format | Meaning |
|---|---|---|
imax |
JSON array of 12 integers in milliamps, for example [8000, 8000, 8000, 8000, 8000, 8000, 8000, 8000, 8000, 8000, 8000, 8000] |
Current limit of each outlet, index 0–11. The factory default is 8000 mA. K1 still sets the hardware ceiling: 8000 mA down, 13000 mA up. |
powrate |
one integer, 100 at the factory |
Meter constant of the BL6552. |
imax is JSON, not a string. Send all 12 values; a value that is absent keeps its stored limit.
Stop reasons
_stp0 … _stp11:
| Value | Meaning |
|---|---|
| 0 | No stop |
| 1 | Current stayed too low for a long time |
| 2 | Current dropped quickly: plug removed or charging finished |
| 3 | Over-current: 200 % for 10 s, 120 % for 120 s, or 4 min |
| 4 | Stopped from the dashboard or by switchOFF |
| 6 | Over-temperature, or a large total current caused a voltage drop |
| 8 | Time up, from off_TMOUT |
| 9 | Prepaid balance exhausted, from off_NOMEY |
The current firmware does not set 5, 7 or 12; they remain reserved in the protocol.
Boot and reset reasons
bootFlag:
| Value | Meaning |
|---|---|
| 0 | Unknown |
| 1 | Low-power reset |
| 2 | Window watchdog reset |
| 3 | Independent watchdog reset |
| 4 | Software reset |
| 5 | Power-on or power-down reset |
| 6 | External reset pin |
| 7 | Brownout reset |
| 8 | User pressed stop three times quickly |
| 9 | Application ended normally after shadow errors |
| 10 | MQTT shadow was not accepted repeatedly |
| 11 | MQTT shadow was rejected repeatedly |
| 12 | Server set the APN |
| 13 | Server reset to factory |
| 14 | Server reboot (reboot_me 14) |
| 15 | Share-page reboot (reboot_me 15) |
| 16 | Assistant reboot (reboot_me 16) |
| 18 | Network link exhausted |
| 19 | MQTT CONNACK failed repeatedly |
| 20 | Connected session lost repeatedly |
| 21 | Offline for more than 20 minutes |
Control commands
Every command is a two-way RPC. It takes one parameter, params.value, and the cabinet replies with the method and the value it applied.
| Method | params.value |
What the cabinet does |
|---|---|---|
switch_ON |
outlet index 0–11 |
Closes that outlet. Outlet 1 is 0, outlet 12 is 11. |
switchOFF |
outlet index 0–11 |
Opens that outlet and sets stop reason 4 (stopped from the dashboard). |
all_ONOFF |
1 on, 0 off; above 1 is read as 1 |
Closes or opens all 12 outlets. |
off_TMOUT |
outlet index 0–11 |
Opens that outlet with stop reason 8 (time up). A billing server sends it when the paid time ends. |
off_NOMEY |
outlet index 0–11 |
Opens that outlet with stop reason 9 (prepaid balance exhausted). |
set_ENEGY |
an energy baseline in Wh | Writes the cabinet energy baseline and resets the session energy to it. |
set_ENEG2 |
any value | Accepted and answered; on the 12-outlet build it has no effect. |
to_reload |
0–160; larger values are capped |
Sends up to that many fast telemetry reports so a dashboard refreshes at once. |
beepTIMES |
style × 10 + count, for example 3 or 26 |
Plays count beeps with the selected pattern; count 0 plays one beep. |
reboot_me |
a reason code: 14 server request, 15 share page, 16 assistant |
Replies, reboots at once and records the code in bootFlag. The outlet switch states are saved and restored after the reboot. |
firmw_OTA |
any value, normally 1 |
Acknowledges with 1 and beeps twice. It does not start a download by itself: firmware is installed through ThingsBoard OTA, which sets fw_title, fw_version and fw_size and the cabinet downloads the image in chunks. |
firmwOTA2 |
a plain http:// URL, 11–126 characters |
Stores the URL, sets the update flag and reboots into the boot loader, which downloads and installs that firmware. A value that is not a plain http:// URL of that length clears the flag and changes nothing. |
force_RPT |
0–90 |
Sends that many fast telemetry reports. |
get_SW_ST |
outlet index 0–11 |
Returns the outlet switch state. |
get_STOPF |
outlet index 0–11 |
Returns the outlet stop reason. |
get_CURET |
outlet index 0–11 |
Returns the outlet current. |
get_AVG_P |
outlet index 0–11 |
Returns the outlet average power. |
get_VALUE |
an engineering index | Returns the selected diagnostic value: 30 voltage, 31 total current, 32 total energy, 33 start voltage, 34 reboot flag, 35 reset reason, 40–43 K1–K4. 0–29 are outlet and meter diagnostics. |
Do not send reset_all: it erases the cabinet EEPROM, provisioning included. Engineering commands such as print_DBG, set_DEBUG, cln_POWON, zeroVERFY, set_EVRCD and move_tenant are not needed for normal use and are not exposed on the dashboard.
Add Your Device to the Community
Built or ship IoT hardware? Package your device as a ZIP and publish it to the IoT Hub so users can provision it in one click.