Embitel Logo

AUTOSAR Based Development for Battery Management System in Electric Two-Wheelers

Tools and Technologies

  • NXP Microcontroller (xxK341)
  • AUTOSAR Classic Architecture (BSW, CIL layers)
  • CAN Communication Protocol
  • UDS (ISO 14229)
  • XCP
  • E2E Protection
  • Vector CANoe
  • Vector CANape

About the Customer

Our customer is one of the world’s largest two-wheeler manufacturers, headquartered in India. They have a significant share of the domestic two-wheeler market and an active electrification program spanning multiple electric scooter variants.


Business Challenge

The customer faced challenges in developing AUTOSAR-compliant Base Software (BSW) and Control Interface Layer (CIL) modules for their Battery Management System (BMS) ECU on an electric two-wheeler platform. Meeting functional safety, diagnostics, communication, memory management, and wakeup requirements within aggressive development timelines required specialized AUTOSAR expertise. To address these challenges, the customer partnered with Embitel to develop the BSW and CIL layers on their hardware platform, ensuring a scalable and standards-compliant software foundation.

2400

Total Test Cases

400

UDS Automated Test Cases


Embitel's Solution

Embitel developed BMS platform software across the BSW and CIL layers on Sample A and Sample B ECU boards, built around an NXP microcontroller using CAN as the communication backbone between layers and external ECUs including the VCU.

BSW Module Development

Embitel developed the following BSW modules:

  • CAN communication stack for inter-layer and inter-ECU data exchange
  • NVM memory management for variable storage and retrieval
  • UDS diagnostics stack covering Services 10, 11, 3E, 22, 2E, 27, 28, 85, 19, 14, and 31
  • XCP configuration for variable monitoring and calibration, with NVM-backed storage
  • Wakeup management supporting three trigger types
  • Shutdown management for controlled ECU power-down sequences
  • DTC configuration covering fault triggering, NVM storage, aging cycle, and debounce behaviour
  • Auto addressing for a dual-BMS ECU architecture, where one ECU operates as master and aggregates data from slave ECUs before communicating with the VCU
End-to-End Protection

Implemented End-to-End (E2E) protection for BMS transmit and VCU receive CAN messages.

  • Integrated CRC-based integrity checks to detect data corruption during message transmission.
  • Added alive counter support to identify missing, repeated, and out-of-sequence messages.
  • Enhanced communication reliability between BMS and VCU while complying with automotive communication safety requirements.

Embitel's Impact

Embitel delivered a structured, modular BSW platform for the customer’s BMS ECU, covering all communication, diagnostics, memory, and safety-relevant software needs across two hardware sample generations.

The dual-ECU auto addressing architecture and E2E protection implementation gave the customer a scalable and communication-safe foundation for continued BMS software development.

  • Delivered BSW modules for CAN communication, NVM, UDS, XCP, wakeup, shutdown, and DTC management across Sample A and Sample B hardware
  • Implemented dual-ECU auto addressing with master-slave CAN architecture for VCU interfacing
  • Implemented E2E protection for BMS-VCU CAN communication with CRC and alive counter
  • Developed UDS diagnostics stack covering 11 services
Scroll to Top