Replies: 2 comments 5 replies
-
Not my ballpark, but just out of interest: if you set both to e.g. 15dBm, do they result in equal output, or does that also differ substantially between both libs? |
Beta Was this translation helpful? Give feedback.
-
Seems unlikely, considering LoRa.h does not support SX126x. So either your device is not SX1268 or you are not using LoRa.h Your code is also rather suspicious. Here for example you are attempting to configure the device before it has been initialized: LoRa.setCurrentLimit(230.0);
LoRa.setOutputPower(20);
int state = LoRa.begin(433.775, 125.0 , 12 , 5 , 0x12, 20 , 20, 0 ); Had you not ignored the return codes of (nearly) all configuration methods, you would have discovered that some of them are failing. Another strange thing is here - 0 is not an alias for "unused pin", it's a valid GPIO number. If some of your pins are note connected, you have to use
The primary issue is that you have left the overcurrent protection level at the default value. But since you have made several mistakes in usage, I will recommend you go to the (quite extensive, IMHO) example collection here and use those as the starting point. Properly check return codes of all RadioLib methods, they are there to tell you exactly what went wrong. |
Beta Was this translation helpful? Give feedback.
-
Hi, I am trying to check the output power for the lilygo T-Beam vr. 1.1 device... it is using an sx1268 like LoRa chip and it works apparently OK either using the RadioLib library and using the old classical LoRa library (https://github.com/sandeepmistry/arduino-LoRa) tipically used by most of the old SW made to run on this device.
What I discovered is that the maximun output power I can achive from the device with the old LoRa library on two samples of the device I have in my hands is around 19.2 dbm, while using the RadioLib it is maximun 15.8 dbm...
Making a long story short, I did a very simple program to set the LoRa chip to transmit a long LoRa packet with both libraries and this confirmed exactly this fact...
Then I made the same test with the same program on a custom ESP32 device I made using an RFM-98 and an SX1268 module from different makers and confirmed exactly the same fact: radiolib apparently does not allow to use the full 20dbm power capability of the sx1278 semtech chip...
I made also a check of the actual code implementing the setOutputPower in the two libraries and apparently they do the same operations... also tryed to set up to the max setCurrentLimit without any change...
Do you have any suggestion where to investigate to fix this issue ?
I add my test code for reference.
Thanks in advance for any help
Michele I8FUC
========================================================================================
Beta Was this translation helpful? Give feedback.
All reactions