ESP32 & SX1262 Radio - working?

I’ve been running an ESP8266 and SX1276 for my greenhouse data for two years now (OTAA).

I now need to switch to an ESP32 (more I/Os) and an SX1262.

Has anyone already got this pair working under the Arduino IDE Radiolib or LMIC?

My initial tests with Radiolib version 7.5.0 failed, and I found this statement online that I find hard to believe: “In RadioLib 7.5.0, there is NO public uplink function at all The LoRaWAN implementation in 7.5.0 is unfinished and cannot send uplinks from user code. This is whysendUplink() → removed, uplink() → protected, No replacement exists. This is a known issue in RadioLib 7.5.0.“

Help would be very appricated :slight_smile:
Peter

Where on earth did you find that statement?

If it was an AI response, then :man_shrugging: you sorta get what you asked for.

If you care to look at the actual RadioLib docs there are examples for ESP32 with how to notes written by @CaptainAwesome as well as persistence examples so you can power off the ESP32 and a whole raft of automagic board configuration facilities and, well, everything.

Searching on here for RadioLib would have yielding a number of responses, including ones from the primary developer and his trusty sidekick. The last post was that RadioLib now passes all pre-certification tests, so is as good as, if not better than many other implementations out there.

That has got to be AI because I can’t find any part of that quote on the web, and 7.5.0 hasn’t been out that long. While that statement would at best makes sense for something like 6.6.0 when the separate uplink/downlink functions were removed in favour of a replacement that does the same and more.

Just look at the LoRaWAN examples in RadioLib and read the notes :slight_smile: and if things are unclear, please feel free to open a discussion on the repository on what could be improved.

(And a note that LMIC nowadays does actually support the SX1262, if you want to use their library instead.)

Thanks, that confirms my opinion about the AI; I knew it couldn’t be right.

Of course, I searched the forum for ESP32, SX1262, and RadioLib. Unfortunately, the six posts I found didn’t help.

I looked through the examples in the RadioLib (LoRaWAN, SX1262), but I guess I got lost after ABP, Class C, and Multicast…
I went through the examples again, and “LoRaWAN Starter” seems to be the right one.

I’ll post the working sketch as an example in the Arduino forum; it fits probably better than here.

Anyway, your answer came faster than the AI’s, impressive!

Thanks for your help, and have a good evening.

Peter

There’s a reason for that.

The people answering you are where AI gets its answers from because we are the people that created the reality - the original developers, the subject matter experts, the people that first knew the truth because they made it, the ones that created the source code, the examples and the notes.

We are where AI gets it’s answers from, which it then dilutes through the prism of posts from people that post suspect stuff which, to be honest, like you did.

Consequently, your original post adds to the body of knowledge used by AI, a closed loop of information from AI that gets posted which is read by AI that then reinforces the AI.

Hopefully many people can learn from this.

I sometimes wish I could enforce a special order other than alphabetical order.. :frowning:

people looking at the big picture rather than going for the first

:chipmunk:

oooooooooo shiny.


Will do some thinking about names, but overall, it’s not a 20+ list. Self-sabotage by being over-caffeinated is where it’s at.

1 Like