I finally got a Heltec CubeCell-GPS HTCC-AB02s to be a Lora Sensor on the FDRS network #171
Replies: 1 comment 1 reply
-
That's fantastic info, thanks for working through it and testing! It's funny because @aviateur17 and I have been discussing yield() usage recently. I think that I'd be quite interested in whether the gateway works on CubeCell too. There are no yields, so it may work out the box. Thanks a lot! It actually started with ESP-Now, but I snuck LoRa in after some sagely advice from a cool Swiss guy. I do hope to one day handle a new 'bulk' datatype in FDRS to allow longer, framed transmissions (ex: an image from ESP-CAM). There are a lot of features to add before that, though! |
Beta Was this translation helpful? Give feedback.
-
Sorry, just so happy to have figured this out.
Forewarning: I only got the basics down on this.
After Googling every last possible search string I could come up with, enough breadcrumbs, rewriting a portion of the fdrs node code, rewriting part of the RadioLib code (throwing both rewrites away once I discovered the needed work was already complete) and a little debugging got me to where I am. (sorry if someone else covered this before, sorry, I could not find it, I've been at this for a week).
Let me walk through the code with you (be gentle, I'm not a pro).
I started with the LoRa Sensor Example in the FDRS library
Make sure you set your secrets in the fdrs_globals.h file.
LoRa_Sensor.ino: (no changes here)
fdrs_node_config.h:
The big holdup was that there is no "yield" function for the CubeCell-GPS board.
so I modified the FDRS library to exclude it for the one board type where yield is called in the pingFDRSLoRa function.
fdrs_node_lora.h
And that's it!!! really it is just modifying the library and it is no different than configuring the ESP32 V3 LoRa board.
Hope that helps somebody (who might be in the same boat as me with ~20 of these HTCC-AB02s boards laying around).
An epic shoutout to @timmbogner for creating this library!!! it is everything I wanted to do on my farm with the LoRa boards but never sat long enough to standardize a communication standard (and you included ESPNow, which eventually I'm going to take a stab at with the library for sending ESP-Cam over ESPNow)
Beta Was this translation helpful? Give feedback.
All reactions