-
-
Notifications
You must be signed in to change notification settings - Fork 652
Lora onReceive Callback not triggered, but data received in loop() #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ok I tried other things like..
This did not help the issue, no change.
|
According to this for the TTGO board LORA NSS is pin 18, reset is 14 and i think DIO0 is what that refers to as LoRa-IRQ so is pin 26. So try |
Hi, I fixed this by setting the IRQ pin to INPUT. First I tested it in my own sketch, but I think this should be patched in the library, like so:
BR |
@MarcRWetzel It should be noted that @acbrandao Are you calling |
@morganrallen Aahrg, you are right. I had a short test, and it didn't worked. So I started fumbling... thought that I found the cause... I had opened another issue, where receiving stopped after some hours, and didn't know why. Changing the code over to use IRQs helped me a lot. But I had the IRQ pin always at pin 26... |
The LoRa.h Library woks fine!!! This problem occurs when some parameters are wrongly defined. The correct for Module HELTEC ESP32 LORA ( version 01 and 02 ) is: #define SCK_LORA 5 /* Func: init comunic chip LoRa */
} |
Voce poderia postar um codigo base com esas modificacoes funcionando? |
Hi everyone!!! I have a related issue. When I receive the data in a sync way all is fine (using the loop for example) but the callback function is never triggered using the onReceive() method. Board: ESP32 DOIT DEVKIT V1 Setup code:hspi = new SPIClass(HSPI); lora2.setPins(15,4,2); Callback function:void lora2Callback(int packet_size) {
} |
Strange behavior, I tried altering the LoRaDuplexCallback example, integrating it into my TTGO Lora board. Sender is sending as expected, and data is reaching my receiver node, but the Callback is not getting triggered. Code segment looks like this..
If however I place the receive inside the main Loop() as below it works?
Do I need to do anything else beside register the OnReceive for it to work?
Hardware: TTGO Lora OLED v.1
The text was updated successfully, but these errors were encountered: