I would like to control the ESP32, an esp32c3 to be precise, from Linux over its USB-based serial port, sending the ESP32 commands and reading the response from a script, i.e. not interactively. The ESP32 is running the demonstration Wi-Fi application ftm.
While I have no problems accessing the ESP32 interactively with minicom, sending it a single command with a pyserial python script causes the ESP32 to become unresponsive, and a reset is required with the Expressif utility idf.py ... monitor.
This failure also happens with the pyserial miniterm program if "default" filtering is selected. But if the minterm filtering is set to "direct", the ESP32 receives the command and responds as expected.
Investigation suggest the esp32c3 needs to be sent cursor positioning escape sequences to stay alive and not become unresponsive.
Has anyone had a similar experience and found a solution?
Does anyone have an example pyserial script that successfully sends a command to an esp32c over its USB-based serial port?
Please advise if more details are required. Thank you for your consideration.
Script-Based Access to the ESP32 Over Its USB-based Serial Port
-
- Posts: 1
- Joined: Thu Feb 15, 2024 8:06 pm
Who is online
Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 109 guests