Tasmota Flash Oukitel P2 Plug: Difference between revisions

From ivc wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Image:tasmota_oukitel_p2_plug.jpg|600px|right]]
[[Image:tasmota_oukitel_p2_plug.jpg|400px|right]]


Oukitel P2, also know as Merisny P2, is a WiFi controllable plug. It is based on the ESP8266 MCU.
Oukitel P2, also know as Merisny P2, is a WiFi controllable plug. It is based on the ESP8266 MCU.
Line 5: Line 5:
== Wiring ==
== Wiring ==


[[Image:tasmota_oukitel_p2_plug_wiring_top.jpg|500px]]
[[Image:tasmota_oukitel_p2_plug_wiring_top.jpg|300px]]
[[Image:tasmota_oukitel_p2_plug_wiring_bottom.jpg|500px]]
[[Image:tasmota_oukitel_p2_plug_wiring_overview.jpg|300px]]


== Esptool ==
== Esptool ==

Revision as of 16:59, 6 December 2019

Oukitel P2, also know as Merisny P2, is a WiFi controllable plug. It is based on the ESP8266 MCU.

Wiring

Esptool

Download the Esptool to erase and flash the Tasmota firmware.

Erase flash

Change the right serial-port, e.g. /dev/tty.usbserial-A98AVCSI

user$ ./esptool.py --port /dev/tty.usbserial-A98AVCSI erase_flash
esptool.py v2.5.1
Serial port /dev/tty.usbserial-A98AVCSI
Connecting....
Detecting chip type... ESP8266
Chip is ESP8285
Features: WiFi, Embedded Flash
MAC: 2c:f4:32:c9:d1:91
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 3.7s
Hard resetting via RTS pin...
user$

Upload firmware

Download the latest Tasmota firmware (tasmota.bin)

user$ ./esptool.py --port /dev/tty.usbserial-A98AVCSI write_flash -fs 1MB -fm dout 0x0 tasmota.bin 
esptool.py v2.5.1
Serial port /dev/tty.usbserial-A98AVCSI
Connecting........_____....._____....._____....._
Detecting chip type... ESP8266
Chip is ESP8285
Features: WiFi, Embedded Flash
MAC: 2c:f4:32:c9:d1:91
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 575616 bytes to 396460...
Wrote 575616 bytes (396460 compressed) at 0x00000000 in 35.4 seconds (effective 130.1 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
user$