Skip to content

Zigbee 🐝 Router for Xiaomi DGNWG05LM and Aqara ZHWG11LM gateways.

Notifications You must be signed in to change notification settings

openlumi/Lumi-Router-JN5169

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lumi Router

This firmware is a replacement for the original firmware for the Zigbee chip JN5169 on Xiaomi DGNWG05LM and Aqara ZHWG11LM gateways which allows to use the gateway as a router (repeater-like) in any Zigbee network instead of the stock coordinator firmware for the propriate Xiaomi MiHome Network.


This instruction assumes that an alternative OpenWRT firmware is already installed on the gateway. If you have not done this, use the following instruction https://openlumi.github.io

Firmware

  1. Connect to device via SSH.
  2. Issue the following commands in the command line.
wget https://github.com/igo-r/Lumi-Router-JN5169/releases/latest/download/LumiRouter_20210320.bin -O /tmp/LumiRouter.bin 
jnflash /tmp/LumiRouter.bin

Pairing

Issue the following command in the command line.

jntool erase_pdm

After this the device will automatically join.

Restart

Issue the following command in the command line.

jntool soft_reset

Building

  1. Downlaod and unpack ba2 toolchain, e.g. from https://github.com/openlumi/BA2-toolchain/releases/download/20201219/ba-toolchain-20201219.tar.bz2
  2. Donwload and unpack NXP SDK (JN-SW-4170) from nxp.com. If you use linux, you can use patched version that fixed compiling issues from https://github.com/devbis/JN-SW-4170/archive/refs/heads/master.zip
  3. Configure project with proviing paths to SDK and toolchain:
cmake -B build -DTOOLCHAIN_PREFIX=/full/path/to/toolchain -DSDK_PREFIX=/full/path/to/sdk
  1. Build project
cmake --build build --target LumiRouter.bin -j$(nproc)
  1. Get compiled firmware in build/src/LumiRouter.bin

About

Zigbee 🐝 Router for Xiaomi DGNWG05LM and Aqara ZHWG11LM gateways.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 87.3%
  • CMake 11.1%
  • Assembly 1.6%