Vehicle user detection via BLE proximity. IRK?

Intro:

  • FMB003 is an OBD dongle for the car with GPS and basic OBD info.
  • The FMB003 sends packets to a specified private server, which is Home Assistant (HA). In HA, I use Node-RED to parse the data and create MQTT sensors.

I managed to extract the RSSI of my watch and phone in the FMB003, and now I’ve got a proximity sensor in my car. I can literally tell if I’m inside or if someone else is, and when I am, I connect the car’s tracker to myself. When I leave, it disconnects.

What’s more, since the OBD port is on the left and I wear my watch on the left, I can even tell if I’m the driver or the passenger. 🙂

Obviously, I’ve got a ton of ideas on what to do with this. I’m still testing it out, though. The issue is that the Apple Watch changes its MAC addresses and UUIDs, so it’s tricky to track, but so far, I can identify the car, watch, phone, and other beacons. I’m waiting for some iBeacons and Eddystones in keychains, which will make it easier, though the watch would be the most convenient for me.

I’m still wrestling with the protocol for additional BLE data for Codec 8 Extended because it doesn’t really stick to what’s in the documentation. It’d be best if Teltonika introduced recognition via IRK, but we’d have to push them for that.

To sum up: It’s doable, but it takes a lot of work and tinkering.

Feel free to push Teltonika about the firmware—let them hear the voice of the people!



Interesting, I used to do something similar regarding logging the OBDII data to home assistant but not combining presence. The biggest issue for me was that there was no switched power at the OBDII port at least not on any of the cars I have owned. This means that after any extended period of not driving the car you could find your self with a flat battery.

I did look into using an ODBII extender cable and switching the permanent live to a switched one but at the time I was about to change the car and didn’t want to run something that I’d then have to undo when selling the car. Haven’t picked that back up with the new car. How are you dealing with this or does your vehicle have switched power, don’t think that is standard?

So far, I haven’t noticed this issue, but I’ll need to check.

Did you check the sleep settings? (at least my OBD device has it in configuration tool)

Zrzut ekranu 2024-10-10 173727

My OBDII connector wasn’t as fancy as yours, it didn’t have any sleep settings. Will see if I can find somewhere to buy one like yours, looks better.