Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:frank_kunz
basicstation
README-ttn-suse.md
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File README-ttn-suse.md of Package basicstation
# Running LoRa Basics™ Station with The Things Network ## Prerequisites * Create an account for The Things Network here: https://www.thethingsnetwork.org * Create a gateway. * Create an API key for CUPS with "View gateway information", "Retrieve secrets associated with a gateway" and "Edit basic gateway settings" rights. * Create an API key for LNS with "Link as Gateway to a Gateway Server for traffic exchange, i.e. write uplink and read downlink" rights. * Set the Gateway EUI so that it matches the EUI of the first network device: ``` cat /sys/class/net/<netdev>/address | sed -r 's/[:]+//g' | sed -e 's#\(.\{6\}\)\(.*\)#\1FFFE\2#g' ``` ## Configuration Steps The station working directory is /var/lib/lora. The service runs as user lora. Make sure that all configuration files are located in the working directory and are readible by the lora user. The example is for the EU region. Read here https://www.thethingsindustries.com/docs/getting-started/cloud-hosted/ for other regions. * Stop the station by running as root ``` systemctl stop basicstation.service ``` * Create a station.conf file. This configuration depends on the LoRa concentrator hardware you use. Get the details how to create a file from here: https://doc.sm.tc/station or try one of the example files from here: https://github.com/lorabasics/basicstation/tree/master/examples * Create cups.uri file ``` echo "https://eu1.cloud.thethings.network:443" > cups.uri ``` * Create cups.trust file ``` wget -O cups.trust https://letsencrypt.org/certs/isrgrootx1.pem ``` * Create cups.key file ``` export CUPS_KEY="<cups key secret data>" echo "Authorization: Bearer $CUPS_KEY" | perl -p -e 's/\r\n|\n|\r/\r\n/g' > cups.key ``` * Start the station by running as root ``` systemctl start basicstation.service ``` ## Receiver Test Use the util_pkt_logger tool to run a recevier test. This requires a configuration file in the current working directory. Get one from here: https://raw.githubusercontent.com/Lora-net/lora_gateway/master/util_pkt_logger/global_conf.json and rename it to debug_conf.json.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor