When the remote site stops answering
A router that has locked up cannot be reached over the internet, because it is the thing that connects you to the internet. Someone has to switch it off and on again. At a pumping station, a farm office, a holiday let or a mast site, that someone is usually a long drive away.
A GSM switch is reached over the mobile network instead. Call it and it breaks the power to the router for a few seconds, then restores it.
Why the normally closed contact
For a reboot the equipment must have power all the time except during the reset. So it is fed through the normally closed contact: C to NC. When the switch is called, the relay contact moves from the NC position to the NO position, breaking the circuit and resetting the server. When the relay time runs out, the contact returns to NC and the power comes back.
If the switch itself loses power, an NC contact stays closed, so the equipment keeps running. That is the safe way round for anything that must stay on.
Safety. If you are unsure how to connect the device you wish to control, refer to a qualified person.
Main and backup server
The manual's wiring example uses both relays. Server 1 (main) is connected to relay 1: when the switch is activated the relay contact moves from NC to NO, breaking the circuit and resetting the server. Server 2 (backup) is connected to relay 2: when the switch is activated the contact moves from NC to NO, making the circuit and switching the backup on.
Example settings
Ten seconds off is enough for most routers and modems to clear. Check the equipment maker's advice for servers with disks.
#PWD121212#WHL001=00900123Only you can reboot it · reply WHL001:00900123#PWD121212#ACM2Secure access, so a wrong number cannot cut the power · reply ACM-ON#PWD121212#GOT1=00010Relay 1 opens the NC contact for 10 seconds · reply GOT1:00010#PWD121212#GOT2=00000Relay 2 unused on a call · reply GOT2:00000Things to watch
- Secure access matters most here: on an open switch a marketing call cuts the power to your server
- A hard power cut can damage open files. Use it for equipment that copes with it, or for a server that has really stopped
- Low-voltage DC equipment can be switched in its DC lead; mains equipment within 10 A at 230 V through a fused outlet in a proper enclosure
- Do not power the switch from the same supply you are about to interrupt
Questions
Will I know the router came back?
The switch only reports its relays. Use #RLY1= by text with your number in the administrator list and you get RLY1=00010 when it switches and RELY1-OFF when the power is back on. Whether the router recovered you will see from the router itself.
Can I cut the power for longer?
Yes. Set a longer #GOT1 time, or send #RLY1= with the seconds you want for that one reboot.
Which terminals do I use for relay 1?
Terminal 8 is common and terminal 6 is normally closed. For relay 2, terminal 3 is common and terminal 4 normally closed.