ZigbeeCoordinator: Difference between revisions

From RevSpace
Jump to navigation Jump to search
No edit summary
Line 20: Line 20:
I ordered [https://aliexpress.com/item/CC2531/32869263224.html this CC2531 stick] plus the debug connector.
I ordered [https://aliexpress.com/item/CC2531/32869263224.html this CC2531 stick] plus the debug connector.


This was connected to an ESP8266 Wemos D1 mini for programming.
By default, the stick shows up in the system log as follows:
  [58101.234023] usb 1-3: New USB device found, idVendor=0451, idProduct=16ae, bcdDevice= 1.17
  [58101.234030] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
  [58101.234033] usb 1-3: Product: CC2531 USB Dongle
  [58101.234037] usb 1-3: Manufacturer: Texas Instruments
 
It was connected to an ESP8266 Wemos D1 mini for re-programming.


I wired this up as follows:
I wired this up as follows:
Line 33: Line 39:
* Wemos D1 pin D5 -> breadboard connected to D6!  
* Wemos D1 pin D5 -> breadboard connected to D6!  


I downloaded the [https://github.com/kirovilya/CCLib CCLib toolchain] from GitHub.
I downloaded the [https://github.com/kirovilya/CCLib CCLib toolchain] from GitHub and made the following changes:
 
 


=== Software ===
=== Software ===

Revision as of 13:45, 10 March 2019

Project ZigbeeCoordinator
File:NoPicture.jpg
Flashing a CC2531 USB dongle with Zigbee coordinator firmware
Status In progress
Contact bertrik
Last Update 2019-03-10

What

This page describes the steps I performed to flash a generic CC2531 USB stick with firmware to make it act as a Zigbee coordinator. Zigbee is a wireless protocol to communicate with wireless appliances in your home, for example Ikea TRADFRI lamps.

Steps to do:

  • buy the hardware, i.e. the CC2531 stick and the adapter cable
  • wire up an ESP8266 Wemos D1 mini as a programmer
  • build the ESP8266 Arduino sketch
  • download, build and run the programmer utility

Hardware

I ordered this CC2531 stick plus the debug connector.

By default, the stick shows up in the system log as follows:

 [58101.234023] usb 1-3: New USB device found, idVendor=0451, idProduct=16ae, bcdDevice= 1.17
 [58101.234030] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
 [58101.234033] usb 1-3: Product: CC2531 USB Dongle
 [58101.234037] usb 1-3: Manufacturer: Texas Instruments

It was connected to an ESP8266 Wemos D1 mini for re-programming.

I wired this up as follows:

  • press the flatcable onto the stick, with the red wire away from the USB connector
  • press the flatcable onto the programming adapter, with the red wire towards pin 1

Wiring up:

  • Wemos D1 pin GND -> breadboard -> adapter GND (pin 1)
  • Wemos D1 pin D8 -> breadboard -> adapter RESETn (pin 7)
  • Wemos D1 pin D7 -> breadboard -> adapter DC (pin 3)
  • Wemos D1 pin D6 -> breadboard -> adapter DD (pin 4)
  • Wemos D1 pin D5 -> breadboard connected to D6!

I downloaded the CCLib toolchain from GitHub and made the following changes:


Software