Professional Documents
Culture Documents
Munication Protocol v1
Munication Protocol v1
protocol
20181105
Contents
REVOV Modbus communication protocol ............................................................................................... 1
1 Physical interface ................................................................................................................................. 3
1.1 Physical communication interface ................................................................................................. 3
2 Modbus communication protocol ......................................................................................................... 3
2.1 Function definition.......................................................................................................................... 3
2.2 Byte frame ..................................................................................................................................... 3
2.3 Data transfer rate .......................................................................................................................... 4
2.4 Format of data packet ................................................................................................................... 4
2.4.1 Master node sending format: ................................................................................................. 4
2.4.2 Response format from slave node: ........................................................................................ 5
2.5 Abnormal response....................................................................................................................... 5
2.6 Byte sequence .............................................................................................................................. 7
2.7 Data MAP ..................................................................................................................................... 7
1 Physical interface
1.1 Physical communication interface
Interface introduction:
There are two RJ45 interface on BMU, the position number are MJ2 and MJ3, MJ3 is RS485
communication interface which will be used to communicate and connect with battery, this
communication cable is the standard parts which had installed. MJ2 is used to connect to
inverter, the PIN is defined as below:
1 8
INVERTER
PIN2 485-B_IN
PIN3
PIN4
PIN5
PIN6
PIN7
PIN8
Passive query: Master node query status of slave node through order. This communication
protocol is monitor interface between BMU and other equipment (such like Inverter), BMU is
salve node, it had defined physical interface, information transmission for format, transfer
process, function define, order code liet and specific information format. Please refer to the
detail information in chapter 2.7 data MAP.
Each frame includes Address setting、Function code setting、Data area、error checking. Data
packet format are defined in below table:
Slave Address: 1byte, it is slave node address which communicates by the master node.
Each slave node receives to do address recognition, if it does not respond on non-node packet,
will discard it directly. Address set up as 0x01.
No. of Points:To indicate the number of register which obtain from the slave node. No. of
Points contains two bytes, respectively as No. of Points (High) and No. of Points(Low).
The registers be read should be continuous, and if the registers be read is not continuous, it
should be segmented to obtain.
Slave Address: 1byte, it is slave node address which communicates by the master node.
Each slave node receives to do address recognition, if it does not respond on non-node
packet, will discard it directly.
Function: 1byte, respond to the communication requirement of the host device, in accord
with the host device.
Byte Count: 1byte, to indicate the data length, the data is from slave node back to the
master node, according to the order of low to high.
Data_1 ~ Data_n(Data): To indicate the data from slave node back to the master node, the
“n” of
CRC(Cyclic redundancy check): CRC domain contains two bytes, CRC(High) and
CRC(Low).
Master device sends a query to a slave device it expects a normal response, some possible
➢ Slave device receives the query without a communication error, and can handle the
query
normally, it returns a normal response
➢ Slave does not receive the query due to a communication error, no response is returned.
The master program will eventually process a timeout condition for the query.
➢ If the slave receives the query, but detects a communication error (parity, LRC or CRC),
no response is returned. The master program will eventually process a timeout condition
example, if the request is to read a non-existent coil or register), the slave will return an
Slave Address: 1byte, it is slave node address which communicates by the master node.
Each slave node receives to do address recognition, if it does not respond on non-node packet,
Function: 1byte, respond to the communication requirement of the host device, in accord with
the host device. For an exception response, the slave returns a code that is equivalent to the
Data: 1byte, indicate abnormal code back from node. Defined as below:
0x01:The function code received in the query is not an allowable action for the slave.
If a Poll
Program Complete command was issued, this code indicates that no program function
preceded it.
0x02:The data address received in the query is not an allowable address for the
slave.
0x03:A value contained in the query data field is not an allowable value for the slave.
0x04:An unrecoverable error occurred while the slave was attempting to perform the
requested action.
0x05:The slave has accepted the request and is processing it, but a long duration of
time will be required to do so. This response is returned to prevent a timeout error from
The master can next issue a Poll Program Complete message to determine if processing is
completed.
master should retransmit the message later when the slave is free.
0x07:The slave cannot perform the program function received in the query.
0x08:The salve attempted to read extended memory, but detected verify error in the
memory. The master can retry the request, but service may be required on the slave device.
All orders which defined as reserved data bytes are uniform regulations to 0xFF.
information on standard Modbus, each character or byte transmitted in the order from left to
Storage register address is : 4XXXX, holding register 40001, data address is register
0000 (Register number), please refer to the BMU Modbus protocol MAP which include
13
15
(Lowest_Low)
18
19
22
23
Remark: From register 12 to 15, the information mechanism of alarms and Warnings relies on the
each two bits (2-bit),every two bit indicates one information, the first bit (here means bit0)
described the raise of warning or alarm and another bit(here means bit1) described information had
left. In these combination, Only one of these combined bits should be set to create a message. If both
bits are set (or cleared), no change or message is detected.
Bit 0 Bit 1 Description
0 0 Ignored
1 0 Alarm or warning raised
0 1 Alarm or warning cleared
1 1 ignored
Alarm and warning code in MAP, there are totally 8bytes, analysis in below table(every two bit):
Byte Bit Name
0 0+1 Alarm - General
0 2+3 Alarm - Battery High Voltage
0 4+5 Alarm - Battery Low Voltage
0 6+7 Alarm - Battery High Temp
1 0+1 Alarm - Battery Low Temp
1 2+3 Alarm - Battery High Temp Charge
1 4+5 Alarm - Battery Low Temp Charge
1 6+7 Alarm - Battery High Current
2 0+1 Alarm - Battery High Current Charge
2 2+3 Reserve
2 4+5 Reserve
2 6+7 Alarm - BMS internal
3 0+1 Alarm - Cell Imbalance
4 0+1 Warning - General
4 2+3 Warning - Battery High Voltage
4 4+5 Warning - Battery Low Voltage
4 6+7 Warning - Battery High Temp
5 0+1 Warning - Battery Low Temp
5 2+3 Warning - Battery High Temp Charge
5 4+5 Warning - Battery Low Temp Charge
5 6+7 Warning - Battery High Current
6 0+1 Warning - Battery High Current Charge
6 2+3 Reserve
6 4+5 Reserve
6 6+7 Reserve
7 0+1 Reserve