BMS Application Software Signal Naming Rules

1. 适用范围

本规则适用于基于 Simulink/Stateflow 软件进行的BMS(电池管理系统)应用层软件开发项目,以及后续相关的 BMS 软件开发项目。

The rules apply to the BMS application layer software development project based on Simulink/Stateflow software,and follow-up related projects.

2. 命名规则

基于 Simulink/Stateflow 软件进行的 BMS 应用层软件模型,其信号命名,需要符合以下格式:

The Signal name of the BMS application software models based on Simulink/Stateflow software, should be in the following format:

<变量类型><变量维度><模块名>_<信号单位>_<信号含义>

<variable type><variable dimension><module name>_<signal unit>_<signal meaning>

例如:VeSOC_pct_RealSoc,VaINPT_degC_EnvTemp;

For example: VeSOC_pct_RealSoc ,VaINPT_degC_EnvTemp;

整个信号名称,由 AZ、az、0~9 以及 _ (下划线)字符组成,不能用数字、下划线开头,不用下划线结尾,名称中不能有空白,不用 Enter 键键入。

The signal name should be consist of A~Z、a~z、0~9 and underscore , cannot start with a digit or an underscore, cannot end with an underscore, have no blank and carriage returns.

其中,变量类型必须用大写字母表示,具体类型如表 1 所示:

In which, the variable type must be represented in capital letters, and the special type is shown as table 1:

表 1 变量类型列表

Table 1 list of variable type

变量类型 Variable Type含义 Meaning
Vvariable 输入输出量
Nnon-volatile memory 存储量
Ltemporary or local 临时或本地变量
Ccalibration 标定量

变量维度必须用小写字母表示,常用的模块名缩写如表 2 所示:

Variable dimension must be represented in lowercase letters, and commonly used module names are abbreviated as table 2:

表 2 变量维度列表

Table 2 list of variable dimension

变量维度 Variable Dimension含义 Meaning
eeasier variable 易变量
aarray 数组
ttable 二维表格
xtable-x 二维表格的x方向输入
ytable-y 二维表格的y方向输入

模块名必须用大写字母表示,常用的模块名缩写如表 3 所示:

Module name must be represented in capital letters, and commonly used module names are abbreviated as table 3:

表 3 模块名列表

Table 3 list of module names

模块名 Module Name缩写 abbr中文含义 Chinese Meaning
Data ProcessingDTP数据处理
Fault ManagementFLT故障管理
System Wake-upSWK系统唤醒
Battery Status ManagementBSM电池状态管理
Power ControlPWC功率控制
Charge ManagementCHM充电管理
Discharge ManagementDSM放电管理
State of ChargeSOC电荷状态
State of PowerSOP功率状态
State of HealthSOH健康状态
State of EnergySOE能量状态
Battery MaintenanceBMT电池维护
Thermal ManagementTHM热管理
Cell Balance ControlCBC均衡控制
Cell Failure DiagnosisCFD电芯失效诊断
Communication TransmitCMT通信发送
Communication ReceiveCMR通信接收
NVM ManagementNVM非易失性存储管理
RTC ManagementRTC实时时钟管理

信号单位根据信号单位英文名称,将各个单词进行缩写,整个名称缩写必须保证信号名简洁清晰,且不重复。常用的信号单位如表 4 所示:

The unit of the signal is to abbreviate each word according to their English unit. The entire abbreviation must ensure that the signal name is concise and clear, and not repeated. Some commonly used signal unit are abbreviated as table 4.

表 4 信号单位列表

Table 4 list of signal unit

物理意义 Physical significance国际单位 International Unit信号单位 Signal Unit
时间 Timesms/s/min/h
电压 VoltageVmV/V/kV
电流 CurrentAmA/A/kA
温度 TemperatureKdegC
电阻 ResistanceOhmmohm/ohm/kohm
功率 PowerWmW/W/kW
能量 EnergyJmWh/Wh
容量 Capacity/mAh/Ah
百分比 Percentage/pct
标志位 Flag/flg
布尔标志 boolean/b
位状态 bit/bit
索引 index/idx
计数 count/cnt
倍率 ratio/r

信号含义,根据信号英文名称,将各个单词进行缩写,每个单词的首字母必须大写,其它字母小写,整体采用大驼峰命名法,整个名称缩写必须保证信号名简洁清晰,且不重复。部分常用的信号名称缩写如表 5 所示:

The meaning of the signal is to abbreviate each word according to their English name. The first letter of each word must be capitalized, and the other letters must be lowercase. The overall naming adopts a large camel hump form. The entire abbreviation must ensure that the signal name is concise and clear, and not repeated. Some commonly used signal names are abbreviated as table 5.

表 5 信号名称常用缩写列表

Table 5 list of abbreviation of commonly used signal name

英文名称 English Name缩写 abbr英文名称 English Name缩写 abbr
MaximumMaxDifferenceDiff
MinimumMinInputInp
AverageAvgOutputOut
CellCellHigh VoltageHV
ModuleModLow VoltageLV
BatteryBattControlCtrl
RelayRlyFastFast
VoltageVoltSlowSlow
CurrentCurWirelessWrls
PowerPwrSummarySum
TemperatureTempWake upWkp
BranchBrhActiveAcv
TotalTotCommandCmd
PositivePosEstimatedEst
NegativeNegInitialInit
PrechargePchCalculateCalc
ChargeChgSensorSnsr
DischargeDsgSynchronousSync
CapacityCapRequestReq
PowerOnPwrOnReadRd
PowerOffPwrOffWriteWr
StateStateResetRst
LevelLvlErrorErr
NumberNumFaultFlt
RemainRemFilterFil
HistoryHisTableTbl

3. 修改记录

该版命名规则(版本号为 V1.0),是在现有项目 BMS 软件模型的命名基础上,经过大家评审并达成一致意见产生的。此版为首次释放,后面根据项目需求,将在版本上进行修改更新,并在表 6 中进行记录。

The Naming Rules (Version 1.0), based on the name of the existing BMS software models, are produced by the review and consensus. The version is the first release, which will be modified and updated according to the requirements of the related projects, and recorded in table 6.

表 6 修改记录表

Table 6 list of change log

版本号 Version No.修改内容 Modify content日期 Date修改者 Modifier
V1.0First release2024.07.20tyb