LoRa Gateway - Arduino LoRa IoT Online Tutorial
LoRa Gateway - Arduino LoRa IoT Online Tutorial
LORA GATEWAY
Here is the tutorial video from our YouTube channel for the gateway part.
We assume that a gateway is available for the training or you built such gateway. Note
that with the simple PCB (WAZIHat for instance) to host the LoRa radio module for the
gateway, it is very easy to build the gateway with a regular RaspberryPI and the SD card
image provided on our web page describing how to build a low-cost LoRa gateways .
https://cpham.perso.univ-pau.fr/LORA/HUBIQUITOUS/solution-lab/arduino-lora-tutorial/lora_communication/gateway/ 1/7
04/08/2023 18:56 LoRa gateway | Arduino LoRa IoT online tutorial
If you have the default configuration for both the device and gateway (i.e. SF12BW125
datarate and CH_10_868=865.2MHz ) then both components can communicate: the
gateway is receiving data sent by the demo device, for instance \!TC/20.50 .
https://cpham.perso.univ-pau.fr/LORA/HUBIQUITOUS/solution-lab/arduino-lora-tutorial/lora_communication/gateway/ 2/7
04/08/2023 18:56 LoRa gateway | Arduino LoRa IoT online tutorial
Last step is to reboot the gateway for changes to take effects. Wait about 1 minute, then
power your LoRa demo end-device. With the provided configuration, the gateway will
upload the demo device’s temperature to our LoRa test channel on the ThingSpeak
cloud.
When looking at the low-level gateway log ( Gateway confifuration / Get post-
processing.log file ) you should be able to see an output similar to:
https://cpham.perso.univ-pau.fr/LORA/HUBIQUITOUS/solution-lab/arduino-lora-tutorial/lora_communication/gateway/ 3/7
04/08/2023 18:56 LoRa gateway | Arduino LoRa IoT online tutorial
https://cpham.perso.univ-pau.fr/LORA/HUBIQUITOUS/solution-lab/arduino-lora-tutorial/lora_communication/gateway/ 4/7
04/08/2023 18:56 LoRa gateway | Arduino LoRa IoT online tutorial
Leave project_name as waziup . If you are deploying for another project, you can enter
here your project name.
Set organization_name to WAZIUP_TRAINING for instance
It is important to understand that the name of end-devices is set by the gateway when
receiving data from the end-device and when upload data to clouds. The gateway
retrieves the numeric address of an end-device (between 2 and 255) and will build a
more comprehensive name, depending on the naming configuration for each cloud
defined on the gateway.
With the above gateway configuration for the WAZIUP cloud, the name of your device is
WAZIUP_TRAINING-DEMO_Sensor9_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx as the
device’s address is 9. You can see that the device name is defined as
organization_name+service_tree+"_Sensor"+device_address . Also, as you are
https://cpham.perso.univ-pau.fr/LORA/HUBIQUITOUS/solution-lab/arduino-lora-tutorial/lora_communication/gateway/ 5/7
04/08/2023 18:56 LoRa gateway | Arduino LoRa IoT online tutorial
Therefore, in our setting, we can search on the WAZIUP dashboard the device
WAZIUP_TRAINING-DEMO_Sensor9_3304d293a4f5524e3d058929cf6583fb . In your
case, you will have a different MD5 hash value but the base name will be the same.
https://cpham.perso.univ-pau.fr/LORA/HUBIQUITOUS/solution-lab/arduino-lora-tutorial/lora_communication/gateway/ 6/7
04/08/2023 18:56 LoRa gateway | Arduino LoRa IoT online tutorial
Reboot the gateway for changes to take effects. Wait about 1 minute, then power your
LoRa demo end-device.
Then go again to https://dashboard.waziup.io and log in with your user name and
password. You should see your device, this time without the gateway’s id MD5 hash
because you have been identified as a registered user.
If you want to recover data points from the WAZIUP platform in order to develop new
IoT applications, you can have a look at the WAZIUP API tutorial pages . If your
application is written in Javascript, you can use the WAZIUP library instead of using
directly the API.
You can also have a look at the following video that shows how to set up an operational
gateway in less than 5mins.
Enjoy!
https://cpham.perso.univ-pau.fr/LORA/HUBIQUITOUS/solution-lab/arduino-lora-tutorial/lora_communication/gateway/ 7/7