Config Parameter | Value | Description |
---|---|---|
hal_zigbee.com_port | Name or location of com port | The port where radio dongle is connected |
hal_zigbee.dongle= | CC2531 or CONBEE or XBEE | Configure the dongle type |
hal_zigbee.network.channel | Integer | |
hal_zigbee.network.panid | Integer | |
hal_zigbee.network.epanid | HEX | |
hal_zigbee.network.nwkey | HEX | |
hal_zigbee.network.linkkey | HEX |
You need to buy the following items:
- http://www.ti.com/tool/cc2531emk
- Example item: https://www.aliexpress.com/item/4001091370032.html
- http://www.ti.com/tool/cc-debugger
- Example kit: https://www.aliexpress.com/item/4001095299084.html
These instructions are a modified version of from: https://www.zigbee2mqtt.io/information/flashing_the_cc2531.html
You first need to download the firmware that should be flashed to the stick. There are multiple sources where firmware can be downloaded at:
- Download firmware from GitHub CC2531_DEFAULT_xxxxxxx.zip (If link is dead try latest version here). More information about available firmware can be found here.
- Download official Z-STACK software (We do not actually need the software just the firmware binary that is included in the installation) from https://www.ti.com/tool/Z-STACK (You will need to create an account to download)
-
Download and install the "SmartRF Flash Programmer" (Not v2) application from https://www.ti.com/tool/FLASH-PROGRAMMER
-
Connect CC debugger to the CC2531 USB sniffer.
-
Connect BOTH the CC2531 USB sniffer and the CC debugger to your PC using USB.
- If the light on the CC debugger is RED press set reset button on the CC debugger. The light on the CC debugger should now turn GREEN. If not use CC debugger user guide to troubleshoot your problem.
-
Start SmartRF Flash Programmer, with the properties below:
- Flash image: Locate the binary at \Projects\zstack\ZNP\CC253x\dev\ (Make sure to select the .hex file and not the .bin file).
- Uncheck "Retain IEEE address when reprogramming the chip".
-
Press "Perform Action" to start flashing.
-
Install prerequisites for CC-Tool using a package manager (e.g. Homebrew for macOS)
- Ubuntu/Debian: libusb-1.0-0-dev, libboost-all-dev, autoconf, libtool
- Fedora: dh-autoreconf, boost-devel, libusb1-devel, gcc-c++
- Archlinux: dh-autoreconf, libusb, boost
- macOS: brew install autoconf automake libusb boost pkgconfig libtool
- Raspbian: dh-autoreconf, libusb-1.0-0-dev, libboost-all-dev
-
Build cc-tool
git clone https://github.com/dashesy/cc-tool.git cd cc-tool ./bootstrap ./configure make
-
Connect BOTH the CC2531 USB sniffer and the CC debugger to your PC using USB.
- If the light on the CC debugger is RED press set reset button on the CC debugger. The light on the CC debugger should now turn GREEN. If not use CC debugger user guide to troubleshoot your problem.
-
Flash your firmware:
sudo ./cc-tool -e -w CC2531ZNP-Prod.hex
- CCDEBUGGER user guide: http://www.ti.com/lit/ug/swru197h/swru197h.pdf