The invention discloses an industrial
personal computer UPS power supply method based on commercial power interruption seamless switching, and relates to the field of
uninterruptible power supply control, and the method comprises the steps: configuring a UPS input unit to receive a DC power supply converted from commercial power, charging a
lithium battery pack through a BQ24610 charging management
chip, collecting a current detection
signal of the BQ24610 charging management
chip through an MCU, obtaining the electric quantity state of a
lithium battery, and outputting the electric quantity state of the
lithium battery. An LM5176 buck-
boost controller is arranged to be synchronously connected with the input unit and the
lithium battery pack to form a bidirectional energy path; the
voltage of the UPS input unit is monitored through the MCU, and a switching instruction is triggered. According to the invention, the MCU controls the EN pin of the LM5176 buck-
boost controller and the CE pin of the BQ24610 to cooperatively switch a power supply path,
millisecond-level seamless switching of a hardware level is realized, and meanwhile, an RS232
bus is matched to transmit a state
signal in real time, so that the data protection process of the industrial
personal computer and the power supply switching action are precisely synchronized, and the reliability of the industrial
personal computer is improved. The problem that hardware switching and
software protection are not synchronized in a traditional scheme is solved.