

The esptool.py is made with synchronous API, So, I am using synchronous API in android project.Īlso, the current project is perfect with esp8266/FTDI, esp8266/cp2102. The main problem is cannot read response command from esp8266.įrom UsbSerial, there are syncRead, syncWrite commands, also there is an asynchronous command for serial operation.

With esp8266/ch340, I cannot pass the first step with an android project.įrom android, call write command with, then the esp8266 is a response as bytes. More correctly confirm bootloader mode, I can use Flash button and RST button of esp8266.

In android, the main command which used in esptool.py is setDTR, setRTS, serial Read and serial Write.Įach command working well although in esp8266/ch340 in normal mode(not bootloader mode).Īlso, I confirmed the esp8266 can be bootloader mode correctly via a combination of setDTR, setRTS. Of course, the esptool.py is working well with esp8266/ch340.īut, my android project is not working with it. My problem is not working with esp8266/ch340. The current project is working well with esp8266/FTDI, esp8266/cp2102 same as esptool.py. I need only esp8266 feature from esptoo.py, so I only converted the esp8266 function.įrom UsbSerial library, I am using synchronous api, because the esptool.py use synchronous command for Serial read/ write. In android, for serial communication, I am using USB Serial library. I am trying to convert the open-source python project esptool.py to the Android(java) project.
