Slide 1

Slide 1 text

@pimterry Build your own gateway with resin.io and RAK wireless

Slide 2

Slide 2 text

@pimterry

Slide 3

Slide 3 text

@pimterry

Slide 4

Slide 4 text

@pimterry

Slide 5

Slide 5 text

Register a TTN Gateway Create an Resin.io account & application Provision your device Deploy the packet forwarder Configure your device @pimterry Build your own gateway

Slide 6

Slide 6 text

Follow the slides yourself at: bit.ly/resin-ttn-workshop @pimterry

Slide 7

Slide 7 text

Sign up at console.thethingsnetwork.org Register a new gateway: ○ Any name ○ Non-legacy packet forwarder ○ EU frequency @pimterry Register a TTN Gateway

Slide 8

Slide 8 text

Sign up at Resin.io Enter your details Add an SSH key (optional) Create an application: ■ Starter app type ■ Raspberry Pi 3 @pimterry Create a Resin.io account & application

Slide 9

Slide 9 text

Click ‘Add Device’ Enter the network details Follow the guide to flash your SD card Make sure the antenna is attached Insert the SD card & power ...and continue, whilst it boots Provision your device @pimterry

Slide 10

Slide 10 text

Deploy the packet forwarder @pimterry git clone https://github.com/resin-io-playground/ttn-resin-gateway-rpi Add your app as a git remote (see the top right of the app page) git push resin master (No SSH key? Use resin push with the Resin CLI)

Slide 11

Slide 11 text

Deploy the packet forwarder (resin push) @pimterry git clone https://github.com/resin-io-playground/ttn-resin-gateway-rp i Install the CLI: docs.resin.io/reference/cli/ (‘Standalone install’) In the ttn-resin-gateway-rpi folder: > resin login > resin push

Slide 12

Slide 12 text

Configure your device @pimterry Open ‘Device Variables’ in the Resin device dashboard Set GW_ID to the id of your gateway Set GW_KEY to the key of your gateway Set GW_RESET_PIN to 11

Slide 13

Slide 13 text

Bonus: NTP Fix @pimterry If your device can’t authenticate to TTN on the IZUM conference network, its clock may be failing to sync. You can fix this by SSHing into the host and running: date -s "$(curl --silent --head resin.io | grep Date: | sed 's/Date: //')"

Slide 14

Slide 14 text

You’re done! @pimterry Monitor status via the device logs in the Resin dashboard Monitors packets sent & received in the TTN console

Slide 15

Slide 15 text

@pimterry Have questions? forums.resin.io

Slide 16

Slide 16 text

@pimterry Build your own gateway with resin.io and RAK wireless