+ All Categories
Home > Documents > TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to...

TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to...

Date post: 10-Jul-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
38
TTN IN PRACTICE
Transcript
Page 1: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN IN PRACTICE

Page 2: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: APP AND GATEWAY

Page 3: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: GATEWAY

Page 4: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: GATEWAY

Page 5: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: GATEWAY

Page 6: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

SINGLE CHANNEL GATEWAY70 euro

RPi+board

No enclosure

Single Channel

Page 7: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

8 CHANNELS GTW

500-1500 euro

Enclosure

8 Channels

Page 8: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

8 CHANNELS GTW

200-300 euro

No enclosure

8 Channels

Page 9: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

GATEWAY SETUP

Example: https://github.com/ttn-zh/ic880a-gateway/wiki

Page 10: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

GATEWAY SETUPLogin to thethingsnetwork.org Console

Click on Gateways -> register gateway

Enable checkbox I'm using the legacy packet forwarder

Enter your Gateway EUI (if is printed on start and end of the installer)

Enter any description

Select Europe 868Mhz as frequency plan

Select the correct antenna placement according to your plans

Confirm clicking Register gateway

Page 11: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

IS IT WORKING?Connected!

Page 12: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

IS IT WORKING?

It may take 24 hours for the gateway to be shown on

TTNMapper and only if you generate traffic

Page 13: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

DO I NEED A GATEWAY?

You don’t need to install a Gateway to use TTN if there

are other Gateways available!

Page 14: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: APP

Page 15: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: APPApplication ID

Description

Handler

Page 16: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: APP

Page 17: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: APP

Page 18: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: COLLABORATORS

Page 19: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: DEVICESName of Device

Device EUI

Page 20: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: DEVICE EUI FOR PYCOM

Page 21: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: DEVICES

Page 22: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: DEVICESAuthentication

Never seen!

Page 23: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: AUTHENTICATION

Credit: https://www.newieventures.com.au/blogtext/2018/2/26/lorawan-otaa-or-abp

Page 24: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: AUTHENTICATION

https://www.newieventures.com.au/blogtext/2018/2/26/lorawan-otaa-or-abp

Page 25: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: DEVICES Settings

Page 26: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: DEVICES

ABP

Page 27: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: DEVICES

Page 28: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: DEVICES DeviceAdd, NetKey, AppKey

Page 29: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: DEVICES

Copy and Paste in the TTN example I provided

Page 30: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: PAYLOAD Payload format

Page 31: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: PAYLOAD

Page 32: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: PAYLOADfunction Decoder(bytes, port) {

var decoded = {};

decoded.latitude = ((bytes[2]<<16)>>>0) + ((bytes[3]<<8)>>>0) + bytes[4];

decoded.latitude = (decoded.latitude / 10000.0);

decoded.longitude = ((bytes[5]<<16)>>>0) + ((bytes[6]<<8)>>>0) + bytes[7];

decoded.longitude = (decoded.longitude / 10000.0);

decoded.altitude = ((bytes[8]<<16)>>>0) + ((bytes[9]<<8)>>>0) + bytes[10];

decoded.altitude = (decoded.altitude / 100.0);

decoded.hdop = ((bytes[11]<<16)>>>0) + ((bytes[12]<<8)>>>0) + bytes[13];

// decoded.hdop = (decoded.hdop / 10000.0);

return decoded;

}

Page 33: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: PAYLOAD

Page 34: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: INTEGRATIONSIntegrations

Page 35: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: INTEGRATIONS

Page 36: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: INTEGRATIONS

Page 37: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

TTN: INTEGRATIONS

Page 38: TTN in Practice - Wirelesswireless.ictp.it/school_2019/slides/TTN_in_Practice.pdfLogin to thethingsnetwork.org Console Click on Gateways -> register gateway Enable checkbox I'm using

EXERCISE

1) Create an Application (your own!)

2) Register one device

3) Send some data

4) Try the Ubidots integration!


Recommended