🛠 Configure the KNOT HL9 for IoT Asset Tracking

MikroTik KNOT Gateway HL9 · intermediaire · Apprenez à configurer la passerelle KNOT Gateway HL9 pour transmettre des données de positionnement et de capteurs via LTE vers un serveur MQTT.

Objectives

This tutorial guides the user through configuring the MikroTik KNOT Gateway HL9 for an asset tracking use case. The goal is to use the integrated GNSS receiver and the LTE Cat 1 bis modem to periodically transmit GPS position data to a remote MQTT broker. We will also enable Wi-Fi HaLow to collect data from surrounding sensors.

Required Equipment

Steps

  1. Initial Connection: Power the HL9 via PoE (18-57V) or DC. Connect an Ethernet cable between the gateway's Gigabit port and your computer. Access the RouterOS v7 interface via the default IP address (usually 192.168.88.1) in a web browser or via Winbox.
  1. LTE Modem Configuration: In RouterOS, go to Interface > LTE. Verify that the Quectel EG800Q modem is detected. Configure the APN provided by your mobile operator in the LTE interface settings. Enable the interface to establish the cellular connection.
  1. GNSS Activation: Navigate to System > GPS. Ensure the serial port corresponding to the GNSS receiver is enabled. Configure the position update frequency (e.g., every 60 seconds). Verify that satellites are acquired to obtain a valid position.
  1. Wi-Fi HaLow Configuration: Go to Wireless > Interfaces. Create a new Wi-Fi HaLow (802.11ah) interface on the 915 MHz band. Define an SSID and password. This interface will be used to receive data from long-range sensors.
  1. MQTT Automation Script: Open the terminal and create a script (/system script add name=send_gps source="..."). The script must read the GPS position (/gps get [find] latitude) and publish it to the defined MQTT topic. Use the /tool fetch command or native MQTT functions in RouterOS v7 to send JSON data to the remote server via the LTE connection.
  1. Scheduling: Use the task scheduler (/system scheduler) to execute the data sending script at regular intervals (e.g., every 5 minutes) to save energy and bandwidth.

Verification

Log in to your MQTT broker and subscribe to the configured topic. You should receive JSON messages containing latitude, longitude, and timestamp at each interval. Verify in RouterOS that the LTE interface shows a "connected" status and that the GPS indicates a "valid" position.

To go further

Explore integration with Bluetooth 5.1 LE to detect nearby iBeacon tags, or configure local alerts based on geographic zones (geofencing) directly on the gateway.

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials