Friday, October 23, 2015

Setup Zigbee HA coordinator with TI Ztool and CC2531 USB dongle and use CC2650 SensorTag as Zigbee end device to join coordinator.

The following steps show you how to setup Zigbee HA coordinator with TI Ztool and CC2531 USB dongle and use CC2650 SensorTag as Zigbee end device to join coordinator.

1. Use CC Debugger to download CC2531ZNP-Pro-Secure_LinkKeyJoin.hex to your CC2531 USB dongle. Plug CC2531 USB dongle into USB socket of your PC and you should have it enum as a CDC Serial Port (mine is COM29 in the test.)


2. Set com port setting to 115200 Baudrate and Handshake as none


3. Press "Scan for devices" button on Ztool. If your COM port is scanned successfully in ZTool, it should looks like the following screen shot.
 

4. Run the attached script coordinator_light.zip to initialize coordinator from Ztool.


  

    p.s. The script uses Zigbee channel 11 and do remember to change ZC_Com in the script to your CC2531 virtual COM number. In my test, it is COM29.

5. Build Zigbee SensorTag (CC2650STK) to join as end device. Make sure you use -DDEFAULT_CHANLIST=0x00000800 (channel 11) in f8wconfig.cfg and set "xHOLD_AUTO_START" and "xNV_RESTORE" in ZStackCore. Set "xZCL_EZMODE" in SensorTag application. Compile SensorTag and download it to your CC2650STK.




6. Enable permit join on coordinator by sending ZDO_MGMT_PERMIT_JOIN_REQUEST with AddrMode=0x02, DstAddr=0, and Duration=255.




7.Power on CC2650STK and you should see ZDO_END_DEVICE_ANNCE_IND some seconds later.


3 comments:

  1. Following the blog, I used the firmware CC2531ZNP-Pro-Secure_LinkKeyJoin.hex.
    When I ran the script coordinator_light script in Z-tool, I got the following error. I do see the device CC2531 as CDC device at serial port COM6.


    Error: 'COM6' is not connected to an operational ZigBee device. Check your settings.
    File: C:\Users\lliu\Desktop\coordinator_light.zjs
    Line: 517
    Source: ZEngine.Send(comm, req);

    *** RUNTIME ERROR ***

    ReplyDelete
  2. i'm working with 2 cc2530, what should I do to form a network? could you please help me?

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete