The invention discloses a CAN flow equalizing method with a grouping function. The method comprises the steps of S1, starting to send data; S2, judging the
group type; S21, when A groups of
power module data are received, executing S211; S211, judging whether the data belongs to a mailbox 1 or not, and if yes, executing S212; if the data does not belong to the mailbox 1, returning the result; S212, judging whether a grouping command exists or not, if yes, executing S23, and if not, returning the result; S22, when B groups of
power module data are received, executing S221; S221, judging whetherthe data belongs to a mailbox 2 or not, and if yes, executing S222; if not, returning the result; S222, judging whether a grouping instruction exists or not, if yes, executing S23, and if not, returning the result; S23, updating the
group type according to the grouping command, and modifying the ID of an internal communication mailbox 0; S3, returning the result. By means of the CAN flow equalizing method with the grouping function, a
power module is grouped, and then flow equalizing is achieved.