exploring_lorawan
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
exploring_lorawan [2019/10/23 14:22] – [3. Devices] samer | exploring_lorawan [2020/11/13 09:28] – [4. Applications] samer | ||
---|---|---|---|
Line 22: | Line 22: | ||
</ | </ | ||
===== -. Backend ===== | ===== -. Backend ===== | ||
- | In a LoRaWAN network, the devices communicate with a Network Server through the gateway. The backend installed in the platform is based on an open-source LoRaWAN network-server https:// | + | In a LoRaWAN network, the devices communicate with a Network Server through the gateway. The backend installed in the platform is based on an open-source LoRaWAN network-server https:// |
[{{ : | [{{ : | ||
- | Start by choosing the application named '' | + | Start by choosing the application named '' |
* A unique device name: '' | * A unique device name: '' | ||
* The device description | * The device description | ||
Line 42: | Line 42: | ||
Devices in the LoRaWAN platform are implemented on Arduino boards with Dragino shields. The combined module as well as the basic configuration steps are presented in [[exploring_lora|Exploring LoRa lab]]. | Devices in the LoRaWAN platform are implemented on Arduino boards with Dragino shields. The combined module as well as the basic configuration steps are presented in [[exploring_lora|Exploring LoRa lab]]. | ||
- | Start by verifying the installation on your PC of the latest Arduino IDE. Unzip the Arduino {{ :arduino-lmic-mcci.zip |LMIC library}} and copy it to your sketchbook library folder as detailed in [[https:// | + | Start by verifying the installation on your PC of the latest Arduino IDE. Unzip the Arduino {{ :mcci_lorawan_lmic_library.zip |LMIC library}} and copy it to your sketchbook library folder as detailed in [[https:// |
Now you should configure your device with the same identifiers '' | Now you should configure your device with the same identifiers '' | ||
Line 85: | Line 85: | ||
Now you are ready to compile the sketch and upload it to the LoRaWAN device. Connect the device to a USB port on your PC, choose the board type as presented in [[exploring_lora|Exploring LoRa lab]] and select the corresponding port. Compile and upload! | Now you are ready to compile the sketch and upload it to the LoRaWAN device. Connect the device to a USB port on your PC, choose the board type as presented in [[exploring_lora|Exploring LoRa lab]] and select the corresponding port. Compile and upload! | ||
+ | |||
+ | <WRAP center round todo 60%> | ||
+ | Debugging causes memory problems on Arduino One and duemilanove. Debug level should stay 0. | ||
+ | </ | ||
Open the serial monitor in the Arduino IDE at 115200 baud and analyse the debug messages. | Open the serial monitor in the Arduino IDE at 115200 baud and analyse the debug messages. | ||
<WRAP left round help 100%> | <WRAP left round help 100%> | ||
- | * What is the radio transmit parameters of the captured | + | * Explain |
- | * What is the radio receive parameters of the captured debug messages for the two receive windows? | + | |
</ | </ | ||
Line 100: | Line 103: | ||
* What are the different counters visible at the backend? Explain how they get incremented and how they are used. | * What are the different counters visible at the backend? Explain how they get incremented and how they are used. | ||
</ | </ | ||
+ | |||
+ | The backend also enables to capture LoRaWAN frames. Click on '' | ||
+ | |||
+ | <WRAP left round help 100%> | ||
+ | * Explain the different fields in the packet header. | ||
+ | * What are the parameters of the LoRa modulation? Explain. | ||
+ | * What is the value of the payload? | ||
+ | </ | ||
+ | |||
===== -. Applications ===== | ===== -. Applications ===== | ||
- | mqtt-spy is an open source utility intended to help you with monitoring activity on MQTT topics. It has been designed to deal with high volumes of messages, as well as occasional publications. mqtt-spy is a JavaFX application, | ||
- | You can use mqtt-spy to debug the messages received from the LoRaWAN devices. After starting the application, | + | <WRAP center round todo 60%> |
+ | If you have an android smartphone, download mqtt dashboard and try it! | ||
+ | Prefer mqtt-fx or mqtt-explorer and put user credentials | ||
+ | </ | ||
+ | |||
+ | mqtt-spy is an open source utility intended to help you with monitoring activity on MQTT topics. It has been designed to deal with high volumes of messages, as well as occasional publications. mqtt-spy is a JavaFX application, | ||
+ | |||
+ | You can use mqtt-spy to debug the messages received from the LoRaWAN devices. After starting the application, | ||
<WRAP left round help 100%> | <WRAP left round help 100%> | ||
Line 113: | Line 131: | ||
<WRAP left round tip 100%> | <WRAP left round tip 100%> | ||
- | The payload received by the MQTT client is decrypted but encoded in Base64. You should decode it to get the original message (using for instance [[https:// | + | The payload |
</ | </ | ||
- | If you need to send data to your device, you should publish an encoded message in the corresponding topic '' | + | If you need to send data to your device, you should publish an encoded message in the corresponding topic '' |
< | < | ||
Line 156: | Line 174: | ||
==== -. The Sensor Challenge ==== | ==== -. The Sensor Challenge ==== | ||
I can use different sensors to send data from the device: PIR, moisture, temperature, | I can use different sensors to send data from the device: PIR, moisture, temperature, | ||
+ | <WRAP center round important 100%> | ||
+ | When connecting sensors, check the pin mapping for unused pins https:// | ||
+ | </ | ||
exploring_lorawan.txt · Last modified: 2021/11/02 06:31 by samer