We should really have a heartbeat over this gpio so that the PI can signal to the Arduino when it has shutdown..
I will check out the python code and see what I can do to add to it or make a kernel driver for it in C.
5 Sec is still not enough time for the PI to properly shutdown..
Looked at the script and while it is monitoring the pin (why does he set it as an output then input??) The shutdown is NOT happening.
The message you see is only one of two that should be on a console. This message is from the sudo wall "Spirit Shutdown Now!" cmd being executed.
There should be following this a message from the system saying it is going down. Actually is should show the same text again. Since you do not see two messages, the PI is NOT shutdown properly and this WILL result in SD corruption. Having just a timeout on one side w/o some kind of heartbeat/handshake from the other is a bad design and is only asking for trouble. For example suppose I have the full desktop, plus some background tasks running on the PI. It may take longer than 5 sec to shutdown.
My point is not all PI will take less than 5 sec to power down. SD card corruption means you need to remove and reformat and potential resetup (install SW, etc..) on the SD card. Which is a pain in the neck. Mostly due to the SD card placement on Rover.
I really wish Kevin would just put all the spec/docs out there. I took a look at the setup doc again and all it says is the code monitors a "special" pin. Not very technical and very frustrating.
The community could then just run with it and create wikis, docs, code and really run with it. Even if he we had to sign some kind of legal doc for IP reasons it would still be helpful..
i will attempt to fix this but without any technical docs, which pins are available? Is there an open GPIO I can use as a heartbeat? This will be a difficult task.

Statistics: Posted by marckarasek — Sun Feb 25, 2018 4:23 am
]]>