The present application provides a high-
voltage control method and electronic device for an independent
latching switch, which belongs to the field of
relay control technology. The method includes: obtaining the reset flag information in the reset flag register to determine whether the independent
latching switch has an abnormal reset; if not, triggering the main positive
relay and the main negative
relay to disconnect, and performing fault detection on the independent
latching switch according to the status information of the
circuit breaker, the
voltage and insulation value of the battery, the
inverter side
voltage and the feedback status information of each relay, and controlling the independent latching switch to complete high-voltage power-on or high-voltage power-off; if so, determining whether the main positive relay and the main negative relay are both in a
closed state, and if so, maintaining the
closed state to maintain the output before the independent latching switch is abnormally reset. The present application can achieve real-time detection of faults in the high-voltage power-on or high-voltage power-off process of the independent latching switch, and
handle the faults in real time to improve the safety and reliability of the high-
voltage control of the independent latching switch.