Hi @rothm,
I have tried to upload the custom firmware using the new Developer upload tool that the new aqara app has.
Unfortunately it fails. Maybe my current firmware version is newer than the custom firmware you built. Or maybe the md5 is wrong.
Any idea?
Hello all,
If you run openhab on WINDOWS 10.
If you know your xiaomis gateway port is open but you canât discover it still and get:
No token received from the gateway yet. Unable to encrypt the access key.
Make sure firewall is not blocking multicast.
And if it still does not work, do you have installed any VMware of virtual players (virtualbox) etc?
Go to:
Control Panel\All Control Panel Items\Network Connections.
Disable the network connections that above applications above install.
Also, rightclick your correct network and make sure that there is no other drivers that normal ones (uncheck them if they are present).
Example: Virtualbox NDIS Bridged Networking Driver
Or Npcap Packet Driver
I think they interfere with the multicasting on the computer.
Now you should be able to discover the xiaomi hub (v3) (and other items as well if you had problems before).
Hi @GonzaloN,
Glad to know you tried!
Where could I get this new Developer upload tool? Which kind of information do you have to provide?
The .bin file is just a tar file and according to what I saw in the embedded script, there is no version check performed (I think the check is done by the client when looking for a new version).
In the github repo, the md5 contained in the .bin.md5 is correct (the filename at the end must be omitted) with respect to the .bin.
Best,
Roth
You have to download the newAqara app.
And while in the app, go to âAccesoriesâ menu, click on the Gateway, then on the upper right âthree dotsâ.
Finally tap several times over the serial number. Then, the âFor Developerâ menu will appear.
There you have to provide a URL for the .bin and a MD5_Code that I believe you can also write a URL
I try ota on mieu01.
Used:
- node.js miio tools ( https://github.com/aholstenson/miio)
- âfirmwareâ from github (raw link)
- md5 from file
Result:
- not working ((
Gateway just reply â[ok]â and start blink yellow. ( Stopping after any action with gateway led )
I believe it wonât work with default miio_client
implementations because it uses another messaging patterns. Implemented binary by @rothm uses straight plain-text communication while original miio_client
requires tokens and encoding/decoding messages. I may be wrong, but this is how I remembered it.
@cadavre Yes, it donât think it will work out of the box with my âmiio_client without encryptionâ / âmiio_client passthroughâ which forward each request to the âgwâ / gateway client.
The firmware / ota should be processed by the original / vendor miio_client.
Thanks!
Not running IOS and it might take some time for me to test it on AndroidâŠ
Guys, i have one aqara hub that after flashing immediate firmware flash simply bricked itself and therefore i cannot use it. I did manage to root to it and have access to it, have already tried to manually fix the thing, but without success I was wondering, if any1 of you successfully using it can send me the .bin file of a working hub?
during inspection of the device via root access, i saw that there might be some sensitive data (like wifi credentials and stuff) so you can simply write dummy values there, but pls tell me which files did you change
please, if someone can help me with this one, i would be very grateful. if not, at least point me in some direction on what i can possibly do with that device?
Hello everybody,
I am desperate. Have connected the gateway with putty and can see everything. Unfortunately, I can not enter anything. I am very inexperienced with Putty. I read that you have to copy the cmd commands. I do not know how it works. I would be very grateful for your help.
Hi all,
I am trying to follow the fix at the moment. However I donât see anything at all when I try and connect with putty. Does anyone have any ideas or suggestions for me to try? I would love to get the hub workingâŠ
Hi there, did you manage to find any solution to this problem? I have it too and don`t know what to do.
Thank you!
Bib thanks rsx2007.
Totally worked for me.
now the xiaomi Hub works perfectly in HA.
thanks a lot.
Ok so if itâs not about opening the ports, what should I do now? Iâm trying to connect the gateway to domoticz running on a Raspberry Pi. I managed to reset the root password and when I run the netstat command I get the same result as you.
Hi, i wonder if someone can help me. I have followed the guide and have connected GND from TTL to GND of the Gateway. Then i connected TX from Gateway to RX on TTL and connected it to the USB. Then i powered the gateway. When i try to connect with Putty, i use 115200 for baudrate and COM1. Putty then opens a new window witch stays blank. I dont what im doing wrong. Any help would be nice.
Not working for me
I have been fighting with this a couple days now , but i finally got itâŠ
I had the same issue as you, with no output in PuttyâŠ
And the problem was that i wasnât connected properly to TX on the gateway
So check the cable againâŠ
I managed to get it working, port 9898 opened and discovered in OH.
Hey guys! Thanks for the info above. Iâve already connected to my gateway, but when I enter psm-set network.open_pf 3 it answer me psm_set_variable() failed with: -1.
psm-get network.open_pf answer 2. Ports are closed, try to restart the gateway - nothing, try to check and play with rx\tx wires - nothing.
I canât find any information about that. Could you help me?
Gâday all,
Apologies for the cross post, but anyone have any idea on my issue whereby I am unable to get OH to effectively listen for Xiaomi heartbeats?