esib_iot_challenge
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
esib_iot_challenge [2017/05/17 10:44] – [1. What is a LoRaWAN Platform?] samer | esib_iot_challenge [2017/05/17 17:43] – [1. Platform] samer | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ESIB IoT Challenge ====== | ====== ESIB IoT Challenge ====== | ||
- | Welcome to the ESIB IoT Challenge. In this challenge, you will designing and prototyping the first IoT services based on a LoRaWAN network. | + | Welcome to the ESIB IoT Challenge. In this challenge, you will be designing and prototyping the first IoT services based on a LoRaWAN network. |
- | ===== -. What is a LoRaWAN | + | ===== -. Platform ===== |
- | In this challenge, you will benefit from the first experimental platform implementing an end-to-end LoRaWAN solution in Lebanon. The platform consists of the following elements: | + | During |
* Devices that communicate to one or more gateways via a wireless interface using single hop LoRa and implementing the LoRaWAN protocol. These devices are physically connected to sensors that generate data. | * Devices that communicate to one or more gateways via a wireless interface using single hop LoRa and implementing the LoRaWAN protocol. These devices are physically connected to sensors that generate data. | ||
Line 14: | Line 14: | ||
[{{ : | [{{ : | ||
- | <WRAP center help 100%> | + | <WRAP center |
- | * Illustrate the protocol | + | * Where is the LoRa modulation implemented on the platform? |
- | * | + | * What are the advantages of the LoRa modulation? |
+ | * How LoRa is compatible with LPWAN requirements and constraints? | ||
+ | * What is LoRaWAN? What is the difference between LoRaWAN and LoRa? | ||
+ | * Illustrate the protocol | ||
+ | * What elements are IP enabled in the platform? What do you think about IP support in IoT? | ||
</ | </ | ||
+ | ===== -. 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:// | ||
+ | [{{ : | ||
+ | Start by choosing the application named '' | ||
+ | * A unique node name: '' | ||
+ | * The node description | ||
+ | * A unique device EUI on 64 bits: Random identifiers can be generated on [[https:// | ||
+ | * The application EUI on 64 bits: '' | ||
+ | * A unique application key on 128 bits also obtained by random generation. | ||
+ | |||
+ | Make sure that the '' | ||
+ | |||
+ | <WRAP left help 100%> | ||
+ | * What does the application EUI mean? How is it used in LoRaWAN? | ||
+ | * What does the application key mean? How is it used in LoRaWAN security? | ||
+ | * Compare the two device activation methods used in LoRaWAN by giving the advantages and inconvenients. | ||
+ | * What is the difference between the two receive windows in LoRaWAN? What are they used for? | ||
+ | </ | ||
===== -. Devices ===== | ===== -. Devices ===== | ||
- | In orde to program | + | Devices in the LoRaWAN |
- | * Arduino IDE | + | Start by verifying the installation on your PC of the latest |
- | * LMIC Library | + | |
- | Devices in the LoRaWAN platform are implemented on Arduino | + | <WRAP left round help 100%> |
+ | * Give the characteristics of the Arduino | ||
+ | * Give the main characteristics | ||
+ | * What type of Antenna are you using? Explain | ||
+ | </ | ||
+ | Download the example sketch and open it with Arduino IDE. Now you should configure your device with the same identifiers as in the backend. | ||
+ | |||
+ | <WRAP center round tip 100%> | ||
+ | Note that the device and application identifiers should be in little endian format. The application key is in big endian format. For example, '' | ||
+ | </ | ||
+ | |||
+ | |||
+ | <code c++> | ||
+ | static const u1_t PROGMEM APPEUI[8]= { }; | ||
+ | void os_getArtEui (u1_t* buf) { memcpy_P(buf, | ||
+ | |||
+ | // This should also be in little endian format, see above. | ||
+ | static const u1_t PROGMEM DEVEUI[8]= { }; | ||
+ | void os_getDevEui (u1_t* buf) { memcpy_P(buf, | ||
+ | |||
+ | static const u1_t PROGMEM APPKEY[16] = { }; | ||
+ | void os_getDevKey (u1_t* buf) { memcpy_P(buf, | ||
+ | </ | ||
+ | |||
+ | You can download the following sketch {{ : | ||
+ | |||
+ | Verify that you have the latest Arduino IDE from https:// | ||
+ | Install the board files as noted in http:// | ||
+ | Add the following library sodaq_rn2483_2.zip to your Arduino IDE as explained in https:// | ||
+ | |||
+ | In order to program the LoRaWAN devices, you should verify the installation one your PC of the following software: | ||
+ | |||
+ | * Arduino IDE | ||
+ | * LMIC Library | ||
+ | * | ||
The pin mapping corresponds to the Dragino electronic schematic: | The pin mapping corresponds to the Dragino electronic schematic: | ||
<code c++> | <code c++> | ||
Line 68: | Line 123: | ||
You can also find another example of sketch to download: {{ : | You can also find another example of sketch to download: {{ : | ||
- | ===== -. Backend ===== | + | <WRAP center help 100%> |
- | The Loraserver has a web interface for configuring the applications and devices on the platform. Full details for installing the software are provided on [[https:// | + | * OTAA |
- | + | * ID | |
- | [{{ : | + | * Security |
- | + | </WRAP> | |
- | Start by creating and application as in Figure 5. Then create a node in this application and provide the following information: | + | |
- | * A unique node name | + | |
- | * The node description | + | |
- | * A unique device EUI on 64 bits: Random identifiers can be generated on [[https:// | + | |
- | * The application EUI on 64 bits: this can be a common identifier for all nodes using the same application. | + | |
- | * A unique application key on 128 bits | + | |
- | + | ||
- | In order to enable OTAA join method, you have to make sure that the '' | + | |
===== -. Applications ===== | ===== -. Applications ===== | ||
- | ==== -. mqtt-spy ==== | ||
- | |||
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. For this, you should download the software tool from [[https:// | You can use mqtt-spy to debug the messages received from the LoRaWAN devices. For this, you should download the software tool from [[https:// | ||
- | ==== -. Emoncms ==== |
esib_iot_challenge.txt · Last modified: 2021/08/28 09:53 by samer