ElectronicCats / Beelan-LoRaWAN

A LoRaWAN library for compatible arduino board
https://www.beelan.mx
MIT License
195 stars 83 forks source link

arduino SX1276 #51

Closed ebelouet closed 4 years ago

ebelouet commented 4 years ago

HI, Where can i find setup for SX1276 chip example because we have only for RFM95W chip ?

Thank Eric

novvere commented 4 years ago

Registers in RFM95 and SX1276 datasheets seems to be the same it should work. In fact, RAK4260 module (I used to test) has SX1276 , not a hole FRM95 module. You will just need to check pinout.

ebelouet commented 4 years ago

thank, i chekc it now , and i see that, i will try it,

Koraze commented 4 years ago

it seems it kind of works with the "send-class-A-OTAA" example and my equipment :

I said "kind of" because :

I changed this in the example code :

const sRFM_pins RFM_pins = {
  .CS = 18,
  .RST = 14,
  .DIO0 = 26,
  .DIO1 = 35,
  .DIO2 = 34,
  .DIO5 = 40, //Unidentified pin, so I wrote a random and non pin value
};
...
  SPI.begin(5,19,27,18); //not sure if usefull
  if(!lora.init()){
    Serial.println("RFM95 not detected");
    delay(5000);
    return;
  }
ebelouet commented 4 years ago

Hi Thank a lot, I will try it Monday.goood week end.Eric Le vendredi 9 octobre 2020 à 20:00:56 UTC+2, Koraze notifications@github.com a écrit :

it seems it kind of works with the "send-class-A-OTAA" example and my equipment :

I said "kind of" because :

I changed this in the example code : const sRFM_pins RFM_pins = { .CS = 18, //j .RST = 14, //j .DIO0 = 26, //j .DIO1 = 35, //j .DIO2 = 34, //j .DIO5 = 40, //? }; ... SPI.begin(5,19,27,18); if(!lora.init()){ Serial.println("RFM95 not detected"); delay(5000); return; }

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ebelouet commented 4 years ago

so, I need to connect spi bus and io pins, do you have schematic example for this ?

sabas1080 commented 4 years ago

You need pins SPI port and pins for SX1276 or RFM95

ebelouet commented 4 years ago

my question is to know if this pin connections is good:

ESP32 Pins SX1278 Pins
GND GND
3.3V VCC
D5 NSS
D23 MOSI
D19 MISO
D18 SCK
D14 RST
D2 DIO0
Koraze commented 4 years ago

sorry I dont have schematic example for this, my Heltec Lora32 v2 is a chip with both ESP32 and LoRa together, see this link :

What I can say is

ebelouet commented 4 years ago

thank, i will try it monday and give you answer.Eric Le samedi 10 octobre 2020 à 16:46:31 UTC+2, Koraze notifications@github.com a écrit :

sorry I dont have schematic example for this, my Heltec Lora32 v2 is a chip with both ESP32 and LoRa together, see this link :

What I can say is

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ebelouet commented 4 years ago

HI ,Please add SPI.begin(5,19,27,18); in your example to run very well

Eric

ebelouet commented 4 years ago

HI, I also tested RFm95w and it's ok for connextion to TTN, but I have only 1 on that can send data, another modules only connect without sending data with same software, and 4 minutes for connections. Do you know where is problem of it ? Thank eric

sabas1080 commented 4 years ago

review your chosen communication channels

Koraze commented 4 years ago

I found another issue, maybe it will help My Heltec Lora32 v2 didn't succeed to join if I set this line : lora.setDataRate(SF9BW125); But if I remplace SF by another value, for example 8 (lora.setDataRate(SF8BW125);) now it works And it works event if after join, I set the SF value to 9 again