

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF[
	<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
	<!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
	<!ENTITY owl 'http://www.w3.org/2002/07/owl#'>
	<!ENTITY swivt 'http://semantic-mediawiki.org/swivt/1.0#'>
	<!ENTITY wiki 'http://https://wikifab.org/wiki/Special:URIResolver/'>
	<!ENTITY category 'http://https://wikifab.org/wiki/Special:URIResolver/Category-3A'>
	<!ENTITY property 'http://https://wikifab.org/wiki/Special:URIResolver/Property-3A'>
	<!ENTITY wikiurl 'https://wikifab.org/wiki/'>
]>

<rdf:RDF
	xmlns:rdf="&rdf;"
	xmlns:rdfs="&rdfs;"
	xmlns:owl ="&owl;"
	xmlns:swivt="&swivt;"
	xmlns:wiki="&wiki;"
	xmlns:category="&category;"
	xmlns:property="&property;">

	<owl:Ontology rdf:about="https://wikifab.org/wiki/Special:ExportRDF/Déployer_une_passerelle_LoRaWAN_pour_The_Things_Network/fr">
		<swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2026-05-28T21:24:33+02:00</swivt:creationDate>
		<owl:imports rdf:resource="http://semantic-mediawiki.org/swivt/1.0"/>
	</owl:Ontology>
	<swivt:Subject rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Déployer_une_passerelle_LoRaWAN_pour_The_Things_Network/fr">
		<rdf:type rdf:resource="http://https://wikifab.org/wiki/Special:URIResolver/Category-3ATutorials"/>
		<rdfs:label>Déployer une passerelle LoRaWAN pour The Things Network</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://wikifab.org/wiki/Special:ExportRDF/Déployer_une_passerelle_LoRaWAN_pour_The_Things_Network/fr"/>
		<swivt:page rdf:resource="https://wikifab.org/wiki/Déployer_une_passerelle_LoRaWAN_pour_The_Things_Network/fr"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</swivt:wikiNamespace>
		<swivt:wikiPageContentLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">fr</swivt:wikiPageContentLanguage>
		<property:Area rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Electronics</property:Area>
		<property:Area rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Energy</property:Area>
		<property:Area rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Food and Agriculture</property:Area>
		<property:Area rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Science and Biology</property:Area>
		<property:Area rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Transport and Mobility</property:Area>
		<property:Complete rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Published</property:Complete>
		<property:Cost rdf:datatype="http://www.w3.org/2001/XMLSchema#double">397</property:Cost>
		<property:Currency rdf:datatype="http://www.w3.org/2001/XMLSchema#string">EUR (€)</property:Currency>
		<property:Description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Installation et déploiement d'une passerelle LoRAWAN pour The Things Network à base du Kit LoRaWAN SeeedStudio avec Raspberry Pi 3</property:Description>
		<property:Difficulty rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Medium</property:Difficulty>
		<property:Duration rdf:datatype="http://www.w3.org/2001/XMLSchema#double">1</property:Duration>
		<property:Duration-2Dtype rdf:datatype="http://www.w3.org/2001/XMLSchema#string">hour(s)</property:Duration-2Dtype>
		<property:Introduction rdf:datatype="http://www.w3.org/2001/XMLSchema#string">The Things Network est un réseau communautaire et open source mondial pour l'Internet des objets utilisant la technologie LoRa. Il est possible d'utiliser librement ce réseau mais il est aussi possible d'aider à étendre le réseau en déployant des passerelles.

Dans ce tuto nous allons voir comment assembler et déployer une passerelle LoRaWAN sur The Things Network à partir du Kit LoRaWAN Seeed avec Raspberry Pi 3.

On peut par exemple trouver ce kit ici : https://www.gotronic.fr/art-kit-lorawan-avec-raspberry-pi-3-110060622-27141.htm</property:Introduction>
		<property:IsTranslation rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</property:IsTranslation>
		<property:Language rdf:datatype="http://www.w3.org/2001/XMLSchema#string">fr</property:Language>
		<property:Licences rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Attribution (CC BY)</property:Licences>
		<property:Main_Picture rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Déployer_une_passerelle_LoRaWAN_pour_The_Things_Network_kit-seeed-antenne-logo-ttn.jpg</property:Main_Picture>
		<property:Material rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Le contenu du Kit :
* 1 Raspberry Pi 3
* 1 pont PRI 2 RHF4T002
* 1 module passerelle RHF0M301
* 1 carte microSD 16 Go
* 1 cordon USB-microUSB20 cm
* 1 antenne 868 MHz
* 1 alimentation microUSB 5 Vcc/2,5 A
* 1 cordon RJ45 20 cm

* 1 module Seeeduino LoRaWAN avec GPS (cette carte compatible Arduino sert pour faire des tests avec la passerelle. Nous n'en parlerons pas dans ce tuto)
* 1 cordon convertisseur USB-série
* 1 cordon JST 10 cm
Pour utiliser le Raspberry Pi 3:
* 1 clavier
* 1 câble HDMI
* 1 écran HDMI
Pour installer et utiliser la passerelle:
* 1 accès à Internet par RJ45 ou Wi-Fi</property:Material>
		<property:Prerequisites rdf:resource="&wiki;Créer_un_compte_-22The_Things_Network-22_et_rejoindre_une_communauté"/>
		<property:SourceLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">none</property:SourceLanguage>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Pour pouvoir utiliser le Raspberry Pi il faut au préalable écrire l'image Raspbian sur la carte SD. Mais ce n'est pas l'objet de ce tuto...

Pour la version choisissez de télécharger '''"RASPBIAN"''' sur cette page : https://www.raspberrypi.org/downloads/

Cette version de Rapsbian ne possède pas d'interface graphique mais nous n'en aurons pas besoin.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">* Clipper le pont PRI 2 RHF4T002 sur le Raspberry Pi 3
* Clipper le module passerelle RHF0M301 sur le pont PRI 2 RHF4T002
* Poser les vis
* Utiliser le cordon USB-microUSB20 pour connecter le Raspberry Pi 3 au pont PRI 2 RHF4T002
* Insérer la carte SD dans le Raspberry Pi 3
* Connecter le clavier, la souris, l'écran et le réseau avec le cordon RJ45 20 cm
* Connecter l'alimentation microUSB 5 Vcc/2,5 A pour démarrer le Raspberry Pi 3
&lt;div class="icon-instructions pin-icon"&gt;
&lt;div class="icon-instructions-icon"&gt;&lt;i class="fa fa-thumb-tack"&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class="icon-instructions-text"&gt;...L'alimentation microUSB 5 Vcc/2,5 A du Raspberry Pi 3 se raccorde sur le pont PRI 2 RHF4T002&lt;/div&gt;
&lt;/div&gt;</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Une fois la session ouverte sur le Raspberry Pi 3 nous allons installer le programme "ttn-gateway"

Au préalable il faut faire les mises à jour et installer git sur le Rapberry Pi 3
 sudo apt-get update &amp;&amp; sudo apt-get upgrade &amp;&amp; sudo apt-get install git -y

Ensuite on récupère le programme d'installation de la passerelle sur Github
 git clone https://github.com/ttn-zh/ic880a-gateway.git
On se rend dans le répertoire du programme d'installation nouvellement créé par la commande précédente et on lance l'installation

  cd ic880a-gateway
 sudo ./install.sh spi

Le programme d'installation de la passerelle génère l'EUI (identifiant unique de la passerelle).

 Gateway configuration:
 Detected EUI B827EBFFFE163F32 from eth0
&lt;div class="icon-instructions pin-icon"&gt;
&lt;div class="icon-instructions-icon"&gt;&lt;i class="fa fa-thumb-tack"&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class="icon-instructions-text"&gt;...Il faut noter l'EUI de la passerelle. Nous en aurons besoin plus tard pour enregistrer la passerelle sur The Things Network.&lt;/div&gt;
&lt;/div&gt;
A la question suivante on accepte le choix par défaut (N) en appuyant simplement sur "entrée".

 Do you want to use remote settings file? [y/N]

La ligne suivante permet de changer le nom par défaut de la passerelle (ttn-gateway) sur le réseau local.

 Host name [ttn-gateway]:ma-passerelle

La ligne suivante permet de donner une description de notre passerelle

 Descriptive name [ttn-ic880a]:Passerelle LoRa du labo

Enfin on peut renseigner une adresse email de contact et la localisation de la passerelle

 Contact email: moi@monlabo.fr
 Latitude [0]: 42.619646 
 Longitude [0]: 4.857127
 Altitude [0]: 40

A la fin de l'installation le Raspberry Pi 3 doit être redémarré.

'''Après ce redémarrage et avec le module Seeed/RisingHF le service ne sera pas lancé,''' car le script utilise par défaut une mauvaise broche pour réinitialiser le module LoRaWAN.

'''Pour corriger ce problème''' et permettre à la passerelle de se lancer normalement à chaque démarrage du Raspberry Pi 3 il faut modifier le fichier /opt/ttn-gateway/bin/start.sh
 nano /opt/ttn-gateway/bin/start.sh

Changer la ligne

 SX1301_RESET_BCM_PIN=25
en
 SX1301_RESET_BCM_PIN=7

On peut ensuite démarrer la passerelle
 sudo systemctl restart ttn-gateway.service

Et vérifier que la passerelle est démarrée
 systemctl status ttn-gateway.service
 ttn-gateway.service - The Things Network Gateway
 Loaded: loaded (/lib/systemd/system/ttn-gateway.service; enabled; vendor preset: enabled)
 Active: active (running)
La passerelle est désormais fonctionnelle.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Pour enregistrer votre passerelle sur The Things Network vous devez vous identifier sur le site https://account.thethingsnetwork.org/users/login
* Rendez-vous sur votre console et cliquez sur "GATEWAYS"
* Sur la page "GATEWAYS" cliquez sur "register gateway"
Complétez le formulaire sur la page "REGISTER GATEWAY" comme suit 
* Gateway ID : Il faut entrer l'EUI (identifiant unique de la passerelle) généré lors de l'installation
* I'm using the legacy packet forwarder : Coché
* Description : Une description de votre passerelle
* Frequency plan : Sélectionnez "Europe 868MHz"
* Router : Sélectionnez "ttn-router-eu"
* Location ; Renseignez la latitude et la longitude de votre passerelle ou positionnez-la sur la carte
* Antenna placement : Indiquez si votre antenne est à l'intérieur (indoor) ou à l'extérieur (outdoor)
Votre passerelle fait désormais partie du réseau LoRaWAN The Things Network et peut communiquer avec les objets connectés à portée !

&lt;div class="icon-instructions info-icon"&gt;
&lt;div class="icon-instructions-icon"&gt;&lt;i class="fa fa-info-circle"&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class="icon-instructions-text"&gt;...Après avoir déclaré votre passerelle il peut se passer plusieurs jours avant qu'elle n'apparaisse sur la carte publique du site The Things Network. Soyez patient.e ;-)&lt;/div&gt;
&lt;/div&gt;</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Pour mémoire la version de Raspbian que nous avons installé sur la carte SD ne possède pas d'interface graphique.

'''Toutes les étapes d'installation sur le Raspberry Pi 3 seront donc effectuées en ligne de commande.'''

Une fois la session ouverte sur le Raspberry Pi 3 nous allons activer SPI pour le module passerelle RHF0M301.

Pour cela nous allons lancer l'outil de configuration du Raspberry Pi 3 avec la commande
 sudo raspi-config
Le menu principal raspi-config apparaît. Pour se déplacer dans les options on utilise les flèches haut et bas. Pour sélectionner une option on utilise la touche "entrée". Pour sélectionner une action c'est la touche "tabulation".
* Sélectionnez "8 Advanced Options"

* Sélectionnez "A6 SPI"

* Sur l'écran suivant "Would you like the SPI interface to be enabled?"  sélectionnez &lt;oui&gt; puis appuyez sur la touche "entrée".

* Sur l'écran suivant "The SPI interface will be enabled after a reboot" appuyez sur la touche "entrée"

* Sur l'écran suivant "Would you like the SPI kernel module to be loaded by default?" sélectionnez &lt;oui&gt; puis appuyez sur la touche "entrée".

* Sur l'écran suivant "the kernel module will now be loaded by default" appuyez sur la touche "entrée"

* De retour sur le menu principal raspi-config sélectionnez "finish" et appuyez sur la touche "entrée".

* Sur l'écran suivant "Would you like to reboot now?" sélectionnez &lt;oui&gt; puis appuyez sur la touche "entrée".
Le Raspberry Pi 3 redémarre...</property:Step_Content>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Téléchargement de Raspbian</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Assemblage du kit et démarrage</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Activer SPI sur le Rapsberry Pi 3</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Installation et démarrage de la passerelle</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Enregistrer la passerelle sur The Things Network</property:Step_Title>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">The Things Network</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">LoRa</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">LoRaWAN</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">IoT</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Communauté</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Open Source</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">passerelle</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">gateway</property:Tags>
		<property:Type rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Technique</property:Type>
		<property:Display_title_of rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Déployer une passerelle LoRaWAN pour The Things Network</property:Display_title_of>
		<swivt:wikiPageModificationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2019-12-09T10:31:39Z</swivt:wikiPageModificationDate>
		<property:Modification_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2458826.9386458</property:Modification_date-23aux>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Déployer une passerelle LoRaWAN pour The Things Network</swivt:wikiPageSortKey>
		<property:Comments rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:Comments>
		<property:Page_creator rdf:resource="&wiki;Utilisateur-3AFuzzyBot"/>
		<property:I_did_it rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:I_did_it>
		<property:Favorites rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:Favorites>
	</swivt:Subject>
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#creationDate" />
	<owl:Class rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Category-3ATutorials" />
	<owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#page" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiNamespace" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageContentLanguage" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AArea" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AComplete" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ACost" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ACurrency" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ADescription" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ADifficulty" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ADuration" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ADuration-2Dtype" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AIntroduction" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AIsTranslation" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ALanguage" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ALicences" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AMain_Picture" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AMaterial" />
	<owl:ObjectProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3APrerequisites" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ASourceLanguage" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AStep_Content" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AStep_Title" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ATags" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AType" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ADisplay_title_of" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AModification_date-23aux" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AComments" />
	<owl:ObjectProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3APage_creator" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AI_did_it" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AFavorites" />
	<!-- Created by Semantic MediaWiki, https://www.semantic-mediawiki.org/ -->
</rdf:RDF>