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
Zigbee router firmware support #1307
Comments
This component supports flashing zigbee fw for Multimode 1 gateway. But how this device will be paired to another existing network? |
The OS would lose control of the zigbee coordinator and pairing would happen by shorting two pins. Reflashing the coordinator firmware would probably happen through the SWD interface, so this is something that's for the DIY enthusiast. |
Zigbee chip has reset pin and bootloader pin. You talking about yet another pin? |
Also can you compile firmwares with new EZSP versions? This is update fw function:
And current supported firmwares: XiaomiGateway3/custom_components/xiaomi_gateway3/core/ezsp.py Lines 68 to 70 in 029338b
|
One of the pins (bootloader perhaps) could be recylced as the pairing pin within the firmware. I can try to compile one, but going back to the coordinator firmware will definitely need SWD access, I'll try to map out if the SWD pins are available on test points. Just to confirm, can any of the pins of the EFR32 (reset, bootloader, etc.) be triggered within the OS? Also I found this: How did you figure out which GPIO was mapped to which pin on the EFR32? |
Yes. Any pins can be triggered. bin\zigbee_inter_bootloader.sh
bin\zigbee_reset.sh
bin\zigbee_isp.sh
bin\zigbee_reset.sh
|
Also I'm using this scripts during firmware update XiaomiGateway3/custom_components/xiaomi_gateway3/core/ezsp.py Lines 45 to 49 in 4c05771
|
Update: I managed to flash the EZSP firmware on a Gateway V2 (MGW2) |
I have got this file on my MGW2 after update to 1.0.7. I think it is firmware, but I don't sure. |
I will compare the two with a hex editor (magic bytes, etc.) ,and will report back |
yeah looks like a firmware starting from offset 0x3E, where did you get this? Is there a built in xiaomi utility that deals with such stuff? |
Any update to gateway firmware 1.0.7 will flash new fw to zigbee chip. I don't know why they do it. Never saw this before. |
Ah thanks, it worked! The trick:
Eventually, you will get:
And the firmware by this time will have got updated! |
Yes |
Uploaded: https://file.io/hWKK73ZwEyyY |
50% for my gateway. |
yeah it's very high, would you mind reporting this to Aqara please (they are supposed to be the manufacturer of the gateway), you probably know a lot more about the internal architecture of the gateway than what I do. In the meantime, I'll submit the PR with some scripts that will update the firmware of the MGW2. How do you usually test the changes? Is there an acceptance test or integration test suite? |
I don't know how to test firmware update process. Only via manual testing |
Okay, sorry for the spam, but I compiled a multiprotocol RCP firmware that works with the latest (2.4.5)
The only thing that matters is the Then follow the multiprotocol addon insturctions to set up either ZHA or zigbee2mqtt, both work perfectly, and obviously the thread/matter devices work too. |
It'd be nice if the zigbee module could be used as a router when someone has an existing zigbee network.
I can compile the firmware if I'm given the hardware config for the zigbee module (uart pins, baud, bootloader type, etc.)
The text was updated successfully, but these errors were encountered: