Open sushilmudgil opened 3 weeks ago
The assumption is that most cars will kill power on USB once ignition is off. But I know this is not true for all.
We can turn off the device when inactive. But if the power is always on, we might not have a nice way to restart the device automatically once the car starts again as it'd need a power cycle to start again. Any ideas on how and when we can restart the device again?
The assumption is that most cars will kill power on USB once ignition is off. But I know this is not true for all. Any ideas on how and when we can restart the device again?
I would expect a code to integrate it with car ignition which i think might not be possible as we have no access to Car ECU .
so way around would be, for it to detect HU power state and proceed accordingly. So If HU is powered on.. it powered itself, If Off it switches itself Off.
so way around would be, for it to detect HU power state and proceed accordingly. So If HU is powered on.. it powered itself, If Off it switches itself Off.
I don't think we generally have an easy way to detect if HU is on/off, if the USB power is always on, especially if we shutdown the dongle in the first place.
My personal experience with Kia Sorento. The USB power shuts off a minute or two after you lock the doors. When you unlock the doors, the USB is powered again.
There's a crude solution to this problem: Purchase a 12V relay and a cigarette lighter plug. Disconnect the Pi's VCC 5V and connect it to the relay's control. When the car starts, the cigarette lighter activates, the relay engages and conducts electricity. The 5V VCC powers up, and the Pi starts. This can achieve the functionality you want, but it's a rough solution. Alternatively, you could purchase an ELM327 OBDII communicator to read the CAN bus signal for startup. This is much more difficult and would be a different functionality altogether. The above conversation was translated with the assistance of Claude.ai. I hope I've expressed my meaning clearly. Thank you.
My experience with Tata Altroz is the car shuts off USB power ~5mins after the doors are locked.
My only concern is that we are not doing shutdown safely as the power is abrubtly switched off after locking the car. This may impact the raspberry pi board or the memory card in the long run.
HI Nisarg,
wanted to thank you for this awesome project.
I was able to run it on a combination of Raspberry Pi Zero 2 W and Suzuki XL6 Zeta 6 AT. It pairs almost instantly without any lag and delay. You can add XL6 ZETA HU to the list of compatible cars .
My Only question is -
A) The moment i switch off the Car ignition, it should switch off the PI as well but i see PI keeps running thus draining the battery. Is this normal behaviour and if this impacts the longevity of device in any way. is there any way that we can write in code that if there is no inut for 2 min ( example) it should shut it self down.
regards Sushil