(Sorry for posting such a basic question once more, but I read most of the topics and projects which cover all kind of aspects, but I didn’t managed to get it working. I tried differrent pin mappings, different gateways, double-checked byteorder and keys, … but it doesn’t work. And because I’m new to Lora(WAN) and Arduino and don’t know if I need to solder some wires, change mapping, … I need advice of more experienced devs)
Hi there,
to getting started with TTN, I bought a Lilygo TTGO board, that is labeled “T3 v1.6”. Then I used the LMIC OTAA example code, with IBM LMIC v 1.5 arduino2 lib. I also enabled the serial logging.
I changed the pin mapping, but I’m not sure if this is the right one:
iconst lmic_pinmap lmic_pins = {
.nss = 18,
.rxtx = LMIC_UNUSED_PIN,
.rst = 12,
.dio = {/*dio0*/ 26, /*dio1*/ 32, /*dio2*/ 33}
};
I checked it against the paxcounter mapping for TTGO 2.1 pcb 1.6 (new), so I think it’s ok?
Of course I also created an test TTN app and personalised the LoraWAN parameters, checking LSB/MSB:
static const u1_t PROGMEM APPEUI[8]={ 0x21, 0xC4, 0xxx, 0xxx, 0x7E, 0xD5, 0xB3, 0x70 };
void os_getArtEui (u1_t* buf) { memcpy_P(buf, APPEUI, 8);}
static const u1_t PROGMEM DEVEUI[8]={ 0xC1, 0xF9, 0x87, 0xxx, 0xxx, 0x8F, 0x58, 0x00 };
void os_getDevEui (u1_t* buf) { memcpy_P(buf, DEVEUI, 8);}
static const u1_t PROGMEM APPKEY[16] = { 0x77, 0xEB, 0x59, 0x76, 0xxx, 0xxx, 0xxx, 0xC5, 0xE0, 0x22, 0x95, 0xxx, 0x63, 0x13, 0xAA, 0x94 };
void os_getDevKey (u1_t* buf) { memcpy_P(buf, APPKEY, 16);}
While the code compiles fine and is sucessfull transfered, I see only the login attempt and changing to different frequencies, but no EV_JOINED nor a different opmode:
16:20:03.600 → 396223: engineUpdate, opmode=0xc
16:20:17.012 → 396262: TXMODE, freq=868300000, len=23, SF=7, BW=125, CR=4/5, IH=0
16:20:22.054 → 712724: RXMODE_SINGLE, freq=868300000, SF=7, BW=125, CR=4/5, IH=0
16:20:23.116 → 778200: RXMODE_SINGLE, freq=869525000, SF=12, BW=125, CR=4/5, IH=0
16:20:23.281 → 788465: engineUpdate, opmode=0xc
16:21:23.224 → 4535771: engineUpdate, opmode=0xc
16:21:23.257 → 4535804: TXMODE, freq=868500000, len=23, SF=7, BW=125, CR=4/5, IH=0
16:21:28.301 → 4852267: RXMODE_SINGLE, freq=868500000, SF=7, BW=125, CR=4/5, IH=0
16:21:29.329 → 4917742: RXMODE_SINGLE, freq=869525000, SF=12, BW=125, CR=4/5, IH=0
16:21:29.495 → 4928006: engineUpdate, opmode=0xc
16:22:31.753 → 8818243: engineUpdate, opmode=0xc
16:22:31.786 → 8818276: TXMODE, freq=868100000, len=23, SF=8, BW=125, CR=4/5, IH=0
16:22:36.858 → 9138050: RXMODE_SINGLE, freq=868100000, SF=8, BW=125, CR=4/5, IH=0
16:22:37.918 → 9203430: RXMODE_SINGLE, freq=869525000, SF=12, BW=125, CR=4/5, IH=0
16:22:38.084 → 9213694: engineUpdate, opmode=0xc
16:24:30.822 → 16261262: engineUpdate, opmode=0xc
16:24:30.855 → 16261296: TXMODE, freq=868300000, len=23, SF=8, BW=125, CR=4/5, IH=0
16:24:35.963 → 16581070: RXMODE_SINGLE, freq=868300000, SF=8, BW=125, CR=4/5, IH=0
16:24:36.990 → 16646451: RXMODE_SINGLE, freq=869525000, SF=12, BW=125, CR=4/5, IH=0
16:24:37.156 → 16656714: engineUpdate, opmode=0xc
Of course also no data at the application console…
While trying different 4…5 different pin combinations and other locations ~1km close to the next gateway, I must confess, that I don’t have a idea, whats the problem? How can I debug, if a transmission is really send or if it’s a problem of the gateway / backbone / …?
Any help appreciated