Zigbee firmware flashing for CC2531


https://www.youtube.com/watch?v=RguRQUXWLCY

If you are using a CC2530 or CC2531; it is a common issue for this adapter to crash (due to its outdated hardware). Reflashing the firmware should fix the problem. If it happens often consider flashing the source routing firmware or upgrade to a more powerful adapter.

wget https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_Home_1.2/bin/source_routing/CC2531_SOURCE_ROUTING_20211116.zip


so login to pi

Check if WiringPi is installed (should be) by running gpio -v if you don’t see the version in the output

sudo apt install wiringpi

Navigate to the folder

cd flash_cc2531

and see if the USB device is wired correctly running:

./cc_chipid

You should see ID = b524. if any other outcome is given, check your wires.

md flash

cd flash

wget https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_3.0.x/bin/CC2531_20190425.zip

or use the alternative above....

unzip file

cd ..

Clear the flash with 

./cc_erase 

Upload new firmware using 

./cc_write /home/pi/flash_cc2531/flash/CC2531ZNP-Prod.hex 

this will take about 3 min. 

Sonoff Zigbee 3.0 USB Dongle

If using zigbee2mqtt with these sonoff dongles note when ordering there are 2 versions. Version P based on CC2652. Version E based on EFR32MG21. The E version seems to work, flashing is slightly different if you are changing from coordinator to router or vice versa. It is listed as experimental on zigbee2mqtt site .

For the time being it seems that purchasing and using the P version is a better choice. We are testing the E version and will publish any specific info here.