SlideShare a Scribd company logo
1 of 49
You’ve got mail.
Connecting to The Things Network (Public LoRaWan)
The Things Networks Dallas – April 17, 2019
Need notification on mailbox door open
https://www.amazon.com/Kangaroo-Home-Security-Motion-Sensor/dp/B07DHXB6XV/
The Good:
• 2AA batteries
• Robust, easy to install
• Wide sensor angle, good sensitivity
Notification not working + other issues...
● Kangaroo is meant for indoor use
● Weak device WiFi, does not reach far beyond front door
● Data cannot be exported, or IFTTT-ed, or scraped…
● The Call911 button issue - does it instantly dial 911?
⇒ Perfect opportunity for a LoRaWan/TTN application
Demo Outline
1. Dragino gateway intro
○ Installation and configuration
○ Packet forwarders
2. Arduino + LoRa Shield sends data to TTN
○ Message tracking on device Serial interface
○ Check settings and messages on TTN gateway, application, device
3. Cayenne (MyDevices) integration
○ LPP (Low Power Payloads) data types
○ Live data and Dashboard
● Managed by Web GUI, SSH via LAN or WiFi
● Supports WiFi AP, Client or Ad-Hoc(Mesh) mode
● Internet connection via LAN, WiFi, 3G or 4G
● Failsafe design provides robust system
● Arduino IDE compatible. Easy to program.
● LoRa band available at 433/868/915/920 Mhz
● Max range in LoRa : 5 ~ 10km
Low cost comes with limitations:
● 1-channel gateway
● ABP only mode
Gateway: Dragino LG01-P-915-US ($60)
https://www.robotshop.com/en/lg01-p-lora-gateway-915-mhz-north-america.html
End device: Arduino Uno + LoRa Shield ($27.99)
Dragino Lora Shield 915Mhz, RFM95W Wireless, Compatible with Arduino UNO
Mega 2560 Leonardo Due, 3.3V or 5V Low Power Consumption, Antenna IPEX
https://www.amazon.com/gp/product/B07HD1MH3J/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1
The Demo setup (detail)
Mobile hotspot and TP-Link router make the setup venue independent
● Need Dragino connected to WAN Internet (Ethernet) so I can connect to it WiFi from laptop
● Dragino WiFi access needed to check LoRa radio on Arduino module
TP-Link TL-WR802N Wireless-N300 Nano Router
https://www.amazon.com/TP-Link-Wireless-Portable-Travel-Router/dp/B00TQEX8BO
USB
Assume no Ethernet at Improving
The Demo setup (will draw if I have time)
Items in red added for venue-independent Demo setup.
● Dragino WAN (Ethernet) to Cloud
● Dragino LAN (Ethernet) to Laptop (has Internet access)
● Laptop WiFi to Dragino to connect LoRa radio on Arduino
● Laptop USB to Arduino + LoRa Shield device - to track on Arduino
The Demo setup
USB
WAN
WAN
● Check configuration
● Trace messages
1. Laptop
○ Arduino sketches for Client and Server
○ CMD ipconfig
2. Dragino http://10.130.1.1
3. TP-Link http://tplinkwifi.net/
4. Mobile hotspot
5. TTN
○ Gateways https://console.thethingsnetwork.org/gateways
○ TTN Applications https://console.thethingsnetwork.org/applications
6. Cayenne (myDevices) https://cayenne.mydevices.com/cayenne/dashboard
The Demo setup
The Demo setup - TP-Link nano router
WiFi Client Configuration setup
● WiFi SSID / password: TP-LINK_AE82 / *******
● Web management page: http://tplinkwifi.net/
● Default login: admin / admin
Notes:
1. There will be no Internet connection, AP opens and serves for TP-Link
configuration only, to connect it to the local WiFi
2. If needed, Reset to factory default: 5 sec pin push, until fast blinking
The Demo setup - TP-Link nano router (cont.)
Quick Setup > Client > select from AP List my cell phone hotspot SSID
Dragino network setup - WiFi Client mode
Dragino network setup - WiFi AP mode
Laptop connectivity
Laptop connected
● LAN & WiFi to Dragino Server
● USB/Serial to Arduino Client device
Dragino LG01-P-915-US
LG01 LoRa Gateway User Manual
https://www.robotshop.com/media/files/pdf2/lg01_lora_gateway_user_manual.pdf
2.2 Program microcontroller.
The MCU (microcontroller) M328P is used to communicate with LoRa Radio part and Dragino Linux module.
The program language for the MCU is based on C and program tool is Arduino IDE.
Dragino board library:
http://www.dragino.com/downloads/downloads/YunShield/package_dragino_yun_test_index.json
2.3.1 Installing LoRa Library
The Library used here for LoRa communication is called Radiohead; our sketch will use this library
so we need to download it from:
https://github.com/dragino/RadioHead/archive/master.zip
Detailed, good
instructions
LG01 LoRa Gateway User Manual
https://www.robotshop.com/media/files/pdf2/lg01_lora_gateway_user_manual.pdf
Gateway settings Dragino LG01-P-915-US
● 10.130.1.1
● root/ dragino
Detailed, good
instructions
LG01 LoRa Gateway User Manual
https://www.robotshop.com/media/files/pdf2/lg01_lora_gateway_user_manual.pdf
Gateway settings Dragino - Network
Detailed, good
instructions
LG01 LoRa Gateway User Manual
https://www.robotshop.com/media/files/pdf2/lg01_lora_gateway_user_manual.pdf
Gateway settings Dragino - Sensor
Detailed, good
instructions
Single_pkt_fwd source code: https://github.com/dragino/Arduino-Profile-
Examples/tree/master/libraries/Dragino/examples/LoRa/LoRaWAN
LG01 LoRa Gateway User Manual
https://www.robotshop.com/media/files/pdf2/lg01_lora_gateway_user_manual.pdf
Gateway settings Dragino - LoRa/LoRaWan
Detailed, good
instructions
Step-by-step: Connect to TTN
Detailed instructions, for both Dragino and Arduino device at:
http://wiki.dragino.com/index.php?title=Connect_to_TTN#Use_LoRa_Shield_and_Arduino_as_LoRa_End_Device
Detailed, good
instructions
http://wiki.dragino.com/index.php?title=Connect_to_TTN#Use_LoRa_Shield_and_Arduino_as_LoRa_End_Device
Example1 -- Use with LMIC library for LoRaWAN compatible
http://wiki.dragino.com/index.php?title=Lora_Shield#Example1_--_Use_with_LMIC_library_for_LoRaWAN_compatible
Arduino-lmic-master > src > lmic > lorabase.h
Default frequency plan for US 915 MHz ISM band
// Default frequency plan for US 915MHz
enum { US915_125kHz_UPFBASE = 902300000,
US915_125kHz_UPFSTEP = 200000,
US915_500kHz_UPFBASE = 903000000,
US915_500kHz_UPFSTEP = 1600000,
US915_500kHz_DNFBASE = 923300000,
US915_500kHz_DNFSTEP = 600000
};
enum { US915_FREQ_MIN = 902000000,
US915_FREQ_MAX = 928000000 };
The Library used by Dragino for LoRa communication is
called Radiohead, download it from:
https://github.com/dragino/RadioHead/archive/master.zip
Arduino Client setup
Dragino LoRa Gateway setup
http://wiki.dragino.com/index.php?title=Connect_to_TTN#Use_LoRa_Shield_and_Arduino_as_LoRa_End_Device
Dragino board packages
http://www.dragino.com/downloads/downloads/YunShield/package_dragino_yun_test_index.json
Dragino Arduino Server setup
Arduino Client - Server message tracing
TTN Gateway - Overview
TTN Gateway - Traffic
TTN Gateway - Traffic
TTN Gateway - Settings
TTN Applications - Overview
TTN Applications - Devices; Data
TTN Application - Data
TTN Applications - Payload Formats; Integrations
Cayenne - LPP (Low Power Payload)
https://mydevices.com/cayenne/docs/lora/#lora-cayenne-low-power-payload
Cayenne - Data Types
https://mydevices.com/cayenne/docs/lora/#lora-cayenne-low-power-payload-data-types
Dragino WiKi instructions for Cayenne
https://wiki.dragino.com/index.php?title=MyDevices#Software
Detailed, good
instructions
https://cayenne.mydevices.com/cayenne/dashboard/lora/3c4d03f0-5f0b-11e9-9f74-8b741b61f48a
Cayenne (myDevices) data & widgets
LoRa Questions
LoRa Questions answered on Dragino WiKi page:
http://wiki.dragino.com/index.php?title=LoRa_Questions#What_is_the_difference_between_LG01_single_channel_gateway
_and_a_8-channel_LoRaWAN_gateway.3F
● How can i change the Bandwidth of the LoRa Radio
● What is the difference between LG01 single channel gateway and a 8-channel LoRaWAN gateway?
● Can Dragino devices communicate with LoRa Devices from other vendor?
● How many LoRa client node can LG01/OLG01 support?
● 600 ft (200 m) radius?
● Max range in LoRa : 5 ~ 10 km
Dragino LG01-P and Arduino w. LoRa Shield reach
The Faraday cage
A Faraday cage or Faraday shield is an enclosure used to block electromagnetic fields.
A Faraday shield may be formed by a continuous covering of conductive material, or
in the case of a Faraday cage, by a mesh of such materials. Faraday cages are named
after the English scientist Michael Faraday, who invented them in 1836.
Block BT beaconsFaraday cage
A metal mailbox blocks all EMF
● Signals emitted in closed box are not detected
● Short and narrow window to detect mailbox opened, mail placed, mailbox closed
● Need to check sensor every few seconds
https://www.youtube.com/watch?v=WgAFBP2loo8
April 16, 11:45 am
Application frame counters
LoRaWan Security
https://www.thethingsnetwork.org/docs/lorawan/security.html
Frame counters used to block replay attacks.
TTN Learn - devices; duty cycle; frequency plans
https://www.thethingsnetwork.org/docs/devices/
https://www.thethingsnetwork.org/docs/lorawan/duty-cycle.html
● Duty Cycle indicates the fraction of time a resource is busy.
● When a single device transmits on a channel for 2 time units
every 10 time units, this device has a duty cycle of 20%.
● In most regions this duty cycle is set to 1%.
https://www.thethingsnetwork.org/docs/lorawan/frequency-plans.html
TTN Learn - OTAA; ABP
https://www.thethingsnetwork.org/docs/lorawan/address-space.html
Gateway: Dragino LG01-P-915-US
LG01 LoRa Gateway User Manual
https://www.robotshop.com/media/files/pdf2/lg01_lora_gateway_user_manual.pdf
2.2 Program microcontroller.
The MCU (microcontroller) M328P is used to communicate with LoRa Radio part and Dragino Linux module.
The program language for the MCU is based on C and program tool is Arduino IDE.

More Related Content

What's hot

Iqrf Direct Peripheral Access
Iqrf Direct Peripheral AccessIqrf Direct Peripheral Access
Iqrf Direct Peripheral Accessvos-sps-jicin
 
Introduction to LoRa for developers
Introduction to LoRa for developersIntroduction to LoRa for developers
Introduction to LoRa for developersRobin Harris
 
IRJET- IOT Based Surveillance Robotic Car using Raspberry PI
IRJET- IOT Based Surveillance Robotic Car using Raspberry PIIRJET- IOT Based Surveillance Robotic Car using Raspberry PI
IRJET- IOT Based Surveillance Robotic Car using Raspberry PIIRJET Journal
 
Extracting the Painful (Blue)Tooth - Presentation
Extracting the Painful (Blue)Tooth - PresentationExtracting the Painful (Blue)Tooth - Presentation
Extracting the Painful (Blue)Tooth - PresentationOpposing Force S.r.l.
 
Voice encryption for gsm using arduino
Voice encryption for gsm using arduinoVoice encryption for gsm using arduino
Voice encryption for gsm using arduinoiruldaworld
 
Критически опасные уязвимости в популярных 3G- и 4G-модемах или как построить...
Критически опасные уязвимости в популярных 3G- и 4G-модемах или как построить...Критически опасные уязвимости в популярных 3G- и 4G-модемах или как построить...
Критически опасные уязвимости в популярных 3G- и 4G-модемах или как построить...Positive Hack Days
 
Pertemuan 9 intrusion detection system
Pertemuan 9 intrusion detection systemPertemuan 9 intrusion detection system
Pertemuan 9 intrusion detection systemnewbie2019
 
"Attacking industrial remote controllers for fun and profit" - Dr. Marco Bald...
"Attacking industrial remote controllers for fun and profit" - Dr. Marco Bald..."Attacking industrial remote controllers for fun and profit" - Dr. Marco Bald...
"Attacking industrial remote controllers for fun and profit" - Dr. Marco Bald...PROIDEA
 
Technical Sheet - PrivateGSM VoIP - english
Technical Sheet - PrivateGSM VoIP - englishTechnical Sheet - PrivateGSM VoIP - english
Technical Sheet - PrivateGSM VoIP - englishPrivateWave Italia SpA
 
Taipei IoT LoRa workshop
Taipei IoT LoRa workshopTaipei IoT LoRa workshop
Taipei IoT LoRa workshopHu-Cheng Lee
 
Presentation 4 rifidi emulator lab
Presentation 4 rifidi emulator labPresentation 4 rifidi emulator lab
Presentation 4 rifidi emulator labMouhanad Alkhaldi
 
Labmeeting - 20150211 - Novel End-to-End Voice Encryption Method in GSM System
Labmeeting - 20150211 - Novel End-to-End Voice Encryption Method in GSM SystemLabmeeting - 20150211 - Novel End-to-End Voice Encryption Method in GSM System
Labmeeting - 20150211 - Novel End-to-End Voice Encryption Method in GSM SystemSyuan Wang
 
Chapter 6 firewall
Chapter 6 firewallChapter 6 firewall
Chapter 6 firewallnewbie2019
 
Global Azure Bootcamp 2019 - Bandung - Microsoft Azure as Complete Solutions ...
Global Azure Bootcamp 2019 - Bandung - Microsoft Azure as Complete Solutions ...Global Azure Bootcamp 2019 - Bandung - Microsoft Azure as Complete Solutions ...
Global Azure Bootcamp 2019 - Bandung - Microsoft Azure as Complete Solutions ...Alwin Arrasyid
 

What's hot (20)

Iqrf Direct Peripheral Access
Iqrf Direct Peripheral AccessIqrf Direct Peripheral Access
Iqrf Direct Peripheral Access
 
Introduction to LoRa for developers
Introduction to LoRa for developersIntroduction to LoRa for developers
Introduction to LoRa for developers
 
SIGFOX Makers Tour - Lisboa
SIGFOX Makers Tour - LisboaSIGFOX Makers Tour - Lisboa
SIGFOX Makers Tour - Lisboa
 
SIGFOX Makers Tour - Madrid
SIGFOX Makers Tour - MadridSIGFOX Makers Tour - Madrid
SIGFOX Makers Tour - Madrid
 
IRJET- IOT Based Surveillance Robotic Car using Raspberry PI
IRJET- IOT Based Surveillance Robotic Car using Raspberry PIIRJET- IOT Based Surveillance Robotic Car using Raspberry PI
IRJET- IOT Based Surveillance Robotic Car using Raspberry PI
 
Kablosuz İletişim ve Güvenlik
Kablosuz İletişim ve Güvenlik Kablosuz İletişim ve Güvenlik
Kablosuz İletişim ve Güvenlik
 
Extracting the Painful (Blue)Tooth - Presentation
Extracting the Painful (Blue)Tooth - PresentationExtracting the Painful (Blue)Tooth - Presentation
Extracting the Painful (Blue)Tooth - Presentation
 
802 15-4 tutorial
802 15-4 tutorial802 15-4 tutorial
802 15-4 tutorial
 
Cctv camera
Cctv cameraCctv camera
Cctv camera
 
Voice encryption for gsm using arduino
Voice encryption for gsm using arduinoVoice encryption for gsm using arduino
Voice encryption for gsm using arduino
 
Критически опасные уязвимости в популярных 3G- и 4G-модемах или как построить...
Критически опасные уязвимости в популярных 3G- и 4G-модемах или как построить...Критически опасные уязвимости в популярных 3G- и 4G-модемах или как построить...
Критически опасные уязвимости в популярных 3G- и 4G-модемах или как построить...
 
Pertemuan 9 intrusion detection system
Pertemuan 9 intrusion detection systemPertemuan 9 intrusion detection system
Pertemuan 9 intrusion detection system
 
"Attacking industrial remote controllers for fun and profit" - Dr. Marco Bald...
"Attacking industrial remote controllers for fun and profit" - Dr. Marco Bald..."Attacking industrial remote controllers for fun and profit" - Dr. Marco Bald...
"Attacking industrial remote controllers for fun and profit" - Dr. Marco Bald...
 
Technical Sheet - PrivateGSM VoIP - english
Technical Sheet - PrivateGSM VoIP - englishTechnical Sheet - PrivateGSM VoIP - english
Technical Sheet - PrivateGSM VoIP - english
 
Taipei IoT LoRa workshop
Taipei IoT LoRa workshopTaipei IoT LoRa workshop
Taipei IoT LoRa workshop
 
Presentation 4 rifidi emulator lab
Presentation 4 rifidi emulator labPresentation 4 rifidi emulator lab
Presentation 4 rifidi emulator lab
 
Labmeeting - 20150211 - Novel End-to-End Voice Encryption Method in GSM System
Labmeeting - 20150211 - Novel End-to-End Voice Encryption Method in GSM SystemLabmeeting - 20150211 - Novel End-to-End Voice Encryption Method in GSM System
Labmeeting - 20150211 - Novel End-to-End Voice Encryption Method in GSM System
 
Snort
SnortSnort
Snort
 
Chapter 6 firewall
Chapter 6 firewallChapter 6 firewall
Chapter 6 firewall
 
Global Azure Bootcamp 2019 - Bandung - Microsoft Azure as Complete Solutions ...
Global Azure Bootcamp 2019 - Bandung - Microsoft Azure as Complete Solutions ...Global Azure Bootcamp 2019 - Bandung - Microsoft Azure as Complete Solutions ...
Global Azure Bootcamp 2019 - Bandung - Microsoft Azure as Complete Solutions ...
 

Similar to TTN (The Things Network) Dallas - April 17, 2019

IoT LPWAN network security: Sigfox and LoRaWAN (Mikael Falkvidd @ Knowit secu...
IoT LPWAN network security: Sigfox and LoRaWAN (Mikael Falkvidd @ Knowit secu...IoT LPWAN network security: Sigfox and LoRaWAN (Mikael Falkvidd @ Knowit secu...
IoT LPWAN network security: Sigfox and LoRaWAN (Mikael Falkvidd @ Knowit secu...Mikael Falkvidd
 
TTN (The Things Network) Dallas - June 29, 2017
TTN (The Things Network) Dallas - June 29, 2017TTN (The Things Network) Dallas - June 29, 2017
TTN (The Things Network) Dallas - June 29, 2017Marta Soncodi
 
Unit-3 -Low Bandwidth Communication.pdf
Unit-3 -Low Bandwidth Communication.pdfUnit-3 -Low Bandwidth Communication.pdf
Unit-3 -Low Bandwidth Communication.pdf1ms21cs111
 
Dragino Technology会社案内
Dragino Technology会社案内Dragino Technology会社案内
Dragino Technology会社案内CRI Japan, Inc.
 
Attachment 11 use of common analyzing and positioning tools
Attachment 11 use of common analyzing and positioning toolsAttachment 11 use of common analyzing and positioning tools
Attachment 11 use of common analyzing and positioning toolsChristian Silva Espinoza
 
RF Hacking Red Pill 2017
RF Hacking Red Pill 2017RF Hacking Red Pill 2017
RF Hacking Red Pill 2017Keerati Torach
 
Tenda AC23 Quick guide.pdf
Tenda AC23 Quick guide.pdfTenda AC23 Quick guide.pdf
Tenda AC23 Quick guide.pdfpipoyuc
 
DEF CON 23 - Phil Polstra - hacker in the wires
DEF CON 23 - Phil Polstra - hacker in the wiresDEF CON 23 - Phil Polstra - hacker in the wires
DEF CON 23 - Phil Polstra - hacker in the wiresFelipe Prado
 
10 channels - LoRaWAN GPS Concentrator for Raspberry Pi
10 channels - LoRaWAN GPS Concentrator for Raspberry Pi10 channels - LoRaWAN GPS Concentrator for Raspberry Pi
10 channels - LoRaWAN GPS Concentrator for Raspberry PiCRI Japan, Inc.
 
Manuale Router Sitecom Wl577
Manuale Router Sitecom Wl577Manuale Router Sitecom Wl577
Manuale Router Sitecom Wl577guest854c41d
 
Open fest2018 LoRa, LoRa WAN, The Thing Network - capabilities, myths, applic...
Open fest2018 LoRa, LoRa WAN, The Thing Network - capabilities, myths, applic...Open fest2018 LoRa, LoRa WAN, The Thing Network - capabilities, myths, applic...
Open fest2018 LoRa, LoRa WAN, The Thing Network - capabilities, myths, applic...Olimex Bulgaria
 
FireWall
FireWallFireWall
FireWallrubal_9
 

Similar to TTN (The Things Network) Dallas - April 17, 2019 (20)

IoT LPWAN network security: Sigfox and LoRaWAN (Mikael Falkvidd @ Knowit secu...
IoT LPWAN network security: Sigfox and LoRaWAN (Mikael Falkvidd @ Knowit secu...IoT LPWAN network security: Sigfox and LoRaWAN (Mikael Falkvidd @ Knowit secu...
IoT LPWAN network security: Sigfox and LoRaWAN (Mikael Falkvidd @ Knowit secu...
 
TTN (The Things Network) Dallas - June 29, 2017
TTN (The Things Network) Dallas - June 29, 2017TTN (The Things Network) Dallas - June 29, 2017
TTN (The Things Network) Dallas - June 29, 2017
 
Firewall
FirewallFirewall
Firewall
 
Unit-3 -Low Bandwidth Communication.pdf
Unit-3 -Low Bandwidth Communication.pdfUnit-3 -Low Bandwidth Communication.pdf
Unit-3 -Low Bandwidth Communication.pdf
 
Dragino Technology会社案内
Dragino Technology会社案内Dragino Technology会社案内
Dragino Technology会社案内
 
LoRaWAN Overview for Retail
LoRaWAN Overview for RetailLoRaWAN Overview for Retail
LoRaWAN Overview for Retail
 
Attachment 11 use of common analyzing and positioning tools
Attachment 11 use of common analyzing and positioning toolsAttachment 11 use of common analyzing and positioning tools
Attachment 11 use of common analyzing and positioning tools
 
RF Hacking Red Pill 2017
RF Hacking Red Pill 2017RF Hacking Red Pill 2017
RF Hacking Red Pill 2017
 
Tenda AC23 Quick guide.pdf
Tenda AC23 Quick guide.pdfTenda AC23 Quick guide.pdf
Tenda AC23 Quick guide.pdf
 
DEF CON 23 - Phil Polstra - hacker in the wires
DEF CON 23 - Phil Polstra - hacker in the wiresDEF CON 23 - Phil Polstra - hacker in the wires
DEF CON 23 - Phil Polstra - hacker in the wires
 
10 channels - LoRaWAN GPS Concentrator for Raspberry Pi
10 channels - LoRaWAN GPS Concentrator for Raspberry Pi10 channels - LoRaWAN GPS Concentrator for Raspberry Pi
10 channels - LoRaWAN GPS Concentrator for Raspberry Pi
 
IoT Session Thomas More
IoT Session Thomas MoreIoT Session Thomas More
IoT Session Thomas More
 
Cc internet of things @ Thomas More
Cc internet of things @ Thomas MoreCc internet of things @ Thomas More
Cc internet of things @ Thomas More
 
Manuale Router Sitecom Wl577
Manuale Router Sitecom Wl577Manuale Router Sitecom Wl577
Manuale Router Sitecom Wl577
 
718001 000 en
718001 000 en718001 000 en
718001 000 en
 
Open fest2018 LoRa, LoRa WAN, The Thing Network - capabilities, myths, applic...
Open fest2018 LoRa, LoRa WAN, The Thing Network - capabilities, myths, applic...Open fest2018 LoRa, LoRa WAN, The Thing Network - capabilities, myths, applic...
Open fest2018 LoRa, LoRa WAN, The Thing Network - capabilities, myths, applic...
 
What’s a 4G Router?
What’s a 4G Router?What’s a 4G Router?
What’s a 4G Router?
 
How To Choose LoRa Devices?
How To Choose LoRa Devices?How To Choose LoRa Devices?
How To Choose LoRa Devices?
 
FireWall
FireWallFireWall
FireWall
 
Seeeduino LoRaWAN
Seeeduino LoRaWANSeeeduino LoRaWAN
Seeeduino LoRaWAN
 

More from Marta Soncodi

TTN (The Things Network) Dallas at TM PMI Dallas - 17Dec16
TTN (The Things Network) Dallas at TM PMI Dallas - 17Dec16TTN (The Things Network) Dallas at TM PMI Dallas - 17Dec16
TTN (The Things Network) Dallas at TM PMI Dallas - 17Dec16Marta Soncodi
 
Building IoT App Prototypes
Building IoT App PrototypesBuilding IoT App Prototypes
Building IoT App PrototypesMarta Soncodi
 
Toastmasters Secretary App
Toastmasters Secretary AppToastmasters Secretary App
Toastmasters Secretary AppMarta Soncodi
 
Stay Connected in a Connected World
Stay Connected in a Connected WorldStay Connected in a Connected World
Stay Connected in a Connected WorldMarta Soncodi
 
Prototyping Workshop - Wireframes, Mockups, Prototypes
Prototyping Workshop - Wireframes, Mockups, PrototypesPrototyping Workshop - Wireframes, Mockups, Prototypes
Prototyping Workshop - Wireframes, Mockups, PrototypesMarta Soncodi
 

More from Marta Soncodi (6)

TTN (The Things Network) Dallas at TM PMI Dallas - 17Dec16
TTN (The Things Network) Dallas at TM PMI Dallas - 17Dec16TTN (The Things Network) Dallas at TM PMI Dallas - 17Dec16
TTN (The Things Network) Dallas at TM PMI Dallas - 17Dec16
 
TTN Dallas - 7Dec16
TTN Dallas - 7Dec16TTN Dallas - 7Dec16
TTN Dallas - 7Dec16
 
Building IoT App Prototypes
Building IoT App PrototypesBuilding IoT App Prototypes
Building IoT App Prototypes
 
Toastmasters Secretary App
Toastmasters Secretary AppToastmasters Secretary App
Toastmasters Secretary App
 
Stay Connected in a Connected World
Stay Connected in a Connected WorldStay Connected in a Connected World
Stay Connected in a Connected World
 
Prototyping Workshop - Wireframes, Mockups, Prototypes
Prototyping Workshop - Wireframes, Mockups, PrototypesPrototyping Workshop - Wireframes, Mockups, Prototypes
Prototyping Workshop - Wireframes, Mockups, Prototypes
 

Recently uploaded

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 

Recently uploaded (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 

TTN (The Things Network) Dallas - April 17, 2019

  • 1. You’ve got mail. Connecting to The Things Network (Public LoRaWan) The Things Networks Dallas – April 17, 2019
  • 2. Need notification on mailbox door open https://www.amazon.com/Kangaroo-Home-Security-Motion-Sensor/dp/B07DHXB6XV/ The Good: • 2AA batteries • Robust, easy to install • Wide sensor angle, good sensitivity
  • 3. Notification not working + other issues... ● Kangaroo is meant for indoor use ● Weak device WiFi, does not reach far beyond front door ● Data cannot be exported, or IFTTT-ed, or scraped… ● The Call911 button issue - does it instantly dial 911? ⇒ Perfect opportunity for a LoRaWan/TTN application
  • 4. Demo Outline 1. Dragino gateway intro ○ Installation and configuration ○ Packet forwarders 2. Arduino + LoRa Shield sends data to TTN ○ Message tracking on device Serial interface ○ Check settings and messages on TTN gateway, application, device 3. Cayenne (MyDevices) integration ○ LPP (Low Power Payloads) data types ○ Live data and Dashboard
  • 5. ● Managed by Web GUI, SSH via LAN or WiFi ● Supports WiFi AP, Client or Ad-Hoc(Mesh) mode ● Internet connection via LAN, WiFi, 3G or 4G ● Failsafe design provides robust system ● Arduino IDE compatible. Easy to program. ● LoRa band available at 433/868/915/920 Mhz ● Max range in LoRa : 5 ~ 10km Low cost comes with limitations: ● 1-channel gateway ● ABP only mode Gateway: Dragino LG01-P-915-US ($60) https://www.robotshop.com/en/lg01-p-lora-gateway-915-mhz-north-america.html
  • 6. End device: Arduino Uno + LoRa Shield ($27.99) Dragino Lora Shield 915Mhz, RFM95W Wireless, Compatible with Arduino UNO Mega 2560 Leonardo Due, 3.3V or 5V Low Power Consumption, Antenna IPEX https://www.amazon.com/gp/product/B07HD1MH3J/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1
  • 7. The Demo setup (detail) Mobile hotspot and TP-Link router make the setup venue independent ● Need Dragino connected to WAN Internet (Ethernet) so I can connect to it WiFi from laptop ● Dragino WiFi access needed to check LoRa radio on Arduino module TP-Link TL-WR802N Wireless-N300 Nano Router https://www.amazon.com/TP-Link-Wireless-Portable-Travel-Router/dp/B00TQEX8BO USB Assume no Ethernet at Improving
  • 8. The Demo setup (will draw if I have time) Items in red added for venue-independent Demo setup. ● Dragino WAN (Ethernet) to Cloud ● Dragino LAN (Ethernet) to Laptop (has Internet access) ● Laptop WiFi to Dragino to connect LoRa radio on Arduino ● Laptop USB to Arduino + LoRa Shield device - to track on Arduino
  • 9. The Demo setup USB WAN WAN ● Check configuration ● Trace messages
  • 10. 1. Laptop ○ Arduino sketches for Client and Server ○ CMD ipconfig 2. Dragino http://10.130.1.1 3. TP-Link http://tplinkwifi.net/ 4. Mobile hotspot 5. TTN ○ Gateways https://console.thethingsnetwork.org/gateways ○ TTN Applications https://console.thethingsnetwork.org/applications 6. Cayenne (myDevices) https://cayenne.mydevices.com/cayenne/dashboard The Demo setup
  • 11. The Demo setup - TP-Link nano router WiFi Client Configuration setup ● WiFi SSID / password: TP-LINK_AE82 / ******* ● Web management page: http://tplinkwifi.net/ ● Default login: admin / admin Notes: 1. There will be no Internet connection, AP opens and serves for TP-Link configuration only, to connect it to the local WiFi 2. If needed, Reset to factory default: 5 sec pin push, until fast blinking
  • 12. The Demo setup - TP-Link nano router (cont.) Quick Setup > Client > select from AP List my cell phone hotspot SSID
  • 13.
  • 14. Dragino network setup - WiFi Client mode
  • 15. Dragino network setup - WiFi AP mode
  • 16. Laptop connectivity Laptop connected ● LAN & WiFi to Dragino Server ● USB/Serial to Arduino Client device
  • 17. Dragino LG01-P-915-US LG01 LoRa Gateway User Manual https://www.robotshop.com/media/files/pdf2/lg01_lora_gateway_user_manual.pdf 2.2 Program microcontroller. The MCU (microcontroller) M328P is used to communicate with LoRa Radio part and Dragino Linux module. The program language for the MCU is based on C and program tool is Arduino IDE. Dragino board library: http://www.dragino.com/downloads/downloads/YunShield/package_dragino_yun_test_index.json 2.3.1 Installing LoRa Library The Library used here for LoRa communication is called Radiohead; our sketch will use this library so we need to download it from: https://github.com/dragino/RadioHead/archive/master.zip Detailed, good instructions
  • 18. LG01 LoRa Gateway User Manual https://www.robotshop.com/media/files/pdf2/lg01_lora_gateway_user_manual.pdf Gateway settings Dragino LG01-P-915-US ● 10.130.1.1 ● root/ dragino Detailed, good instructions
  • 19. LG01 LoRa Gateway User Manual https://www.robotshop.com/media/files/pdf2/lg01_lora_gateway_user_manual.pdf Gateway settings Dragino - Network Detailed, good instructions
  • 20. LG01 LoRa Gateway User Manual https://www.robotshop.com/media/files/pdf2/lg01_lora_gateway_user_manual.pdf Gateway settings Dragino - Sensor Detailed, good instructions Single_pkt_fwd source code: https://github.com/dragino/Arduino-Profile- Examples/tree/master/libraries/Dragino/examples/LoRa/LoRaWAN
  • 21. LG01 LoRa Gateway User Manual https://www.robotshop.com/media/files/pdf2/lg01_lora_gateway_user_manual.pdf Gateway settings Dragino - LoRa/LoRaWan Detailed, good instructions
  • 22. Step-by-step: Connect to TTN Detailed instructions, for both Dragino and Arduino device at: http://wiki.dragino.com/index.php?title=Connect_to_TTN#Use_LoRa_Shield_and_Arduino_as_LoRa_End_Device Detailed, good instructions
  • 24. Example1 -- Use with LMIC library for LoRaWAN compatible http://wiki.dragino.com/index.php?title=Lora_Shield#Example1_--_Use_with_LMIC_library_for_LoRaWAN_compatible
  • 25. Arduino-lmic-master > src > lmic > lorabase.h Default frequency plan for US 915 MHz ISM band // Default frequency plan for US 915MHz enum { US915_125kHz_UPFBASE = 902300000, US915_125kHz_UPFSTEP = 200000, US915_500kHz_UPFBASE = 903000000, US915_500kHz_UPFSTEP = 1600000, US915_500kHz_DNFBASE = 923300000, US915_500kHz_DNFSTEP = 600000 }; enum { US915_FREQ_MIN = 902000000, US915_FREQ_MAX = 928000000 };
  • 26. The Library used by Dragino for LoRa communication is called Radiohead, download it from: https://github.com/dragino/RadioHead/archive/master.zip Arduino Client setup
  • 27. Dragino LoRa Gateway setup http://wiki.dragino.com/index.php?title=Connect_to_TTN#Use_LoRa_Shield_and_Arduino_as_LoRa_End_Device
  • 29. Arduino Client - Server message tracing
  • 30. TTN Gateway - Overview
  • 31. TTN Gateway - Traffic
  • 32. TTN Gateway - Traffic
  • 33. TTN Gateway - Settings
  • 34. TTN Applications - Overview
  • 35. TTN Applications - Devices; Data
  • 37. TTN Applications - Payload Formats; Integrations
  • 38. Cayenne - LPP (Low Power Payload) https://mydevices.com/cayenne/docs/lora/#lora-cayenne-low-power-payload
  • 39. Cayenne - Data Types https://mydevices.com/cayenne/docs/lora/#lora-cayenne-low-power-payload-data-types
  • 40. Dragino WiKi instructions for Cayenne https://wiki.dragino.com/index.php?title=MyDevices#Software Detailed, good instructions
  • 42. LoRa Questions LoRa Questions answered on Dragino WiKi page: http://wiki.dragino.com/index.php?title=LoRa_Questions#What_is_the_difference_between_LG01_single_channel_gateway _and_a_8-channel_LoRaWAN_gateway.3F ● How can i change the Bandwidth of the LoRa Radio ● What is the difference between LG01 single channel gateway and a 8-channel LoRaWAN gateway? ● Can Dragino devices communicate with LoRa Devices from other vendor? ● How many LoRa client node can LG01/OLG01 support?
  • 43. ● 600 ft (200 m) radius? ● Max range in LoRa : 5 ~ 10 km Dragino LG01-P and Arduino w. LoRa Shield reach
  • 44. The Faraday cage A Faraday cage or Faraday shield is an enclosure used to block electromagnetic fields. A Faraday shield may be formed by a continuous covering of conductive material, or in the case of a Faraday cage, by a mesh of such materials. Faraday cages are named after the English scientist Michael Faraday, who invented them in 1836. Block BT beaconsFaraday cage
  • 45. A metal mailbox blocks all EMF ● Signals emitted in closed box are not detected ● Short and narrow window to detect mailbox opened, mail placed, mailbox closed ● Need to check sensor every few seconds https://www.youtube.com/watch?v=WgAFBP2loo8 April 16, 11:45 am
  • 46. Application frame counters LoRaWan Security https://www.thethingsnetwork.org/docs/lorawan/security.html Frame counters used to block replay attacks.
  • 47. TTN Learn - devices; duty cycle; frequency plans https://www.thethingsnetwork.org/docs/devices/ https://www.thethingsnetwork.org/docs/lorawan/duty-cycle.html ● Duty Cycle indicates the fraction of time a resource is busy. ● When a single device transmits on a channel for 2 time units every 10 time units, this device has a duty cycle of 20%. ● In most regions this duty cycle is set to 1%. https://www.thethingsnetwork.org/docs/lorawan/frequency-plans.html
  • 48. TTN Learn - OTAA; ABP https://www.thethingsnetwork.org/docs/lorawan/address-space.html
  • 49. Gateway: Dragino LG01-P-915-US LG01 LoRa Gateway User Manual https://www.robotshop.com/media/files/pdf2/lg01_lora_gateway_user_manual.pdf 2.2 Program microcontroller. The MCU (microcontroller) M328P is used to communicate with LoRa Radio part and Dragino Linux module. The program language for the MCU is based on C and program tool is Arduino IDE.