Plateforme Inetlab - Internet Network Technologies Lab

Différences entre les versions de « Documentation/Doc-LRP Gateway »

De Plateforme Inetlab - Internet Network Technologies Lab
Aller à la navigation Aller à la recherche
Ligne 75 : Ligne 75 :
 
password="ChangeMe"
 
password="ChangeMe"
 
</nowiki>
 
</nowiki>
 +
 +
 +
Coordonnées GPS
 +
 +
Si possible, ajouter/mettre à jour les coordonnées courante de la Gateway LoRa:
 +
 +
* Soit dans la configuration du packet forwarder (coordonnées GPS statiques, option fake_gps)
 +
* Soit dans l'interface graphique du serveur Chirpstack
  
 
NOTES:
 
NOTES:

Version du 8 novembre 2021 à 12:44


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.

Insérer ici un texte non formaté [general] # debug=5, info=4, warning=3, error=2, fatal=1, panic=0 log_level=4 # Log to syslog. # # 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" # MQTT integration configuration. [integration.mqtt] # Event topic template. event_topic_template="gateway/{{ .GatewayID }}/event/{{ .EventType }}" # Command topic template. command_topic_template="gateway/{{ .GatewayID }}/command/#" # 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" # Connect with the given username (optional) username="fimbert" # Connect with the given password (optional) password="ChangeMe"


Coordonnées GPS

Si possible, ajouter/mettre à jour les coordonnées courante de la Gateway LoRa:

  • Soit dans la configuration du packet forwarder (coordonnées GPS statiques, option fake_gps)
  • Soit dans l'interface graphique du serveur Chirpstack

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"