The invention relates to the technical field of
electronics and electrical, in particular to a
USB charging line automatic power-off method and
system based on
short circuit detection, and the method comprises the steps: confirming a charging detection environment based on a
USB charging detection instruction, and carrying out the current and
voltage analysis of a current sampling unit and an MOS power-off unit through a
microcontroller in a circuit control board, obtaining a current transformation
time sequence, a current abrupt change rate, a
voltage transformation
time sequence and a
voltage collapse rate, calculating a circuit anomaly index according to the current abrupt change rate, the
voltage collapse rate and the
transient response duration, and performing short-circuit evaluation on the basic parameter set based on a pre-constructed circuit analysis model to obtain a short-circuit danger probability. And calculating a short-circuit state
score according to the circuit abnormity index, the short-circuit
risk probability and the short-circuit risk coefficient, determining a charging termination device based on the short-circuit state
score and the operation charging device, and completing automatic power-off of the
USB charging line. According to the invention, the
short circuit risk of the USB charging line can be identified in advance, and the accuracy and timeliness of automatic power-off are improved.