When I apply AC to the gatewy, the serial link is not connected (Rx, Tx, GND not connected).
Just after applying AC to the gateway, I connect the serial link (Tx, Rx, GND) between the PC and the gateway and send “enter” with Putty.
I am using the EU version of the gateway of course.
Hi cadavre, i see that you finally figured out to connect the hub to HA.
I soldered and connected to UART and I’ve managed to get factory test mode. But when I exit it, it asks for login info. which I don’t know what they are. I’m stuck at this point. It drives me crazy. Could you please help me. I’m all newbie these stuff. I couldn’t understand how I will be able to reset password. Even don’t know how I will boot into bootloader and enter printenv command.
btw: My hub is DGNWG05LM. Its from Mi Smart Sensor Set global version
I followed up your intructions with same hardware. it worked well.
I tried to open the ssh port with insert dropbear -p 22 with nano
i was root and CTR-X - save and overwrite.
I tried rebbot with device, but it was unreachable with mi home and it seems to be in …like i was connected with uart, but it wasnt
ok, reconnect with uart and check the boot. it booted but it seems. i wiped out the rc.local file somehow.
can i got a copy of yours, or how can i restore it?
I´m new in every direction. Nevertheless I managed to buy and install lots of shelly and xiaomi gadgets and get them running on their respective apps. Also I got myself a brand new raspberry 4 with 4GB and managed to get openhab running and the network binding installed, as well as the xiaomi mi smart home binding.
I enabled the developer mode on the xiaomi app (IOS), turned on the access and noted the “password”. I tried to connect the gateway like in this video. However, no thing can be found. I tried manually but with no success.
Eventually I found this thread. I have the xiaomi gateway, not aquara. In the app it says “lumi.gateway.v3”. Next step I´ll try to find out whether port 9898 is open. Although I don´t know how, yet. Any easy description? Additionally I´ll try to find out what the following things mean:
If I find a definition for dummies I´ll share. If there´s is a" how to use", tutorial or something already I appreciate a link.
Meanwhile some questions for you:
If the port 9898 is closed, is soldering and UART the only solution?
I thought of a zigbee stick as an alternative. This thread suggests that a zigbee stick with the zigbee binding is not working well. Is this a good alternative to point 1, or not?
What is zigbee2mqtt? This thread says there is a binding but the addon list does not say so. Is this an alternative and how does it work?
The gateway cannot reach the sensor in the garage. If I read this right, xiaomi range extention is only possible with another xiaomi device with AC power? Correct?
Managed to empty out my rc.local file and save it by accident, had some putty terminal issue. Does anyone have a copy for the aqara gateway, its the one with all the RX, TX, GDN pins on the side of gateway? @cadavre
So. I´m back. I managed to get the xiaomi gatway v3 connected to openhab. I know it´s solved already, but I found it hard to follow as an absolute beginner. That´s why I will explain it again so that maybe more beginners are confident to try.
Beginner to Beginner: How to connect xiaomi gateway to openhab
A special bit to open the housing of the gateway. Picture 1. It´s called “security bit” I went to local “Würth” dealer in Germany where they had one and opened it for me. Then replace by normal screws of similar size.
Get your gatway running with the xiaomi app (I used Ios/Iphone). Click on the gateway, top right “…” will bring you to settings. Click “About”. Click 5 times on the white area until the secret menu/developer mode pops up. Looks like picture 2. Enable the switch and note or screenshot your password. Picture 3.
Start soldering like picture 4. Connect the blue cable to"GND" on the UART. Connect the brown cable to “RXD” (Receiver) on the UART.
Connect UART to Computer.
Check the device on your device list to find the COM. If your device doesn´t show the COM number you might need the driver. See above. Picture 5.
Open PuTTY. Select serial and your COM port of the UART. Set Speed 115200. Don´t open yet.
Turn on the gateway / connect to power. I recommend to put it in a power plug with flip switch for the time.
Press open in PuTTY. A Window opens. You will see the messages of the gateway. Wait until the gateway finnished booting.
Connect the red cable to “TXD” (transmitter) of the UART. Now you are able to send commands to the gateway.
Send command: psm-set network.open_pf 3 send it a few times to be sure.
Check for success with command psm-get network.open_pf. It will say something like networkopen = 3
Turn gateway off. Wait. Turn it on again.
Open nmap. Picture 6. Put nmap -sU -p 9898 -Pn 192.168.178.48 in the action line and execute. You have to take your gateways IP adress. You should see that the port is open. If not, try again.
But when I want to enter the " psm-set network.open_pf 3" command, I get “-sh; psm-set: command not found”.
I was logged in as root.
Any idea of what is happening ?
Does anybody know where are located the psm-get and psm-set commands ?
find . -name psm doesn’t return an answer.
I followed your description to change root password.
My gateway is still fonctionning but I can’t reproduce some instructions.
nmap -Pn -sU 192.168.1.25 -p 22,9898 gives
22/udp closed ssh
9898/ udp closed monkeycom
As port 22 is closed I can’t ssh
Furthermore the psm-set and psm-get commands are not known
-sh: psm-set: command not found