How to use the iot lab platform and how to choose the right nodes

117 views Asked by At

I want to create an Iot-project where I am gonna have to create a watering system. I am going to use Riot-OS on an ESP32 or ESP8266 that will interact with a water pump, n-mosfet, power supply and a humidity sensor. At the same time I will have a Linux webserver running accepting the data from this controller.

Until my hardware arrives I want to test the code using iot-lab. However, I do not know what nodes I have to use and why. How do I choose the correct ones? Do I also need an .elf file for the sensor, like in this tutorial https://www.iot-lab.info/earn/ is being used for the lamp ?

Also, regarding if I use the ssh keygen command and then the copy paste and the connect to the experiment is the only thing that I need to do in order to run my code properly??

Is there a good tutorial that explains those things because I did not find any ?

1

There are 1 answers

0
Citrullin On

If you are going to use IoT lab, you only can use the Pycom FiPy.

Until my hardware arrives I want to test the code using iot-lab. However, I do not know what nodes I have to use and why. How do I choose the correct ones? Do I also need an .elf file for the sensor, like in this tutorial https://www.iot-lab.info/earn/ is being used for the lamp ?

Just follow the getting started guide. That should do the job. make flash is generating the elf and flashs it. I recommend the target native for development. BOARD=native make flash term in order to also see the serial output. It has a proper IP stack (when configured with tapsetup) and works well enough for development. At least for the networking part. When you need to interact with the hardware, you have to use the actual hardware, of course. IoTLab is only useful, if you have big routing simulations etc. IoTLab also doesn't have the water pump etc. you need.

Is there a good tutorial that explains those things because I did not find any ?

Checkout the RIOT OS examples. gnrc networking and saul are interesting for you, I guess. You should also read the SAUL documentation.