Frustrating syslog entries showing a surveillance station dropping off the Wi-Fi network and ceasing attempts to reconnect. |
A diagram of the internal components of the central surveillance station. |
A diagram of the internal components of an independent surveillance station. |
Linked to this central station via WiFi are two separate or "independent" surveillance stations located 100 or more meters away. The above graphics are intended to give the reader a general overview of the internal hardware for both types of surveillance stations, but a more detailed description and photographs of the central surveillance station design can be found here and a description of the independent surveillance stations can be found here.
Before discussing the solutions I will discuss the three types of disruption.
Problem 1: The first type of disruption, depicted in the above graphic, is a breakdown in the communications link between the Wi-Fi router and the cellular tower five miles away. In most cases this breakdown is caused by a malfunction in the network bridge (built from a Raspberry Pi) connecting the router to the mobile broadband device. The specific malfunction occurring within the network bridge has not been identified, but there is often a correlation between this malfunction and the sudden onset of severe weather with a rapid change in humidity and temperature. This form of disruption occurs least often and the only known remedy is to reset the Raspberry Pi network bridge.
Problem 2: The second and most common type of communications disruption is a break down in communications between an independent station and the Wi-Fi router. Based upon personal observations and an examination of syslog entries in the independent stations this type of disruption starts out as what would normally be considered a temporary loss of the Wi-Fi network availability. This temporary attenuation of the Wi-Fi signal is often caused by heavy rain or evening dew and usually subsides after a period of hours. Initially the Raspberry Pi computer in an independent station will make attempts to reacquire the Wi-Fi connection. However, for reasons I am still unable to determine, at some point during this period of outage the Raspberry Pi will essentially give up trying to connect and never try again. Once an independent surveillance station has reached this point you can fix the problem by either physically removing and then inserting the Pi's Wi-Fi dongle or resetting the Pi.
Problem 3: The final and least common communications disruption is a malfunction of the Ethernet connection between the main computer and Wi-Fi router within the central station. In the darkest and coldest days of winter the system can temporarily loose power at night and then start up midway through the next day. For reasons unknown to me on some of these occasions the main computers Ethernet connection will never initiate. In addition to cold weather power outages, the occasional pitter patter of tiny insect feet across the circuit boards inside the surveillance system during warm weather can cause a loss of Ethernet connection (that's my theory at least).
And now for the software solutions to these annoying communications disruptions. As with some of my previous ranching technology posts I'm going to have to go "full-nerd" from here on.
The cron job for rebooting the network bridge every morning at 2AM. |
here by Arne Schmitz. The specific solution Arne posted did not work for me, but the modified version of Arnie's script, shown in the above image, has worked well for me now for several months. It has resolved several independent station disruptions and one main computer disruption.
The script is initiated upon system startup by an entry in the rc.local file. |
Hopefully, with these three communications annoyances mitigated to my satisfaction, I will now have more time available to focus my future efforts on expanding the capabilities of my surveillance system.