Skip to content

Latest commit

 

History

History

update

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Modifying Aqara Hub E1(aqcn02/ZHWG16LM) firmware via telnet (MiHome mode)

Telnet must be opened on the hub via php-miio/python-miio(manual). You will need telnet client like putty or other. You can find out IP of the hub in MiHome or on your router. Login - "root", no password.

The easy way

Open telnet session, connect to hub and run commands:

wget -O /tmp/curl "http://master.dl.sourceforge.net/project/aqcn02/bin/curl?viasf=1" && chmod +x /tmp/curl
/tmp/curl -s -k -L -o /tmp/update.tgz https://raw.githubusercontent.com/zvldz/aqcn02_fw/main/update/aqara_e1_files.tgz
tar -C / -xzf /tmp/update.tgz && source /data/profile

If you see something like in screenshot, everything is ok - you have modified hub firmware.

What results from the modification of the hub firmware

  • Open telnet by default
  • Added greeting info (fw version, ip, mac, token and etc)
  • Added '/data/bin' in $PATH and '/data/lib' in $LD_LIBRARY_PATH
  • Added utilities (curl, dropbear, file, htop, ldd, minicom, nano, rx, sed, ser2net, socat, strace, sx, mosquitto_pub, mosquitto_sub, tcpdump)
  • Added '/data/terminfo' (some utilities need it)
  • Added ability to run additional services (ftp, dropbear, socat, ser2net, mosquitto with public port)
  • Added utility to update zigbee firmware for Zigbee2MQTT/ZHA (read more)
  • Update modification from git
  • Uninstall modification
  • Added custom startup script '/data/run.sh'
  • Added attempt to restore the modification if it is broken
  • Mod survives a factory reset (partially restorable). And also when switching to Aqara mode

Service managment

To run the service with the system, you must create an empty file with one or some of the names

  • /data/enable_ftp
  • /data/enable_mosquitto
  • /data/enable_socat
  • /data/enable_ser2net
  • /data/enable_dropbear

Update and uninstall modification

To update modification you need to use the 'mod_update.sh' script.

To uninstall modification run the script 'mod_uninstall.sh'.