OTAA activation denied


#1

I need some help on my TTN Uno. I’m from Malaysia. I have the 915MHz gateway which is activated and on right in front of me. I ran the OTAA sample code:

Blockquote
#include <TheThingsNetwork.h>
// Set your AppEUI and AppKey
const char *appEui = “70B3D57ED001A3AB”;
const char *appKey = “7FC14712C69CA8E72128AD4A3B1BD71B”;
#define loraSerial Serial1
#define debugSerial Serial
// Replace REPLACE_ME with TTN_FP_EU868 or TTN_FP_US915
#define freqPlan TTN_FP_AS920_923
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)
;
debugSerial.println("-- STATUS");
ttn.showStatus();
debugSerial.println("-- JOIN");
ttn.join(appEui, appKey);
}
void loop()
{
debugSerial.println("-- LOOP");
// Prepare payload of 1 byte to indicate LED status
byte payload[1];
payload[0] = (digitalRead(LED_BUILTIN) == HIGH) ? 1 : 0;
// Send it off
ttn.sendBytes(payload, sizeof(payload));
delay(10000);
}

But I’m getting this error : Sending: mac join otaa , Join not accepted: denied, Check your coverage, keys and backend status.
Here’s the full result :

  • STATUS
    EUI: 0004A30B001B87F6
    Battery: 3233
    AppEUI: 70B3D57ED001A3AB
    DevEUI: 0004A30B001B87F6
    Data Rate: 3
    RX Delay 1: 1000
    RX Delay 2: 2000
    – JOIN
    Model: RN2903
    Version: 0.9.5
    Sending: mac set deveui 0004A30B001B87F6
    Sending: mac set adr off
    Sending: mac set deveui 0004A30B001B87F6
    Sending: mac set appeui 70B3D57ED001A3AB
    Sending: mac set appkey 7FC14712C69CA8E72128AD4A3B1BD71B
    Sending: mac save
    Sending: mac set adr off
    Sending: mac set rx2 2 923200000
    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 freq 2 922000000
    Response is not OK: invalid_param
    Sending: mac set ch drrange 2 0 5
    Response is not OK: invalid_param
    Sending: mac set ch status 2 on
    Sending: mac set ch dcycle 3 799
    Response is not OK: invalid_param
    Sending: mac set ch freq 3 922200000
    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 922400000
    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 922600000
    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 922800000
    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 923000000
    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.

What is meant by response is not OK : invalid param ?


#2

Please see https://forum.loraserver.io/search?q=debug%20otaa.


closed #3