Unofficial open-source Android manager for JBD / Jiabaida smart BMS devices.
JBD BMS Manager is an extended derivative project based on the OpenJBD monitoring foundation. The product separates read-oriented battery observation from technician-oriented maintenance while keeping both in one coherent application.
Agent handoff: If you are Hermes or another coding agent, read
AGENTS.mdfirst, thenPROJECT_STATUS.md. The repository is intentionally prepared so development can continue from this GitHub path alone.
The product uses exactly five top-level bottom-navigation destinations:
Overview / Detail / Balance / Control / Settings
개요 / 상세 / 밸런스 / 제어 / 설정
Responsibilities:
- Overview — compact battery-state summary: SOC, voltage, current, power, temperature, cell delta, protection summary and MOS state.
- Detail — detailed read-only operating/device information such as capacities, cycles, firmware, identity, detailed temperatures and protection state.
- Balance — cell-group voltage and balancing observation/diagnosis: all cell voltages, min/max/average, delta and active balancing indication.
- Control — locked Maintenance Mode entry for calibration, protection configuration, balance configuration, capacity/SOC management, MOS control, backup/restore and diagnostics.
- Settings — application preferences only: language, theme, temperature unit, refresh interval, auto-connect, source and license information.
The key UX boundary is:
Balance = observe / diagnose
Control = configure / service
The upstream OpenJBD Overview / Parameters / Settings structure is therefore migrated toward Overview / Detail / Balance / Control / Settings. User-facing parameter information moves into Detail; raw/service diagnostics move under Control.
See docs/navigation-design.md for the authoritative information architecture.
The read-oriented product surfaces are Overview, Detail and Balance. These screens must not expose calibration or BMS configuration writes.
Core monitor capabilities include:
- State of charge (SOC)
- Pack voltage, current and power
- Remaining / learned capacity
- Cycle count
- Cell-group voltages
- Min / max / average cell voltage
- Cell delta
- Temperatures
- Charge / discharge MOS state
- Balance state
- Protection / alarm state
- Auto reconnect
- Landscape dashboard
Control is the top-level entry to the technician workspace and is locked by default.
Implemented service functions (v0.1.4):
- Settings read / write: balance, protection, temperature and capacity sections (balance delta in 5 mV steps)
- Current calibration: idle (zero), charge and discharge
- Cell voltage calibration
- NTC (temperature sensor) calibration
- Charge / discharge MOS control (FET disable / enable with live state)
- Configuration backup (JSON export) / staged, verified restore
- Target BMS identification and read-only raw diagnostics
Pack voltage calibration is not provided. Unknown BMS variants stay read-only. See PROJECT_STATUS.md for the canonical feature, remaining-work and test status.
Maintenance writes follow a staged workflow:
Read current values
↓
Edit working copy
↓
Validate
↓
Review old → new values
↓
Explicit Apply
↓
Write
↓
Read-back verify
Unknown or unsupported BMS variants default to read-only behavior.
Upstream project:
- Repository:
gytxtx/OpenJBD - Initial baseline commit:
7e3e225a128f6e0d69425b98a2670d8d69594885 - Language: Kotlin
- License: MIT
This repository was created independently rather than with GitHub's native Fork button. Local clones should treat OpenJBD as the upstream remote.
For reproducible release builds, GitHub Actions checks out the pinned OpenJBD commit, applies this repository's product overlay, runs unit tests and Android lint, builds the release APK signed with the fixed release key, and publishes the APK as a GitHub release asset.
See docs/upstream-sync.md, scripts/apply-product-overlay.py, and docs/release-process.md.
The repository is in an early executable release state (v0.1.4). Current work focuses on:
- OpenJBD monitoring baseline.
- Android 16 edge-to-edge / system-bar compatibility.
- Korean localization.
- JBD BMS Manager product identity.
- Five-tab information architecture — shell and content in place for the 0.1.x line.
- Control/Maintenance flows (Read → Edit/Measure → Validate → Review → Apply → Read-back verify): settings for the balance / protection / temperature / capacity sections, calibration (current / cell voltage / NTC under the three-concept contract), MOS control (charge/discharge FET disable with live state) and backup/restore (JSON export + staged verified restore).
- Balance diagnostics: 5 mV-step balance delta control, per-cell safety bands (measured or explicitly-defaulted thresholds) and V+mV readouts with text badges for highest/lowest/balancing.
- Visualization: overview SOC gauge (3-level band), detail history trend chart (24 h / 7 d, SOC / pack voltage / cell delta) backed by an on-device 10 s sample store with 7-day retention.
- Reproducible APK CI/release packaging.
The next major product work is physical verification of the current release and protocol evidence capture on supported hardware. All Control/Maintenance flows are implemented; writes are session-gated and commit only when every approved change verifies (with an independent post-commit confirmation read).
See PROJECT_STATUS.md and docs/development-plan.md for the live execution state.
Download the latest release APK from the repository Releases page. Since v0.1.3 the APK is signed with a fixed release key (certificate SHA-256 bf948e45…573fae), so later versions install as updates. Coming from v0.1.2 or older (debug-signed), uninstall once before installing. It is not distributed through the Play Store.
Android may require permission to install apps from the browser or file manager used to open the APK.
This project is designed for Hermes to coordinate work through Git worktree isolation.
Typical isolated task:
git fetch origin
git worktree add ../jbd-five-tab-nav -b feat/five-tab-navigation origin/main
cd ../jbd-five-tab-nav && claudeIn the worktree: "Read AGENTS.md, PROJECT_STATUS.md and docs/navigation-design.md. Implement the active scoped task, run focused verification, and report changed files plus test evidence."
Use origin/main, not an unqualified local main, as the normal worktree base.
AGENTS.md— authoritative coding-agent execution contractHERMES.md— Hermes project entry pointPROJECT_STATUS.md— canonical features, remaining work and test itemsREADME.ko.md— Korean project READMEdocs/navigation-design.md— authoritative five-tab information architecturedocs/development-plan.md— detailed phase-by-phase implementation plandocs/architecture.md— application/layer architecturedocs/maintenance-mode.md— Control/Maintenance UX and write transaction designdocs/hermes-claude.md— orchestration and worktree workflowdocs/testing.md— test and physical-device validation policydocs/upstream-sync.md— OpenJBD provenance and sync proceduredocs/repository-governance.md— branching, PR, CI and release policydocs/roadmap.md— concise feature roadmap
OpenJBD targets SDK 36. On Android 16, toolbars and bottom navigation can overlap the status/navigation gesture areas when an app relies on legacy edge-to-edge behavior.
JBD BMS Manager handles system insets explicitly. All standalone Activity toolbars must receive status-bar inset handling, not only the main screen.
- Integration branch:
main - Normal work: short-lived branches + PR
- Preferred normal merge: squash merge
- Upstream history sync: merge commit may be used where provenance matters
- Branch prefixes:
feat/,fix/,refactor/,test/,docs/,chore/ - Commit style: Conventional Commits where practical
Changing BMS protection, calibration, balancing, temperature, capacity or MOS parameters can affect battery safety.
This project therefore requires:
- explicit Control/Maintenance unlock
- conservative capability detection
- staged change review
- value validation
- read-back verification where supported
- physical BMS validation before declaring write features production-ready
A successful BLE write alone is not sufficient evidence that a setting is correct or persistent.
OpenJBD is MIT licensed. The original upstream copyright notice is preserved under THIRD_PARTY_LICENSES/OpenJBD-LICENSE.
This project's own top-level license is also MIT.
This is an unofficial community project and is not affiliated with or endorsed by JBD / Jiabaida.
MIT License. See LICENSE.