Just another update, so we have either put the mdot to sleep for a period equal to the join back off or a larger interval as much as 5 minutes when we have over 12 contiguous join/ack failures.
Here is trace log of the mdot writing out to the debug o/p. We have been disconnected from the network for 40 minutes, we would get the getNextTxMs, either return 0 seconds, 1 second or 2 seconds, and we have ensured all the join back of times were adhered to, however all of a sudden we got a join back of time of 3276 seconds, which is massive. So I was hoping if we can get a better sense of the algorithm behind the getNextTxMs call as to how does it decide what the interval would be?
4/19/2017 1:11:50 PM: [ERROR] Failed to join network
4/19/2017 1:11:50 PM: [ERROR] failed to join network -4:Join Error, Join Attempts: 2
4/19/2017 1:11:50 PM: [DEBUG] getNextTxMs: 0
4/19/2017 1:11:51 PM: [TRACE] Initiating join...
4/19/2017 1:11:51 PM: [TRACE] Join Network - Auto OTA
4/19/2017 1:11:51 PM: [TRACE] Join attempt #96
4/19/2017 1:11:51 PM: [INFO] Send join request RxDelay: 1 Rx1Offset: 0 Rx2Freq: 923300000 Rx2Dr: 8
4/19/2017 1:11:51 PM: [TRACE] DevEUI:
4/19/2017 1:11:51 PM: [TRACE] AppEUI:
4/19/2017 1:11:51 PM: [TRACE] AppKey:
4/19/2017 1:11:51 PM: [WARNING] Max time-on-air limit met for current join backoff period
4/19/2017 1:11:51 PM: [WARNING] JoinBackoff: 3276 seconds Time On Air: 42368 / 36000
4/19/2017 1:11:51 PM: [TRACE] Sending 23 bytes
4/19/2017 1:11:51 PM: [TRACE] Number of available channels: 1
4/19/2017 1:11:51 PM: [DEBUG] Using channel 67 : 907800000
4/19/2017 1:11:51 PM: [INFO] Configure radio for TX
4/19/2017 1:11:51 PM: [DEBUG] Session pwr: 20 ant: 3 max: 26
4/19/2017 1:11:51 PM: [DEBUG] Radio Power index: 20 output: 19 total: 22
4/19/2017 1:11:51 PM: [DEBUG] TX PWR: 20 DR: 4 SF: 8 BW: 2 CR: 1 PL: 8 CRC: 1 IQ: 0
4/19/2017 1:11:51 PM: [INFO] Configure radio for TX
4/19/2017 1:11:51 PM: [DEBUG] Session pwr: 20 ant: 3 max: 26
4/19/2017 1:11:51 PM: [DEBUG] Radio Power index: 20 output: 19 total: 22
4/19/2017 1:11:51 PM: [DEBUG] TX PWR: 20 DR: 4 SF: 8 BW: 2 CR: 1 PL: 8 CRC: 1 IQ: 0
4/19/2017 1:11:51 PM: [DEBUG] mDotEvent - TxDone
4/19/2017 1:11:51 PM: [TRACE] Event: OK
4/19/2017 1:11:51 PM: [TRACE] Flags Tx: 1 Rx: 0 RxData: 0 RxSlot: 0 LinkCheck: 0 JoinAccept: 0
4/19/2017 1:11:51 PM: [TRACE] Info: Status: 0 ACK: 0 Retries: 0 TxDR: 4 RxPort: 0 RxSize: 0 RSSI: 0 SNR: 0 Energy: 0 Margin: 0 Gateways: 0
4/19/2017 1:11:52 PM: [TRACE] RX1 on freq: 925100000
4/19/2017 1:11:52 PM: [TRACE] RX DR: 13 SF: 7 BW: 2 CR: 1 PL: 8 STO: 16 CRC: 1 IQ: 1
4/19/2017 1:11:52 PM: [TRACE] Stats: Up: 155 Down: 48 DupTx: 0 CRC Errors: 2
4/19/2017 1:11:52 PM: [INFO] Rx Window 1
4/19/2017 1:11:52 PM: [TRACE] Event: RX_TIMEOUT
4/19/2017 1:11:52 PM: [TRACE] Flags Tx: 0 Rx: 0 RxData: 0 RxSlot: 1 LinkCheck: 0 JoinAccept: 0
4/19/2017 1:11:52 PM: [TRACE] Info: Status: 3 ACK: 0 Retries: 0 TxDR: 4 RxPort: 0 RxSize: 0 RSSI: 0 SNR: 0 Energy: 0 Margin: 0 Gateways: 0
4/19/2017 1:11:53 PM: [TRACE] RX2 on freq: 925100000
4/19/2017 1:11:53 PM: [TRACE] RX DR: 8 SF: 12 BW: 2 CR: 1 PL: 8 STO: 12 CRC: 1 IQ: 1
4/19/2017 1:11:53 PM: [TRACE] Stats: Up: 155 Down: 48 DupTx: 0 CRC Errors: 2
4/19/2017 1:11:53 PM: [INFO] Rx Window 2
4/19/2017 1:11:53 PM: [TRACE] Event: RX_TIMEOUT
4/19/2017 1:11:53 PM: [TRACE] Flags Tx: 0 Rx: 0 RxData: 0 RxSlot: 2 LinkCheck: 0 JoinAccept: 0
4/19/2017 1:11:53 PM: [TRACE] Info: Status: 3 ACK: 0 Retries: 0 TxDR: 4 RxPort: 0 RxSize: 0 RSSI: 0 SNR: 0 Energy: 0 Margin: 0 Gateways: 0
4/19/2017 1:11:53 PM: [ERROR] Failed to join network
4/19/2017 1:11:54 PM: [ERROR] failed to join network -4:Join Error, Join Attempts: 3
4/19/2017 1:11:54 PM: [DEBUG] getNextTxMs: 3274000