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 [2018/11/27 11:06] – [5.1. The End-to-End Challenge] samer | exploring_lorawan [2020/03/31 17:45] – [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 | ||
- | * A unique device EUI on 64 bits: Random identifiers can be generated | + | * A unique device EUI on 64 bits: click on the circular arrow to generate a random |
* A unique application key on 128 bits also obtained by random generation. | * A unique application key on 128 bits also obtained by random generation. | ||
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 {{ : | + | Start by verifying the installation on your PC of the latest Arduino IDE. Unzip the Arduino {{ : |
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. | ||
Line 101: | Line 105: | ||
</ | </ | ||
===== -. Applications ===== | ===== -. Applications ===== | ||
+ | |||
+ | <WRAP center round todo 60%> | ||
+ | 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, | 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, | + | 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 116: | Line 125: | ||
</ | </ | ||
- | 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 129: | Line 138: | ||
The payload sent by the MQTT client must be encoded in Base64. | The payload sent by the MQTT client must be encoded in Base64. | ||
</ | </ | ||
+ | |||
+ | You can also download a {{ : | ||
===== -. LoRaWAN Challenges ===== | ===== -. LoRaWAN Challenges ===== | ||
Implement and provide technical documentation for each of the following challenges. | Implement and provide technical documentation for each of the following challenges. | ||
Line 135: | Line 146: | ||
I can send data from the device to the application. | I can send data from the device to the application. | ||
- | <WRAP center round tip 60%> | + | <WRAP center round tip 100%> |
- | Note that the `String` function can be used to cast the message you want to send in a string format. | + | Note that the '' |
</ | </ | ||
Line 154: | Line 165: | ||
==== -. 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