This how-to has been confirmed working with the following CC2530 based devices:
Device | Image |
---|---|
CC2530 |
and the following USB to serial adapters:
Device | Image |
---|---|
CP2102 |
The required coordinator fimrware can be found here: CC sniffer devices.
Connect to CC2530 to the USB to serial adapter using the following mapping:
USB-Serial Adaper | CC2530 |
---|---|
3V3 | VCC |
GND | GND |
TXD | P02 |
RXD | P03 |
Now plug in the USB-to-serial adapter in your USB port.
Add the following to your Zigbee2mqtt configuration.yaml
:
advanced:
rtscts: false
and start Zigbee2mqtt, enjoy!
CC2530 can be connected to a Raspberry PI (Zero) via GPIO Pins - no USB2FTDI is needed.
The use of UART by the installed Linux has to be disabled: Detailed explanation here
Enable UART in the Kernel and disable UART use for BlueTooth.
In /boot/config.txt
add following lines:
enable_uart=1
dtoverlay=pi3-disable-bt
Disable the modem system service (on the command line):
sudo systemctl disable hciuart
Remove the console entry by removing any of those entries from /boot/cmdline.txt
if present:
console=serial0,115200 console=ttyAMA0,115200
Reboot your Raspberry.
CC C2530 -> Raspberry
VCC -> 3,3V (Pin1)
GND -> GND (Pin6)
P02 -> TXD (Pin8 / BCM 14)
P03 -> RXD (Pin10 / BCM 15)
Change the Serial Port in your data/configuration.yaml
file:
serial:
port: /dev/ttyAMA0
advanced:
baudrate: 115200
rtscts: false
Have fun.
This setup allows you to connect a CC2530 to an ESP8266 which can be put everywhere in your house. Via a serial socket, Zigbee2mqtt will connect to your CC2530.
Wire the CC2530 to the ESP8266 using the following scheme:
ESP8266 | CC2530 |
---|---|
3v3 | VCC |
GND | GND |
TX | P02 |
RX | P03 |
GND | P20 |
GND | P04 |
GND | P05 |
The ESP8266 needs to be flashed with ESPEasy. ESPEasy has suficient documentation on how to get you up and running:
- How to flash the ESP8266 with ESPEasy
- ESP8266 firmware: ESP_Easy_mega-XXXXXXXX_normal_ESP8266_4096.bin
- More information about ESPEasy
Open the ESPEasy web interface and complete the setup. Afterwards open the web interface again.
Click on Devices Edit of the first task and select Communication - Serial Server from the dropdown list.
Fill in the form as following:
a. Name: ZIGBEE2MQTT
b. Enabled: checked
c. TCP Port: a number between 1000 and 9999 "1775"
d. Baud Rate: 115200
e. Data bits: 8
f. Parity: No Parity
g. Stop bits: 1
h. Reset target after boot: - none –
i. RX receive timeout: 0
j. Event processing: Generic
Press Submit, the setup is now completed.
Now add the following to the Zigbee2mqtt configuration.yaml
:
serial:
port: 'tcp://192.168.2.13:20108'
Note to change the IP address and port. You can now start Zigbee2qmtt.