Somewhere in the Pacific Ocean, near the world's best shortcut, lies an island some 20 miles offshore.
This island now has a fast PtP 5 GHz wireless connection, thanks to some routerboards and other accessories.
While the connection works well most of the time, unfortunately there is a problem.
The tide in Pacific varies by 18 feet and this creates havoc with the link.
Regardless of the frequency used, the connection will go offline (because of reflections and destructive interference) for some period of time every day.
However, with each different frequency, the water height at which the link will go offline is different.
For example, at 3 PM I might have -90 dB on 5200 MHz and -75 dB on 5800 MHz. A few hours later, I have -92 dB on 5800 MHz and -73 dB on 5200 MHz.
If I could dynamically switch between the two frequencies, I could achieve nearly 100% uptime (except for the 1-2 seconds it takes for the station to reconnect).
I would like to have a script that takes a TX signal reading, from the AP side, every 30 seconds. If the average over 4 readings is -85 dB or worse, I want it to switch to the other channel. I just need it to move between the two channels.
If someone could post the code for this, it would be great.
I'll be happy to PayPal you $30 for your time.
Please, no comments suggesting I use bigger antennas. If that is your suggestion then you don't understand the problem.