-
Notifications
You must be signed in to change notification settings - Fork 4
2 ZIGBEE MODULE
The cc25xx module works as our zigbee coordinator. It is controlled by the RPI via its 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).
We can make use of a cc2530 or cc2531 zigbee module.
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.
Ccloader is an arduino program that we can upload to an ESP device (like the ESP you are going to use for this project). 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.