Automatic lock/unlock for your car is now possible with AutoPi. It can be easily set up to automatically lock/unlock the vehicle based on your proximity and therefore, can prevent any inconvenient situations.
A common mistake when leaving your car, is that you forget to lock it, leaving it open to theft. With the AutoPi it would be possible to build a system that automatically locks your car, based on your proximity to the car.This could also assist you when arriving at the car, with both hands full of groceries.
It is possible to do it both manually and automatically. It can be either set up to lock/unlock the car based on the proximity of the driver or it can be set up for you to do it manually from your smartphone.
How to do it?
Check out our article on how to control door locks. You will find a thorough explanation on how to do it yourself. In case you want to see it right now, this is what we recommend doing.
Once the device is online, go to “Car Explorer” -> “CAN Analyzer”.
In the second step, you need to find the protocol settings required for your specific make and model. For our model, the following article explains the required protocol settings.
However, the description yet fails to give up all the information and details such as payload size (#bits) and data length code (DLC) on our Mondeo MK4 are not provided, therefore an experimental approach is required.
a. Select the bus and protocol you want to use as part of your trial, and then press record. In our case, we have four different MS protocols.
B. Click on a test in the terminal and adjust the duration of recording to a sensible length. In this example, it lasts for 5 seconds. The trick is to save the file as in the screenshot below where the file is named “unlock1.txt”.
The device makes a "beep" sound when the recording begins and another one when the recording ends. Make sure that the CAN command you want to record is happening between the two sounds (like door unlock).
If the right protocol settings were applied for the car model you should see hex messages from the CAN bus in your file. Moreover, the recording is now stored on the device and you can play it back immediately using the CAN player on the right-hand side of the screen
a. If no message is recorded you have to continue with the next protocol settings, and name a new output file e.g. “unlock2.txt”.
You will see that a lot of data is returned from the bus that finds the specific command for your function. We recommend using the filters. Typically, a lot of the data is repetitions, so you can start out by removing all the duplicates.
a. If the first part works - great - repeat slicing the identified segment. If the first part did not work try the second part.
With the filters, narrow down the results to as few as possible. Then you can replay the commands one by one and see if you can find the command controlling the function you are looking for.
When you have found your command you can always resend it by using the obd.play as shown below.
In case you want to know more or are struggling with installation, please contact email@example.com.
Benefits of auto lock/unlock
Automatically locking your car when you are not around can be extremely helpful and stop any future plans of the thieves.
On the other side, it can be very pleasant to automatically unlock the car when you are nearby and you do not have to manually use the remote control or actual keys. It can come in handy when your hands are full and you simply can’t reach in your pockets to find the keys.
Simply, it just makes the whole process much easier, faster and more efficient. It is also really convenient for you, not to worry about taking out your car keys when you are on the phone or have something in your hands.