The application discloses a gateway-based
CAN bus redundancy routing method and device, and is applied to a CAN network comprising a gateway controller, a first
CAN bus link and a separately arranged second
CAN bus link. The method comprises the following steps: firstly, obtaining a sending moment of a sending request issued by an
application layer and an
acknowledgement moment of a sending completion interrupt generated by a bottom layer hardware; based on the
acknowledgement moment and the sending moment, obtaining a real-time load parameter of the link under a current message; if the real-time load parameter exceeds a preset load parameter threshold, determining that the first CAN
bus link is in an abnormal state of
high load, triggering a dynamic routing switching, and switching
data transmission of a target node being the preset node to the second CAN
bus link for transmission. The application can effectively monitor the
bus state without occupying additional bus bandwidth and with low calculation
power consumption, realizes dynamic targeted switching on key nodes, and guarantees the real-time performance and reliability of key service data of the whole vehicle.