Différences entre les versions de « Documentation/Doc-LRP Gateway »
(Page créée avec « 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 conf… ») |
|||
Ligne 16 : | Ligne 16 : | ||
https://www.chirpstack.io/gateway-bridge/install/config/ | https://www.chirpstack.io/gateway-bridge/install/config/ | ||
− | En utilisant l’adresse | + | Editer le fichier |
− | et le login/password de ton organisation ( | + | |
+ | 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) : | Exemple du fichier /etc/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml (à adapter avec son compte et son gatewayID) : | ||
Ligne 77 : | Ligne 81 : | ||
* 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) | * 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 |
Version du 8 novembre 2021 à 12:23
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) :
- This configuration provides a Semtech UDP packet-forwarder backend and
- integrates with a MQTT broker. Many options and defaults have been omitted
- for simplicity.
- See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
- configuration example and documentation.
[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/Modèle:.GatewayID/event/Modèle:.EventType"
- Command topic template.
command_topic_template="gateway/Modèle:.GatewayID/command/#"
- MQTT authentication.
[integration.mqtt.auth] type="generic"
[integration.mqtt.auth.generic] server="ssl://mqttnet.u-strasbg.fr:8883" qos=0 clean_session=false client_id="XXXXXXXXXXXXXXXX"
- Connect with the given username (optional)
username="fimbert"
- 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