09-01-2020, 12:21 AM
Hi there, thanks in advance for your time.
I recently switched my system over to OAP from Crankshaft-NG.
I built a latching circuit that allows the Pi to determine when to switch it's own power off. This is set up in the config.txt file with a dtoverlay gpio-poweroff setting on GPIO26. The pin is active low. I have a script that monitors an input from the ignition key in the car. When the key is switched off, a shutdown command is initiated to run after a set amount of time. This way if I just pop into a shop quickly to grab something and come out, the Pi will still be running and I won't have to wait for it to reboot. This used to work perfectly with CS-NG.
What is happening with OAP is it seems that OAP overrides the power-off overlay on GPIO26 and my Pi on occasion (not every time) will turn off the instant the key is turned off. It appears that the GPIO has been taken low by something else while OAP is running. It only appears to happen when OAP is running.
I thought perhaps I needed to enable the internal pull up on GPIO26 and that maybe I had a floating output (I can't find the drawing of the latching circuit schematic I made!) But this has not resolved the issue.
Does OAP reconfigure GPIOs when it starts?
Any other ideas as to what might be going on? Thanks
I recently switched my system over to OAP from Crankshaft-NG.
I built a latching circuit that allows the Pi to determine when to switch it's own power off. This is set up in the config.txt file with a dtoverlay gpio-poweroff setting on GPIO26. The pin is active low. I have a script that monitors an input from the ignition key in the car. When the key is switched off, a shutdown command is initiated to run after a set amount of time. This way if I just pop into a shop quickly to grab something and come out, the Pi will still be running and I won't have to wait for it to reboot. This used to work perfectly with CS-NG.
What is happening with OAP is it seems that OAP overrides the power-off overlay on GPIO26 and my Pi on occasion (not every time) will turn off the instant the key is turned off. It appears that the GPIO has been taken low by something else while OAP is running. It only appears to happen when OAP is running.
I thought perhaps I needed to enable the internal pull up on GPIO26 and that maybe I had a floating output (I can't find the drawing of the latching circuit schematic I made!) But this has not resolved the issue.
Does OAP reconfigure GPIOs when it starts?
Any other ideas as to what might be going on? Thanks