Old thread but FWIW:
To be able to compile and run and connect with TheThingsNetwork
on Particle Argon, I had to:
- use the Arduino (not Particle!) library arduino-lmic at GitHub - matthijskooijman/arduino-lmic: ⚠ This library is deprecated, see the README for alternatives.
by Matthijs Kooijman matthijs@stdin.nl- modify this library by renaming it lmic and making the following changes:
in src/lmic/config.h
//#define LMIC_PRINTF_TO Serialin src/hal/hal.cpp
//#define _GNU_SOURCE 1 // For fopencookie
//#include <stdio.h>
//#undef _GNU_SOURCE
and removing the entire 46 line block starting around line 211 with
#if defined(LMIC_PRINTF_TO)
#if defined(AVR)
*
*
#endif // !defined(AVR)
#endif // defined(LMIC_PRINTF_TO)Lastly, I used an Adafruit GPS featherwing (part 3133) and wired
IRQ - E
CS - A
RST - F
DI01 to D8 (this last connection is necessary to get the
sx1276 hoperf chip on the featherwing to be compatible with
TheThingsNetwork as per
Using Adafruit Feather 32u4 RFM95 as an TTN Node - Stories - Labs
See the section below
// Pin mapping
const lmic_pinmap lmic_pins
to see how these connections are programmed
- see picture of wiring