Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Â
TTN (The Things Network) Dallas - June 29, 2017
1. LoRa Multitech Conduit mLinux
Connecting to LoRaWan Networks
The Things Networks Dallas â June 29, 2017
2. Demo Outline
1. Multitech Conduit gateway intro
â Installation and configuration
â Packet forwarders
2. LoPy microprocessor sends data to TTN
â OTAA vs ABP
â Tracking data on node, gateway and network server
3. Zenseio sensor device sends data to Loriot
â OTAA vs ABP
â Tracking data on node, gateway and network server
3. Multitech Gateway -- First Sighting
â LoRa mDot; gateway antenna and mDot antenna
â Serial Monitor
â Ethernet configuration
â Network Server vs. Packet Forwarder
4. Multitech Conduit mLinux
Serial Monitor via mini-USB access
behind this plate
Ethernet USB slot
LoRa Card
(one only!)
http://www.multitech.net/developer/wp-content/uploads/2015/05/Conduit.pdf
Accessory cards
â Multi-Function Serial
â GPIO
â LoRaWAN
5. Network Server vs. Packet Forwarder
Default configuration is Network Server
â Ex. with Multitech mDot as node device (LoRa certified)
http://www.multitech.net/developer/software/lora/lora-network-server
http://www.multitech.com/brands/multiconnect-mdot
6. Network Server vs. Packet Forwarder
To connect to a 3rd party network server (TTN, Loriot) the gateway needs to be
configured as a packet forwarder
â Loriot packet forwarder: Easy!
â TTN packet forwarder: Several versions exist; state of flux
8. Multitech Conduit mLinux packet forwarders
Could use Multitechâs packet forwarder:
http://www.multitech.net/developer/software/lora/conduit-mlinux-convert-to-basic-packet-forwarder
⊠Except that 3rd party network server provide their own.
(This is the easiest way to specify settings.)
Examples:
1. The Things Network - https://www.thethingsnetwork.org/forum/ â several versions posted on Forum
2. Loriot - https://us1.loriot.io/home/documentation.html#docu/gw-basic â gateway-specific instructions
10. Multitech Conduit mLinux - Show me the packets
âNEWâ packet forwarder
Check gateway status and LoRa packets
Run installer.sh to configure gateway
18. Config #1: LoPy
https://www.pycom.io/product/lopy/
âThe LoPy is a triple bearer
MicroPython enabled microcontroller
(LoRa, Wifi, Bluetooth) â perfect
enterprise grade IoT platform for your
connected Things. With the latest
Espressif chipset the LoPy offers a
perfect combination of power,
friendliness and flexibility.â
20. TTN frequencies
â Entire band is from 902 to 928 MHz
â TTN uses sub-band 2
â Device needs to use same channels,
or else...
http://www.rfwireless-world.com/Tutorials/LoRa-channels-list.html
28. â Band centered at 903.08 MHz
â Loriot uses sub-band 1
â Device needs to use same channels
or else...
Loriot frequencies (???)
http://www.rfwireless-world.com/Tutorials/LoRa-channels-list.html
29. Config #2: Multitech mLinux Gateway - Loriot pkt forwarder
1. We need to replace packet forwarder: from TTN to Loriot
2. Loriot makes it easy - they provide supported forwarders for several gateways
3. Steps:
a. Stop TTN packet forwarder, or else⊠(see next slide)
b. Start Loriot packet forwarder
30. Config #2: From TTN to Loriot pkt forwarder
Connect to Loriot
Tight loop...
32. Config #2: From TTN to Loriot pkt forwarder
Stop pkt forwarder this way
(Kill -9 doesnât do it)
Start Loriot pkt forwarder in foreground
(Just in case...)
Reboot
33. Config #2: Loriot packet forwarder now running...
To remove Loriot packet gateway:
root@mtcdt:/opt/lrt# rm /etc/init.d/loriot-gw 2> /dev/null
root@mtcdt:/opt/lrt# update-rc.d loriot-gw remove 2> /dev/null
Removing any system startup links for loriot-gw ...
https://us1.loriot.io/home/gateways.html#gateway?gw=000800FFFF4A179C
42. Multitech Conduit - If completely stuck...
Reset: short pin push - reset; 5+ sec pin push - reset to factory defaults
Note: May not work if packet forwarder misbehaves
Ex. Tight loop waiting forever on Internet connection
http://www.multitech.net/developer/forums/topic/cannot-reset-conduit-mlinux
Reflash support: $80
http://www.multitech.net/developer/products/conduit/resetting-the-device/
44. Lessons Learned
1. Solder components even if you donât feel like it!
2. Upgrade your devices even if you donât feel like it!
3. Use recent information in postings on forums! This is still an emergent field!
4. Re-re-reminder to self: Documenting demos is painful!
â But projects are fun!