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

Different bandwidths #39

Closed
kbaggott opened this issue Aug 26, 2017 · 4 comments
Closed

Different bandwidths #39

kbaggott opened this issue Aug 26, 2017 · 4 comments

Comments

@kbaggott
Copy link

I'm using 433 as a frequency but can't seem to change the bandwidth to anything lower than the default, any ideas?

@sandeepmistry
Copy link
Owner

@kbaggott could you please share a sketch to provide more details on what you are trying to do. Thanks.

@kbaggott
Copy link
Author

kbaggott commented Sep 5, 2017

Just tried a few of the examples you had but with the LoRa.setSignalBandwidth(); function set like below. If I use 125E3 / 250E3 it seems to work but anything lower than that and nothing is received.
I'm fully aware this may be nothing to do with your library but if you have any ideas they would be most appreciated.
PS. I am setting the bandwidth at both ends in the same place just after LoRa.begin()

#include <SPI.h>
#include <LoRa.h>

void setup() {
  Serial.begin(9600);
  while (!Serial);

  Serial.println("LoRa Receiver");

  if (!LoRa.begin(433E6)) {
    Serial.println("Starting LoRa failed!");
    while (1);
  }

  LoRa.setSpreadingFactor(12); //6-12
  LoRa.setSignalBandwidth(31.25E3);
  //7.8E3, 10.4E3, 15.6E3, 20.8E3, 31.25E3, 41.7E3, 62.5E3, 125E3, and 250E3.
}

void loop() {
  // try to parse packet
  int packetSize = LoRa.parsePacket();
  if (packetSize) {
    // received a packet
    Serial.print("Received packet '");

    // read packet
    while (LoRa.available()) {
      Serial.print((char)LoRa.read());
  }
}

@sandeepmistry
Copy link
Owner

@kbaggott I don't have any 433 MHz devices here to test with, but could you make sure the registers look ok via dumpRegisters (https://github.com/sandeepmistry/arduino-LoRa/blob/master/src/LoRa.h#L63).

I don't see anything in the data sheet about 433 MHz not supporting lower bandwidths. You could try using other spreading factors as well.

@sandeepmistry
Copy link
Owner

Closing this for now due to lack of feedback, please re-open with response if you are still interested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants