0% found this document useful (0 votes)
27 views

Ch10-Demos and Assignments

The document discusses the design and development of IoT applications. It covers topics such as basic and advanced demos for IoT networks including LED blinking, routing protocols, IPv6/6LoWPAN, CoAP, and MQTT. It also proposes assignments for students to implement hello world, choose best next node, evaluate MAC protocols, design a lighting network, and implement a CoAP network.

Uploaded by

Cường Vũ
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Ch10-Demos and Assignments

The document discusses the design and development of IoT applications. It covers topics such as basic and advanced demos for IoT networks including LED blinking, routing protocols, IPv6/6LoWPAN, CoAP, and MQTT. It also proposes assignments for students to implement hello world, choose best next node, evaluate MAC protocols, design a lighting network, and implement a CoAP network.

Uploaded by

Cường Vũ
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Design and Development of IoT

Applications
Dr. –Ing. Vo Que Son
Email: [email protected]

Telecomm. Dept. IoT


1
Faculty of EEE HCMUT
Content
❑Chapter 10: Labs/Demos and Assignments
❖ Basic demos/labs:
• Hello world, LED Blinking
• RDC and MAC protocols
• Routing in WSNs: CTP, RPL
• IPv6/6LoWPAN UDP Echo server
• IPv6/6LoWPAN Web Server
• Communication with 6LoWPAN network
• CoAP and MQTT
❖ Advanced demos: (with HW)
• I/O interfaces
• Echo-Server for Multiple Platforms (Cooja, CC2530, CC2538)
• Multicast IPv6
• LWM2M
• Security of IEEE 802.15.4
• Mobility of nodes
❖ Design a controllable 6LoWPAN network with authentication, CRC, Database,
web-server interface and can be connected to a client via IPv4 network

Telecomm. Dept. IoT


2
Faculty of EEE HCMUT
IPv6/6LoWPAN UDP Echo server
LoWPAN - Extended IP Network

IPv6/LoWPAN
Border Router

IP Device

Task:
- Build Border router
- Build UDP Echo server
IPv6/LoWPAN - Bring up the 6LoWPAN network
Sensor Router
- Ping nodes
- Using netcat command to
interact with a node
Telecomm. Dept. IoT
3
Faculty of EEE HCMUT
Webserver in 6LoWPAN network
LoWPAN - Extended IP Network

IPv6/LoWPAN
Border Router

IP Device

IPv6/LoWPAN Sensor Router Task:


- Build Border router
- Build Webserver for a node
- Bring up the 6LoWPAN network
- Ping nodes to verify the network
- Using web browser to display
sensor readings

Telecomm. Dept. IoT


4
Faculty of EEE HCMUT
Communication with 6LoWPAN network
User Program to control a node

LoWPAN - Extended IP Network

IPv6/LoWPAN
Border Router

IP Device

Task:
- Build Border router
IPv6/LoWPAN - Build UDP Echo server
Sensor Router
- Bring up the 6LoWPAN network
- Ping nodes to verify the network
- Write a program to control a node’s LED
Telecomm. Dept. IoT
5
Faculty of EEE HCMUT
6LoWPAN Border Router (6LBR)

LoWPAN -Extended IP Network

6LBR
Border Router

IP Device

Task:
- Setup 6LBR
IP/LoWPAN Sensor Router
- Bring up the 6LoWPAN network
- Access Webserver of 6LBR
- Observe network parameters
https://github.com/cetic/6lbr/wiki/COOJA-Interface
Telecomm. Dept. IoT
6
Faculty of EEE HCMUT
Mobility Simulation

Telecomm. Dept. IoT


7
Faculty of EEE HCMUT
Assignments
❑ Available hardware for assignment experiments:
❖ CC2530, CC2538, CC2650, Sky-mote
❖ LoRa modules
❖ Raspberry and MCU Dev. kits
❖ UART modules
❖ Sensors and Actuators
❖ PCs if necessary
❑ Location and Time:
❖ IoT & Machine Learning Lab (B3-114):
❖ From 8h30 – 11h30; 13h30-16h30 on week days
❑ Writing a short report for each assignment, then combine all to
1 final assignment report and submit at the end of the course.
❑ Assignments’ score will be used to give bonus to the final score

Telecomm. Dept. IoT


8
Faculty of EEE HCMUT
Assignment 1: Hello world
❑ Install Contiki-OS using
Virtual Machine or
manually in Ubuntu
❑ Compile the Hello-
world example
❑ Modify the code so
that the node will print
out “Hello-world” with
period of 3 seconds

https://anrg.usc.edu/contiki/index.php/Installation

Telecomm. Dept. IoT


9
Faculty of EEE HCMUT
Assignment 2: Choose the BNN
❑ Using Broadcast example and RSSI reading
❑ Building an algorithm:
❖ Store only 5 nodes with strongest RSSI
❖ Choose the BNN in 5 strongest nodes
❑ Simulate a 15-node network and verify the result and change
node’s positions to see how the algorithm works

https://anrg.usc.edu/contiki/index.php/RSS_measurement
https://anrg.usc.edu/contiki/index.php/Broadcast_Example

Telecomm. Dept. IoT


10
Faculty of EEE HCMUT
Assignment 3: MAC Protocols
❑ Evaluation of X-MAC, B-MAC, Contiki-MAC, TSCH protocols
❖ Measure RDC, PRR
❖ Simulate scenarios in case of dense network, high traffic
❖ Simulate scenarios in case of loose network, low traffic

https://anrg.usc.edu/contiki/index.php/MAC_protocols_in_ContikiOS
Telecomm. Dept. IoT
11
Faculty of EEE HCMUT
Assignment 4: Lighting Networks
❑ Design and Implement a Lighting System using 6LoWPAN
❖ Consists of 10 nodes with 1 Border router in Cooja simulator
❖ Can ping each node to measure the RTT and Packet loss
❖ Can use netcat command to control a server node
❖ Advances:
• Using netcat to control ON/OFF a LED of a specific node
• Performing an experiment with 2 CC2538 nodes

https://senstools.gforge.inria.fr/doku.php?id=contiki:examples

Telecomm. Dept. IoT


12
Faculty of EEE HCMUT
Assignment 5: CoAP
❑ Design and Implement a
6LoWPAN Networks
❖ Consists of 5 nodes with 1
Border router
❖ All server nodes use CoAP
❖ Can use CU plugin (for Firefox
browser) to control a LED
ON/OFF of a CoAP node in
Cooja Simulator
❖ Advances:
• Implement the application so
that can control all LED of a
CoAP node.
• Performing an experiment of
2 Sky nodes. https://anrg.usc.edu/contiki/index.php/REST_example_runn
ing_on_Cooja_and_Sky_motes
Telecomm. Dept. IoT
13
Faculty of EEE HCMUT
Assignment 6*: MQTT-SN
❑ Design and Implement a 6LoWPAN Networks
❖ Consists of 2 nodes with 1 Border router
❖ All nodes use MQTT-SN
❖ Simulate the network in Cooja
❖ Advances: Conducing an experiment using 2 CC2538DK/Sky.

https://github.com/aignacio/homestark_mqtt_6lowpan_port

Telecomm. Dept. IoT


14
Faculty of EEE HCMUT
Assignment 7*: 6lbr on Embedded PC
❑ Design and Implement 6lbr on Raspberry/VM
❖ Install 6lbr on a Raspberry (BR-Raspberry)/VM
❖ Simulate the 6LoWPAN network on Cooja with the installed 6lbr
❖ Running the web interface and monitor the nodes
❖ Advances:
• Deploy a 6LoWPAN networks (2 CC2538DK kits) connecting to the BR-Raspberry/VM

https://github.com/cetic/6lbr/wiki

Telecomm. Dept. IoT


15
Faculty of EEE HCMUT
Assignment 8**: Link Layer Security
❑ Design and Implement a
6LoWPAN with levels of LLSEC
❖ Simulate a network with 10
nodes: 1 BR, 8 nodes with LLSEC
(secured nodes), and 1 node
without LLSEC (unsecured
node)
❖ Verify the communication of
unsecured node

Security Considerations for IEEE 802.15.4 Networks: Naveen Sastry, David Wagner

Telecomm. Dept. IoT


16
Faculty of EEE HCMUT
Assignment 9**: LoRa Networking
❑ Design and Implement a LoRa network which can:
❖ Measure the water quality: pH, EC, flow, turbidity, salty
❖ Or measure the Power consumption of a house
❖ Can report all readings periodically
❖ Can control any node from a centralized software

Telecomm. Dept. IoT


17
Faculty of EEE HCMUT
Assignment 10**: HMI
❑ Design and Implement a Human-Machine-Interface to control a
6LoWPAN network:
❖ Using Alexa or Google Voice
❖ Control an LED of a node using voice recognition
❖ Using Cooja or HW platforms

Telecomm. Dept. IoT


18
Faculty of EEE HCMUT

You might also like