Skip to content

Latest commit

 

History

History
 
 

lorawan_abp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Sending data to TheThingsNetwork with LoRaWAN

How to send data to TheThingsNetwork (TTN) with the Featherwing RFM95W LoRaWAN module.

Running the example

Get TTN keys

  • Get a TTN account, open the TTN console and add a TTN application.
  • Add a TTN device, change its settings to Activation Method: ABP and uncheck Frame Counter Checks.
  • Check the the settings tab to get your TTN Device Address, Network Session Key and App Session Key (copy as MSB).

Set up your device

  • Set up the hardware, connect it to your computer via USB.
  • Copy the libraries to the lib directory on the CIRCUITPY drive.
  • Set ttn_dev_address_msb, ttn_net_session_key_msb and ttn_app_session_key_msb in the lorawan_abp.py example.
  • Copy the content of lorawan_abp.py to code.py on the CIRCUITPY drive.

See received data in TTN

  • Check the data tab of your device in the TTN console to see incoming data packets.
  • If no data shows up after 15 minutes, make sure you have TTN network coverage.

Libraries

From the CircuitPython libraries bundle:

  • Copy lib/adafruit_tinylora/* (see source and docs).
  • Copy lib/adafruit_bus_device/* (see source and docs).

Hardware

Credits