Repeater Controller Power Control
Power for the repeater needs to be split into 2 supplies. The first is the "always-on" supply, which should power the repeater controller and any network routers, switches or remote access devices (and possibly any receiver used for DTMF). The second supply (switched by the rackmainspwrGPIO pin (default 15)) should be used for the video receivers and the transmitting circuitry. Note that there is a separate signal to set the repeater to transmit. This means that the repeater has 3 stable power states: Controller-only, receiving and transmitting.
There are 2 front panel shut down buttons (both active low) defined in the config file:
- The first shuts down the complete repeater including the controller for maintenance operations. It is activated by the fpsdgpiopin (default 26) which shuts down all the receiver RPis by setting the racksdsignalGPIO pin (default 24) low for 5 seconds. It then waits 10 seconds and then sets rackmainspwrGPIO pin (default 15) low, and then shuts down the controller. The only way to restart is to recycle power to the controller. This pin is only active if fpshutdown=yes. This button
- The second, to be used by the repeater keeper for toggling power saving, is activated by the racksdbuttongpiopin (default 21) which changes (toggles) the state of all the connected Raspberry Pis, but leaves the controller RPi running.So if the repeater is running, selecting the button low for over 800 ms will signal all the connected RPis to shutdown (by setting the racksdsignalGPIO pin (default 24) low) for 5 seconds. It then raises racksdsignalGPIO, and after 10 seconds displays the message "Rack shut down. Awaiting restart" and sets the rackmainspwrGPIO pin (default 15) low. If the repeater has been put to sleep, selecting the racksdbuttongpiopin (default 21) low for over 800 ms sets the rackmainspwrGPIO pin (default 15) high.
There are 2 control pins:
racksdsignalGPIO pin (default 24), which goes low to shutdown all the RPis (except the controller)in the repeater. rackmainspwrGPIO pin (default 15), which turns power on to all the RPis (except the controller) when high, and off when low.
Manual power control overrides timed power control until the next timed power event. So if you set it off manually, it will turn on at the next rack power on event time.
Timed on/off only works if rackpowersave=yes. Timed on/off controls both racksdsignalGPIO pin (default 24) to gracefully shutdown the rack RPis and then rackmainspwrGPIO pin (default 15) to turn the power supply to them off. The controller RPi must be continually powered.
There are 2 timed “on” periods (think morning and evening). If the times on the second period are both set to zero, then only the first timed on period is used.