Ok. It's time to roast this circuit. My tonneau cover has buttons on the rear of...
The Chaotic Good🏳️⚧️🏳️🌈 @aminorjourney@insearchofportlandia.com
Ok. It's time to roast this circuit.
My tonneau cover has buttons on the rear of the truck that only operate IF it detects a remote OR a smartphone is actively connected to it via BLE. The BLE app requires you to have the app front and centre to work.
I also have no way WITHIN the truck to open or close the rear - unlike my previous unit, which used Homelink.
I have Phone as a key (PAAK) and keyless entry in to the vehicle, so I want a solution that doesn't rely on the phone or physical keys.
The idea: I'm going to use an ESP32 and CAN Transceiver to monitor my vehicle for CAN status messages indicating the vehicle is unlocked. Then, I can use the ESP32 to mimic a smartphone connection to a tonneau cover I have that ONLY works with a remote and/or smart phone app.
When the CAN bus sees the vehicle is unlocked, the ESP32 will connect to the BLE connection on the tonneau as if it's a mobile phone, using BLE pairing (key/pass handshakes).
Then it will allow the rear physically wired buttons to operate the tonneau cover, because the tonneau cover will go "There's an active phone connected”.
(I have already done a proof of concept with this and an ESP32 sat inside my truck, but without CAN authorization it won't be secure).
This circuit is specifically that. It's a “Disconnect from the cover as soon as the doors are locked" and “ONLY connect when the doors are unlocked”
But wait, there's more. Using the HomeLink buttons on my sun visor, I want to enable IN-VEHICLE control of the cover. That's what the 433 MHz circuit is for. Again, it will ONLY work WHEN the vehicle is unlocked and will ignore presses when the truck is locked.
For the future, I'll also implement the work done here: https://github.com/jantman/ford-f150-gen14-can-bus-interface/tree/main to have the rear tonneau cover light illuminate when the rear bed lights are activated.
Tell me I'm crazy. ;)
AND Yes, I know, PAAK is only as safe as the next update, or the next vulnerability. And I know that's an attack vector. But the beauty of this is that it will *also* work if I have to turn off PAAK, and use the old-school remote, without carrying around an extra remote.
AND yes, there are risks there too. I'm thinking of setting a Lock Out mode. I discovered the other day that if the ESP32 is connected, it AUTOMATICALLY rejects other pairings. Which could be a bonus for a ‘lock it down' mode.