IoT Lab_4

tags: fh IoT

Group members: Sebastian Doiber, Johannes Schwinger

This lab exercise’s topic is LoRaWAN. We will use the LoRa Boards provided by the IoT-LAB: ST B-L072Z-LRWAN1 boards with ST MEMS extension X-NUCLEO-IKS01A2.

We will set up a LoRaWAN application which sends data o a network server; finally, we will connect our app to an application server (for a graphical presentation of our data. We will use the same setup as we did for lab exercises 1 & 2: Ubuntu 18.04. (VM) with RIOT-OS and the IoT-Lab.

Documents your work with screenshots and thorough expalanation where applicable.

First steps with TTN

Provide a screenshot of your data output at TTN.

After registering on TTN we created a new device according to the steps in the hackmd file we got from you.

Impementation

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More β†’

We proceeded to configure the makefile of the ./lorawan experimant according to our generated data.
We later found out that one of the ID's had the wrong format which made it impossible to compile.
After fixing that we tinkered around a little bit but got it running in the end and got our output on TTN.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More β†’

Data output at TTN

LoRa Example with Sensor Data, TTN, and Cayenne

Download the zip file from Moodle:

lab4_02_lorasensor.zip

Move the unzipped directory into your /myRIOT/examples/ directory ans follow the steps back in the hackmd.

Document your steps here with screenshots (IoT-Lab, TTN, myDevices) and thorough explanation.

  • What is your data output at TTN?

  • How is your data presented on the myDevices dashboard?

  • Adjust the settings of the widgets: e.g. display temperature as line chart. Use various widgets.

  • You can ownload your data als Excel file

  • Upload zip file containing main.c, Makefile.

Implementation

Problems when sending the data to the TTN. The applications works fine with no errors but the TTN-server only displays the initialisation message.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More β†’

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More β†’

Part 3

Running the new experiment

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More β†’

confirming receaved data

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More β†’

data displayed in cayenne

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More β†’

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More β†’

flow charts

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More β†’

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More β†’

Going Further – Get 5 Bonus Points

Add the lps22hb atmospheric pressure sensor values to the Cayenne LPP payload.

  • Provide screenshots: IoT-LAB, TTN, myDevices.

  • Upload zip file containing main.c, Makefile.