-
Notifications
You must be signed in to change notification settings - Fork 9
EspProxy
The EspProxy sketch from UnoWiFiDevEdSerial1 library tools replaces the EspRecovery sketch from UnoWiFiDevEd library and WiFi Link library.
On Uno WiFi you can't disconnect the ESP from ATMega and connect it to USB adapter for flashing like you do it with a module. There is an hardware option on the board, but it requires precise soldering.
The solution is a software bridge, a sketch in ATmega which copies bytes from USB to ESP and back.
EspRecovery with Serial1 can bridge flashing tools to ESP8266 at default 115200 baud. Only the helper stub is written very fast from tools memory and Serial overflows occur. The workaround in EspProxy is doubling the speed at Serial1 side for the flashing mode.
Flashing tools send DTR signal over USB to USB chip to trigger the reset of the processor to bootloader. This is bridged too in flashing mode of EspProxy. The signal causes the reset of the ATmega and the EspProxy sketch. And the EspProxy calls in setup() a reset to bootloader of the ESP. This way the ESP is in bootloader mode if the tool or IDE requires it.