Closed xefiji closed 3 years ago
I noticed that you only turned on the LD2 power, but did not set its operating voltage, you can try to add
axp.setLDO2Voltage(3300); //LORA VDD set 3v3,
but I think this is not the main reason. You can try it first.
Hi @lewisxhe ,
i tried to change it and no change. I tried to use https://github.com/Extentsoftware/TBeamPower.
Still nothing. Here is the code:
#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.
I had a similar issue and it turned out that the jgromes/RadioLib library that the T-Beam was using has a default LORA spread factor of 9 and the sandeepmistry/arduino-LoRa library I was using on the LoRa32 SX1276 OLED and the default SF there was 7. Once I set them to the same value I was able to send and receive LORA packets between them.
I had a similar issue and it turned out that the jgromes/RadioLib library that the T-Beam was using has a default LORA spread factor of 9 and the sandeepmistry/arduino-LoRa library I was using on the LoRa32 SX1276 OLED and the default SF there was 7. Once I set them to the same value I was able to send and receive LORA packets between them.
from where you can change these settings?
With the RadioLib library the spread factor is set to the default value of 9 in the begin() method for the individual SX1276 module SX1276.h file. It can be changed by passing in a custom value for that parameter to begin() or by using the setSpreadingFactor() method.
For the arduino-LoRa library, there is just the setSpreadingFactor() method as defined in LoRa.h
Hi,
is it possible to send a lora payload from a T-Beam and receive it from a LoRa32 SX1276 OLED (v2) ? I if follow those two tutorials: https://randomnerdtutorials.com/ttgo-lora32-sx1276-arduino-ide/ or https://randomnerdtutorials.com/esp32-lora-rfm95-transceiver-arduino-ide/, i can send and receive without problem from two LoRa32 devices.
But if i let the LoRa32 receiver ON and tries to send from a T-Beam T22V1.0, nothing seems to happen.
T-beam code: (some gps related vars are set but i removed gps code for clarity. GPS does work fine.)
What am i doing wrong ?
(if i am not in the good place for that kind of beginner issue, please tell me and i'll try to find a more suitable place for this..)
Thanks :)