MKR1300, RAK7249 and TTN

I have added a RAK7249 Gateway on TTN and also added a MKR1300 as a device on TTN.

Using the LoraSendAndReceive.ino demo sketch, the RAK7249 log and TTN log show the MKR1300 successfully joining the network, but join.OTAA function returns 0 (meaning the connection failed).

Code snippet:
int connected = modem.joinOTAA(appEui, appKey);
if (!connected) {
Serial.println(“Something went wrong; are you indoor? Move near a window and retry”);
while (1) {}
}

Is anyone experiencing this issue?

Is there any way to see detailed debug information on why join.OTAA function is returning 0?

Thanks in advance.

It sounds like the MRK1300 did not receive the join accept.

Are you absolutely sure one was generated?

If so, on what frequency and spreading factor and for which RX window? Are you sure all of your settings are appropriate for your region?

Is there a transmit LED on the gateway that you can see blink corresponding to the join accept transmission?

I have not observed the blink but in the RAK7249 LoRa Packet Log is shows a “Join Request” followed by a “Join Accept” journal entries.

Hi. MKR1300 is a pain in the as*. :slight_smile:
First do you register the node DEV EUI in TTN device or try with TTN generated?
Use this example https://www.arduino.cc/en/Reference/MKRWANJoinOTAA
And do not forget to change DEV Eui in TTN with that the script gave you.

Regards,
Todor