SlideShare a Scribd company logo
Lab 1: Big Red Internet Button
+

= IoT!
1. Press the button
2. Post something to the Internet
The Big Red Button
• Two connectors
– Ground
– Signal

• 12 v built-in LED
The Thingsquare kit
• CC2538 System-on-a-Chip board
– The heart of it all
– Runs Contiki

• Display board
– LCD screen
– JTAG debugger

• Ethernet router
The Thingsquare cloud
The Thingsquare cloud
• Connect your devices
• Program your devices from your browser
• Inspect the output
What we’ll do
• Connect the button
• Upload a program that does:
– Reads the button
– Does an HTTP POST to http://requestb.in/

• Inspect the output
Set up your device
• Register the device with the Thingsquare
cloud
• Give it a name
• Blink it
Set up the program
• Create a new app – call it something
unique
– Like adam-button.c

• Copy the contents of big-red-button.c
– Don’t worry about the contents for now – we’ll
go through all that
Set up a requestb.in
• Go to http://requestb.in/ and create a
RequestBin
RequestBin URL
• Copy the RequestBin URL into the
program:
#define URL "http://requestb.in/abcdefghij"

•
•
•
•

Run the program
Press the button
Reload the requestb.in page
See the result
What we just did
• Did an HTTP POST directly from the chip
• Posted data via a webhook to a cloud
service
Connecting a device to the IoT
The device
The Internet
More Internet

The Internet
IPv4
IPv6

IPv4
Building the Internet of Things with Thingsquare and Contiki - day 1, part 2
IPv6/IPv4 router
The App
Building the Internet of Things with Thingsquare and Contiki - day 1, part 2
Cloud
Cloud

Websocket
Cloud

API
IPv6 to IPv4 translation: NAT64
• Translate IPv4 addresses to IPv6
addresses
– 192.168.1.1 becomes ::fffff:192.168.1.1
– Remember the port numbers
DNS64
• Translate DNS names to IPv6-mapped
IPv4 address
Building the Internet of Things with Thingsquare and Contiki - day 1, part 2
api.example.com?
198.51.100.28
198.51.100.28

64:ff9b::c633:641c
ws://api.example.com/
The IPv6 mesh
IPv6 primer
• Addresses are really long
– 128 bits

• Example
– fe80::1234:abcd:5678:ef01

• A device has several IPv6 addresses
The IPv6 mesh
• Contiki automatically forms a wireless IPv6
network
– Routing protocol called RPL

• The Ethernet router is the root of the
network
A RPL Directed Acyclic
Graph
The RPL DAG
• Every DAG has a DAG ID
– The IPv6 address of the root

• Every DAG has a version number
Let’s look at the RPL mesh!
• Go to Status -> Mesh on the kit display
The Mesh display
•
•
•
•
•
•
•
•
•

The DAG ID
The parent IPv6 address
The DAG version
RPL rank
Number of neighbors
Number of routes
Estimated number of hops
ETX: RPL link quality indicator
RSSI: Received Signal Strength Indicator
Hands-on experimentation
•
•
•
•

Cusp your hand over the antenna
Watch the ETX go up
Might choose another parent
Hop count will then increase
This is what happened
Our hand stopped the radio
signals
A better route was found
Eventually the network recovers
More like this

http://thingsquare.com

More Related Content

PPTX
Advanced Internet of Things firmware engineering with Thingsquare and Contiki...
PPTX
Building the Internet of Things with Thingsquare and Contiki - day 1, part 3
PPTX
Building day 2 upload Building the Internet of Things with Thingsquare and ...
PPTX
Advanced Internet of Things firmware engineering with Thingsquare and Contiki...
PPTX
Building the Internet of Things with Thingsquare and Contiki - day 1, part 1
PPTX
Building the Internet of Things with Thingsquare and Contiki - day 2 part 2
PPT
WSN protocol 802.15.4 together with cc2420 seminars
PDF
Network Address Translation (NAT)
Advanced Internet of Things firmware engineering with Thingsquare and Contiki...
Building the Internet of Things with Thingsquare and Contiki - day 1, part 3
Building day 2 upload Building the Internet of Things with Thingsquare and ...
Advanced Internet of Things firmware engineering with Thingsquare and Contiki...
Building the Internet of Things with Thingsquare and Contiki - day 1, part 1
Building the Internet of Things with Thingsquare and Contiki - day 2 part 2
WSN protocol 802.15.4 together with cc2420 seminars
Network Address Translation (NAT)

What's hot (20)

PPTX
Network address translation
PPT
CCNA FUNDAMENTAL
PPTX
Dynamic NAT
PPT
Nad710 Network Address Translation
PPT
Ipx protocol slide share
PPT
PDF
Using IO Visor to Secure Microservices Running on CloudFoundry [OpenStack Sum...
PDF
Accelerating Envoy and Istio with Cilium and the Linux Kernel
PDF
Open stackdaykorea2016 wedge
PPTX
Wireshark
PDF
An Overview of Linux Networking Options
PPTX
Network Packet Analysis with Wireshark
PPTX
Static NAT
PPTX
Network address translation
PDF
Network address translation pdf
PPTX
PPT
PDF
Linux Native, HTTP Aware Network Security
PDF
OpenStack Neutron Tutorial
PPTX
2014 OpenStack Summit - Neutron OVS to LinuxBridge Migration
Network address translation
CCNA FUNDAMENTAL
Dynamic NAT
Nad710 Network Address Translation
Ipx protocol slide share
Using IO Visor to Secure Microservices Running on CloudFoundry [OpenStack Sum...
Accelerating Envoy and Istio with Cilium and the Linux Kernel
Open stackdaykorea2016 wedge
Wireshark
An Overview of Linux Networking Options
Network Packet Analysis with Wireshark
Static NAT
Network address translation
Network address translation pdf
Linux Native, HTTP Aware Network Security
OpenStack Neutron Tutorial
2014 OpenStack Summit - Neutron OVS to LinuxBridge Migration
Ad

Similar to Building the Internet of Things with Thingsquare and Contiki - day 1, part 2 (20)

PDF
Master-Master Replication and Scaling of an Application Between Each of the I...
PDF
Using R for the internet of things
PPTX
Prototyping the internet of things with Node-RED
PPTX
Microsoft Offical Course 20410C_05
PDF
Using Java Script and COMPOSE to build cool IoT applications, SenZations 2015
PPTX
Infrastructure API Lightning Talk by Jeremy Pollard of box.com
PDF
TCP_IP for Programmers ------ slides.pdf
PDF
IoT Node-Red Presentation
PPTX
Implementing IP V4
PPTX
Future Internet protocols
PPTX
Computer Network Part 1
PPTX
Innovation is back in the transport and network layers
PPTX
ConnectTheDots - My Galileo based weather station and first entry into IoT
PPTX
CableTap - Wirelessly Tapping Your Home Network
PPT
chapter-4-networking hjgjjgj did hfhhfhj
PPTX
BLE Localiser (Full) for iOS Dev Scout
PDF
Internet census 2012
PPTX
Basic Foundation For Cybersecurity
PPTX
Tracking the International Space Station with Commodore Computers
PDF
SIGFOX Makers Tour - Madrid
Master-Master Replication and Scaling of an Application Between Each of the I...
Using R for the internet of things
Prototyping the internet of things with Node-RED
Microsoft Offical Course 20410C_05
Using Java Script and COMPOSE to build cool IoT applications, SenZations 2015
Infrastructure API Lightning Talk by Jeremy Pollard of box.com
TCP_IP for Programmers ------ slides.pdf
IoT Node-Red Presentation
Implementing IP V4
Future Internet protocols
Computer Network Part 1
Innovation is back in the transport and network layers
ConnectTheDots - My Galileo based weather station and first entry into IoT
CableTap - Wirelessly Tapping Your Home Network
chapter-4-networking hjgjjgj did hfhhfhj
BLE Localiser (Full) for iOS Dev Scout
Internet census 2012
Basic Foundation For Cybersecurity
Tracking the International Space Station with Commodore Computers
SIGFOX Makers Tour - Madrid
Ad

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Approach and Philosophy of On baking technology
PDF
Modernizing your data center with Dell and AMD
PPTX
Cloud computing and distributed systems.
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Big Data Technologies - Introduction.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Spectral efficient network and resource selection model in 5G networks
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Approach and Philosophy of On baking technology
Modernizing your data center with Dell and AMD
Cloud computing and distributed systems.
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Understanding_Digital_Forensics_Presentation.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Big Data Technologies - Introduction.pptx
Empathic Computing: Creating Shared Understanding
Mobile App Security Testing_ A Comprehensive Guide.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
GamePlan Trading System Review: Professional Trader's Honest Take
Spectral efficient network and resource selection model in 5G networks
“AI and Expert System Decision Support & Business Intelligence Systems”
Reach Out and Touch Someone: Haptics and Empathic Computing
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf

Building the Internet of Things with Thingsquare and Contiki - day 1, part 2