-
Notifications
You must be signed in to change notification settings - Fork 22
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
Request for Router FW #2
Comments
+1 @xsp1989 Any chance you can also release a "Zigbee Router" firmware for Zigbee 3.0 USB Dongle Model 9888010100045 ? |
It would by the way also be great if we could get a Zigbee Router firmware to Sonoff ZBBridge from ITead if possible(?) https://www.itead.cc/sonoff-zbbridge.html Zigbee Router firmware for Sonoff ZBBridge could especially be useful if used in combination with Tasmota on it https://www.digiblur.com/2020/07/how-to-use-sonoff-zigbee-bridge-with.html https://notenoughtech.com/home-automation/flashing-tasmota-on-sonoff-zigbee-bridge/ |
@Hedda I don't understand what router firmware you are talking about? Is it used as a routing device? Like a onoff light(deviceid:0x1000) |
@xsp1989 Yes, to use as a Zigbee router (ZR) device for routing, which is sometimes marketed as signal repeater or range extender. So it would be firmware like any normal mains-powered Zigbee router device, such as a Zigbee power-plug or lightbulb, passing data on from other devices, but the difference here that the Zigbee USB dongle (and Sonoff ZBBridge) would only work as a dedicated Zigbee router and really not control any replays to power-off lights, etc. Some of the dedicated Zigbee Router alternatives that are currently popular within the open source communities include these: CC2652P router by tube0013 CC2530 (with CC2591 or CC2592 Power Amplifier) DIY based router as recommended the Zigbee2MQTT community: IKEA Trådfri Signal Repeater |
Basically; after flashing a Zigbee router firmware to Zigbee USB dongle (or Sonoff ZBBridge) you could plug it into a USB-changer to give it power and then pair it to your Zigbee network and then you can place it anywhere within reach to extend range coverage. Best it of course to place any Zigbee router device away from but still within reach of your Zigbee coordinator. As a scenario; if you have a very large house or separate buildings on your property and want to place a battery-powered temperature-sensor far away from your Zigbee coordinator then you will normally need a mains-powered Zigbee device that can act as a Zigbee router which is then placed near to that battery-powered temperature-sensor. A real-world example where a manufacturer is aware of this range limitation is IKEA who include their "IKEA Trådfri Signal Repeater" packaged with their battery-powered electrical roller blinds which are "FYRTUR" called "KADRILJ" as a combination: https://www.ikea.com/es/en/p/kadrilj-roller-blind-wireless-battery-operated-grey-20408116/ https://www.ikea.com/us/en/p/fyrtur-blackout-roller-blind-wireless-battery-operated-gray-70417463/ "The blind comes pre-paired with the remote control and the signal repeater." |
Btw, I wrote these sections for Home Assistant's ZHA integration documentation to emphasize the importance of Zigbee routers: Using router devicesZigbee uses mesh networking at the core of its architecture design and adding devices capable of acting as Zigbee router (sometimes also known as Zigbee signal repeaters or extenders) is very important because they increasing the total number of Zigbee devices that your Zigbee coordinator can control in its network as well as having an integral role in extending the overall range and coverage of your Zigbee network mesh. The fact is that without having at least a couple of good Zigbee router devices available you will normally not have a stable Zigbee network. The total number of Zigbee devices that you have on a Zigbee network depends on a few things, but you should know that Zigbee coordinator hardware and firmware usually only start to play a larger role once you have around 40 devices or more in your Zigbee mesh network. More important is how many directly connected devices ("direct children") versus how many routers are and can be connected to your Zigbee coordinator. Each type and model of Zigbee coordinator also gave a different limit for how many child devices can connect directly to it. Even if that limit is low on your Zigbee coordinator if your Zigbee coordinator hardware is powerful and its firmware capable of it then you can still have a total of hundreds or even thousands of Zigbee devices as long as they are indirectly connected through a mesh network with Zigbee router devices instead. The least powerful Zigbee coordinator hardware supported by Zigpy is CC2530/2531 and its default firmware only supports 15 devices connected directly to the coordinator. However, by having a backbone of good always-on Zigbee routers in your Zigbee network, the mesh network size can be extended exponentially. You can assume that most, if not all mains-powered/AC-powered devices, e.g., wall-plugs and always powered-on lightbulbs in your Zigbee network can serve as a Zigbee router and can typically each act as a router for around 5 additional end devices, while some dedicated Zigbee router devices can each act as a router for as many as 50 devices. You can for example use a DIY CC2530/CC2531 with router firmware which have a limit of 21 devices, while a DIY CC2652P/CC2652R with router firmware which have a limit of 50 devices, or the IKEA TRÅDFRI Signal Repeater which can route about 10-20 devices. An example using a CC2531 with default coordinator firmware + two CC2531 routers; Your Zigbee network device limit will be:
As an comparison example, using a CC2652 with default coordinator firmware + two CC652 routers; Your Zigbee network device limit will be:
Improving Zigbee network rangeLow signal quality can lead to transmission errors and related issues. This section has a list of fundamental tips on how to improve signal quality. Improving signal quality also maximizes range and resolves most problems related to transmission errors. Please try to follow at least some of these recommendations before posting on the community forums or reporting issues to developers and submitting debug logs.
|
Just to clarify; this "Zigbee Router" firmware would be an optional alternative to the existing "Zigbee Coordinator" firmware. You obviously can not have "Zigbee Router" firmware and "Zigbee Coordinator" firmware flashed at the same time. People would have to buy at least one additional device if they want to have the same type of devices as a router as well. Zigbee Coordinator to RaspPi <-> Zigbee Router (Zigbee USB with router firmware) <-> Zigbee End Device (battery-operated). |
@xsp1989 Please note that we of course would it capable of full Zigbee 3.0 (Z3) compliant Zigbee Router. So not only routing for Zigbee Light Link (ZLL) or only or Zigbee Home Automation (ZHA) devices. |
One of the buttons on the Zigbee USB stick would obviously have to be mapped to activate pairing mode on the device. |
@Hedda If you have Simplicity Studio, you can try to develop your own routing firmware. Sonoff ZIGBEE 3.0 USB DONGLE firmware does not require signatures. |
If you compile the firmware yourself, please set the HFXO CTUNE value to 128. |
Sorry but I have not yet bought an official development kit which I understand is still required to get access to their Zigbee stack(?). What is your opinion on router firmware for Sonoff ZBBridge, see a separate discussion about that here -> arendst/Tasmota#11536 Would you be willing to compile signed "Zigbee Router" firmware for ITead's Sonoff ZBBridge for Tasmota to enable pairing mode? |
Hey, did anyone get anywhere with this? Also looking to use zb bridge as a router/extender also happy to try things out if I can help |
+1 for Sonoff ZbBridge as router/repeater |
FYI, @MattWestb made a hardware configuration of a Zigbee router firmware made for a Siicon Labs EmberZNet EFR32 module: MattWestb/IKEA-TRADFRI-ICC-A-1-Module#6 "Router firmware with pins for E1743 remote (paring / reset button = pairing button and also BLB if using my bootlooader)." https://github.com/MattWestb/IKEA-TRADFRI-ICC-A-1-Module/files/6559440/ZigbeeBillyRouter.zip https://github.com/zha-ng/EZSP-Firmware/files/6560171/ZigbeeBillyRouter.zip Config made for Silabs modules ripped from IKEA Trådfri devices https://github.com/MattWestb/IKEA-TRADFRI-ICC-A-1-Module/ PS: To clarify; this is only useful for building and compiling your own firmware so you can not just flash that as a firmware image. |
By the way, Tuya is apparently making a 10 dBm "Zigbee 3.0 Range Extender" / "Zigbee 3.0 Signal Repeater" (Tuya SKU: "RP280") described as Zigbee Router device in a USB dongle/stick format -> https://zigbee.blakadder.com/Tuya_TS0207.html (Zigbee 3.0 Signal Repeater Model TS0207 manufactured by Tuya. Zigbee ID: "TS0207"; "_TZ3000_m0vaazab"; "FNB54-WTS08ML1.0"). Unfortunately, this specific Tuya RP280 USB Zigbee router been proven to cause network stability issues. read -> zigpy/zigpy#736 The concept is nice though. |
This is the routing firmware: |
Cool! Which exact EmberZNet version is it based on and is any of the buttons mapped as a pairing button to enable join? Maybe perhaps detail the steps for putting into joining mode? And steps to reset, etc. Question also posted here -> #16 (comment) Originally posted by @xsp1989 in #18 (comment)
@xsp1989 So you have decided to build and release a separate firmware image for ITead Zigbee 3.0 USB Dongle that will come preconfigured a dedicated "Zigbee Router" device? Will you be able to configure it so that either the "reset button" or "boot button" can be used for pairing/joining during the commissioning process similar to any Zigbee device? |
So version EZSP 6.7.10? ...sorry, the exact version used is still not 100% clear when EmberZNet version is not part of the filename. @xsp1989 Suggest/recommend rename "RouterForDongle.gbl" to "efr32mg21_zigbee_router_6.7.10.gbl" or something similar. Version in filename is also important if ever release another version. @xsp1989 Any chance you could add patch or config info to readme so others can build and compile their own router firmware? |
@Hedda The file name has been changed |
@xsp1989 Any chance you could provide ITead signed Zigbee Router firmware for Sonoff ZBBridge? It also uses SM-011 module. For reference; It is currently popular to flash ITead's Sonoff ZBBridge with either Tasmota or ESPHome and use it from Home Assistant's ZHA integration as a remote Zigbee Coordinator (via EZSP) using a serial stream server in Tasmota/ESPHome, but since ITead's Sonoff ZBBridge has been shown to be unstable as such reote Zigbee Coordinator in ZHA because of its WiFi-only connection to the network it would be great if could instead use it as a Zigbee Router with Zigbee Router firmware instead, however, I believe it requires firmware image for ITead's Sonoff ZBBridge to be signed to work? https://zigbee.blakadder.com/Sonoff_ZBBridge.html https://github.com/arendst/Tasmota/tree/development/tools/fw_SonoffZigbeeBridge_ezsp https://tasmota.github.io/docs/Zigbee/ https://github.com/thegroove/esphome-zbbridge/ PS: Alternative to ITead's Sonoff ZBBridge hardware is ZB-GW03 eWeLink Ethernet LAN Zigbee Gateway as also uses the SM-011: https://templates.blakadder.com/ewelink_ZB-GW03 https://thehelpfulidiot.com/a-wired-sonoff-zigbee-alternative |
There is already a signed routing firmware for ZBbridge, and it may not be released. If you need it, I can send it to you by email. |
I'd be curious to see how it works. I know I've had several people asking about routing firmware on the ZBBridge to repurpose them. |
Would especially be interesting if could control pairing/joining it as a Zigbee device from Tasmota and/or ESPHome builds for it. |
I think the ZBB dont have the GPIO connected to the pad of the Zigbee module but perhaps its working using the reset pad of the module if the code have logick implanted for it (like most lights is having). |
ZBB needs to develop functions on ESP8266, pull down PA00 to enter configuration mode . |
The routing firmware is not specially adapted to ZB-Bridge, which is a commercial firmware, controlled by serial port protocol, or the same way as 3.0 dongle (PA00 is connected to GND for 5 seconds). Update files can be released if needed, but it's not a good idea to use this firmware on ZBB |
I think it would be great as just a dumb router per say. As people have these laying around in the drawer and could write the router firmware to it and join it to their main zigbee network. The bridge via serial wouldn't do anything of course. |
@xsp1989 It is already very popular to flash ITead's Sonoff ZBBridge with Tasmota or ESPHome firmware to use a coordinator. I am sure that if a Zigbee Router firmware was released for it then it too would also become popular to use as a dedicated Zigbee Router among the same communities that use ITead's Sonoff ZBBridge with Tasmota or ESPHome. https://github.com/arendst/Tasmota/tree/development/tools/fw_SonoffZigbeeBridge_ezsp One benefit of having access to it via Tasmota or ESPHome would be to remotely reset/reboot it if hangs for whatever reason. I strongly believe that ITead would actually sell more Sonoff ZBBridge devices to those community members if a compatible Zigbee Router firmware was released for it. As digiblur mentioned; the goal for most of those potential users would be basically just to use it as a "dumb" Zigbee Router device in order to help extend range and coverage as a Zigbee network will work better with many always-on Zigbee Routers. |
@xsp1989 By the way, check out these related blog posts by @digiblur which are good examples of how news like this is spread: https://www.digiblur.com/2020/07/how-to-use-sonoff-zigbee-bridge-with.html https://www.digiblur.com/2021/03/zigbee2mqtt-with-sonoff-zigbee-bridge.html https://notenoughtech.com/home-automation/flashing-tasmota-on-sonoff-zigbee-bridge/ Same with ZB-GW03 which also uses the same SM-011 module from CoolKit: https://thehelpfulidiot.com/a-wired-sonoff-zigbee-alternative Hacking the ITead's Sonoff ZBBridge and ZB-GW03 was initially made popular by Tasmota for their "Zigbee2Tasmota" implementation, but I believe that most people who hack it today only use it as a dumb remote Zigbee Coordinator adapter for Home Assistant's ZHA integration or Zigbee2MQTT: https://tasmota.github.io/docs/Zigbee/ https://github.com/arendst/Tasmota/tree/development/tools/fw_SonoffZigbeeBridge_ezsp Both the Sonoff ZBBridge and the ZB-GW03 can today also be made to work in ESPHome: |
@Hedda the reuse of hardware is a beautiful thing instead of ending up in a landfill. |
Yes I agree, though my main argument is still it would bring new customs to buy multiple Sonoff ZBBridge just to use as routers. They can practically only sell one Zigbee Coordinator to most customers but they can sell several as routers to each customer. Sonoff ZBBridge and ZB-GW03 has both a very nice form factor and many users like the idea of Tasmota or ESPHome enabled. It could work as a Tasmota and ESPHome administration enabled alternative to Tube's Zigbee Router and IKEA Signal Repeater: https://www.tubeszb.com/product/cc_router/4?cp=true&sa=false&sbp=false&q=false&category_id=3 https://www.ikea.com/us/en/p/tradfri-signal-repeater-30400407/ https://www.ikea.com/se/sv/p/tradfri-signalfoerstaerkare-10400408/ |
FYI, @xsp1989 has now uploaded/shared a signed Zigbee Router firmware for ITead's Sonoff ZBBridge to his google drive here:
Do you think Tasmota can send basic serial commands to this Zigbee Router firmware to initiate paring/joining and restart/reset? This idea is also being discussed specifically for ITead's Sonoff ZBBridge hacked with Tasmota here -> arendst/Tasmota#11536 PS: Have not tried this myself as I got rid of my ITead Sonoff ZBBridge because being WiFi-based it did not work any good as a remote Zigbee Coordinator, but might reconsider buying one if it worked as a Zigbee Router device that can be paired/joined and restarted/reset remotely via Tasmota and/or ESPHome. So that Tasmota/ESPHome is basically only used to initiate virtual join/pair button and restart/reset the device similar to a remote power-cycle it hangs. |
Update from xsp1989 on router firmware posted on arendst/Tasmota#11536 "This firmware can ground the PA00 5S into pairing mode, and ground the RST to restart routing. UART is used to transmit data transparently. and "There is also another version of the routing firmware that can control the join network through a proprietary serial port protocol" |
Check out this new "How to Convert the Sonoff Zigbee Bridge into a Router / Repeater" blog article by @digiblur here: https://www.digiblur.com/2022/02/convert-sonoff-zigbee-bridge-to-router-repeater.html Note that the article already assumes that you have flashed Tasmota onto ITead Sonoff ZBBridge as per his previous guide: https://www.digiblur.com/2020/07/how-to-use-sonoff-zigbee-bridge-with.html |
I followed the digiblur instructions and was able to convert my Sonoff Zigbee Bridge to a router. Works well, except I notice it never had more than 6 direct children. I didn't expect this as the zigbee bridge can handle many more child devices as a coordinator. Am I doing something wrong? |
Which Zigbee gateway solution are you using and can you try enabling "Zigbee source routing" in that Zigbee gateway solution? If you have Zigbee devices that the manufacturer has properly configured the firmware then they will usually around every 24 hours or so try to connect to the Zigbee Router with the best RSSI (Received Signal Strength) then it will over time report LQI (Link Quality Indication). If you have Zigbee devices that the manufacturer has properly configured the firmware then this should have no problems routing 20 devices. But note that if you are using cheap Zigbee end devices from Aqara/Xiaomi or Tuya then know that they commonly do not have properly configured firmware and have a tendency to not connect to other Zigbee Routers from other brands. Some Zigbee solutions do however offer the option to force the initial pairing/joining via a specific Zigbee Router and that will make the device stick to it, though the downside to that is that such devices will then normally automatically switch to another Zigbee Router if the device it is paired through goes down for whatever reason. Obviously no devices will connect to a Zigbee Router if they see better RSSI from your Zigbee Coordinator and it has available slots. |
Routing firmware has been released, so close this issue. |
Would it be possible to get a FW for the bridge to act as a standalone router/repeater?
The text was updated successfully, but these errors were encountered: