Project

General

Profile

Feature #815

Updated by Hammel over 3 years ago

See RM #743 

 # Add cli option for headless mode (-H) 
 # Don't use GUI - switch to "glib main loop":https://docs.huihoo.com/symbian/nokia-symbian3-developers-library-v0.8/GUID-7FD05006-09C1-4EF4-A2EB-AD98C2FA8866.html 
 ## Exit on signals only: SIGQUIT, SIGTERM, SIGHUP and SIGINT. 
 # Add "gpio monitor":https://framagit.org/cpb/example-programs-using-libgpiod/-/blob/master/monitor-gpio.c thread using "libgpiod":https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/ ("API docs":https://libgpiod-dlang.dpldocs.info/gpiod.html). "libgpiod":https://libgpiod-dlang.dpldocs.info/gpiod.html. 
 ## See also: "GPIO Programming: exploring libgpiod":https://www.ics.com/blog/gpio-programming-exploring-libgpiod-library 
 ## Add "momentary button":https://raspberrypihq.com/wp-content/uploads/2018/02/02_Push-button_bb-min.jpg to "RPi":https://raspberrypihq.com/use-a-push-button-with-raspberry-pi-gpio/ 
 ## Add an "led":http://redmine.graphics-muse.org/projects/ironman/wiki/Users_Guide#Installation-Prerequisites to RPi 
 # Momentary button causes SIGUSR1 or SIGUSR2 depending on toggle state 
 ## Requires debounce handling (don't allow toggling to fast). 
 ## Probably requires synchronization with network startup in debounce handling. 
 # Signal handler  
 ## SIGUSR1 starts imwww for network config 
 ## SIGUSR2 stops imwww and restarts network 
 # LEDs are flashed depending on state 
 ## 1 second (500ms on/500ms off) blink: imwww is active. 
 ## 2 200ms flashes/second: network is restarting. 
 ## 2s solid followed by 10 200ms flashes followed by no light: normal mode is now active. 
 ## A second LED could be used to show camera active state.

Back