I have problems with very intermittent joining to TTN.
Here is my setup:
- MKR1310
- RAK 7258 Gateway
- US915
- OTAA
- Sub-band 2 (channel 8~channel 15, 65)
I know everything basically works because I can join on rare occasions (maybe one in 30 attempts!). Once I do join I can send and receive data with my TTN Application repeatedly. I am using the example LoraSendAndReceive modified for my setup.
The problem appears to be buried in the modem.join line of code defined in MKRWAN.h
int connected = modem.joinOTAA(appEui, appKey);
For all the times that I do not join the sketch stops on this line and never returns to the sketch. There is no join request packets visible in the gateway or the TTN.
On the rare occasion that my MKR1310 does join I can send and receive data multiple times but eventually my sketch will also hang in the modem.available line of code.
if (!modem.available()) {
Serial.println("No downlink message received at this time.");
return;
}
char rcv[64];
int i = 0;
Serial.println("downlink message coming");
After sometimes getting no downlink messages (expected) and sometimes getting the downlink message I sent (expected), eventually neither message prints and the sketch hangs forever waiting for the modem.available to finish similar to the modem.join problem.
I have also tried MKRWAN_V2.h but with that one I end up with failure to start module:
if (!modem.begin(US915)) {
Serial.println("Failed to start module");
while (1) {}
};
What is wrong with the modem function classes?
Why are they designed with the possibility to just hang with no feedback?
My SNR is around 8 to 12
My RSSI is around -29 to -60
Based on this post it seems that there are serious problems with MKRWAN.h or the MKR1310 firmware
Are they the same issues as mine?
How can arduino sell the MKR1310 without any disclaimers that it doesn't even work?
Sorry I am just very frustrated after the hours I have put in.
Can anyone confirm where my problem is or provide a timeline to planned fixes?
Thankyou.