Description
Using RFM95 breakout board from dragino as lora shield, v1.4 to be precise. Tried using the example code for the TTN OTAA basic example. Artemis does not handle it properly. Throws the error in the serial as
SparkFun_RedBoard_Artemis/MCCI LoRaWAN LMIC library/src/lmic/oslmic.c:53
which is the wrong pin mapping indicator, to my knowledge.
Surprisingly, if you specify "NSS PIN" to 10 rather than the correct pin map of the LoRa shield to the "Red boards". The system seems to get connected to the TTN but there is no data relay, only the device is joined to the network successfully.
//The pin map is supposed to be used
const lmic_pinmap lmic_pins = {
.nss = D10,
.rxtx = LMIC_UNUSED_PIN,
.rst = D9,
.dio = {D2, D6, LMIC_UNUSED_PIN},
};
//The pin map that works slightly
const lmic_pinmap lmic_pins = {
.nss = 10,
.rxtx = LMIC_UNUSED_PIN,
.rst = D9,
.dio = {D2, D6, LMIC_UNUSED_PIN},
};
D10 and 10 are different pins but using 10 seems to work slightly but cannot sent data which is not ideal.
I know, pin 10 in standard UNO boards is the SS/CS for the SPI comm lines.
My best guess is there is some sort of collision in the core using SPI lines.
The hardware is good no issue. The Lora shield works with other Ardunio R2 boards.
It is pretty weird that CS Pin wrongly specified as 10 causes the RFM95 to respond but not the actual D10 pin.