Cannot send commands to ESP32 after connection. #12631
Replies: 4 comments 20 replies
-
Is the ESP32 WROOM on a dev board, if so, which one? |
Beta Was this translation helpful? Give feedback.
-
I would rename that |
Beta Was this translation helpful? Give feedback.
-
It does not seem to be a problem with the boot switch transistors, because then there would be no communication at all. You seem to use Thonny. Thonny does a lot of magic under the hood, which may cause boards to fail. Try a simple terminal emulator instead, like mpremote, Putty, screen, or picocom. |
Beta Was this translation helpful? Give feedback.
-
I am using LinuxMint. Just wondering what version of mpremote and python do you have? Here are mine:
I do not have the problem you have.
With rshell:
Perhaps your pyserial module is not working properly?
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
EDIT:
While I wouldn't call it solved, I think my particular NodeMCU boards are the problem. I went and bought these boards, same chip but different board, and (so far) it works just fine.
I'm a semi-beginner with Linux and esp32. I'm working on a ESP32 WROOM and using rshell and/or mpremote on Ubuntu.
The problem: I'm finding that sending a command to the board only works some of the time, usually after I've pressed the reset button. It seems somewhat random when mpremote commands will work and when they won't. Generally, if I reset the board, wait a second, and send a command everything is fine, but the next will just hang. For example, I just did this and it just hangs until I Ctl-C.
Another clue is that the script inside bilnks the board LED until it connects to Wifi, so when the board is reset the LED blinks... this (usually) means I will connect successfully. But once the command is done, the blinking stops and I cannot connect again.
Lastly, it once came out of hang on its own and it gave me the error:
I'm at a loss, perhaps I'm missing something essential about board development. Can anyone explain this?
UPDATE:
More clarity
Steps to repeat
Connect ESP32 board to PC
Flash Micropython bootloader v1.21.0 (2023-10-05) .bin
In terminal:
(CTRL-X)
At this point it is unresponsive to CTRL-C. CTRL-X will drop back to shell.
This also happens with any command that connects to the board
[no response. CTRL-C to end loop]
I recieved an ESP32-S3, which uses ACM ports. It works as expected. Only boards that show up as USB ports seem to be effected.
Beta Was this translation helpful? Give feedback.
All reactions