Joining by ABP

Has anyone been able to join a LoRaWAN network using ABP? I can join using OTAA but ABP fails each time. This may be related to the version of LoRaWAN being used by the module. Is there any way of finding out this value - a list of AT commands for the module would be useful.

Hi,
The firmware has been updated (1.1.5) and now everything's working fine.

Hello,

i have the Firmeware 1.2.0 on the MKRWAN1300 and cant connect via ABP to my Gateway.
With OTAA i see the join attempts on TTN, with ABP i see nothing.
Here is the code what i use (868100000Mhz).
Maybe someone figures out what iam doing wrong

#include <MKRWAN.h>

LoRaModem modem;

#include "arduino_secrets.h"

// Please enter your sensitive data in the arduino_secrets.h tab

String devAddr = SECRET_DEV_ADDR;
String nwkSKey = SECRET_NWKS_KEY;
String appSKey = SECRET_APPS_KEY;
int sensorPin = A0;
int sensorValue = 0;
void setup() {

  // put your setup code here, to run once:

  Serial.begin(115200);
  while (!Serial);

  // change this to your regional band (eg. US915, AS923, ...)

  if (!modem.begin(EU868)) {
    Serial.println("Failed to start module");
    while (1) {}

  };

  Serial.print("Your module version is: ");
  Serial.println(modem.version());
  Serial.print("Your device EUI is: ");
  Serial.println(modem.deviceEUI());
  int connected = modem.joinABP(devAddr, nwkSKey, appSKey);

  if (!connected) {

    Serial.println("Something went wrong; are you indoors? Move near a window and retry");

    while (1) {}

  }

  // Set poll interval to 60 secs.

  modem.minPollInterval(60);

  // NOTE: independently of this setting the modem will
  // not send more than one message every 2 minutes,
  // this is enforced by firmware and can not be changed.

}

void loop() {

  // read the value from the sensor:

  //sensorValue = analogRead(sensorPin);
  sensorValue = 230;

  // scale the reading and fit into 1 byte

  int scaledValue = sensorValue / 3;
  byte payload = scaledValue;
  Serial.print("Sensor reading = " );
  Serial.println(sensorValue);
  Serial.print("Scaled value = " );
  Serial.println(scaledValue);

  delay(1000);

  modem.beginPacket();
  modem.write(payload);
  int err = modem.endPacket(false);
  if (err > 0) {
    Serial.println("Data Sent");
  } else {
    Serial.println("Error");
  }
  delay(100000 * 60);
}

thanks!
Martin

Hello,

just a litte feedback from me:

In my case the problem was the Dragino LG02 gateway.
This gateway is NOT fully LoraWAN compatible.
After changing the gateway to a TTIG-868 the ABP Join is working perfect.

Best Regards,
Martin