I need help with LMIC and TTN.
In my paxcounter project i ran into a problem which won’t fix, resulting in paxcounter software is currently unusable with TTN.
With current version 3.0.99.x of MCCI LMIC joins stuck in a loop with join requests.
This is not a hardware / device dependent problem. Same test devices joined with previous MCCI LMIC versions. The bug came in start of Sep 2019. I discussed this issue with the maintainer of MCCI LMIC, result is so far that this doesn’t look like a bug in LMIC.
Sometimes joins are succesful after a couple of minutes, when LMIC has climbed on higher SF levels.
The problem can be reproduced with the OTAA compliance test script found in the MCCI LMIC repository.
After a gateway reset next joins seem to be immediately succesful, but after a while the issue recurs. This could be a pointer to a duty cycle related problem.
Could some of you with LMIC experience please install this compliance script on ESP32 board, and run it on top of arduino-esp32 core?
My assumption is, that this issue appears with EU868 frequency scheme only, and maybe only with TTN, not with e.g. LoRa-Server.
I spent a lot of time in analyzing this, but didn’t find evidence where to look at. Need some help.
Output of OTAA compliance script:
LMIC version 18.104.22.168 configured for region 1.
Remember to select ‘Line Ending: Newline’ at the bottom of the monitor window.
calibration not supported
316928 (5070 ms): LMIC_setTxData_strict, datum=0x1000004. opmode=0
316943 (5071 ms): EV_JOINING
741091 (11857 ms): EV_TXSTART: ch=1 rps=0x01 (SF7 BW125 CR 4/5 Crc IH=0), datarate=5, opmode=88C, txend=741141, avail=0
745010 (11920 ms): radio_irq_handler_v2: LoRa, datum=0x8. opmode=88C
1055259 (16884 ms): EV_RXSTART: freq=868.3 rps=0x81 (SF7 BW125 CR 4/5 NoCrc IH=0), datarate=5, opmode=88C, txend=745006, avail=0, delta ms 4964
1059947 (16959 ms): radio_irq_handler_v2: LoRa, datum=0x80. opmode=88C
1119947 (17919 ms): EV_RXSTART: freq=869.5 rps=0x86 (SF12 BW125 CR 4/5 NoCrc IH=0), datarate=5, opmode=88C, txend=745006, avail=0, delta ms 5999
1134447 (18151 ms): radio_irq_handler_v2: LoRa, datum=0x80. opmode=88C
1134573 (18153 ms): EV_JOIN_TXCOMPLETE, saveIrqFlags 0x80
EV_JOIN_TXCOMPLETE means LMIC stack has completed sending a join request, but did not get (or did not finish processing) a join accept message in time, thus could not join the network.