How to Setup Dorji DRF126XTL Front End Module?

Dear all,

How do I setup and use the Dorji DRF126xTL Front End Lora Module? I have connected the SPI, RST, and DIO1 only. However, I noticed a SW pin when I checked; it relates to an RF switch, which I have not connected yet. I am guessing this is the reason my module is not responding. Please help clarify the matter and guide me to setup. Thank you in advance.

image

Datasheet:
http://www.dorji.com/docs/data/DRF1262TL.pdf

You need to post your code.

Seeing the code will tell us the important information such as which LoRa library you are using.

Not all LoRa libraries will support the SX126X device you are using.

This is for Sender

#include <SPI.h>
#include <LoRa_STM32.h>

int counter = 0;

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

  Serial.println("LoRa Sender");

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

void loop() {
  Serial.print("Sending packet: ");
  Serial.println(counter);

  // send packet
  LoRa.beginPacket();
  LoRa.print("hello ");
  LoRa.print(counter);
  LoRa.endPacket();

  counter++;

  delay(5000);
}

This is to Receive

#include <SPI.h>
#include <LoRa_STM32.h>

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

  Serial.println("LoRa Receiver");

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

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

    // print RSSI of packet
    Serial.print("' with RSSI ");
    Serial.println(LoRa.packetRssi());
  }
}

I am using Lora_STM32 library

This one;

Which appears to be for SX127X LoRa devices and there are no suggestions it is also for SX126X LoRa devices.

Thank you. Yes that is the library. Any recommendations what library to use?

Two I can think of;

Although how compatible the DRF126XTL pinout is with the libraires I dont know, never seen one of those Dorji modules and it would be illegal to use in my area anyway.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.