niceboygithub / AqaraM1SM2fw

Aqara Gateway M1S (ZHWG15LM) , P3(KTBL12LM), H1(QBCZWG11LM), M2 (ZHWG12LM) Firmwares
160 stars 26 forks source link

How to use TTL to flash modified firmware to M1S? #96

Closed bbluvgg closed 5 months ago

bbluvgg commented 6 months ago

My M1S gateway firmware is 4.0.4_0006, cannot be opened Telnet and use with xiaomi gateway3.

I opened the case of gateway , Connected TTL to flash the modified firmware, but aqaragateway.exe displayed a failure:

If flash the latest linux_4.0.8_0006.0650_mi_4.0.4_0006.bin, it will display 2

If flash linux_3.2.7_0020.0524.bin, it will display 1

Is it my improper operation?I have connected to the GND/RX/TX points near the M1S MCU and provided it with 3.3V power supply. 3 4

Is there any other way to flash the modified firmware, such as the traditional TTL mode?Is there a detailed tutorial?Thank you!

niceboygithub commented 6 months ago

You can just flash the 3.x rootfs_0 , donot use 4.x modified firmware to flash cause the size is too big.

niceboygithub commented 6 months ago

You can use the another method to clear password , please check the gw_global_tool