This invention discloses an engine control method based on a vehicle locking function, belonging to the field of engine control technology. It solves the technical problem that existing instrument-based
starter control cannot meet the requirements for safe engine starting. The method includes: adding a
relay to the engine
starter signal control line, with the
relay's control terminal connected to the engine's ECU; when the ECU executes a vehicle locking
signal, its internal parameters limit the
fuel injection quantity to 0, the ECU controls the
relay to disconnect, and the
starter cannot tow the engine; when the ECU does not execute a vehicle locking
signal, the ECU's
fuel injection quantity is normal, the ECU controls the relay to connect, and the starter can tow the engine. For engines requiring pre-
fuel injection, this invention can protect the engine by locking it before the technical condition is confirmed, preventing the starter from
towing and protecting the engine from
dry friction of the bearings caused by not pre-fuel injection; the control is reliable, the logic is simple, and it is easy to operate.