-
Notifications
You must be signed in to change notification settings - Fork 2
06 ZIGBEE MODULE
The cc25xx zigbee module works as our zigbee coordinator. It is controlled by the ESP via its (alternative) serial port.
At power-up, the coordinator is started with a series of serial commands from the host device (e.g. ESP or Raspberry pi). The zigbee coordinator sets up the Zigbee network and binds the slave devices (our inverters). It sends/receives wireless signals to/from our inverters.
These modules have to be flashed with the firmware developped for this purpose by @kadszol (included in the download package). For both modules you should flash CC2530ZNP-with-SBL.hex. The firmware for the cc2531 doesn't work.
We can make use of a cc2530 or cc2531 zigbee module. They work with the same firmware. There are several ways to flash the firmware without the need for extra hardware. In the picture below we can see which pins are used for flashing and for the normal operations
The cc2531 has equivalents of these pins.
This is an arduino program that we can upload to an ESP. With the help of this program we can upload the firmware to our cc25xx. Please google how to do this.
The utility flash_cc2531 can be installed on a Raspberry pi. Google to find out how to do this.
When flash_cc2531 is installed we connect the zigbee to the rpi according the diagram below.
Now we can issue some commands to erase and flash the module.
When successfully flashed we reconnect the cc25xx to our ESP.
Please note that for the normal operation the cc2530 should be wired according to the picture below.