background image

Decompress it and create a new Overo SD card with the following command, replacing

sdx

with the location of your SD

card within the

/dev/

folder:

$

dd if=overo-conduit-yocto.img of=/dev/sdx bs=4M

3.3

Packet Forwarder

The disk image provided above includes the TTN packet forwarder in

root

’s home folder so there is no need to build

it.

If you would like to build it from scratch, follow the directions for compiling the TTN packet forwarder located at

https://github.com/TheThingsNetwork/packet_forwarder

and copy the program to

/media/rootfs/home/root

.

To set your gateway up on

thethingsnetwork.org

, create a YAML file called

pkt-fwd.yml

in the same directory with

2 fields:

id

: This is the name given to your gateway in the TTN console

key

: This is the key, starting with

ttn-account-

, that is provided in the TTN console

The application is written for the Raspberry Pi

r

and a script is therefore required to adapt it to the Overo system. Create

a file called

start-packet-forwarder.sh

and paste in the following script:

#!/bin/sh

# Toggle reset GPIO
echo "21" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio21/direction
echo "0" > /sys/class/gpio/gpio21/value
sleep 1
echo "1" > /sys/class/gpio/gpio21/value
sleep 1
echo "0" > /sys/class/gpio/gpio21/value

# Create symlink to spidev1@0
if [ -c "/dev/spidev0.0" ]
then

echo "spidev0.0 already exists"

else

ln -s /dev/spidev1.0 /dev/spidev0.0

fi
# start the packet-forwarder
./packet-forwarder –config pkt-fwd.yml –ignore-crc

Copy the script into

\home\root\

on the SD card, insert it into the slot on the Overo COM and plug in the device. SSH

into it and run the script. The gateway should now be sending and receiving packets from the TTN API.

6

Содержание Overo

Страница 1: ...Overo Conduit Setup Guide Bring up guide for Gumstixr Overo LoRaWAN gateway board with thethingsnetwork org Revised October 2 2017...

Страница 2: ...ero Conduit Setup Guide Gumstix Inc 2017 October 2 2017 Contents 1 Introduction 1 2 Material 3 3 Setup 4 3 1 Hardware 4 3 2 Disk Image 5 3 3 Packet Forwarder 6 Appendices 7 A start_packet_forwarder sh...

Страница 3: ...ombined with an Overo EarthSTORM or AirSTORM and a RisingHF RHF0M301 Lo RaWAN gateway concentrator module and sub GHz antenna acts as a Wide Area Network WAN hub for IoT de vices The LoRaWAN topology...

Страница 4: ...ronic Design The following guide will assist in the initial setup and configuration of the COM board and software in order to operate the gateway on thethingsnetwork org It provides links images and s...

Страница 5: ...ore gumstix com overo lora html RisingHF RHF0M301 gateway concentrator module www risinghf com product rhf0m301 Overo COM store gumstix com coms overo coms html 5V 3A DC pwer supply store gumstix com...

Страница 6: ...ll also require an account on TheThingsNetwork TTN and a gateway configured in your TTN console 3 Setup 3 1 Hardware Assemble the equipment as shown 1 Snap the Overo COM onto the board Take care to al...

Страница 7: ...ule 3 Connect the Ethernet cable power adapter and antenna s Figure 6 All components connected 3 2 Disk Image A custom disk image is available for the Overo Conduit board at https drive google com ope...

Страница 8: ...onsole key This is the key starting with ttn account that is provided in the TTN console The application is written for the Raspberry Pir and a script is therefore required to adapt it to the Overo sy...

Страница 9: ...rection echo 0 sys class gpio gpio21 value sleep 1 echo 1 sys class gpio gpio21 value sleep 1 echo 0 sys class gpio gpio21 value Create symlink to spidev1 0 if c dev spidev0 0 then echo spidev0 0 alre...

Страница 10: ...ub com TheThingsNetwork packet_forwarder 6 store gumstix com accessories wall adapters 5v35a us power adapter html 3 store gumstix com coms overo coms html 3 store gumstix com kits html 4 store gumsti...

Отзывы: