Skip to content

LorenzoMainetti/IOT-2022-Latino-Mainetti

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

IOT Project and Challenges - a.y. 2021-2022

The repository is divided in the following two folders:

  • Project: containing the files related to the Smart Bracelets project

  • Challenges: containing the files related to the 4 challenges carried out during the semester

Smart Bracelets Project

Project Scope:

You are requested to design, implement and test a software prototype for a smart bracelet. The bracelet is worn by a child and her/his parent to keep track of the child’s position and trigger alerts when a child goes too far.

The operation of the smart bracelet couple is as follows:

  1. Pairing:
  • broadcast a 20-char random key
  • upon reception of key checks whether the received random key is equal to the stored one
  • special message is transmitted to stop the pairing
  1. Operation:
  • parent’s bracelet listens for messages and accepts only the ones coming from the child’s
  • child’s bracelet periodically transmits INFO messages
  1. Alert:
  • Upon reception of an INFO message, the parent’s bracelet reads it. If the kinematic status is FALLING, the bracelet displays a FALL alarm
  • if the parent’s bracelet does not receive any message, after one minute from the last received message, a MISSING alarm is sent reporting the last position received

Implementation Choices:

  • TinyOS application -> code
  • TOSSIM app simulation -> log
  • Node-RED alarm simulation -> flow

Here is the project report.

Challenges

Challenge 1 - Sniffing

The scope of the challenge was to analyze the traffic with WireShark and answer a set of questions on COAP and MQTT protocols.

Here is the report.

Challenge 2 - Node-RED

The scope of the challenge was to generate 100 messages from a provided CSV file and then sending them to the ThingSpeak channel using MQTT through a Node-RED simulation.

Here is the report.

Challenge 3 - TinyOS & Node-RED

The scope of the challenge was to simulate a TinyOs device able to perform the division by three of a specific number (person code). Based on the remainder of this division, specific leds were turned on or off. In particular, remainder equal to zero toggles Led0 and so on.

Here is the code for the TinyOS application and the report.

Challenge 4 - TinyOS & TOSSIM

The scope of the challenge was to simulate a TinyOS system made of two nodes communicating with each other. Node1 performs requests to Node2, where requests are identified by a counter. For each request, Node2 takes a value from a fake sensor and sends it back to Node1 inserting the counter in the response. This way the response can be associated with a request. Nodes require acks to make sure the receiver received the message. The simulation was done using TOSSIM.

Here is the code for the TinyOS application and the report.

Group Members

About

IOT Project and Challenges - Polimi - a.y. 2021-2022

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published