Share this project

Done

Share this project

Done
Solar Pi Platter - A versatile board for powering your Pi from the sun or battery and much more.  Come see what we've cooked up!
Solar Pi Platter - A versatile board for powering your Pi from the sun or battery and much more. Come see what we've cooked up!
118 backers pledged $7,132 to help bring this project to life.

Updated git repository / Added ppd daemon

Posted by Dan Julio (Collaborator)
2 likes

Happy New Year everyone,

I just uploaded the daemon, ppd, to the git repository (both source and precompiled binary that you can just copy to your Pi's /usr/local/bin directory).  A daemon, in case anyone is wondering, is a unix process that runs in the background (e.g. ssh or a web server) that manages something for the system.  The Solar Pi Platter in this case.  The main purpose of ppd is to automatically issue a controlled system shutdown ("shutdown now") in the case that a critical battery voltage is detected and the Solar Pi Platter will be shutting off power to the Pi.  This helps prevent corruption of your SD card that can occur to a running system when power is removed.  ppd should be started when the Pi boots (for example, from /etc/rc.local).  Since it communicates with the Solar Pi Platter using the Pi Platter's hardware serial port, it makes available a new pseudo-tty called /dev/pi-platter, that your application can treat just like a serial port to communicate (through ppd) with the Solar Pi Platter.  It can also open a TCP port at a specified port number for applications to communicate to the Solar Pi Platter via a socket if desired.  Finally it has an option to force an automatic restart when the battery is charged in the event of a critical battery shutdown.

I recommend that all Solar Pi Platter users run the daemon (or hack it to fit your specific needs).

I also updated the utility talkpp to first try to use /dev/pi-platter for communication (in case ppd is running) before falling back to the hardware serial port.

Check it all out.

https://github.com/danjulio/rocketblue-automation

Jerry Farmer and sgllama like this update.

Comments

Only backers can post comments. Log In