TTN IN PRACTICE TTN: APP AND GATEWAY TTN: GATEWAY TTN: GATEWAY - - PowerPoint PPT Presentation

ttn in practice ttn app and gateway ttn gateway ttn
SMART_READER_LITE
LIVE PREVIEW

TTN IN PRACTICE TTN: APP AND GATEWAY TTN: GATEWAY TTN: GATEWAY - - PowerPoint PPT Presentation

TTN IN PRACTICE TTN: APP AND GATEWAY TTN: GATEWAY TTN: GATEWAY TTN: GATEWAY SINGLE CHANNEL GATEWAY 70 euro RPi+board No enclosure Single Channel 8 CHANNELS GTW 500-1500 euro Enclosure 8 Channels 8 CHANNELS GTW 200-300 euro No


slide-1
SLIDE 1

TTN IN PRACTICE

slide-2
SLIDE 2

TTN: APP AND GATEWAY

slide-3
SLIDE 3

TTN: GATEWAY

slide-4
SLIDE 4

TTN: GATEWAY

slide-5
SLIDE 5

TTN: GATEWAY

slide-6
SLIDE 6

SINGLE CHANNEL GATEWAY

70 euro RPi+board No enclosure Single Channel

slide-7
SLIDE 7

8 CHANNELS GTW

500-1500 euro Enclosure 8 Channels

slide-8
SLIDE 8

8 CHANNELS GTW

200-300 euro No enclosure 8 Channels

slide-9
SLIDE 9

GATEWAY SETUP

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

slide-10
SLIDE 10

GATEWAY SETUP

Login 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

slide-11
SLIDE 11

IS IT WORKING?

Connected!

slide-12
SLIDE 12

IS IT WORKING?

It may take 24 hours for the gateway to be shown on TTNMapper and only if you generate traffic

slide-13
SLIDE 13

DO I NEED A GATEWAY?

You don’t need to install a Gateway to use TTN if there are other Gateways available!

slide-14
SLIDE 14

TTN: APP

slide-15
SLIDE 15

TTN: APP

Application ID Description Handler

slide-16
SLIDE 16

TTN: APP

slide-17
SLIDE 17

TTN: APP

slide-18
SLIDE 18

TTN: COLLABORATORS

slide-19
SLIDE 19

TTN: DEVICES

Name of Device Device EUI

slide-20
SLIDE 20

TTN: DEVICE EUI FOR PYCOM

slide-21
SLIDE 21

TTN: DEVICES

slide-22
SLIDE 22

TTN: DEVICES

Authentication Never seen!

slide-23
SLIDE 23

TTN: AUTHENTICATION

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

slide-24
SLIDE 24

TTN: AUTHENTICATION

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

slide-25
SLIDE 25

TTN: DEVICES

Settings

slide-26
SLIDE 26

TTN: DEVICES

ABP

slide-27
SLIDE 27

TTN: DEVICES

slide-28
SLIDE 28

TTN: DEVICES

DeviceAdd, NetKey, AppKey

slide-29
SLIDE 29

TTN: DEVICES

Copy and Paste in the TTN example I provided

slide-30
SLIDE 30

TTN: PAYLOAD

Payload format

slide-31
SLIDE 31

TTN: PAYLOAD

slide-32
SLIDE 32

TTN: PAYLOAD

function 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; }

slide-33
SLIDE 33

TTN: PAYLOAD

slide-34
SLIDE 34

TTN: INTEGRATIONS

Integrations

slide-35
SLIDE 35

TTN: INTEGRATIONS

slide-36
SLIDE 36

TTN: INTEGRATIONS

slide-37
SLIDE 37

TTN: INTEGRATIONS

slide-38
SLIDE 38

EXERCISE

1) Create an Application (your own!) 2) Register one device 3) Send some data 4) Try the Ubidots integration!