![]() If the stick lies in front of you, the USB-Port facing to the left, Pin 1 is the one on the top right of the 10 Pin programming header.Whilst i understand that the CC2531 are not recommended, nowhere do any of the docs say they are unsupported / do not work…infact, the CC2531 adapters are listed as being known working radios You only need to connect these four Pins on the CC2531: Note, that on the wemos/ESP side, D6 ( DD_I ) and D4 ( DD_O ) are connected together and go to Pin 4 ( DD / Debug Data ) on the CC2531 debug port. These small pins are really pretty fragile! So take care when not using the small spaced connector cable. I've seen a couple of people destroy their debug port / breaking pins by handling it too rough. In order to connect your wires, you can either use the linked Debugger Cable or carefully connect your SMD probes to the tiny pins. In contrast to your common breadboard / connector, the debug port on the CC2531 has a smaller spacing of 1mm. Since the ESP uses 3.3v, you don't need a voltage divider! Now, get some (actually 5) jumper wires and connect your ESP board to the debug port of your CC2531 adapter. Once you've compiled and uploaded the CCLib_proxy to your wemos d1 mini board, unplug it from the USB bus. ![]() Once you have modified the code, compile and upload it. you probably don't have to change the delay. this is needed for the ESP8266 / wemos d1 mini / nodeMCU to get it working ![]() line 98 and increase the initial value (50) to 1000:Īgain. Then, look for the first delay() at approx. Pinout configuration (Configured for wemos D1 mini) int CC_RST = D5 After more than an hour experimenting I found this configuration to be working flawlessly out of the box. This is important, since it makes a big difference which Pins you use! I was not able to make the programmer work when I initially used other pins. Specify the correct Pins for the ESP8266 / Wemos D1 mini If you have downloaded the CCLib_proxy.ino linked above you can skip the following code modification. I have uploaded my modified version of the arduino sketch to hackaday.io. Open the CCLib_proxy.ino from CCLib/Arduino/CCLib/Examples/CCLib_proxy Install the Arduino/CCLib library to your arduino IDE Now, install the required python modules by typing: Once you've downloaded/unzipped CCLib, open a terminal and change directory into the Python folder You will also need Python 2.7 or later installed to your system. Just save the file and you are good to go. Scroll to the very bottom of the file and remove the second line from the bottom. hex file in a text editor of your choice. Otherwise you will not be able to flash it! When using the arduino based CCLib_proxy debugger/programmer as described here, the custom firmware (CC2531ZNP-Prod_20181119.zip) from Koen Kanters, has to be modified. If you download the CC2531ZNP-Prod.hex from here ( hackaday.io) you do not have to modify the file! Hence I have attached them to this project. I installed and verified both versions to be working. On Linux, you can simply download it by typing wget https:/ //kirovilya /files/master /CC2531ZNP-Pro-Secure_LinkKeyJoin_mod.hex This is the firmware for your custom, ESP8266 based programmer I assume you are familiar with the Arduino IDE and have it installed on your PC. update: new Z-Stack-Firmware with group support and increased stability from Kkoenk available: Once you have your stick up and running, see also my other project on how to add an antenna socket for increased range: CC2531 USB Adapter Antenna mod ) and use it as remote ZigBee to MQTT gateway which can be placed in a suitable location in order to get a better range. Once you have the correct firmware installed, you can use it to replace most if not all of your proprietary ZigBee gateways and use it to control a variety of different devices, such as lamps, temperature sensors, switches, etc.ĭepending on your home automation system, you can either use the stick directly with an appropriate adapter or have it plugged into a raspberry pi (or orange pi, etc. Since it has a programming port, you can upload/install a custom firmware which acts as a zigbee concentrator. You can get these for a few dollars from aliexpress or ebay. The CC2531 is a complete ZigBee / IEEE 802.15.4 transceiver bundled with an 8051 CPU and an USB interface on one chip. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |