The invention discloses a main control board
serial port communication method based on a non-standard
Modbus communication protocol, which comprises a main control board and a slave board, a non-standard
Modbus protocol format is adopted between the main control board and the slave board as a communication format, the main control board sends a request to the slave board, the slave board responds to the request to the main control board, and receiving is completed through an overtime judgment frame. And judging whether
timeout retransmission is carried out or not through
timeout transmission, wherein the frame data comprises an address field, a
function code, a register address, parameter data and
verification. According to the invention,
delay communication is solved (
big data transmission is avoided), and the communication reliability is improved; a non-standard
Modbus protocol is used, so that later development and expansion (newly added functions) are facilitated, and the flexibility is improved; normal communication is realized under the condition that low-rate transmission of a UART
serial port is not modified, and low cost and anti-interference capability of a product are ensured.