• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

TTGO LoRa32 SX1276 OLED Question

Q&A Forum › Category: ESP32 › TTGO LoRa32 SX1276 OLED Question
0 Vote Up Vote Down
Peter Rowe asked 3 years ago

Hi Sara and Rui

I really enjoy your tutorials and have learned a great deal from you.

I Loaded your LoRa transmitter code into one TTGO LoRa32 SX1276 OLED and the receiver code into another.

The receiver stops after 1000 to 2000 data transfers even though the transmitter continues to send packets. If I reset the receiver, it starts receiving again. I’m in California where the 900 MHz band has been filled with frequency hopper radios for many years. I have the operating frequency set to 903.08 MHz since this frequency has less interference than other channels.

Could this be that the receiver firmware doesn’t tolerate occasional interference and stops running?

Do you have any suggestions?

Also, I am a radio engineer and I tested the small antennas that come with the boards. They are very poor antennas. I designed a simple antenna that works better if you would like to see it.

Thanks for your wonderful tutorials.

Peter

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi Peter.
To be honest, I don’t know.
Do you have any more information about what happens in the receiver side? Does it just stop receiving? You can add some code to the receiver, that after an X number of readings, restarts the ESP32 (not the best solution, but it’s a workaround).
Yes, the antennas that come with those boards are not the best, I would love to see your DIY antenna.
Regards,
Sara
 

0 Vote Up Vote Down
Hamish Low answered 3 years ago

Is it a memory leak or similar ? I found an idea here https://www.esp8266.com/viewtopic.php?p=77904 
useful to monitor stack size during execution,
if ithe stack keeps growing … there’s a problem that will cause a problem before too long.

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Thanks for the suggestion.
Peter, can you see if what Hamish suggested can solve the issue?
Regards,
Sara

0 Vote Up Vote Down
Peter Rowe answered 3 years ago

Thank you, Hamish.
I’ve been busy on another project. I’m sorry for the delay in replying. Yes, I believe that stack overflow is the issue. I haven’t ever seen this in other ESP-32 firmware that I’ve used. The LoRa transmitter is the first to show this problem.
There is some more robust LoRa code made available by Bob Rader ( I owe Bob a beer) which runs quite a bit longer than Sara’s code but, eventually, stops working.
I will look into Hamish’s stack monitoring idea. I’m not sure that I’m smart enough to ferret out the cause if I find that the stack is growing.
Sara’s idea of resetting the processor periodically will work as long as I don’t have any variables that I would like to save.
 
Regards,
Peter

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi Peter.
Thanks for your update.
If you have variables that you would like to keep even after resetting, you can save them on the flash memory.
However, there must be a better solution than my suggestion.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.