Long distance, ground-based LoRa range tests

The SX126X support is a recent addition to the RH library.

The interface between the micro and the various LoRa devices does differ. The SX127X is configured via a bunch of registers, much like how you would address an RTC. When the SX128X was introduced Semetech adopted a different approach. You send a command byte and then a list of parameters. Semtech then adopted the same approach with the SX126X and LLCC68 modules.

Whilst it is possible to write a library where the API and sketches use the same format, there are subtle internal differences between SX127X and SX126X devices, there is not an absolute transparency.

My own LoRa library does support SX127X, SX128X and SX126X devices, and for pretty much all applications a sketch writen for one device type will work on the others, but not always ...........

I took a look at the new RH SX126X library file, but could not see any mention of the SX126X BUSY pin being supported, so I am not sure how the library can work without it. There appears to be no published examples for the SX126X.

In the latest release of RadioHead (version 128, posted Jan. 2024), there are three examples for the relatively new STM32WLX, which evidently has the SX126x radio embedded in the processor.

I've spent some time working with STM32 chips, the STM32 IDE and Cube programmer. That was more than enough.

1.127 2024-01-07 Added support for SX126x family radios, and also for the STM32WLE5xx and STM32WLE4xx families of ARM procedssors that have a SX126x radio built in, and as used in the LoRa-E5-HF module (which is used in WiO-E5 mini development board), the LoRa-E5-LF module and the NUCLEO_WL55JC1 development board. Tested with WiO-E5 mini development board, but no standalone SPI versions of this radio.
1.128 2024-01-12 Added missing sx126x examples to distribution.

Where do you find that ?

The latest version reported by the Arduino IDE and Website is V 1.122.1

@srnet On the official AirSpayce RadioHead pages:
https://www.airspayce.com/mikem/arduino/RadioHead/

BTW have you seen this absolutely outstanding, amazingly clear explanation of how LoRa modulation works? https://www.youtube.com/watch?v=jHWepP1ZWTk

Judging from that effort, the producer is one of the very best teachers I've ever encountered.

Well, the code seems to be a long way from standard SX126X library codeto me, so it could be that any porting you did would be restricted to those particular devices.

I did try a couple of the E5 devices, based on the STM32WE5. They seem attractive at first since there is a processor as well in a module thats about the same size as a standard LoRa one. They are advertised as Arduino compatible, and I did manage to program them with a blink sketch, but I somehow I bricked them as well, just could not reprogram them again.

Their tech support forum were a long way from helpful, taking the approach that the internals were propriatry. I also discovered that they did not provide a binary of the original LoRaWAN firmware, so you could not revert the modules back to original.

I crossed STM32 off my list a long time ago, and also suspect that the RadioHead driver for the SX126X may not be generally useful.

Or maybe does not even work, I could not see the definition or use of the SX126X BUSY pin.

Busy pin support for the SX126X is documented in RadioHead, version 1.129, and reportedly tested with Teensy 3.1.

Driver docs:
https://www.airspayce.com/mikem/arduino/RadioHead/classRH__SX126x.html

Tested with this LoRa module, the example code is in the library.

Thanks, looks like the busy support was added at the end of March.

Could be useful.

One potentially interesting all in one device is the Heltec HT-CT62, ESP32C3 and SX1262 in one 18mm square module;

https://heltec.org/project/ht-ct62/

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.