ttn in practice ttn app and gateway ttn gateway ttn
play

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


  1. TTN IN PRACTICE

  2. TTN: APP AND GATEWAY

  3. TTN: GATEWAY

  4. TTN: GATEWAY

  5. TTN: GATEWAY

  6. SINGLE CHANNEL GATEWAY 70 euro RPi+board No enclosure Single Channel

  7. 8 CHANNELS GTW 500-1500 euro Enclosure 8 Channels

  8. 8 CHANNELS GTW 200-300 euro No enclosure 8 Channels

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

  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

  11. IS IT WORKING? Connected!

  12. IS IT WORKING? It may take 24 hours for the gateway to be shown on TTNMapper and only if you generate traffic

  13. DO I NEED A GATEWAY? You don’t need to install a Gateway to use TTN if there are other Gateways available!

  14. TTN: APP

  15. TTN: APP Application ID Description Handler

  16. TTN: APP

  17. TTN: APP

  18. TTN: COLLABORATORS

  19. TTN: DEVICES Name of Device Device EUI

  20. TTN: DEVICE EUI FOR PYCOM

  21. TTN: DEVICES

  22. TTN: DEVICES Authentication Never seen!

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

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

  25. TTN: DEVICES Settings

  26. TTN: DEVICES ABP

  27. TTN: DEVICES

  28. TTN: DEVICES DeviceAdd, NetKey, AppKey

  29. TTN: DEVICES Copy and Paste in the TTN example I provided

  30. TTN: PAYLOAD Payload format

  31. TTN: PAYLOAD

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

  33. TTN: PAYLOAD

  34. TTN: INTEGRATIONS Integrations

  35. TTN: INTEGRATIONS

  36. TTN: INTEGRATIONS

  37. TTN: INTEGRATIONS

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

Recommend


More recommend