devbis / z03mmc

Xiaomi LYWSD03MMC Zigbee Firmware
GNU General Public License v3.0
810 stars 38 forks source link

Flash via UART? #150

Open RaW79 opened 1 month ago

RaW79 commented 1 month ago

Hi I have a LYWSD03MC where something OTA has gone wrong and I´m not sure what is working in the device.

I cannot recognize any BLE activities at different computers but also at different versions of the Online-Flasher.

Then checked my Zigbee cordinator and this also does not recognise any new device within pairing mode like the other LYWSD03MC have flashed successfully before.

So I tried to flash vie the browser UART flasher and connected 3,3V, GND and TX through a 1kOhm resistor. Then used z03mmc.bin but of course only with a TX connection there is nothing recognized in the log of the flasher then just the cmd sending to flash.

Afterwards powering the device via battery the h&t values are shown at the display but again no recognition at BLE or Zigbee.

Can someone please give some more details how to do the flashing?

I also shorted GND and RST points but only due to longer connection I can change display values from °C to F.

Kindly ask for your guidance. Thx!

devbis commented 1 month ago

The detailed description of flashing is written in the main readme. In most cases changing uart dongle helps. And, try use python script, it has feedback using tx wire while web flashed does not. Also, erasing flash usually helps.

RaW79 commented 1 month ago

Thanks for your feedback and I´ll try the python script. To be sure regarding the readme and connection Mi_SWS_Connection.jpg What is to be connected at P14? Both TX (with resistor) and RX (direct) at the same time? Sorry for asking but new for me and never connected RX/TX at the same pin (only 3 wires in the picture).

devbis commented 1 month ago

Yes, both to P14. It is an emulation of single wire protocol by using a resistor to distinguish 'in' and 'out' signals.