Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

joinABP not working since library update from 1.0.14 to 1.0.15 #85

Open
wapel opened this issue Feb 16, 2021 · 5 comments
Open

joinABP not working since library update from 1.0.14 to 1.0.15 #85

wapel opened this issue Feb 16, 2021 · 5 comments
Labels
type: imperfection Perceived defect in any part of project

Comments

@wapel
Copy link

wapel commented Feb 16, 2021

Using this command in my sketch on MKR1310:
Firmware: 1.2.1

  connected = modem.joinABP(devAddr, nwkSKey, appSKey);
  
  if (!connected) {
    if(debug)Serial.println("Lora ABP Connection failed !");
    while (1) {}
  } else {
    if(debug)Serial.println("Connected successful !");
  }

The "joinABP" is not working anymore since library update from 1.0.14 to 1.0.15
Perhaps the additional "sendAT()" is a problem ?
Thanks for help.

@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Feb 16, 2021
@flhofer
Copy link

flhofer commented Apr 26, 2021

Same issue here, I observed the opposite problem. Updating firmware from 1.2.0 to 1.2.3 with the same 1.10 library and the thing stopped working. Must be a common change that was implemented in fw and library. There was something done to the default AT responses, I think.
issue

@flhofer
Copy link

flhofer commented Apr 28, 2021

Fixed it on my side. The issue is that the new firmware responds according to standard with +OK on every command. So after the join event feedback, there is another +OK message in the queue. The status read comming next will then just read a +OK and hang forever for the = sign to read the join status.

In line 950 of Mkrwan.h after the wait for "+EVENT=1,1" add

    if (waitResponse() != 1) {
      return false;
    }

This wait defaults to 1 second wait for +OK or +ERR

@flhofer
Copy link

flhofer commented Apr 30, 2021

better solution #93. The +OK is due to an implemented hack but it doesn't seem to always show up. A now timed skipUntil should resolve the issue

@flhofer
Copy link

flhofer commented Jan 31, 2022

See the not yet released v1.2.4 of my pull request. It includes the necessary modem firmware update in the MKRWAN standalone sketch. (link to repo next to the title flhofer...)

@Tocio88
Copy link

Tocio88 commented Jul 23, 2024

Hi, i'm using the library and when i do joinABP seems waiting forever for something. I'm using the firstConfiguration sketch.
When using the joinOTAA it works not problem, getting the data from the TTN console and parsing them to joinABP, i don't get any error and nothing happens, also in the TTN console no sign of data tx. I'm having my own gateway nextdoor, so no problem with the network i guess...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

4 participants