Code Monkey home page Code Monkey logo

Comments (4)

sandeepmistry avatar sandeepmistry commented on May 18, 2024

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

from arduino-lora.

kbaggott avatar kbaggott commented on May 18, 2024

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());
  }
}

from arduino-lora.

sandeepmistry avatar sandeepmistry commented on May 18, 2024

@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.

from arduino-lora.

sandeepmistry avatar sandeepmistry commented on May 18, 2024

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

from arduino-lora.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.