Skip to content
Hackerland LogoHackerland
Firmware Image

Zephyr RTOS AIS-156 EV Smart BMS Firmware

ESP32S3License: Apache-2.0EV BMS
GitHub Source

Zephyr RTOS AIS-156 EV Smart BMS Firmware

ISO 26262 ASIL-B 16S battery pack controller with active cell balancing & CAN-FD telematics

Automotive-grade firmware built on Zephyr RTOS 3.6 for electric two-wheelers and commercial 3-wheelers complying with Indian AIS-156 Phase 2 standards. Monitors 16 series cells via TI BQ76952 AFE, detects thermal runaway precursors ($Delta V > 40\text{ mV}$), and streams live telematics over CAN 2.0B / CAN-FD.

Maintainer:OpenEV India Foundation(Consortium of Electric Mobility Makers)✓ Verified Publisher

ACTIVE RELEASE & CRYPTOGRAPHIC VERIFICATION

Select release stream and inspect SHA-256 signature

Release:
IMAGE SIZE1.75 MB
FORMATbin
CHANNELstable
BAUD RATE921600 baud
SHA-256 CHECKSUM
4b7910248ba9cf8214aeb489901456209efca1b5894101ceea09124801be9145
ED25519 RELEASE SIGNATURE
ed25519:124801...bb8904fe

Changelog:

  • AIS-156 Phase 2 thermal runaway 5-minute pre-warning audio buzzer trigger
  • Implemented active passive hybrid cell balancing with 150mA shunt dissipation
  • CAN-FD telematics packet broadcast at 50Hz for Ather/Ola cluster displays
  • Dual OTA partition fallback if signature verification fails on boot

FLASH MEMORY PARTITION MAP (4.00 MB)

Physical flash offset layout, memory bounds, and partition allocation

OVERLAP CONFLICT
bootloader
partition_table
otadata
app0_active
app1_standby
nvs_calibration
littlefs_blackbox
FREE (20.0 KB)
⚠ Overlap detected: 'partition_table' at 0x8000 collides with 'bootloader' (ends at 0x9000)
PARTITIONTYPESUBTYPEOFFSETSIZE
bootloaderbootesp_boot0x100032.0 KB
partition_tabledatapt0x80004.0 KB
otadatadataota0xd0008.0 KB
app0_activeappota_00x100001.75 MB
app1_standbyappota_10x1D00001.75 MB
nvs_calibrationdatanvs0x39000024.0 KB
littlefs_blackboxdatalittlefs0x396000424.0 KB

HARDWARE FLASHING INSTRUCTIONS & STEP-BY-STEP

### Flashing Instructions for ESP32-S3 Smart BMS

1. Connect the ESP32-S3 BMS controller to USB.
2. Put the board into ROM download mode by holding **BOOT** (GPIO0) and pressing **RESET**.
3. Use the **One-Click WebSerial Flash** button to program all partition tables and binaries at 921600 baud.
4. CLI command fallback:
   ```bash
   esptool.py --chip esp32s3 -p /dev/ttyUSB0 -b 921600 --before default_reset --after hard_reset write_flash \
     0x1000 bootloader.bin \
     0x8000 partition_table.bin \
     0x10000 zephyr_bms.bin
   ```

SUPPORTED HARDWARE BOARDS

ESP32-S3-WROOM-1 (16MB Flash)
Hackerland AIS-156 BMS DevBoard
Waveshare ESP32-S3-CAN

CLI FLASH COMMAND

esptool.py --chip esp32s3 -p /dev/ttyUSB0 -b 921600 --before default_reset --after hard_reset write_flash \
  0x1000 zephyr-ais156-bms-v3.6.1-ais156.bin

Run locally if flashing outside a WebSerial supported browser.

DIRECT RAW BINARY

Download image for mass production jigs or offline flashing.

Download v3.6.1-ais156 (1.75 MB)