Plateforme Inetlab - Internet Network Technologies Lab

Documentation/Doc-LRP Gateway

De Plateforme Inetlab - Internet Network Technologies Lab
Aller à la navigation Aller à la recherche


1) ajouter des gateways dans ChirpStack (bien reprendre le bon gatewayID déclaré sur ta borne)

https://loraserver.u-strasbg.fr/#/organizations/gateways


2) Pour configurer ChirpStack gateway bridge

https://www.chirpstack.io/gateway-bridge/gateway/multitech/

Copier le package et installer en root via sudo

sudo opkg install chirpstack-gateway-bridge_3.13.1-r1_arm926ejste.ipk

https://www.chirpstack.io/gateway-bridge/install/config/

Editer le fichier

sudo vi /var/config/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml

En utilisant l’adresse mqttnet.u-strasbg.fr , mqtt (port 1883) et le login/password de ton organisation ().

Exemple du fichier /etc/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml (à adapter avec son compte et son gatewayID) :


  1. This configuration provides a Semtech UDP packet-forwarder backend and
  2. integrates with a MQTT broker. Many options and defaults have been omitted
  3. for simplicity.
  4. See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
  5. configuration example and documentation.


[general]

  1. debug=5, info=4, warning=3, error=2, fatal=1, panic=0

log_level=4

  1. Log to syslog.
  2. When set to true, log messages are being written to syslog.

log_to_syslog=true

[backend] type="semtech_udp"

[backend.semtech_udp] udp_bind = "0.0.0.0:1700" skip_crc_check = false fake_rx_time = true

[integration] marshaler="json"

  1. MQTT integration configuration.

[integration.mqtt]

  1. Event topic template.

event_topic_template="gateway/Modèle:.GatewayID/event/Modèle:.EventType"

  1. Command topic template.

command_topic_template="gateway/Modèle:.GatewayID/command/#"

  1. MQTT authentication.

[integration.mqtt.auth] type="generic"

[integration.mqtt.auth.generic] server="tcp://mqttnet.u-strasbg.fr:1883" qos=0 clean_session=false client_id="XXXXXXXXXXXXXXXX"

  1. Connect with the given username (optional)

username="fimbert"

  1. Connect with the given password (optional)

password="ChangeMe"


NOTES:

Gateway Multitech Conduit AP

  • Pour la première connexion, il faut obligatoirement se connecter via un navigateur web (port 80) sur l'adresse IP 192.168.2.1 (IP statique attribuée par défaut qui ne répond pas au ping)
  • Configuration LORAWAN NETWORKING
 * LoRa Mode : PACKET FORWARDER
 * SX1301 > Channel Plan : EU868
 * BASICS > Gateway ID => the Gateway ID to use with ChirpStack Server
  • Server
 * Upstream Port : 1700
 * Downstream Port : 1700
  • Improve security with chirpstack-gatedway-bridge

server="ssl://mqttnet.u-strasbg.fr:8883"