Yileide Battery Charger CAN Bus Communication Specification
Introduction
This document outlines the CAN bus communication specifications for Yileide battery chargers, detailing the communication rate, data link layer provisions, identifier assignments, message formats, and operational logic.
Communication Specifications
The communication specifications adhere to a bus communication rate of 250Kbps. The data link layer provisions are based on CAN2.0b and J1939 standards. A 29-bit identifier for CAN extension frames is utilized and redefined.
CAN Identifier Assignment Table (29-bit)
IDENTIFIER11BITS (Bits 28-18) | IDENTIFIER EXTENSION18BITS (Bits 17-0) | ||||||
---|---|---|---|---|---|---|---|
PRIORITY | R | DP | PDU FORMAT (PF) | SRR | IDE | PDU SPECIFIC (PS) | SOURCE ADDRESS (SA) |
3 bits | 1 bit | 1 bit | 6 bits | 1 bit | 1 bit | 10 bits | 8 bits |
Bits 28-26 | Bit 25 | Bit 24 | Bits 23-18 | Bit 17 | Bit 16 | Bits 15-6 | Bits 5-0 |
Among them, the PRIORITY is 3 bits, which can have 8 priority levels. R is usually fixed at 0. DP is now fixed at 0. The PDU FORMAT (PF) is 6 bits. SRR and IDE are 1 bit each. PDU SPECIFIC (PS) is 10 bits, representing the target address or group extension. SOURCE ADDRESS (SA) is 8 bits, representing the source address of sending this message.
The SA holds the address of each node connected to the network, identifying its function. Each node has at least one function, and multiple nodes can share the same function or have multiple functions.
CAN Network Address Assignment Table
CAN bus node addresses are obtained from the J1939 standard.
Name of The node | SOURCE ADDRESS (SA) |
---|---|
Motor controller (MCU) | 239 (0 xef) |
Battery management system (BMS) | 244 (0 xf4) |
Charger control system (CCS) | 229 (0 xe5) |
Broadcast address (BCA) | 80 (0 x50) |
Message Formats
Report 1: BMS to CCS (ID: 0x1806e5f4)
OUT | IN | P | R | DP | PF | Cycle (ms) |
---|---|---|---|---|---|---|
BMS | CCS | 6 | 0 | 0 | 6 | 1000 |
Data Fields
Location | Data Name | Details |
---|---|---|
BYTE1 | Maximum allowable charging terminal voltage high byte | 0.1V/bit offset: 0 example: Vset =3201, corresponding voltage is 320.1v |
BYTE2 | Maximum allowable charging terminal voltage low byte | |
BYTE3 | Maximum allowed charging current high byte | 0.1A/bit offset: 0 example: Iset =582, corresponding current is 58.2a |
BYTE4 | Maximum allowed charging current low byte | |
BYTE5 | Control | 0: the charger starts charging. 1: battery protection, charger off output. |
BYTE6 | keep | |
BYTE7 | keep | |
BYTE8 | keep |
Report 2: CCS to BCA (ID: 0x18FF50E5)
OUT | IN | P | R | DP | PF | Cycle (ms) |
---|---|---|---|---|---|---|
CCS | BCA | 6 | 0 | 0 | 0xFF | 1000 |
Data Fields
Location | Data Name | Details |
---|---|---|
BYTE1 | Output voltage high byte | 0.1V/bit offset: 0 example: Vout =3201, corresponding voltage is 320.1v |
BYTE2 | Output voltage low byte | |
BYTE3 | Output current high byte | 0.1A/bit offset: 0 example: Iout =582, corresponding current is 58.2a. Maximum |
BYTE4 | Output current low byte | BIT representation Symbol, 0 for charge, 1 for discharge. |
BYTE5 | STATUS flag | |
BYTE6 | keep | |
BYTE7 | keep | |
BYTE8 | keep |
Status Bit Descriptions
Status Bit | Logo | Describe |
---|---|---|
Bit0 | Hardware failure | 0: normal. 1: hardware failure |
Bit1 | Charger temperature | 0: normal. 1: Overtemperature protection of charger |
Bit2 | Input voltage | 0: normal input voltage. 1: the input voltage is wrong, and the charger stops working |
Bit3 | Start state | 0: the charger detects that the battery voltage enters the starting state. 1: off (used to prevent backconnection of battery) |
Bit4 | Communicate status | 0: normal communication. 1: communication receive timeout |
Bit5 | ||
Bit6 | ||
Bit7 |
Way to Work
- BMS sends control information (message 1) to the charger at fixed intervals of 1S. After receiving the information, the charger works according to the voltage and current settings of message data. If the message is not received within 5 seconds, the communication error state will be entered and the output will be closed.
- The charger sends broadcast information (message 2) every 1S, and the display instrument can display the state of the charger according to the information.
- The charger has a 12V power supply.