niceboygithub / AqaraM1SM2fw

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

How to use this firmware? #1

Closed miniknife88 closed 3 years ago

miniknife88 commented 3 years ago

Thanks for making the firmware

So,How to use this firmware?

niceboygithub commented 3 years ago

Use the aqaragateway.exe to flash via UART TTL

thejonesyboy commented 3 years ago

Aqara Hub M1S CN ZHWG15LM

I'm getting an error: 'NullWriter' object has no attribute 'fileno'

The hub is plugged in to mains, so I assume I don't need to connect 3.3V from TTL to the hub?

IMG_20210507_195723

2021-05-07 20_00_40-Aqara Gateway Utils

miniknife88 commented 3 years ago

With the same error

niceboygithub commented 3 years ago
  1. I update the tool.
  2. 3.3V is not necessary to connect to hub.
  3. use original power supply board.
  4. use fw_update to flash firmware is better method.
  5. switch to Mi Home mode and enable telnet. use putty to login and enter command in README.md
  6. Aqara Home mode need to use modified firmware.
thejonesyboy commented 3 years ago

Thanks for the quick reply.

  1. when and why?
  2. ok
  3. I have it plugged into the main 240VAC power, is that what you mean?
  4. I would prefer to use UART (see next item)
  5. 'custom open telnet command' doesn't work, see my comment here: https://gist.github.com/zvldz/1bd6b21539f84339c218f9427e022709#gistcomment-3733592
  6. Do you mean switch to Aqara home mode to boot the modified firmware after it has been flashed? I wish I could get that far :sob:
niceboygithub commented 3 years ago

Thanks for the quick reply.

  1. when and why?

https://github.com/niceboygithub/AqaraM1SM2fw/commit/f56610355f83beef03b8f5eabe0fca5c03b6856f Because the progress bar is not display correctly.

  1. I have it plugged into the main 240VAC power, is that what you mean?

Yes

  1. I would prefer to use UART (see next item)
  2. 'custom open telnet command' doesn't work, see my comment here: https://gist.github.com/zvldz/1bd6b21539f84339c218f9427e022709#gistcomment-3733592

I tested the way 2 and way 3. It shall be work. You need to make sure that the hub is working as Mi Home mode. If it is still not working, try another network.

  1. Do you mean switch to Aqara home mode to boot the modified firmware after it has been flashed? I wish I could get that far 😭

After flash the modified firmware, then switch to Aqara home mode. Otherwise the telnetd will be not enabled.

thejonesyboy commented 3 years ago

1 OK, so it's unrelated. 5 Yes, see the link I posted which explains that. It is the telnet open command that I can't figure out. Which way, 2 or 3 worked for you? Would you kindly check my post to see if there is something I'm doing wrong? https://gist.github.com/zvldz/1bd6b21539f84339c218f9427e022709#gistcomment-3733592

niceboygithub commented 3 years ago
m1s_enable_telnet

I use way 3 to enable telnet. You can see the picture. After sent the command, M1S reply 'ok'. And saved the log to /data/miiocli.log after enable telnet.