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.

Zigbee Router Join in HA profile

Other Parts Discussed in Thread: CC2530, CC2591

We have a standard 3rd party gateway with HA1.2.2 which is having cc2530 as soc.

Now we are developing zigbee touch panel with HA1.2.2 for which again we are using cc2530 & cc2591 as znp.

We did all nv configuration by setting device as router post which we sent AF_REGISTER & ZDO_STARTUP_FROM_APP  command.

ZNP is responding with join successfull call backs but we are not able to see the device getting listed in the gateway.

Kindly let me know the possible solution.

Thanks in advance.

Regds

Muzamil

  • What's your question?
  • Our Zigbee device is joining to a zigbee gateway which is co-ordinator. this we can see in sniffer tool.
    But in gateway the joined router is not getting listed.
    Wanted to know the procedure what we are following to configure the zigbee module is correct or not.

    regds
    Muzamil
  • Can you specify which 3rd party GW you use and does it run Zigbee HA profile?
  • Hi Its a gateway developed by a company by name ALBA. GW is HA profile & other HA compliant relays are able to join & communicate with the same gateway. When our device joins as a router we could see some ZDO call backs @ gateway side but it doesnt get listed in its table.

    regds
    Muzamil
  • Hi Chen,

    The gateway is developed by a company called ALBA. The gateway is HA1.2.2 gateway also uses the same ti soc cc2530.
    We tested gateway with some other 3rd party products like relays & switches, they all joined network & we were able to control relays from the app of gateway.
    Now we are in development of capacitive touch switches & we need these switches to be HA1.2.2 compliant. we are using cc2530 as ZNP.
    & renessas controller as ZAP.
    We did all NV configurations as mentioned in znp spec document by sending sequence of commands(SREQ)
    & finally we do AF registration with HA profile id & all. @ last we send command for ZDO_START_FROM_APP.
    then later ZNP is sending network join successful call backs. & @ the gateway side also we could see some zdo call back logs.
    but the device is not getting listed in the gateway for which i would like to know weather the command sequence what we are sending to configure ZNP is correct or does it require any modification.

    regds
    Muzamil
  • Can you attach sniffer log which shows your device tried to join this GW?
  • I see there are Active_EP_req and Simple_Des_req to device 0xA9E8 but there is no response. You should check why your device doesn't response to those requests.
  • Hi chen thanks for the reply.
    Even me too is new to this HA profile. I would like you to verify the command sequence we are sending to znp from zap.
    we are not following demo projects instead we are directly following the znp specification document for the command sequence.
    I doubt weather the command sequence what we are following for configuration is right or is it missing some additional command.
    Shall i send you the command sequence???

    regds
    Muzamil
  • This is about your ZAP so you have to check it by yourself to see why your device doesn't send response to those Active_EP_req and Simple_Des_req.
  • Hi Chen.

    Sorry for the late reply. We are able to progress with pairing touch panel with the Gateway. We found that bytes were swapped for Profile ID and Cluster ID due to which it was not getting listed in the Gateway. Post corrections this issue is resolved and it is getting listed in the Gateway node list.

    Further to this binding process is also done.

    At present we are trying to send request from Gateway side, for which we are getting ZNP callback with AF_data_incoming_msg at touch panel side for which we need to respond with the endpoint status.

    Now we are facing difficulty in positioning ZCL_header and ZCL_response message details in AF_DATA_REQUEST  command.

    Kindly guide is there is any documentation available or if there is any ready structure available for the same.

    Looking forward for your valuable reply.


    Thanks in Advance

    Muzamil

  • I don't get your question. Can you elaborate what you need?
  • Hi Chen,

    In AF_DATA_REQUEST frame there are parameters length, cmd0, cmd1, DstAddr, DestEndpoint, SrcEndpoint, Cluster ID, Trans ID, Options, Radius, Len, Data.
    Data consists of ZCL_header and ZCL_Payload. But I don't know frame structure of header and payload. Due to this my touch panel is not able to respond to status request send by the gateway.

    I would like to know structure/frame format so that I can make proper frame on panel side and send it when gateway send some query to the panel

    Thank you
    Muzamil
  • You can read Zigbee cluster library specification which you can download at www.zigbee.org/
  • Hi Chen,

    I went through zigbee cluster library specification document. I will be implementing AF_DATA_REQUEST in following format. Frame format starting from, length, cmd0, cmd1, DstAddr, DestEndpoint, SrcEndpoint, Cluster ID, Trans ID, Options, Radius, Len, Data.

    Data field mentioned above will contain ZCL frame consisting of ZCL header and ZCLpayload.

    ZCL header consisting of Frame control, Manufacturer code, trans sequence no, command ID.

    and ZCL payload consisting of read/write attributes.

    Kindly confirm whether above mentioned frame format is correct or I am missing anything. Accordingly I can incorporate missing frame.

    Thank you
  • You can read ZCL spec and trace into zclGeneral_SendOnOff_CmdToggle in SampleSwitch to know how to use AF_DataRequest to implement ON/OFF/TOGGLE commands.