Node wont join Gateway

Issue:Arduino mkr 1310 will not join with the RAK7258

Setup: Using the arduino LoraSendAndRecieve and connecting to TTN

LoRa® Server: TTN

Details:
My RAK7258 is registered and connected successfully to TTN.
I have the Application and MKR1310 device registered on TTN.
My MKR1310 will not join to the RAK7258 using this code:
modem.joinOTAA(appEui, appKey)
The above statement just hangs.
I dont see anything in the RAK system log that indicates a join.

Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]:

2021-01-04 21:59:07 UTC

Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: ### [UPSTREAM] ###
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: # RF packets received by concentrator: 0
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: # CRC_OK: 0.00, CRC_FAIL: 0.00, NO_CRC: 0.00
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: # RF packets forwarded: 0 (0 bytes)
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: # PUSH_DATA datagrams sent: 1 (135 bytes)
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: # PUSH_DATA acknowledged: 100.00
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: ### [DOWNSTREAM] ###
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: # PULL_DATA sent: 6 (100.00 acknowledged)
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: # RF packets sent to concentrator: 0 (0 bytes)
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: # BEACON queued: 0
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: # BEACON sent so far: 0
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: # BEACON rejected: 0
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: ### [JIT] ###
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: # SX1301/SX1302 time (PPS): 2799208518, offset us 0
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: ### [GPS] ###
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: # GPS sync is disabled
Mon Jan 4 14:59:07 2021 user.notice lora_pkt_fwd[16406]: ##### END #####

Any ideas?

Hei @FarmerJohn,

Can you check the actual packet log of the gateway?
This is under the Status -> LoRa Packet Logger tab.
Join requests should be visible there, as should be join accepts.

I remember the first version of the MKR1300 having an issue with timings causing it to miss the join accept in the receive window and endlessly loop itself.
Can you check as I suggested, should be something similar to this:

And remember the Gateway itself is not responsible for this, rather it is the LoRa Server in your case TTN, so it is very unlikely if the the gateway sees the join request at least that the fault lies in it.

Regards
Vladislav

What frequency band is your gateway?

What regional frequency plan is it configured for in TTN?

What regional frequency plan is specified in the modem.begin() of your sketch?

There are no join requests or any other packets listed in this area.

US915 for the gateway and the configuration in TTN and the modem.begin. I have also tried US915_Hybrid for the modem.begin.
Router is ttn-router-us-west
RAK region is US902-928
RAK frequency sub-band is channel 0~channel 7, channel 64

If you are using TTN, then this would be incorrect. TTN uses channels 8-15 and I believe 65

I didn’t see that in the TTN documentation. I tried it and it had no effect. I thought I might go through each sub-band and give it a try.