PK Command - Parking Mode (Anti-Tow)
Establishes a virtual geofence from the current vehicle position to detect if it’s being towed or moved without authorization.
What is it for?
- 🚛 Tow detection — Alert if the vehicle is loaded onto a tow truck
- 🔒 Parking security — Protect the vehicle while it’s turned off
- 📍 Position control — Verify that the vehicle remains in place
- 🚨 Anti-theft system — Complement for vehicle alarms
- 🏢 Parked fleets — Monitor vehicles in depots or parking lots
Operation
- Configure — Define radius and confirmation time with
SPKEbbbbcccc. This only saves the values - Enable — Send
SPKEwith no parameters to activate parking mode - Activate — Execute
SPKAto capture current position as geofence center - Monitoring — The device continuously compares GPS position with the center
- Detection — If the vehicle exits the radius during the configured time, the
PK+signal is triggered - Reset — Executing
SPKAagain captures a new position and resets the state.SPKDwith no parameters disables the mode
With parameters, SPKE and SPKD do not enable or disable anything. The handler only saves the
radius and time; sending digits after the command name never toggles parking mode. To enable or
disable it, send SPKE or SPKD with no parameters at all.
The confirmation time prevents false alarms due to GPS fluctuations. The vehicle must remain outside the radius for the entire duration to trigger the alert.
Command Summary
| Action | Command | Description |
|---|---|---|
| Configure | SPKEbbbbcccc | Only saves radius and time. Does not enable |
| Enable | SPKE | Enables parking mode using the saved values |
| Acquire | SPKA | Capture current position as center |
| Disable | SPKD | Deactivate parking mode |
| Query | QPK | Get current configuration |
Parameters
| Field | Description | Values |
|---|---|---|
| bbbb | Radius in meters, 4 digits | 0001-9999 (default 0050) |
| cccc | Confirmation time in seconds, 4 digits | 0001-9999 (default 0015) |
Parking mode is not indexed. There is a single parking configuration in the device: the command
takes no index, and neither does QPK. A form such as SPKE00... is read as a radius, not as an
instance number.
The confirmation time prevents false alarms: the vehicle must be outside the radius for ccc seconds to activate the signal.
Associated Signals
| Signal | Description |
|---|---|
PK00 | The vehicle left the geofence: tow detected |
PK01 | Parking mode is enabled |
Only these two exist. PK02 and above always read as 0.
Examples
Basic anti-tow configuration
>SPKE00500015<
// 50 meter radius, 15 seconds confirmation — saves only
>SPKE<
// Now enable parking modeActivate parking (capture position)
>SPKA<
// Takes current position as geofence centerDeactivate parking
>SPKD<
// Deactivates mode and resets PK signalUse in Event Rules
Automatic anti-tow system
// When turning off vehicle: activate parking
>SRL00E;TRG=IN07-;ACC={SPKA}{SCXGPS1}<
// If tow detected (and vehicle still off): alert
>SRL01E;TRG=PK00+;CND=IN07!;ACC={STX PK TRIGGER ;@TRM}{GCQ78H}{SCXGPS0}<The SCXGPS1 command activates GPS even when the vehicle is turned off, allowing updated position during a potential theft.
For detection to work properly, GPS must have good reception when executing >SPKA<. In areas with poor signal, consider increasing the radius.