How EV Charging Gun Electronic Locks Work: Why You Can't Unplug During Charging
Nearly every EV driver has faced the same situation: after charging ends, the connector won't come out. In most cases this is not a product fault — it is the electronic locking mechanism working as designed. Understanding how the lock works helps end users operate correctly and helps charging operators and maintenance teams locate faults quickly.
This article covers AC Mode 3 and DC charging scenarios conforming to the IEC 61851-1 pilot-function mechanism and the GB/T 20234 / IEC 62196 interface standards, addressing pile-side electronic locks, vehicle-side locking interaction, and common unlock failures, for charging operators, OEM after-sales teams, and end users, reflecting mainstream technology as of 2026.
During a charging session, the power circuit carries tens to hundreds of amperes. Forcefully unplugging under load makes the pins separate while current flows, producing an arc that scorches terminals, shortens mating life, and in extreme cases can trigger safety incidents. The standards therefore require that once a session is established, the interface must remain locked until charging has stopped and the circuit is confirmed de-energized. The locking mechanism is the key component enforcing this requirement.
Mainstream designs have two locking levels. The first is the pile-side (gun-side) electronic lock, installed inside the gun head, commonly as either a solenoid lock or a motor-driven lock. Solenoid locks actuate quickly with a simple structure; motor-driven locks move a bolt with a micro motor and can pair with a position switch to report the true locking state, and are used more where lock-state confirmation is required. Under China's GB/T 20234.1, the supply-side connector must provide a locking function, which the pile-side electronic lock fulfills.
The second level is the vehicle-side lock. In the European Type 2 AC Mode 3 scenario, the vehicle performs the locking after the gun is inserted: it detects the CP (control pilot) signal, confirms connection, and locks the gun in place, releasing it at the end of charging. In DC scenarios, the pile-side electronic lock typically takes the primary locking role with the vehicle providing detection support. With the two levels coordinated, the gun cannot be removed until both sides confirm the session has ended.
The locking chain of a normal charging session works as follows: after the gun is fully inserted, the vehicle confirms the connection through CC/CP detection resistance; the pile and vehicle complete insulation checks and handshake; once the session starts, the pile-side lock (and the vehicle lock) engage and the main contactor closes; after charging ends or the user stops, the pile opens the circuit, confirms there is no current, then issues the unlock command and retracts the bolt so the user can unplug. The IEC 61851-1 pilot-function timing provides the standardized signal framework for this chain.
This explains why a 'stuck gun' is usually a link in the chain that has not completed: the pile's software may still be waiting for the vehicle's end-of-session confirmation, the vehicle may delay unlocking by seconds to tens of seconds, or the bolt may return sluggishly in low temperatures. Only in a minority of cases is the electronic lock itself damaged.
Recommended sequence: confirm in the vehicle or app that charging has stopped and payment is settled; try the vehicle unlock action (on most vehicles, unlocking the doors also releases the gun); check the pile screen for prompts. If still stuck, contact the operator for remote release or use the emergency release — mainstream products reserve a mechanical emergency release on the gun body or the pile.
This is an abnormal event; possible causes include electronic lock failure, loss of lock-state detection, or software not triggering protection in time. Operations teams should pull the charging logs to check lock-state signals and inspect the lock position switch and bolt wear. When selecting components, pile manufacturers should focus on the electronic lock's cycle-life rating, the reliability of lock-state feedback, and actuation performance at low temperatures.
DEGSON's EV charging connectors are paired with high-reliability electronic locking solutions with lock-state feedback. The products are verified against GB/T and IEC related standards and produced under the IATF 16949 quality management system, supporting customized development of structure and interface matching for pile manufacturers' platforms.
The electronic locking mechanism is an inconspicuous but critical link in charging safety: it locks the live interface according to the standard sequence and releases it when charging ends. Understanding the two-level lock division and the unlock sequence helps users avoid misoperation and helps maintenance teams quickly distinguish software-flow issues from hardware faults.