Sodaq one cant configure LORA

Hi,

I just received a sodaqOne but i cant seem to connect to the network. I try the example sketch and the output i get is:

#include <TheThingsNetwork.h>

// Define inputs/outputs pins
#define relay 10
#define potentiometer A11

// Set your AppEUI and AppKey
//const char *devEui = "Redacted";
const char *appEui = "Redacted";
const char *appKey = "Redacted";

#define loraSerial Serial1
#define debugSerial SerialUSB

// Replace REPLACE_ME with TTN_FP_EU868 or TTN_FP_US915
#define freqPlan TTN_FP_EU868 // assign your freq. zone

TheThingsNetwork ttn(loraSerial, debugSerial, freqPlan);

void setup()
{
  loraSerial.begin(57600);
  debugSerial.begin(9600);

  // Wait a maximum of 10s for Serial Monitor
  while (!debugSerial && millis() < 10000)
    ;

  // status & join requests
  debugSerial.println("-- STATUS");
  ttn.showStatus();

  debugSerial.println("-- JOIN");  
  ttn.join(appEui, appKey);

  // Handle downlink data
  ttn.onMessage(message);

  pinMode(relay, OUTPUT);
  pinMode(potentiometer, INPUT);
}

void loop()
{
  debugSerial.println("-- LOOP");

  uint32_t potentiometer_value = analogRead(potentiometer);
  debugSerial.println(potentiometer_value);

  // Prepare payload of 2 byte to report potentiometer values
  byte payload[2];
  payload[0] = highByte(potentiometer_value);
  payload[1] = lowByte(potentiometer_value);

  // Send potentiometer value
  ttn.sendBytes(payload, sizeof(payload));

  delay(10000);
}

/* 
 * Declaration for the downlink message received
 */
void message(const uint8_t *payload, size_t size, port_t port)
{
  debugSerial.println("-- MESSAGE");
  debugSerial.print("Received " + String(size) + " bytes on port " + String(port) + ":");

  if (payload[0] == 1) {
    digitalWrite(relay, HIGH);
  } else {
    digitalWrite(relay, LOW);
  }

  debugSerial.println();
}
Sending: mac save 
Sending: mac set rx2 3 869525000
Response is not OK: invalid_param
Sending: mac set ch drrange 1 0 6
Response is not OK: invalid_param
Sending: mac set ch dcycle 0 799
Response is not OK: invalid_param
Sending: mac set ch dcycle 1 799
Response is not OK: invalid_param
Sending: mac set ch dcycle 2 799
Response is not OK: invalid_param
Sending: mac set ch dcycle 3 799
Response is not OK: invalid_param
Sending: mac set ch freq 3 867100000
Response is not OK: invalid_param
Sending: mac set ch drrange 3 0 5
Response is not OK: invalid_param
Sending: mac set ch status 3 on
Sending: mac set ch dcycle 4 799
Response is not OK: invalid_param
Sending: mac set ch freq 4 867300000
Response is not OK: invalid_param
Sending: mac set ch drrange 4 0 5
Response is not OK: invalid_param
Sending: mac set ch status 4 on
Sending: mac set ch dcycle 5 799
Response is not OK: invalid_param
Sending: mac set ch freq 5 867500000
Response is not OK: invalid_param
Sending: mac set ch drrange 5 0 5
Response is not OK: invalid_param
Sending: mac set ch status 5 on
Sending: mac set ch dcycle 6 799
Response is not OK: invalid_param
Sending: mac set ch freq 6 867700000
Response is not OK: invalid_param
Sending: mac set ch drrange 6 0 5
Response is not OK: invalid_param
Sending: mac set ch status 6 on
Sending: mac set ch dcycle 7 799
Response is not OK: invalid_param
Sending: mac set ch freq 7 867900000
Response is not OK: invalid_param
Sending: mac set ch drrange 7 0 5
Response is not OK: invalid_param
Sending: mac set ch status 7 on
Sending: mac set pwridx 1
Response is not OK: invalid_param
Sending: mac set retx 7
Sending: mac set dr 5
Response is not OK: invalid_param
Sending: mac join otaa 
Join not accepted: denied
Check your coverage, keys and backend status.
Sending: mac join otaa 
Join not accepted: denied

So it looks like a configuration is not set correctly. on a forum I found this can be related to the response time of the chip, is there anything I can adjust here?

Hi @rensvdn,

Did you try the example sketches on the sodaq support site too?
LoRaWAN - SODAQ Support pages

Do you have ttn coverage near your test location?
The Things Network

Do you have the latest firmware version on your module?
We have an update tool on GitHub: SodaqMoja/RN2483FirmwareUpdater (github.com)

Best regards,
Jan

I have updated the firmware and tried the sample sketch but still no connection.

I have another board (heltec AB02S) which connects to the network just fine, so i thought this board would work better, but maybe the range is less. For now I dont have the correct jst connectors to connect a battery, when they arrive I will bike to the closest ttn router to test if the range is the problem.

Hi @rensvdn,

Do you test with the same antenna?
I know we ship the SODAQ One with a Molex, it performs a bit less when not attached to a casing.
The idea is when you stick it into a casing the tuning is good and you have good antenna performance.

Do you set the same spreadingfactor?
It can be a major difference if you use SF7 vs SF12.

Which settings did you use in TTN?
Here are the recommended settings:
https://support.sodaq.com/Boards/One/Examples/Tracker/#the-things-network

Best regards,
Jan