Skip to content
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

ESP32 GPIO's pins are getting LOW states periodically #386

Open
opanyki314 opened this issue Jul 30, 2021 · 3 comments
Open

ESP32 GPIO's pins are getting LOW states periodically #386

opanyki314 opened this issue Jul 30, 2021 · 3 comments
Labels
Under investigation It is under investigation and new information is posted on a sequential basis.

Comments

@opanyki314
Copy link

Hello.
During using Autoconnect after several minutes all ESP32 GPIO's pins are getting LOW states periodically (approx interval ... minutes). Even if I use autoconnect only. Therefore I can't use UART since Autoconnect periodically sets the "rts_io_num" to LOW in a function "uart_set_pin" (uart.h from the arduinoespressif32 framework).
How can I use Autoconnect with the UART and GPIO's pins?
Before:
Before
After:
After

@Hieromon
Copy link
Owner

Hieromon commented Aug 2, 2021

There are only two cases where AutoConnect operates GPIO directly:

  • Use AutoConnectConfig::ticker = true
  • Use AutoConnectConfig::ota = AC_OTA_BUILTIN

Other than that, AutoConnect doesn't deliberately manipulate GPIOs. If you captured unintended GPIO changes, it is due to the Arduino core.

@opanyki314
Copy link
Author

Apparently it is due to the Arduino core. I didn't set anything of this. And if I set Config.ticker = false and Config.ota = AC_OTA_EXTRA nothing changes.

@Hieromon
Copy link
Owner

Hieromon commented Aug 3, 2021

@opanyki314 Thank you for the diagnostics. I also start problem analysis.
In the ESP32 Arduino core, analog pin and WiFi component have been considered in the past. I haven't encountered any reports of similar symptoms in digital IO so far, but some ESP-IDF API calling sequences may cause unintended interference with IO pins.
Refs: espressif/arduino-esp32#102

Let me create and verify a test sketch that allows native WIFI drive without AutoConnect. If there are new discoveries will report here.

@Hieromon Hieromon added the Under investigation It is under investigation and new information is posted on a sequential basis. label Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Under investigation It is under investigation and new information is posted on a sequential basis.
Projects
None yet
Development

No branches or pull requests

2 participants