-
Notifications
You must be signed in to change notification settings - Fork 104
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
TTGO T-Beam V1.1 - analogRead - Uplink not scheduled because TxRx pending #35
Comments
Hi, |
Hi, I can not do a analogRead, so it's is a fix that needs to be done. As soon as you use analogRead, it stops transmitting any date on the LoRaWan side. Thank you |
Sounds like a problem you have.
Still unclear. Is the fix in your above example? If so that is not clear at all.
Apparently there is some conflict between the use of analogRead, the LMIC library and your board. Your post lacks essential details (e.g. your board, more detailed code). In case you have a specific fix, I might be able to add it to LMIC-node. |
As soon as I add a analogRead to LIMC-Node, the issue occurs where it stops sending uplinks, tried it on 3 different boards (TTGO T-Bean V1.1) and the problem resists. I then took a Adafruit Feather, this preforms the analogRead. So it seems the problem might be the ESP32. |
TTGO T-Beam v1.0, v1.1
Add a analogRead in the section where
float Vload = analogRead(loadV); |
I overlooked the board in the title, read it at first but then couldn't find it in the text. 🤦♂️ Showing only a few lines of code without its context is not exactly helpful. Why are you doing analogRead() on GPIO33? On TTGO T-Beam V1.1 GPIO33 is used for LoRa DIO1. This is defined and clearly documented in the BSF. The analogRead on GPIO33 explains your problem. It seems you are shooting in your own foot. 🙊 |
I were making my references to their, LilyGO, board layout, they don't mention on the board layout the LoRa connections. Although I am full aware of the pin mapping in bsf_ttgo_t_beam_v1.h file. Using analogRead on pin 2 and it works 100%. PS. I do own a shotgun, I thing both of us used it ;-) |
I'm glad I was able to help fix your issue. As expected LMIC-node was not the culprit for your issue. |
I have add the following (see below). It sends one uplink and then "Uplink not scheduled because TxRx pending", not sending any more uplinks (see serial print)
If I remove the analogRead it sends uplinks as per normal scheduled time interval.
#define loadV 33
And then in --- if (LMIC.devaddr != 0) ---
Serial print:
The text was updated successfully, but these errors were encountered: