About JK Preset Studio
JK Preset Studio is a free, open tool for people who maintain battery banks built on JK BMS boards (the JK-PB inverter series such as JK-PB2A16S20P, and B2A boards on the same protocol). It connects to the BMS over Bluetooth straight from the browser, so you can review and change every setting on a computer or an Android phone without the JK app. Files exported from the JK app work too.
Direct connection over Bluetooth
The browser talks to the BMS through Web Bluetooth with the same JK02 protocol the JK app uses (service 0xFFE0, characteristic 0xFFE1). Reading asks the BMS for its settings frame and its device information frame; together they are exactly the content of a .jkcfg file.
AA 55 90 EB reg len value (u32 LE) 00 × 9 CS write, 20 bytes AA 55 90 EB C8 01 01 | 00 | 02 …… accepted | refused | no such setting
Changes are written one setting at a time. The firmware checks every value against what it holds at that moment, so the editor splits your changes into steps that are accepted in any order and reads the BMS back after each step.
The BMS answers every write: accepted, refused because the value clashes with another setting, or refused because the model has no such setting. Right after connecting, the editor writes the current value of each optional setting back to learn which ones your BMS has; nothing changes. The result is kept in this browser for that BMS.
Web Bluetooth works in Chrome and Edge on Windows, macOS, ChromeOS and Android over HTTPS. Close the JK app before connecting: the BMS accepts only one Bluetooth connection at a time.
The .jkcfg format
A .jkcfg file is 600 bytes: two 300-byte frames of the JK02 Bluetooth protocol stored back to back.
55 AA EB 90 01 xx …… settings …… CS bytes 0–299 55 AA EB 90 03 xx …… device info … CS bytes 300–599
Frame 1 (type 0x01) holds the settings: little-endian 32-bit values for voltages in mV, currents in mA, temperatures in 0.1 °C, followed by per-cell wire resistance, the device address and a bit field with switches.
Frame 2 (type 0x03) holds the device information: model, hardware and firmware version, serial number, passwords, communication protocols and charging timers.
The last byte of each frame is a checksum: the sum of the previous 299 bytes modulo 256. The editor recomputes it on export.
Privacy
Settings read over Bluetooth and files you open stay in your browser: there is no upload and no account. The list of settings your BMS does not have is stored only in this browser, keyed by the BMS serial number. The site uses Google Analytics for usage statistics. Without your consent it only receives cookieless anonymous pings (no cookies, no identifier); with your consent it also uses analytics cookies to count returning visits. What is sent: page views, the BMS model, firmware version and battery chemistry of a loaded configuration, whether it came over Bluetooth or from a file, the names of changed parameters, validation rule codes, Bluetooth error codes and interface actions (presets, writes, downloads, language, theme). Never sent: file names, file contents, setting values and serial numbers. You can change your choice at any time.
When something breaks, the site sends an error report to Sentry so it can be fixed, along with page load timings. A report holds the error message and where in the code it happened, the page address, the browser and operating system, and the last interface actions before the error. It sets no cookies, carries no identifier and does not depend on the cookie choice. Never sent: file names, file contents, setting values and serial numbers.
Cookies and browser storage
This is everything the site may store in your browser. The first group is needed for the features you use and is never used to track you. The analytics cookies are set only after you choose Accept and are deleted when you decline.
| Name | Type | Purpose | Lifetime |
|---|---|---|---|
| Needed for the site to work (no consent required) | |||
| jkps_consent | Local storage | Your answer to the cookie banner (accepted or declined), so the banner does not ask again. | Until you clear the site data or press “Change cookie settings” |
| jkps_locale | Cookie | The language you picked, so the site opens in it next time. | 1 year |
| nuxt-color-mode | Local storage | Light, dark or system theme. | Until you clear the site data |
| jkps_ble_caps | Local storage | Which optional settings your BMS lacks, found while connecting, keyed by its serial number and firmware version. Makes the next connection faster. | Until you clear the site data |
| jkps_monitor_prefs | Local storage | Live monitor display options: temperature unit, current sign, chart layout. | Until you clear the site data |
| jkps_monitor | IndexedDB | Readings recorded by the live monitor, so you can replay a session. They stay on this device. | 7 days, older recordings are deleted automatically |
| jkps-v1 | Cache storage | Pages and app files you have opened, so the installed app works offline. Your configs and logs are never stored here. | Until you clear the site data; replaced as the site updates |
| Analytics: Google Analytics, only after you accept | |||
| _ga | Cookie | Google Analytics: a random identifier that tells returning visits from new ones. | 2 years |
| _ga_CP930Z0LZN | Cookie | Google Analytics: keeps the pages of one visit (session) together. | 2 years |
Without consent Google Analytics still receives cookieless pings without an identifier (Consent Mode). You can remove everything above at any time by clearing the site data for jkpreset.com in your browser settings.
Disclaimer
Credits
Field offsets are based on the reverse-engineering work in syssi/esphome-jk-bms. Recommendations come from JK manuals, cell datasheets, Battery University and the DIY Solar community; every parameter lists its sources.
Contact
Questions, a BMS model that behaves differently, or a bug report? Write to us. Answer a quick question first so the address stays hidden from spam bots.
What to include when something goes wrong
The more of this we get, the faster we can reproduce and fix the problem:
- The BMS model, hardware and firmware versions (shown in the device card in the editor, or under Device info in the JK app).
- What you did, what you expected and what happened instead, with the exact error text if there was one.
- The settings as a .jkcfg file: download it from the editor after a Bluetooth read, or export it from the JK app.
- The Detail Log export from the JK app, if the problem is a trip, an alarm or an unexpected shutdown.
- Screenshots of the error or of the screen where it happened.
- For Bluetooth problems: your browser with its version and your device or operating system.