Dear Guys!
ESP8266 based boards having USB port can be switched to programming mode, and back by the arduino IDE automatically. This is accomplished by a ch340 chip on the boaerd, that converts the usb communication into TTL rs232 including the hw flow control signals (in addition to Rx and Tx). The DTR and RTS outputs of the CH340 are connected (via 2 transistors) to RST and GPIO00 lines of the ESP8266, this is how the CPU can be switched to programming mode.
I am using ESP8266 based boards without USB. To program these boards you usually need an USB-serial adapter AND you need to connect two push buttons to the RST and GPIO00 lines, so you can switch the board to programming mode manually.
I want to use my teensy3.2 as a programmer to replace the USB-serial adapter and the push buttons. The Teensy would simply forward any data between Serial(usb) and Serial1(RxTx), and set the state of 2 output pins (to be connected to ESPs RST and GPIO00) based on the DTR and RTS status of Serial(usb).
Question: Is there a way to obtain the DTR and RST status of Serial on Teensy?
Thanks in advance!
Andrew
ESP8266 based boards having USB port can be switched to programming mode, and back by the arduino IDE automatically. This is accomplished by a ch340 chip on the boaerd, that converts the usb communication into TTL rs232 including the hw flow control signals (in addition to Rx and Tx). The DTR and RTS outputs of the CH340 are connected (via 2 transistors) to RST and GPIO00 lines of the ESP8266, this is how the CPU can be switched to programming mode.
I am using ESP8266 based boards without USB. To program these boards you usually need an USB-serial adapter AND you need to connect two push buttons to the RST and GPIO00 lines, so you can switch the board to programming mode manually.
I want to use my teensy3.2 as a programmer to replace the USB-serial adapter and the push buttons. The Teensy would simply forward any data between Serial(usb) and Serial1(RxTx), and set the state of 2 output pins (to be connected to ESPs RST and GPIO00) based on the DTR and RTS status of Serial(usb).
Question: Is there a way to obtain the DTR and RST status of Serial on Teensy?
Thanks in advance!
Andrew