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

US915 #30

Open
andreax64 opened this issue Jan 20, 2023 · 0 comments
Open

US915 #30

andreax64 opened this issue Jan 20, 2023 · 0 comments
Labels
type: imperfection Perceived defect in any part of project

Comments

@andreax64
Copy link

andreax64 commented Jan 20, 2023

Using MKRWAN 1310.
I'm trying to setup an OTAA connection (modem.joinOTAA method) with US915 band, obviously doesn't work...
But the question is why if I call the modem.getConf() method it tells me that Freq= 868000000 Hz? I don't think that's correct.

// CODE
#include <MKRWAN_v2.h>

LoRaModem modem;

String appEui = "xxxxxxx";
String appKey = "xxxxxxxxxx";

void setup() {
  Serial.begin(115200);
  delay(1000);
  Serial.println("beginning....");
  if (!modem.begin(US915)) {
    Serial.println("Failed to start module");
    while (1) {}
  };
  delay(5000);

  int connected = modem.joinOTAA(appEui, appKey);
  Serial.println(modem.getTConf());
  if (!connected) {
    Serial.println("Something went wrong; are you indoor? Move near a window and retry");
    while (1) {}
  }
 Serial.println("Connected");
}

Serial OUTPUT:

GetTConf FailFreq= 868000000 Hz
Power= 14 dBm
Bandwidth= 125 kHz
SF= 12 
CR= 4/8 
LNA State =0  
PA Boost State =0  
868000000:14:125:12:4/8:0:0
Something went wrong; are you indoor? Move near a window and retry
@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Jan 20, 2023
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

2 participants