Skip to content

Instantly share code, notes, and snippets.

@salfare
Last active September 19, 2018 13:10
Show Gist options
  • Select an option

  • Save salfare/87380d9d5bd5507931931959ab030f82 to your computer and use it in GitHub Desktop.

Select an option

Save salfare/87380d9d5bd5507931931959ab030f82 to your computer and use it in GitHub Desktop.
Board with:
RFM95(W) Semtech 1276 LORAWAN http://www.hoperf.com/upload/rf/RFM95_96_97_98W.pdf
Arduino Pro Mini Atmega328P 3.3V 8Mhz
----------------
In Arduino IDE
Set Board to ARDUINO Pro or Pro Mini
Atmega328P 3.3V 8Mhz
Set verbose upload in Arduino IDE settings
Connect 3.3V,GND, RX,TX
You should see debug messages (set console speed to 115200)
-----------------
Download librarys as ZIP
https://github.com/matthijskooijman/arduino-lmic
https://github.com/Yveaux/Arduino_Vcc
https://github.com/rocketscream/Low-Power
Extract in Arduino library folder
in lmic/config.h uncomment and change both lines below to get additional output
#define LMIC_DEBUG_LEVEL 1
#define LMIC_PRINTF_TO Serial
-----------------------
Register application and device in https://console.thethingsnetwork.org/applications
after creating application and device:
in device settings, change mode to ABP, remove marker on "Frame Counter Check"
Copy and inserte the following Keys in your sketch if you want to newly provision the device as register in the previous step:
Network Session Key in msb order
App session Key in msb order
Device Address as hex string
Download sketch to board which changed values from above
To Download, I have to press the Reset switch (on Arduino) until I see the upload process starting, wait another 200ms and release the switch to download the sketch to board
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment