Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors

XNACS07-GB2015 Dual-gun AC EV Charger

  • Device
  • 184 installs
  • v1.2.0
  • Nov 18, 2026
  • MIT license
  • v4.2+

Dual-gun AC charger, model XNACS07-GB2015. 4G Cat-1, MQTT provisioning with a USB setup file, left and right gun control from ThingsBoard. Dashboard for ThingsBoard 4.4.1 and later.

Hardware Type
  • Controller
Connectivity
  • 4G
  • MQTT
  • SPI
  • UART
Use Cases
  • Smart Energy
  • Smart City

Product

Dual-gun AC EV charger
Model XNACS07-GB2015
Guns Left and right
Output AC 220 V, up to 32 A on the 7 kW setting
Connector GB/T 20234.2, 3.5 m cable on the published 7 kW model
Input AC 220 V 50 Hz, 3 x 6 mm²
Size 280 x 400 x 120 mm
Ingress IP54
Network 4G Cat-1
Payment WeChat mini program, prepaid

Specification: 7 kW AC charger.

K3 down is the 32 A / 7 kW setting. K3 up is 24 A. K4 down is MQTT over TLS on port 8883, K4 up is plaintext MQTT on port 1883. The DIP switches and the USB port are on the controller board inside the charger, behind the front cover.

Telemetry

The charger sends:

Key Meaning
_voltageL, _voltageR Gun voltage, volts
_curL, _curR Gun current, milliamps
_energyL, _energyR Session energy, watt-hours
_powL, _powR Gun power, watts
_stateL, _stateR Charge state, see the codes below
_stpL, _stpR Stop reason, see the codes below
_swtL, _swtR Output switch
_cpL, _cpR Control-pilot reading
_holsterL, _holsterR Holster
_tmpL, _tmpB, _tmpR Left gun, board, and right gun temperature, °C
_volgnd Line-to-ground reading, volts
_lteSign LTE RSSI
_stopkey Emergency stop input

Codes

_stateL and _stateR, the charge state:

Value Meaning
0 Idle
1 Gun inserted, waiting for the vehicle
2 Control-pilot handshake
3 Ready to charge
4 Vehicle ready
5 Contactor closing
6 Charging
7 Stopping
8 Output off
9 Reset

_stpL and _stpR, the stop reason:

Value Meaning
0 No stop
3 Gun removed during the charge
4 Normal stop, from the gun button or from a server time-out
5 Prepaid balance exhausted
6 Over-current or voltage drop
7 Fault: control pilot lost, ground fault, or residual-current test failed
9 Stopped from the dashboard

Control commands

Every command is a two-way RPC. It takes one parameter, params.value, and the charger replies with the command name and the value it applied.

Method params.value What the charger does
switch_ON 0 left gun, 1 right gun Starts the charge sequence on that gun. With no vehicle connected the sequence runs and the contactor stays open.
switchOFF 0 left, 1 right Stops that gun at once, sets stop reason 9 (stopped from the dashboard), sets its current limit to 0, and opens its contactor and control pilot.
all_ONOFF 1 on, 0 off; above 1 is read as 1 1 starts both guns that are idle. 0 stops both guns with stop reason 9.
pwm_gl_EN, pwm_gr_EN control-pilot duty in 0.1 %, 1–990; above 990 closes Sets the control-pilot duty of the left (pwm_gl_EN) or right (pwm_gr_EN) gun by hand. 100 is 10 %, about 6 A; 533 is about 32 A. Any value above 990, for example 999, closes the output.
beepTIMES style × 10 + count, for example 3 or 26 Plays count beeps with the pattern selected by style; count 0 plays one beep.
to_reload 0–160; larger values are capped Sends up to that many telemetry reports in quick succession, so a dashboard refreshes at once.
reboot_me a reason code: 14 server request, 15 share-page request, 16 assistant request Replies, then reboots at once and records the code as the boot reason. Any other value is recorded as a generic server reboot. Charging stops.
firmw_OTA any value, normally 1 Acknowledges with 1 and beeps twice. This call does not start a download by itself: firmware is installed through ThingsBoard’s own OTA updates. Assigning firmware to the device sets the shared attributes fw_title, fw_version and fw_size, and the charger then downloads the image in chunks and reboots into it.
firmwOTA2 a plain http:// URL, 11 to 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 update flag and changes nothing; the reply then carries the current application version.
off_TMOUT 0 left, 1 right Stops that gun with stop reason 4 (normal stop). A billing server sends it when the paid time ends.
off_NOMEY 0 left, 1 right Stops that gun with stop reason 5 (prepaid balance exhausted).
get_SW_ST, get_CURET, get_STOPF, get_AVGP 0 left, 1 right Read back the output switch, the current, the stop reason or the average power.

Shared attributes

Set these on the device in the server: Device → Attributes → Shared attributes. The charger reads them at power-on and applies a pushed change immediately; both survive a power cycle.

Attribute Format Meaning
imax a JSON array of two integers in milliamps, left gun first: [16000, 24000] Current limit of each gun. The two values are stored separately. 0 leaves that gun on the default limit. K3 still sets the hardware ceiling, 32 A or 24 A.
powrate one integer, 100 at the factory Meter constant of the SPI energy meter.

imax is JSON, not a string: write [16000, 24000], not "[16000, 24000]".

Do not send reset_all from a dashboard: it erases the charger’s memory, provisioning included.

XNACS07-GB2015 Dual-gun AC EV Charger Product page XNACS07-GB2015 Dual-gun AC EV Charger Datasheet

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.