Software Gateway 2040 series
Description
It is possible to run the Meshtech Gateway Host software on any PC running Windows, macOS or Linux. Combined with the Raytac MDBT50Q-RX 0040 extender dongle this enables access to the Meshtech network and uplink connectivity to the customer backend. The Meshtech Gateway Host software is distributed as a self-contained dotnet application. It requires specifying the serialport where OS assign Raytac MDBT50Q-RX 0040 before running it.
Platforms
Name | Description |
---|---|
Windows Gateway 2041 | Built for x64 version Windows |
macOS Gateway 2042 | Built for x64 version macOS |
macOS Gateway 2043 | Built for ARM64 version macOS (Apple silicon) |
Linux Gateway 2044 | Built for x64 version Linux |
Linux Gateway 2045 | Built for ARM64 version Linux (for example Raspberry Pi OS (64-bit)) |
Running the Meshtech Gateway Host software
The general steps are similar for all versions, but the details vary slightly. Here are all steps described to get started for each OS.
Windows Gateway 2041
- Download zip file for Windows Gateway 2041
- Extract files
- Find out what number OS assigned Raytac MDBT50Q-RX 0040, in PowerShell or through GUI
- PowerShell Terminal
Get-CimInstance -Class Win32_SerialPort | Select-Object DeviceID, PNPDeviceID
. The COM port you want is the one with Nordic Vendor ID "VID_2FE3"
- GUI
- Open Device Manager, expand Ports (COM & LPT)
- Plug in Raytac MDBT50Q-RX 0040 and see which entry is added
- PowerShell Terminal
- Edit
data\deviceconfig.json
serial.ports.name field to match, typicallyCOMx
- Run Meshtech.Gateway.exe by double clicking it, or
.\Meshtech.Gateway.exe
command from Terminal
macOS Gateway 2042
- Download zip file for macOS Gateway 2042
- Extract files by double clicking in Finder, or in Terminal
unzip macOSGateway_2042_*.zip
and move into extracted directorycd macOSGateway_2042
- Find out what path OS assigned Raytac MDBT50Q-RX 0040 serial port
ls /dev/tty.*
- If you have several entries, you can run
ls /dev/tty.*
before and after plugging in Raytac MDBT50Q-RX 0040 and see which entry is added
- If you have several entries, you can run
- Edit
data/deviceconfig.json
serial.ports.name field to match, typically/dev/tty.usbmodem12345
- Run Meshtech.Gateway by by Control+click and Open, or
./Meshtech.Gateway
command from Terminal. If you start by mouse click, you might have to select run in Terminal the first time you start it
If you run macOS Gateway 2042 on an Apple Silicon Mac, rosetta is required. Run command softwareupdate --install-rosetta
to install if not already present.
macOS Gateway 2043
- Download zip file for macOS Gateway 2043
- Extract files by double clicking in Finder, or in Terminal
unzip macOSGateway_2043_*.zip
and move into extracted directorycd macOSGateway_2043
- Find out what path OS assigned Raytac MDBT50Q-RX 0040 serial port
ls /dev/tty.*
- If you have several entries, you can run
ls /dev/tty.*
before and after plugging in Raytac MDBT50Q-RX 0040 and see which entry is added
- If you have several entries, you can run
- Edit
data/deviceconfig.json
serial.ports.name field to match, typically/dev/tty.usbmodem12345
- Run Meshtech.Gateway by Control+click and Open, or
./Meshtech.Gateway
command from Terminal. If you start by mouse click, you might have to select run in Terminal the first time you start it
Linux Gateway 2044
- Download zip file for Linux Gateway 2044
- Extract files:
unzip LinuxGateway_2044_*.zip
and move into extracted directorycd LinuxGateway_2044
- Find out what path OS assigned Raytac MDBT50Q-RX 0040 serial port
ls /dev/tty*
- If you have several entries, you can run
ls /dev/tty*
before and after plugging in Raytac MDBT50Q-RX 0040 and see which entry is added
- If you have several entries, you can run
- Edit
data/deviceconfig.json
serial.ports.name field to match, typically/dev/ttyACMx
or/dev/ttyUSBx
- Run
./Meshtech.Gateway
command from terminal to start
Linux Gateway 2045
- Download zip file for Linux Gateway 2045
- Extract files:
unzip LinuxGateway_2045_*.zip
and move into extracted directorycd LinuxGateway_2045
- Find out what path OS assigned Raytac MDBT50Q-RX 0040 serial port
ls /dev/tty*
- If you have several entries, you can run
ls /dev/tty*
before and after plugging in Raytac MDBT50Q-RX 0040 and see which entry is added
- If you have several entries, you can run
- Edit
data/deviceconfig.json
serial.ports.name field to match, typically/dev/ttyACMx
or/dev/ttyUSBx
- Run
./Meshtech.Gateway
command from terminal to start
Activating and using Software Gateway
First time starting the gateway, it could take some time for USB BLE adapter firmware upgrade to complete. Progress % will be shown in console during the process. After Upgrade completes and Meshtech Gateway Host is running, you need to Claim, Activate and configure the gateway. This is done through the Meshtech Device Management Portal. To claim a gateway, you need to know the gateway ID, which can be located in data/blemac file after gateway software has started.
Upgrading to new version
There is no automated upgrade process for 2040 Software Gateway. Running a new version is done by downloading new software bundle zip file, extracting that, and starting that instead of old file. If you want to use your existing configuration, you can copy all contents of data/ folder to the new data/ folder before starting Meshtech.Gateway.
Properties
Note
Scan Window range is 5 - 95 %. It is highly recommended to not increase scan-window above 24 % (default). Increases beyond 24 % can negatively affect throughput.
Note
After performing factory-reset (by writing 0x8301 - Factory Reset command property or deleting files in data/ folder) it is necessary to "Clear token" in Device Management before gateway can provision itself if you use same USB BLE adapter. You will also need to activate and send required configuration (typically backend.json) to use it again. Performing factory-reset will close the application, and you will need to start software again.
Note
Performing factory reset of a paired Raytac MDBT50Q-RX 0040 (by pressing button while applying power, then additional button press for 5+sec) will also cause host Software Gateway to factory reset. Performing factory-reset will close the application, and you will need to start software again.
Measurements
Measurement |
---|
0x8410 - Upstream Packets Sent |
0x8411 - Upstream Packets Lost |
0x8412 - Downstream Packets Sent |
0x8413 - Downstream Packets Lost |
Troubleshooting tips
In Linux you might not have rights to access the serial port from the user starting Meshtech.Gateway. To fix this and give access to current user, sudo usermod -a -G dialout $USER
command can be used to add yourself to the dialout
group. Logout and log back in for group changes to take effect.