Half-duplex programming with esptool.py
Posted: Mon Oct 08, 2018 8:24 am
Is there any way to force esptool.py to not send and receive at the same time? I would like it to send a bunch of data, wait for the confirmation/reply, send another bunch of data, wait for another confirmation and so on.
The background: I have been programming a device with ESP-WROOM-02 inside. There is an external microcontroller with UART port which is connected to UART-RS485 converter, while ESP-WROOM-02 is connected directly to the microcontroller (via UART). I hoped to be able to make the external microcontroller a kind of a bridge between ESP-WROOM-02 and PC in order to flash ESP-WROOM-02. But esptool.py (which I use for flashing) is transmitting non-stop, expecting the confirmations/replies at the same time. I can't make it work with RS485 connection which is inherently half-duplex. Any suggestions greatly appreciated!
The background: I have been programming a device with ESP-WROOM-02 inside. There is an external microcontroller with UART port which is connected to UART-RS485 converter, while ESP-WROOM-02 is connected directly to the microcontroller (via UART). I hoped to be able to make the external microcontroller a kind of a bridge between ESP-WROOM-02 and PC in order to flash ESP-WROOM-02. But esptool.py (which I use for flashing) is transmitting non-stop, expecting the confirmations/replies at the same time. I can't make it work with RS485 connection which is inherently half-duplex. Any suggestions greatly appreciated!