RS485 English
RS485 English
I. Overview
This protocol is a universal protocol for the RS485/RS232/UART interface of the Polar Air Active Balance Protection Board, and the baud
rate is 9600bps.
II. The frame structure
In the communication process, the protection board is always the slave and the remote device is the master. All communication can only
be initiated by the master and responded by the slave. To facilitate the distinction, it is agreed that the frame sent by the host is the configuration
frame, and the frame sent by the protection board is the response frame.
The configuration frame includes start bit, status bit, command code, data length, data content, checksum, and stop bit. The frame structure is as
follows:
Start bit Status bit Command code Data length Data content check Stop bit
among them:
1) Start bit: 1 byte, indicating the start of a frame of data, fixed to 0xDD;
2) Status bit: 1 byte, status 0xA5 means read, status 0x5A means write.
3) Command code: 1 byte. In the communication process, the command code is used to distinguish the data content carried in the
configuration frame. The corresponding relationship between each command code and the data carried is as follows:
Status bit Command code Data content
0x03 Read basic information and status
0x04 Read battery cell voltage
Read the hardware version number
0xA5 0x05
of the protection board
Read the private data of the
0x06
protection board user
0x5A 0xE1 MOS control instructions
4) Data length: 1 byte, indicating the effective length of the data carried in the frame.
5) Data content: N bytes, the content carried by the frame data, when the data length is 0, there is no such part.
6) Verification: 2 bytes, the verification field is "command code + length byte + data segment content", the verification method is the
sum of the above fields and then the inverse plus 1, the high bit is in the front and the low bit is in the back.
7) Stop bit: 1 byte, indicating the end of a frame of data, fixed as 0x77;
The response frame contains the start bit, status bit, command code, data length, data content, checksum, and stop bit. The frame
structure is as follows:
Start bit Command code Status bit Data length Data content check Stop bit
among them:
1) Start bit: 1 byte, indicating the start of a frame of data, fixed to 0xDD;
2) Command code: 1 byte, which is the command code of the configuration frame that this frame responds to.
3) Status bit: 1 byte, 0x00 means correct, 0x80 means error.
4) Data length: 1 byte, indicating the effective length of the data carried in the frame.
5) Data content: N bytes, the content carried by the frame data, when the data length is 0, there is no such part.
6) Verification: 2 bytes, the verification field is "command code + length byte + data segment content", the verification method is the
sum of the above fields and then the inverse plus 1, the high bit is in the front and the low bit is in the back.
7) Stop bit: 1 byte, indicating the end of a frame of data, fixed as 0x77;
3) Read the hardware and software version number of the protection board
Host sends: DD A5 05 00 FF FB 77
BMS response: DD 05 00 0A 30 31 32 33 34 35 36 37 38 39 FD E9 77
The data content structure of the response frame is as follows: