Atmega32u4 appears to be connecting to lora and sending data, but no data on the receiving end. Same connection and code when I run on atmega328p it looks fine. Is there a special case for 32u4, can you help? Thanks.
Note: I'm sure about the receiver.
I assume you are using Lora peer-to-peer not LoraWAN
have you checked the frequency of the boards?
yes its not LoraWan. I am using Lora RA-01 modules so they are working on 433 mhz frequency.
which library are you using and which programs to test with?
using <LoRa.h> and testing raw LoRa communications between LoRa devices (not using LoRaWAN)File>Examples>Lora>LoRaSender on Adafruit 32u4 to transmit data and
File>Examples>Lora>LoRaReceiver on an Adafruit 32u4 and a Uno with a wiki.dragino Lora_Shield - both receive the transmitted data OK
note: for the 32u4 you need to set the pins, e.g.
Serial.println("LoRa Sender");
LoRa.setPins(8,4,7); // for Lora 32u4
if (!LoRa.begin(866E6)) {
Serial.println("Starting LoRa failed!");
while (1);
}
}
the 32u4 sender
Sending packet: 115
Sending packet: 116
Sending packet: 117
Sending packet: 118
the Uno with Lora shield receiver
Received packet 'hello 117' with RSSI -25
Received packet 'hello 118' with RSSI -25
Received packet 'hello 119' with RSSI -35
Received packet 'hello 120' with RSSI -25
Received packet 'hello 121' with RSSI -25
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.