I need one GPI and one GPO.
The GPI will be connected to a relay so that it's state will change whenever we switch between AC power and battery power. I need some way of polling this GPI so that when a change is detected, the WRAP/ALIX board can send me an email to notify me.
The GPO will be connected to a relay which will power the modem. If the PPPoE session is dropped and does not come back on for several minutes, the GPO can then be used to reboot the modem. I thought about using the I2C bus for this and building a little board to handle it, but if I can use the onboard GPIOs, this would be easier. I just don't know how to do it. Is there somewhere where I can find documentation on how to control the GPIOs?
|