Activate Police Mode with Socketcan - jakka351/FG-Falcon GitHub Wiki
###################################
# 6FPA-util
# EnablePoliceMode.sh
###################################
#!/bin/bash
sudo killall candump
sudo killall cansniffer
echo 'Enable Police Mode'
sleep 1
candump -c -a -e -x -s 0 -l can0,720:1FFFFFFF,728:1FFFFFFF & echo 'Starting Ecu Adjustment Diagnostic Session'
cansend can0 720#0210870000000000
sleep 0.1
echo 'Tester Present Signal Sent'
cansend can0 720#023E010000000000
sleep 0.1
echo 'Enabling Police Mode'
cansend can0 720#043B038D0E000000
sleep 0.1
echo 'Checking Data'
cansend can0 720#0322D10000000000
sleep 0.1
echo 'Ending Current Standard Diagnostic Session'
cansend can0 720#0210810000000000
sleep 0.1
echo "Resetting Ecu at 0x720"
cansend can0 720#0211010000000000
sleep 0.1
echo 'Please turn the ignition off and wait 3 seconds before turning the ignition back on. Do not start engine'
sleep 1
echo 'Police Mode has been activated.'
sleep 0.25
echo 'The factory speedometer offset has been removed, actual road speed will be displayed. '
sleep 0.25
echo 'Digital Speed Capture has been enabled.'
sleep 0.25
echo 'Start up logo has been set.'
sudo killall candump
```