-
Notifications
You must be signed in to change notification settings - Fork 835
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
wifi.begin add error in IR receiving code #1995
Comments
Se dumpv3 which has OTA support You need to include which protocol it is in your prints, see the faq about unknown protocols. |
hi here is another example, with a sony remote control
In my complete schetch, net and pwd are used inside command because there is a control of these info every time sketch run. p.s. sorry I don't understand "Se dumpv3 which has OTA support" |
Are your SSID and WiFi password changing every time? |
You should probably read the FAQ You need to provide reasonable data to even understand what you are doing here 😉 |
this is one second push "1" on a samsung tv rc
|
and this is one second push "1" on sony tv rc
|
at last ... this is sony with OTA disabled
|
Later I will test it using a different IR receiver |
Now you can see that you have unknown protocol in that case the data is not something that you can go on. Now the timing issues, do you have a proper capacitor over the power input of your receiver module? |
yes, there are a 1000mF and a 100n on 3v3 and a 10mF near the receiver why unknown protocol if wifi is on ? i see no relation :-( |
Looking at the raw data, in the A number of things could be causing it. From the hardware demodulator, the microproccessor, or some bug. As you've noted, it works fine with wifi off. So, that eliminates bugs in the library pretty much. That leaves what changes when wifi is turned on. To diagnose this more, we'd need an osciliscope trace on Pin 36, to confirm what the input really is to it, matched up with the output of the program. We have not had other reports of this problem (that I'm aware of) with the library, so it seems it's something with your particular setup. So, I think we can lower the likelihood its a software issue. I think this is likely to be a power/hardware/circuit issue. To handle crappy/noisy signals, we do have a few options you can turn on to try to accomodate this sort of problem. |
hi
the power is managed by external ams1117 3V3, powered in 5V 1A. The ams is 1A so i don't think that is a power problem. However I will test better it. |
1 Amp of 3V3 should be heaps. FYI, the behaviour we are seeing is "something" is causing the "CHANGE" interrupt to trigger prematurely on the input GPIO. When triggered, the interrupt calls an interrupt handler, which just records how long it's been since it last triggered. Something must be causing the interrupt handler to trigger. Be it the hardware, or the software. It could be some quirk of the ESP32 arduino core. i.e. Wifi causing interrupt handlers to fire accidentally. |
FYI, this looks like a known hardware bug: |
Really a interesting day, today !
and it seems work fine too (using normal irrecv.decode(&results)) I will be more sure of this test later, because now i tested them in a breadboard (not in my orginal pcb). I really HOPE that the situation of breadboard test will be the same on the pcb where all the code with related libraries will be loaded and not only 40 lines for testing :-) |
You should use that fix instead of |
FYI, I've added this problem to the FAQ as well. |
At last I used |
hi |
Version/revision of the library used
2.8.5
Describe the bug
The library works really fine and all hex received number are ok.
But if I put wifi.begin in void setup, the numbers in rx mode are random and very rarely the right code is given
To Reproduce
use IRRecvDemo.ino
put #include <WiFi.h> in the sketch and WiFi.begin(net,pwd) in the void setup
complle
please note that net and pwd must be real, so you must be really connected to your router
ESP32S and WROOM 32D give same problem
Example code used
Expected behaviour
using a samsung tv remote control
Serial monitor :
without WiFi.begin
E0E020DF
E0E020DF
E0E020DF
E0E020DF
E0E020DF
E0E020DF
E0E020DF
E0E020DF
E0E020DF
E0E020DF
with WiFi.begin
D1E21191
E3AB4430
E0E020DF
E0E020DF
4824BC8A
A432D17A
E0E020DF
AA9C7144
55560F29
E0E020DF
834ED9B0
FC7307DE
What brand/model IR demodulator are you using?
VS1838
Circuit diagram and hardware used (if applicable)
+5V power
out pin directly to pin 36. I tried other pins : same problem
I have followed the steps in the [Troubleshooting Guide]
YES
More ...
I wrote here although you said that VS1838 gives problems. I have no problem using it. I have only if i put wifi.begin
may thanks for your patience
The text was updated successfully, but these errors were encountered: