SLIDE 1 TTN in Practice
Credits: Luka Mustafa, intro to TTN at ICTP smr3188 workshop Marco Zennaro, PhD ICTP
SLIDE 2
The Things Network
TheThingsNetwork is known as TTN
SLIDE 3
3*10
SLIDE 4
LoRaWAN
SLIDE 5
LoRaWAN
SLIDE 6
TTN’s mission
SLIDE 7
TTN is Open Source
SLIDE 8
TTN Communities
Over 300 communities in 100 countries
SLIDE 9
TTN Communities
https://ttnmapper.org
SLIDE 10
TTN: devices, gateways, servers
SLIDE 11
LoRaWAN architecture
SLIDE 12
Gateways
SLIDE 13 Gateways
- Gateways are packet forwarders
- They “forward” LoRaWAN packets to TCP/IP using
WiFi/Ethernet/Cellular
- They operate on different frequency bands, depending on
the region (pay attention!)
- Once you buy/build a gateway, there is not much to do!
- You simply need to register your gateway in TTN
SLIDE 14
LoRa frequency bands
SLIDE 15
LoRa channels in India
SLIDE 16
Single Channel Gateway
70 euro RPi+board No enclosure Single Channel
SLIDE 17
7/8 Channels Gateway
500-1500 euro Enclosure 8 Channels
SLIDE 18
7/8 Channels Gateway
200-300 euro No enclosure 8 Channels
SLIDE 19
Is it working?
Connected!
SLIDE 20
Do I need a gateway?
You don’t need to install a Gateway to use TTN if there are gateways available in your area!
SLIDE 21
Nodes
SLIDE 22
LoRaWAN nodes - Feather
SLIDE 23
LoRaWAN nodes – Pycom Lopy
SLIDE 24
LoRaWAN nodes – m5stack
SLIDE 25
LoRaWAN nodes – ARM mbed
SLIDE 26
LoRaWAN nodes – Arduino 1300
SLIDE 27
LoRaWAN nodes – Arduino shield
SLIDE 28
LoRaWAN products
SLIDE 29
LoRaWAN products
SLIDE 30 LoRaWAN products
https://www.thethingsnetwork.org/marketplace/products/devices
SLIDE 31
Packets
SLIDE 32
LoRaWAN architecture
SLIDE 33
LoRaWAN architecture - TTN
SLIDE 34 LoRaWAN architecture
123
SLIDE 35
LoRaWAN architecture
SLIDE 36
LoRaWAN architecture
SLIDE 37
LoRaWAN architecture
SLIDE 38
LoRaWAN architecture
SLIDE 39
LoRaWAN architecture
SLIDE 40 LoRaWAN architecture
123 123
SLIDE 41 TTN: authentication
Credit: https://www.newieventures.com.au/blogtext/2018/2/26/lorawan-otaa-or-abp
SLIDE 42
LoRaWAN architecture
SLIDE 43
LoRaWAN architecture
MQTT Broker!
SLIDE 44
TTN in practice
SLIDE 45
TTN: App and Gateway
SLIDE 46
TTN: Gateway
SLIDE 47
TTN: Gateway
SLIDE 48
Gateway Setup
Example for the ic880a
SLIDE 49
Is it working?
Connected!
SLIDE 50
TTN: App
SLIDE 51
TTN: App
Application ID Description Handler
SLIDE 52
TTN: we have a new App!
SLIDE 53
TTN: Collaborators
SLIDE 54
TTN: add a Collaborator to the App
SLIDE 55
TTN: register a device
Name of Device Device EUI
SLIDE 56
Where is the device EUI?
SLIDE 57
TTN: devices
SLIDE 58
TTN: devices
Authentication Never seen!
SLIDE 59 TTN: authentication
Credit: https://www.newieventures.com.au/blogtext/2018/2/26/lorawan-otaa-or-abp
SLIDE 60
TTN: OTAA authentication
SLIDE 61
TTN: ABP authentication
SLIDE 62 TTN: devices
Settings
SLIDE 63
TTN: devices
ABP
SLIDE 64
TTN: devices
SLIDE 65
TTN: devices
DeviceAdd, NetKey, AppKey
SLIDE 66
TTN: payload
Payload format
SLIDE 67
TTN: payload
SLIDE 68
TTN: payload testing
SLIDE 69
TTN: integrations
Integrations
SLIDE 70
TTN: integrations
SLIDE 71
TTN: integrations
SLIDE 72
TTN: integrations
SLIDE 73
Summary
We introduced TheThingsNetwork. We learned how to setup a TTN Gateway. We looked at authentication alternatives. We learned how to register new devices.
SLIDE 74
Feedback?
Email mzennaro@ictp.it