-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing firmware update via OTA #12
Comments
In the README there is the miio command I believe should be sent. But sorry, I never took time to test it. |
I'm trying to test this, as I dont need the device (I got a CC2531). Happy to help test it if there was more info. I looked into the readme, but the command there doesnt work. |
Could you please try to issue a miIO.ota_install command after the miIO.ota '{"mode":"normal", "install":"1", "app_url":"#url#", "file_md5":"#file_md5#"}' ? |
Hi, I've bought a "Mi Smart Sensor Set" in a promo sometime ago. My plan was to use the sensors and trash the gateway, but then I saw this thread. So I've picked an old PC, installed Debian X86 on it, installed miiocli, and gave the following command:
This shows that miiocli is working, token is correct and my gateway is the mieu01 one. Then I gave the following command:
and waited some minutes. Then I've done a power recycle. Here's the situation now:
How to proceed from here ? Edit: Looks like I've put a wrong md5 (got it from the description and not from the file itself), but apparently miiocli is no longer accessing the gateway (ping is ok) |
It looks like your gateway has changed its IP (dhcp) or token. Can you confirm by issuing a discover command? |
In Mi Home app IP and token did not change. I have put the IP and token in OpenHAB (Xiaomi Mi IO binding) and it goes to online. In theory that binding is also capable of sending commands to the gateway, so it's an alternative to miiocli, but I don't know how to do it. |
The Xiaomi Mi IO binding will not work as the protocol used by this gateway (MIOT which is using MIIO commands) is not yet implemented (I think as of September 2020). |
Don't know why, but Now I can ping it, but I have no telnet or ssh access to it. Does your app open any ports so that I can inspect with nmap ? |
In the http server logs, do you see any request for the lummod_gw.bin file? In other words, does the gateway fetches the package? Yes, it enables the ssh server (dropbear). You should be able to issue: ssh root@gateway_ip and login using the password "admin". |
I need some time to investigate how to enable logging. I'm using a QNAP NAS with apache web server. apache log only contains boot messages. I'll try again in a few days. |
I've enabled apache log. It shows download requests from my PC but not from the Mi Gateway. From my PC I can download using url I'm not a linux expert, maybe the |
Could you please try to issue the following command?
|
I've tried, but the same symptom: I have no log that gateway has attempted to download the firmware, but in order to continue to be able to send |
So there is a need for a correct command to be sent for the firmware to be updated..... |
Yeah I know. Sorry, I don't know any other way to update the firmware (trying to google around without succes). |
I've tried several |
Hi,
I have been trying to use the OTA firmware update method, as I burnt off the soldering point on the board. I cannot understand what to do to try this.
I installed both miio and python-miio, extracted the token from the device, but not sure what command to use.
Any help will be greatly appreciated.
The text was updated successfully, but these errors were encountered: