RoundRobinRadioSatellite
Description:
The RoundRobinRadioSatellite class is a radio protocol that facilates communication of many SPOTs with a central SPOT. RoundRobinRadioSatellite first connects to a network run by RoundRobinRadioOrigin by sending its PAN ID with an establishment-signifying character tag, then listening for a response from the origin SPOT. The origin SPOT will then assign the satellite SPOT a channel to talk on. After the network is established, the SPOT running RoundRobinRadioSatellite can broadcast data packets on its channel for the origin SPOT. RoundRobinRadioSatellite uses PAN ID Verification and it cannot be disabled.
Additional functions include status indicators using the LEDs:
During establishment:
The rightmost LED will remain red until the SPOT has been established on the network. It will blink green once when it has been established. It will blink red once and turn off if the establishment fails.
During broadcasts:
The rightmost LED will blink green once if the broadcast succeeds. It will blink red once if it fails.
Click here for source code.
Special Requirements:
- Deployed on all satellite SPOTs that will be sending information to the origin
- MUST run the establish function while the origin's establish function is being run and be successfully assigned a channel before it can even send data
- Origin SPOT must be running RoundRobinRadioOrigin
