07-20-2020, 04:18 PM
(This post was last modified: 07-20-2020, 05:37 PM by Daniel_BlueWave.)
Is there a way to stop all OpenAuto functions by keyswitch?
I already have a script running in the background monitoring keyswitch. When the car turns off, the first thing I do is to trigger Pause command but keep screen on for 5 more seconds... (I keep RPi on with a SSR commanded from GPIO upon start). I leave screen off for 10 more minutes, just in case I come back to the car, then I just turn screen back on and resume audio... (This was done in order to boot up faster, but if car is going to be stopped for a while I shut down the whole RPi until next keyswitch on event)
The question here... While my screen is off, Bluetooth is still connected. and if I receive a call while I'm close to the car, it will answer it on the car. And also if I play some music, it will play it on the car. Is there a command to disconnect bluetooth and wifi, then another one to reconnect after the keyswitch is back on?
Thanks,
I already have a script running in the background monitoring keyswitch. When the car turns off, the first thing I do is to trigger Pause command but keep screen on for 5 more seconds... (I keep RPi on with a SSR commanded from GPIO upon start). I leave screen off for 10 more minutes, just in case I come back to the car, then I just turn screen back on and resume audio... (This was done in order to boot up faster, but if car is going to be stopped for a while I shut down the whole RPi until next keyswitch on event)
The question here... While my screen is off, Bluetooth is still connected. and if I receive a call while I'm close to the car, it will answer it on the car. And also if I play some music, it will play it on the car. Is there a command to disconnect bluetooth and wifi, then another one to reconnect after the keyswitch is back on?
Thanks,