mcci-catena / arduino-lmic

LoraWAN-MAC-in-C library, adapted to run under the Arduino environment
https://forum.mcci.io/c/device-software/arduino-lmic/
MIT License
645 stars 211 forks source link

Joining to helium network fails, network sends JoinAccept but sensor doesn't receive EV_JOINED event #946

Open yaydogan opened 1 year ago

yaydogan commented 1 year ago

Hi,

I built a sensor using arduino board + RFM95-915MHz LORA SX1276 wireless transceiver module. My antenna is about 80mm in length. I can see the JoinRequest and JoinAccept on the helium console but I don't see the sensor receiving EV_JOINED event. The sensor keeps trying to join the network. Also the JoinRequest message is not consistently sent right after resetting the board, sometimes it is quick, sometimes it is after number of tries.

Any ideas what I shall be checking for? Could it be the distance between my sensor the closest hotspot it can reach?

Attached are the screenshot for Join messages on console and logs from sensor showing it keeps trying.

Screenshot 2023-07-25 at 2 02 08 PM

Sensor logs:

RXMODE_RSSI 000000006314: Event: EV_JOINING 6339: engineUpdate, opmode=0x4 000000006424: Event: EV_TXSTART 6509: TXMODE, freq=903900000, len=23, SF=10, BW=125, CR=4/5, IH=0 start single rx: now-rxtime: 4 342202: RXMODE_SINGLE, freq=923300000, SF=10, BW=500, CR=4/5, IH=0 rxtimeout: entry: 343088 rxtime: 342180 entry-rxtime: 908 now-entry: 5 rxtime-txend: 312494 start single rx: now-rxtime: 5 404702: RXMODE_SINGLE, freq=923300000, SF=12, BW=500, CR=4/5, IH=0 rxtimeout: entry: 408277 rxtime: 404680 entry-rxtime: 3597 now-entry: 4 rxtime-txend: 374994 000000408345: Event: EV_JOIN_TXCOMPLETE 408360: engineUpdate, opmode=0x4 409384: engineUpdate, opmode=0x4 000000409444: Event: EV_TXSTART 409524: TXMODE, freq=904600000, len=23, SF=8, BW=500, CR=4/5, IH=0 start single rx: now-rxtime: 4 723817: RXMODE_SINGLE, freq=923900000, SF=7, BW=500, CR=4/5, IH=0 rxtimeout: entry: 723918 rxtime: 723795 entry-rxtime: 123 now-entry: 5 rxtime-txend: 312494 start single rx: now-rxtime: 5 786317: RXMODE_SINGLE, freq=923300000, SF=12, BW=500, CR=4/5, IH=0 rxtimeout: entry: 789892 rxtime: 786295 entry-rxtime: 3597 now-entry: 4 rxtime-txend: 374994 000000789959: Event: EV_JOIN_TXCOMPLETE 789974: engineUpdate, opmode=0x4 900941: engineUpdate, opmode=0x4 000000901001: Event: EV_TXSTART 901080: TXMODE, freq=905300000, len=23, SF=10, BW=125, CR=4/5, IH=0 start single rx: now-rxtime: 4 1236774: RXMODE_SINGLE, freq=927500000, SF=10, BW=500, CR=4/5, IH=0 rxtimeout: entry: 1237659 rxtime: 1236751 entry-rxtime: 908 now-entry: 4 rxtime-txend: 312494 start single rx: now-rxtime: 4 1299272: RXMODE_SINGLE, freq=923300000, SF=12, BW=500, CR=4/5, IH=0 rxtimeout: entry: 1302847 rxtime: 1299251 entry-rxtime: 3596 now-entry: 4 rxtime-txend: 374994 000001302916: Event: EV_JOIN_TXCOMPLETE 1302929: engineUpdate, opmode=0x4 1317857: engineUpdate, opmode=0x4 000001317918: Event: EV_TXSTART 1317999: TXMODE, freq=904600000, len=23, SF=8, BW=500, CR=4/5, IH=0 start single rx: now-rxtime: 4 1632292: RXMODE_SINGLE, freq=923900000, SF=7, BW=500, CR=4/5, IH=0 rxtimeout: entry: 1632393 rxtime: 1632270 entry-rxtime: 123 now-entry: 5 rxtime-txend: 312494 start single rx: now-rxtime: 4 1694791: RXMODE_SINGLE, freq=923300000, SF=12, BW=500, CR=4/5, IH=0 rxtimeout: entry: 1698366 rxtime: 1694770 entry-rxtime: 3596 now-entry: 4 rxtime-txend: 374994 000001698435: Event: EV_JOIN_TXCOMPLETE 1698450: engineUpdate, opmode=0x4 1718239: engineUpdate, opmode=0x4 000001718300: Event: EV_TXSTART 1718379: TXMODE, freq=904700000, len=23, SF=10, BW=125, CR=4/5, IH=0 start single rx: now-rxtime: 4 2054072: RXMODE_SINGLE, freq=925700000, SF=10, BW=500, CR=4/5, IH=0 rxtimeout: entry: 2054957 rxtime: 2054050 entry-rxtime: 907 now-entry: 5 rxtime-txend: 312494 start single rx: now-rxtime: 4 2116571: RXMODE_SINGLE, freq=923300000, SF=12, BW=500, CR=4/5, IH=0 rxtimeout: entry: 2120146 rxtime: 2116550 entry-rxtime: 3596 now-entry: 5 rxtime-txend: 374994 000002120216: Event: EV_JOIN_TXCOMPLETE 2120241: engineUpdate, opmode=0x4 000002120423: Event: EV_TXSTART 2120642: TXMODE, freq=904600000, len=23, SF=8, BW=500, CR=4/5, IH=0 start single rx: now-rxtime: 5 2434936: RXMODE_SINGLE, freq=923900000, SF=7, BW=500, CR=4/5, IH=0 rxtimeout: entry: 2435037 rxtime: 2434913 entry-rxtime: 124 now-entry: 5 rxtime-txend: 312494 start single rx: now-rxtime: 5 2497435: RXMODE_SINGLE, freq=923300000, SF=12, BW=500, CR=4/5, IH=0 rxtimeout: entry: 2501009 rxtime: 2497413 entry-rxtime: 3596 now-entry: 5 rxtime-txend: 374994 000002501079: Event: EV_JOIN_TXCOMPLETE 2501094: engineUpdate, opmode=0x4 2619486: engineUpdate, opmode=0x4 000002619548: Event: EV_TXSTART 2619627: TXMODE, freq=904300000, len=23, SF=10, BW=125, CR=4/5, IH=0 start single rx: now-rxtime: 5 2955320: RXMODE_SINGLE, freq=924500000, SF=10, BW=500, CR=4/5, IH=0 rxtimeout: entry: 2956205 rxtime: 2955297 entry-rxtime: 908 now-entry: 5 rxtime-txend: 312494 start single rx: now-rxtime: 4 3017818: RXMODE_SINGLE, freq=923300000, SF=12, BW=500, CR=4/5, IH=0 rxtimeout: entry: 3021393 rxtime: 3017797 entry-rxtime: 3596 now-entry: 4 rxtime-txend: 374994 000003021462: Event: EV_JOIN_TXCOMPLETE 3021480: engineUpdate, opmode=0x4 3030468: engineUpdate, opmode=0x4 000003030529: Event: EV_TXSTART 3030609: TXMODE, freq=904600000, len=23, SF=8, BW=500, CR=4/5, IH=0 start single rx: now-rxtime: 4 3344902: RXMODE_SINGLE, freq=923900000, SF=7, BW=500, CR=4/5, IH=0 rxtimeout: entry: 3345004 rxtime: 3344880 entry-rxtime: 124 now-entry: 4 rxtime-txend: 312494 start single rx: now-rxtime: 4 3407401: RXMODE_SINGLE, freq=923300000, SF=12, BW=500, CR=4/5, IH=0 rxtimeout: entry: 3410976 rxtime: 3407380 entry-rxtime: 3596 now-entry: 4 rxtime-txend: 374994 000003411045: Event: EV_JOIN_TXCOMPLETE 3411063: engineUpdate, opmode=0x4