-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
IR Receive - filling buffer when the input GPIO is permanently HIGH #4007
Comments
I think we can at least add some deduplication to the logs, if lines are repeated often in succession, then just count it and log it once more with the nr of duplicates. Just like syslog does. Have to check if the IR library was updated between builds (not unlikely). |
It's been a very long time since anything to do with the capture buffer and how it is initialised/used has been changed in the library. The only other things are: Is it an ESP32-C3? (crankyoldgit/IRremoteESP8266#1768) (9 Mar 2022) Got any idea what version of our (IRremoteESP8266) library was last working as expected for you? Have you checked the basics? Like, have you set a large enough capture buffer for your signals? Any raw IR data collected that you can share? |
That's something I can answer: Nope, as ESPEasy is not yet ported to the C3. (and if it was, I have not yet seen a PR for it...)
Based on the issue title, I think the raw data is easy to reproduce ;) |
I am not sure about earlier ESP Easy build installed on that node but I believe it was compiled 2022-02-12 and did not generate that warnings. |
Without the pull up (or pull down) resistor, the voltage will be floating, thus it will randomly fluctuate. That's the signal(s) you're getting. I.e. not a library problem, but an electrical one. |
The issue is with Internal PullUp checked so it's not the pin floating case. Also the Values input is 0 so there's something wrong. |
The internal pull-up resistors are of quite high resistance (50k - 100k)
What do you mean with the value being 0? You're pulling the pin low, or is that the value reported by ESPEasy when checking the state of that pin? |
See the Devices picture above, where the Input Values of IR Receive plugin is displayed and equal to 0. |
Well I never said it could not be a software issue. |
The Values 'input' contains the decoded 'content' of the received bitstream from the IR receiver. As the stream is invalid, the decoded result is not determined, so remains at (initial) 0. |
Yeah but if the input should be floating, soon or later a some valid value would be displayed. This does not happen. Also if the input bitstream is detected but not decoded successfully, the RAW value is written to log. This also does not happen. Only the "IR code too big for buffer " warning is recorded to log. |
@ghtester can I suggest you replicate/test/collect data with IRrecvDumpV2 from the IRremoteESP8266 library. |
Well, thanks all of you for your help. In the end I cleared the configuration with the Factory Reset button, configured the same plugins again with the same parameters from scratch and despite there was no change in the hardware circuit, I am not able to replicate the issue anymore... So I am sorry for confusing, this is a test ESP node and I was playing a lot with configuration & rules, maybe I made something wrong there... |
Hmm this gives me an idea that maybe it is best to erase all bytes where settings can be stored when adding a task to ESPEasy. |
It is probably a minor issue but I have encountered a difference in latest ESP Easy build.
There's a test ESP Easy node without IR sensor connected but the IR Receive plugin enabled and configured:
The issue (which did not happen with earlier builds) is that now with the same IR Receive plugin configuration the log is 'spammed' with the warning :
IR: WARNING, IR code is too big for buffer. Try pressing the transmiter button only momenteraly
The text was updated successfully, but these errors were encountered: