Skip to content

How to install a gateway on Raspberry Pi with a Rpi Hat

Gwendal edited this page Jun 23, 2020 · 4 revisions

Rpi Hat's are Raspberry Pi extension boards including a Ublox Nina module (NRF52840) already flashed with Wirepas Sink firmware. They can be bought from : https://store.clemanis.com/en/iot/1187-raspberry-hat.html

Flash the Rpi Hat board :

This step is optional, Rpi Hat boards should already be flash with the dualmcu_app. This procedure can help you if your network is running on a newer stack version.

Install the gateway :

  • Flash a Raspbian Lite linux distribution using Balena Etcher (for example) on your µSDCard.
  • Add file named "ssh" (without extension) to the boot partition if you want ssh access.
  • In file cmdline.txt from boot partition remove : console=serial0,115200 console=tty1
  • In file config.txt from boot partition add at the end dtoverlay=pi3-disable-bt and dtoverlay=pi3-miniuart-bt
  • Plug the SDCard to raspberry Pi and boot.
  • Disable Bluetooth serial : sudo systemctl disable hciuart
  • Install the Wirepas gateway software (sink service and transport service) :
  • Create transport service configuration file in wirepas folder (/home/pi/wirepas/settings.yml) * mqtt_hostname: address or IP of WNT backend * mqtt_port: 8883 (or 1883 if unsecure) * mqtt_username: mosquittouser * mqtt_password: your backend password * gateway_id: your gateway name (must be unique)
  • Use this guide to start sink service and transport service automatically with system
  • Reboot the gateway.

Configure the Rpi Hat :

  • Configure the Sink (network address, …) using wm-node-config:
    • Ex. : wm-node-conf set -n 1 -r 17 -N 9763135 -c 7 -s sink1 -S 1 (wm-node-conf --help for usage).
    • Don’t forget the -S 1 option to start the Sink.
  • If you use WNT (Wirepas Network Tool), don’t forget to enable the diagnostics for this network in WNT Client.