Extend range of zigbee network using CC2531/CC2530 routers
The CC2531 does not seem to have as good range as my Xiaomi hub. Using same type of Xiaomi sensor (new generation reed switch sensor - MCCGQ11LM) I found that the CC2531 is failing to receive updates, where the Xiaomi does. Hub and CC sniffer are in same room ~1.5M apart. The reed sensors are in a room in floor below next to each other. (Neither network has active/powered devices to act as repeater)
Is there any way to improve range?
-
I have the dongle on a USB extension to move it away from the metal of my VM server, but I think I can use a longer extension to get further away from the metal...
-
I can add powered device (e.g.) bulb as a repeater. Problem with this is that bulbs do get hard switched off sometimes. I dont have any zigbee sockets.
-
There are CC2531 devices with a RF front end and external antenna with supposedly higher range. e.g. this one But these cost more + less easy to program (need to solder header) + not sure if firmware is compatible with the RFX2401C PA chip
Anything else?
Hello. I have been tested 4 types of cc253x devices as coordinator:
From left to right: cc2531, cc2530 with external antenna, cc2530+cc2591, cc2530+RFX2401
Three last (right) devices not different for xiaomi sensors. Because it is not listen xiaomi sensor in long range (sensor can not send long range signal).
In direct line of sight I get work sensor on ranges: 30m with cc2531 and about 50-60m with cc2530 + external antenna and also with cc2530 + range amplifieres.
https://www.youtube.com/watch?v=v6iMcxRl_Xc
You may add a custom router with the external antenna (based on 2nd board from the left) http://ptvo.info/cc2530-based-zigbee-coordinator-and-router-112/ I'm using 2 routers and 1 coordinator in my rather large home (about 500 m2).
@ptvoinfo It is good news! Thank you. Can you make and share cc2531 firmware for router?
@kirovilya I can try. But why CC2531 is better than CC2530? CC2530 is cheaper and has the external antenna.
@ptvoinfo yes, but cc2531 is simplier for other users :) "plug and use"
@kirovilya this is not simple as you think :)
- you need to flash a new firmware.
- you need to place it somewhere with a 5V power source and usually this is a hidden place. So IMHO, CC2530 is better. Therefore I use CC2531 as a sniffer only.
Plug a cc2531 with router firmware into 5v USB PSU like one of these? https://www.amazon.co.uk/dp/B01N25761P/ref=cm_sw_r_cp_api_i_KxdaBbMNEQA2E
I would also like to get my hands on a cc2531 router firmware :)
Too easy to stick it directly to a usb mains charger behind some furniture
Hi @ptvoinfo I read your blog post linked above - thx for sharing. I notice that for the router firmware you mention that you "Pre-configured manufacturer code for Xiaomi devices." Does this mean that the router f/w needs to be customised for the devices that will be in the network? Can it be made generic?
Hi @james-fry A generic router must be configured first using Z-Tool (set network ID, default channel, security key). From my point of view this is not an easy process.
Understood. With my limited understanding of zigbee, I had assumed that we'd need to pair the router with the coordinator in the same was as an end device - e.g. perhaps using one of the two ptm switches on the cc2531 sniffer to initiate pairing?. This would then set the ID/channel/key in same way as a device like the xiaomi smart sockets (which are both end device and router). BTW I totally get that writing f/w for this is a big job, but maybe there is capability in this forum to get it working?
Hi @kirovilya - I noticed that your testing includes two boards with RF frontends (cc2530+cc2591, cc2530+RFX2401). Are you aware of whether the "48 device" coordinator firmware for this project is compatible with those frontends? As I understand it the CC253x SoC has to program/control the frontend chip via GPIOs, so the f/w needs to include support. Both 2591 and RFX2401 have different requirements. @oskarn97 - If Im correct you were the source for the f/w. Would you be able to confirm this?
Maybe we can start a list of compatible boards over and above the recommended CC2531 sniffer USB dongle?
@james-fry for cc2530 (without range amplifieres) you need firmware https://github.com/kirovilya/files/blob/master/CC2530ZNP-Pro-Secure_LinkKeyJoin.hex (but this firmware without maximum 48 devices) and for cc2530 with RF you need https://github.com/kirovilya/files/blob/master/CC2530ZNP-Test_for_CC2591.hex (thank @oskarn97 for this firmware)
I've just increased the device limit and enabled secure link join. Apart from that I did not modify the default TI Z Stack Home.
Thanks for the swift replies, @kirovilya @oskarn97
So as a summary we have support for: (UPDATED)
- CC2531 with this firmware: https://github.com/Koenkk/zigbee2mqtt/tree/master/firmware
- CC2530 with this firmware: https://github.com/kirovilya/files/blob/master/CC2530ZNP-Pro-Secure_LinkKeyJoin.hex
- CC2530 + CC2591 with this firmware: https://github.com/kirovilya/files/blob/master/CC2530ZNP-Test_for_CC2591.hex
- CC2530 with RFX2401 also with this firmware: https://github.com/kirovilya/files/blob/master/CC2530ZNP-Test_for_CC2591.hex
Not supported
- CC2531 with any RF front end (CC2591 or RFX2401)
Is this correct?
@james-fry not correct. https://github.com/kirovilya/files/blob/master/CC2530ZNP-Test_for_CC2591.hex compatible with CC2591 and RFX2401. ~~I not found CC2531 with any RF.~~ sorry, found in first post
@kirovilya Thanks. Updated the summary with this confirmation. This guy is selling CC2531 + RFX2401 https://www.ebay.co.uk/itm/CC2531-RFX2401C-PA-LNA-RF-Front-End-2-4GHz-IEEE-802-15-4-ZigBee-USB-dongle/141931496878 There are a couple of versions - one also with ext antenna.
We need to make this information sticky in the Wiki :)
@dgomes I also maintain wiki in Russian. it will be possible to give a link to it as a localized resource :)
I'm happy to update wiki and make a PR later today.