The invention relates to the technical field of digital
information transmission and the like, and provides a communication mistake proofing method based on a BMS protocol with two-in-one CAN and RS485 buses, the CAN and the RS485 buses are set as a communication
bus of the two-in-one BMS protocol, N BMS systems are carried for parallel operation communication, when the same interface is connected to the RS485
bus or the
CAN bus, CAN communication or RS485 communication is automatically identified, and the communication mistake proofing method based on the two-in-one BMS protocol is realized. During communication, a frame header, a read-
write bit, a
function code, a
heartbeat packet, a check code and a frame
tail bit are added for each data packet at a data sending end, check code
verification is carried out on the received data packets at a data receiving end by using a check
algorithm the same as that of the data sending end, if the check codes are not matched, it is judged that the data packets are transmitted wrongly,
retransmission is requested, and if the check codes are not matched, the data packets are sent to the data receiving end. According to the method, the communication state and the
data transmission condition are monitored, and when the communication abnormity is detected, the corresponding
processing flow is automatically started according to the abnormity type, so that the same interface is compatible to realize two different physical communication protocols, the performance of the BMS is improved, and communication errors are reduced.