Hi, great work! I enjoyed reading your code.
For some reason, i cannot manage to send/receive lora datas between a TBeam and a Lora32 Oled v2.
I posted an issue here: Xinyuan-LilyGO/LilyGo-LoRa-Series#18.
The receiver (lora32 oled) uses the sketch found here: https://randomnerdtutorials.com/ttgo-lora32-sx1276-arduino-ide/
The TBeam's code is below, and nothing is received on the lora32 (whereas, when i try with 2 lora32, one sender and one receiver, everything works perfectly fine).
My hypothesis are:
Am i missing something with Lora ? Two different devices cannot send/receive from each other ? Or is my code wrong somehow ? Or do i have a hardware problem ?
#include <Arduino.h>
#include <SPI.h>
#include <LoRa.h> // https://github.com/sandeepmistry/arduino-LoRa/blob/master/API.md
#include "gps.h"
#include "TBeamPower.h"
TBeamPower power(PWRSDA, PWRSCL); //21 22
void setupSerial() {
Serial.println();
power.print_wakeup_reason();
}
void setup() {
Serial.begin(115200);
while (!Serial);
Serial.println("Power begin");
power.begin();
Serial.println("All sensors off");
power.power_sensors(false);
Serial.println("All peripherals off");
power.power_peripherals(false);
Serial.println("Powering LoRa");
power.power_LoRa(true);
SPI.begin(SCK,MISO,MOSI,SS); //5 19 27 18
LoRa.setPins(SS,RST,DI0); //18 14 26
if (!LoRa.begin(BAND)) { //868E6 (France)
Serial.println("Starting LoRa failed!");
while (1);
}else{
Serial.println("Starting LoRa succeed!");
}
Serial.println();
}
void loop() {
power.led_onoff(true);
delay(500);
power.led_onoff(false);
LoRa.beginPacket();
LoRa.print("hello");
LoRa.endPacket();
Serial.println("sent..");
power.print_status();
Serial.println();
delay(2000);
}
And here is the output i get
Power begin
AXP192 Begin PASS
All sensors off
All peripherals off
Powering LoRa
Starting LoRa succeed!
sent..
Voltages:
DCDC1: 3.30v
DCDC2: 1.25v
DCDC3: 3.30v
LDO2: 3.30v
LDO3: 2.80v
ChargeCurrent: 0.70A
IPSOUTVoltage: 3.57v
Temp: 15.94°C
TSTemp: 800.00
VbusCurrent: 0.00
VbusVoltage: 0.00
Battery:
Connected: false
Charging: false
ChargEN : true
Voltage: 0.00v
Inpower: 0.00
DischgCur: 0.00
ChargeCur: 0.00
I even tried to change the antenna.
I also tried to make the TBeam as receiver, and nothing arrived.
Hi, great work! I enjoyed reading your code.
For some reason, i cannot manage to send/receive lora datas between a TBeam and a Lora32 Oled v2.
I posted an issue here: Xinyuan-LilyGO/LilyGo-LoRa-Series#18.
The receiver (lora32 oled) uses the sketch found here: https://randomnerdtutorials.com/ttgo-lora32-sx1276-arduino-ide/
The TBeam's code is below, and nothing is received on the lora32 (whereas, when i try with 2 lora32, one sender and one receiver, everything works perfectly fine).
My hypothesis are:
Am i missing something with Lora ? Two different devices cannot send/receive from each other ? Or is my code wrong somehow ? Or do i have a hardware problem ?
And here is the output i get
I even tried to change the antenna.
I also tried to make the TBeam as receiver, and nothing arrived.