Cookies: Our site uses cookies in order to deliver better content. By continuing you accept these cookies.

Ok
Auto Lock/unlock car

Auto Lock/unlock car

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.  


A person unlocking his car through 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.

  1. Once the device is online, go to “Car Explorer” -> “CAN Analyzer”.

  2.     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”.

  1. 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).

  2.     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”.

  3.     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.

  4.     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.

  5.     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 sales@autopi.io.

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.


We also call it keyless entry solution that is already commonly used by many services all around the world. The solution is typically used and connected with fleet management softwares


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. 

Check out our video on how to unlock a Ford with AutoPi
AutoPi.io
Follow us here:

Or sign up to our newsletter and receive the news first.