The invention discloses a
vehicle control unit debugging method based on CAN communication, and the method comprises the following steps: S1, carrying out
license detection based on a preset
encryption algorithm, and carrying out the initialization of a CAN channel after the
license detection passes; s2, frame data containing equipment node numbers are sent to all node addresses to scan
CAN bus equipment nodes in a
polling mode, if a response is received, the node addresses are locked, equipment information is obtained and stored in an equipment
list, and if the response is not received, the nodes are switched according to the address sequence and scanning is repeated; s3, selecting a target node from the equipment
list, loading an EDS configuration file and analyzing the EDS configuration file to generate an operable parameter
list; s4, executing at least one of the following operations based on the parameter list: querying or modifying
vehicle control unit (VCU) parameters; transmitting the
firmware upgrade package to the target node in blocks, and verifying the check code; and regularly reading selected parameters, and carrying out real-time
visual monitoring. The debugging efficiency of the
vehicle control unit is improved, and meanwhile, all
CANopen protocol VCU devices are compatible.