The invention relates to the technical field of
electronic equipment control, in particular to a method for automatically distributing charging module addresses, which is applied to equipment comprising a main
control unit, a plurality of charging modules, two independent CAN buses, a
power supply unit, an
alternating current output
relay and a fault prompt unit. Comprising the following steps of demand judgment and initial communication detection, hardware state detection and power-off
verification, parallelization setting of module addresses one by one and final
verification and process ending. Before an address setting process is started, through initial communication detection and hardware state detection, potential problems such as
CAN bus communication abnormity, power supply fluctuation,
alternating current output
relay faults and module power-off incapability are checked in advance, once faults are found, accurate prompting is carried out through a multi-color
LED lamp, an operator can conveniently and rapidly position and solve the problems before address configuration, and the operation efficiency is improved. Therefore, flow interruption or module damage caused by hardware faults in the setting process is avoided, the invalid debugging time is shortened, and the loss risk in the equipment debugging stage is reduced.