I recently discovered Sonoff products and the easyesp firmware (no way for me to send my data to a remote server).
I bought two wall plugs where I solder wires to VCC/GND/TX/RX and upload the current firmware with a command such as:
Code: Select all
esptool --chip esp8266 --port /dev/ttyUSB0 --baud 115200 write_flash -fm dio -fs 8MB -ff 26m 0x00000 ESP_Easy_mega-20191208_normal_ESP8266_1M.bin
Then, I tried to do the same with the third product I bought: a Sonoff T0EU2C. On the PCB, I've the following references:
With the help to this webpage https://tasmota.github.io/docs/#/device ... 2018-10-03, I found the information required to put the device in flash mode (ie connecting GND from J1 and TP2/GPIO0 at boot time): my hardware seems really similar to the SONOFF T1 EU 3CH 2018-10-03 (with only two touches instead of three). And indeed, with this, I've been able to read the mac info and upload new firmware:T1EU TOUCH v1.0
Code: Select all
$ esptool --chip auto --port /dev/ttyUSB0 --baud 115200 read_mac esptool.py v2.6 Serial port /dev/ttyUSB0 Connecting.... Detecting chip type... ESP8266 Chip is ESP8285 Features: WiFi, Embedded Flash MAC: d8:f1:5b:XX:XX:XX Enabling default SPI flash mode... MAC: d8:f1:5b:XX:XX:XX Hard resetting via RTS pin... $ esptool --chip auto --port /dev/ttyUSB0 --baud 115200 write_flash -fm dio -fs 8MB -ff 26m 0x00000 ESPEasy_mega-20191208/bin/ESP_Easy_mega-20191208_normal_ESP8285_1M.bin esptool.py v2.6 Serial port /dev/ttyUSB0 Connecting... Chip is ESP8285 Features: WiFi, Embedded Flash MAC: d8:f1:5b:XX:XX:XX Enabling default SPI flash mode... Configuring flash size... Erasing flash... Flash params set to 0x0281 Took 7.14s to erase flash block Wrote 851968 bytes at 0x00000000 in 93.1 seconds (73.2 kbit/s)... Leaving... Hard resetting via RTS pin...
I tried lots of different firmwares (blank_1M, different ESPEasy releases (20181112, 20191130, 20191208, v2.0.0-dev12) for ESP8285 but also ESP8266, normal test and dev variants when they exist, and also tasmota-FR.bin from there website (but probably compiled for 8266 and not 8285)). I boot the hardware with the USB-serial power (as for when flashing) or with the (normal) 220V power (with the other part of the device). I never see any AP.
So, I've some questions:
- is there someone that succeed in running this exact module with espeasy?
- is there some way to know if some code is running (to get a console ?) ? I tried (when powered by the serial cable) to read the serial line after the normal boot: I never see anything (but I'm not sure I setup the serial line correctly: speed, parity, ...)
- is there a way to know if my module is broken? It seemed to work (AP, reaction to touch, ...)) with the original firmware but I perhaps broke it when I solder the connector for flashing.
- I'm trying to recompile the firmware myself but did not succeed yet. I installed PlatformIO-cli (not Atome not IDE) but do not find how to start the build. I will try with an IDE if I do not find how to do this from the CLI (any advises ?)