This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Need Support for ZHA profile

Hello,

ZC - Zigbee Coordinator
ZR - Zigbee Router
ZED - Zigbee End Device
ZHA - Zigbee Home Automation

Right now I am working on ZNP protocol. My application is to control LED light(On/Off,Dimming) connected to ZR. I am using Anaren module A2530 for as a ZNP controller and Host processor MSP430 to control A2530. MSP430 control A2530.

Now I want to support ZHA devices in my application along with ZNP protocol. I have download a ZHA_stack_1.2.2 hex file from internet and load it in A2530 module. A2530 start zigbee network when MSP send start Zigbee network request but my any ZR device is not able to connect it in spite of finding PAN ID of network. I have use default Trust Center Link key  {0x5A, 0x69, 0x67, 0x42, 0x65, 0x65, 0x41, 0x6C, 0x6C, 0x69, 0x61, 0x6E, 0x63, 0x65, 0x30, 0x39} to at both site, ZC and ZR.

I don't understand what is left. So please help me.

  • I suggest you using Ubiqua Packet Analyzer to have a look on your association process of ZR with ZC.
  • YK Chen,

    I want to be clear on that is any special API or setting is required at host processor(MSP430) side for ZHA by which host processor can give command to A2530 module for allowing ZR device to connect?

    I am using following API from host to A2530 for ZC.

    startModuleWithSecurity(uint8_t deviceType, uint32_t channelMask, uint16_t panId,
    struct applicationConfiguration* ac, uint8_t securityMode, uint8_t* key);

    Where
    deviceType = COORDINATOR (0x00)
    channelMask = CHANNEL_MASK_11 | CHANNEL_MASK_13
    panId = ANY_PAN(0xFFFF)
    ac = GENERIC_APPLICATION_CONFIGURATION (0x00)
    securityMode = SECURITY_MODE_PRECONFIGURED_KEYS
    key = {0x5A, 0x69, 0x67, 0x42, 0x65, 0x65, 0x41, 0x6C, 0x6C, 0x69, 0x61, 0x6E, 0x63, 0x65, 0x30, 0x39}

    At ZR side i have used same API with deviceType = ROUTER(0x01)

    Is any thing i should set except this?
  • For security mode, it should be TC LINK KEY not securityMode = SECURITY_MODE_PRECONFIGURED_KEYS.