Tobi DH1TW has designed the remoteSwitch program with which you can control any of our RemoteBox or StackMain models:
- RemoteBox 1×6
- RemoteBox 2×6
- RemoteBox 1×8
- RemoteBox 2×8
- RemoteBox 2×12
- RemoteBox 1×4
- StackMain (controlador StackMatchs 1×3)
Provided with a simple web interface, so that from any device (PC, Tablet or Mobile Phone) we can operate the antenna switch, Stacks or Phased vertical antennas, both locally and remotely over the internet. Through this web interface we can manage multiple devices simultaneously.
If we also want to connect one or more RBM client programs, then we will also use the ser2net+ service. This version of the ser2net that we are going to use has been compiled starting from the original ser2net service but that allows multiple simultaneous connections to be accepted.
The remoteSwitch program is available in source code in the Tobi DH1TW Github repository, but we have made some changes to adapt it to the RemoteBox and StackMain then you can download the latest version from the download area as well as the new ser2net as described in this guide.
This picture shows the diagram of the complete solution. It consists of at least 4 services and they are:
- remoteSwitch Web Server: module of the remoteSwitch that provides the web interface. It communicates with the rest of the remoteSwitch modules through the Nats server
- remoteSwitch: module that supports each RemoteBox or StackMain device. One is used for each device, in this example only one.
- Nats Server: The Nats is a simple, secure and high-performance messaging system that is used for the different remoteSwitch modules to communicate with each other.
- Ser2Net+: module that converts the serial connections of each device (RemoteBox or StackMain) into TCP/IP and multi-concurrent. The remoteSwich module agrees to communicate with each RemoteBox/StackMain via TCP/IP through this module.
The ideal platform to manage the RemoteBox and StackMain is undoubtedly the Raspberry Pi, due to its reliability, low consumption – with which we take care to leave it on 24 hours – and at its interesting price.
In this tutorial we will explain step by step the start-up of the remoteSwitch as well as the ser2net and Nats service using an RsPi (it does not matter the RsPi model that is Raspberry Pi Model B, Pi 2 or Pi 3).
In 4 simple steps, we will implement this solution, it will not be necessary to have great computer knowledge although you can always request a Raspberry with everything already installed in our store.