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.

CC2530: Enddevice gets join but unable to receive its Rx.

Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK, CC2531EM-IOT-HOME-GATEWAY-RD

Hi,

I have following device with us

1) CC2530

2) ZigBee enable Switch (On/ Off), 

3) ZigBee enable Dimmer.

I am using Z tool for configuration.

My End Device gets join with my coordinator with when I query for    UTIL_GET_DEVICE_INFO it will reply 

<RX>07:12:32.88 COM32 UTIL_GET_DEVICE_INFO_RESPONSE (0x6700)
Status: SUCCESS (0x0)
IEEEAddr: 0x00124B000FF381CC
ShortAddress: 0x0000
DeviceType: COORDINATOR, ROUTER, END_DEVICE (0x7)
DeviceState: DEV_ZB_COORD (0x9)
NumAssocDevices: 0x00
AssocDevicesList

like there is no endnode connected .

what should I do for error ?

 

  • Ambar,

    Please state what changes were made and either mark your own or one of YK's answers as having resolved the issue.

    Regards,
    Ryan
  • My Issues solved....I think I was doing something wrong in configuration.

    Like Leave Network : It works after sending rejoin parameter -00 . perilously I had tried but that time it was not working but now its working fine.
    and Rx Receiving solved using configured different endpoint , which was required for my system ...



    Thanks Alot


    Now I am facing two issues;

    while I am sending Sys_reset command ( either Hard Reset or Soft Reset ) in both condition my coordinator seems same....

    Case 1:- whit Soft reset:-
    <TX>11:29:40.57 COM15 SYS_RESET (0x4100)
    Type: 0x01 (SOFT RESET) (0x1)

    <RX>11:29:41.8 COM15 SYS_RESET_RESPONSE (0x4180)
    Reason: 0x00
    TransportRev: 0x02
    Product: 0x00
    MajorRel: 0x02
    MinorRel: 0x06
    HwRev: 0x03

    <TX>11:29:55.74 COM15 UTIL_GET_DEVICE_INFO (0x2700)

    <RX>11:29:55.76 COM15 UTIL_GET_DEVICE_INFO_RESPONSE (0x6700)
    Status: SUCCESS (0x0)
    IEEEAddr: 0x00124B000FF381CC
    ShortAddress: 0x0000
    DeviceType: COORDINATOR, ROUTER, END_DEVICE (0x7)
    DeviceState: DEV_HOLD (0x0)
    NumAssocDevices: 0x01
    AssocDevicesList: 0xEDE8

    Case 2:- With Hard Reset

    TX>11:33:17.73 COM15 SYS_RESET (0x4100)
    Type: 0x00 (HARD RESET) (0x0)

    <RX>11:33:18.69 COM15 SYS_RESET_RESPONSE (0x4180)
    Reason: 0x02
    TransportRev: 0x02
    Product: 0x00
    MajorRel: 0x02
    MinorRel: 0x06
    HwRev: 0x03

    <TX>11:33:32.89 COM15 UTIL_GET_DEVICE_INFO (0x2700)

    <RX>11:33:32.91 COM15 UTIL_GET_DEVICE_INFO_RESPONSE (0x6700)
    Status: SUCCESS (0x0)
    IEEEAddr: 0x00124B000FF381CC
    ShortAddress: 0x0000
    DeviceType: COORDINATOR, ROUTER, END_DEVICE (0x7)
    DeviceState: DEV_HOLD (0x0)
    NumAssocDevices: 0x02
    AssocDevicesList: 0xEDE8, 0x2E8F


    In thses both case my endnodes are joined but after any reset i have to set AF_Register and Start Request to make it Cordinator

    <TX>11:33:17.73 COM15 SYS_RESET (0x4100)
    Type: 0x00 (HARD RESET) (0x0)

    <RX>11:33:18.69 COM15 SYS_RESET_RESPONSE (0x4180)
    Reason: 0x02
    TransportRev: 0x02
    Product: 0x00
    MajorRel: 0x02
    MinorRel: 0x06
    HwRev: 0x03

    <TX>11:33:32.89 COM15 UTIL_GET_DEVICE_INFO (0x2700)

    <RX>11:33:32.91 COM15 UTIL_GET_DEVICE_INFO_RESPONSE (0x6700)
    Status: SUCCESS (0x0)
    IEEEAddr: 0x00124B000FF381CC
    ShortAddress: 0x0000
    DeviceType: COORDINATOR, ROUTER, END_DEVICE (0x7)
    DeviceState: DEV_HOLD (0x0)
    NumAssocDevices: 0x02
    AssocDevicesList: 0xEDE8, 0x2E8F

    <TX>11:43:09.76 COM15 AF_REGISTER (0x2400)
    EndPoint: 0x02
    AppProfID: 0x0104
    AppDeviceId: 0x0000
    AppDevVer: 0x00
    LatencyReq: NO_LATENCY_REQS (0x0)
    AppNumInClusters: 0x01
    AppInClusterList: 0x009A
    AppNumOutClusters: 0x01
    AppOutClusterList: 0x009A

    <RX>11:43:09.78 COM15 AF_REGISTER_SRSP (0x6400)
    Status: afStatus_SUCCESS (0x0)

    <RX>11:43:12.06 COM15 AF_INCOMING_MSG (0x4481)
    GroupID: 0x0000
    ClusterID: 0x009A
    SrcAddr: 0xEDE8
    SrcEndpoint: 0x02
    DstEndpoint: 0x02
    WasBroadcast: 0x00
    LinkQuality: 0x8D
    SecurityUse: 0x00
    Timestamp: 0x001C559E
    TransSeqNumber: 0x00
    Len: 0x04
    Data: .%.. (0x19, 0x25, 0x03, 0x00)

    <TX>11:43:23.27 COM15 ZB_START_REQUEST (0x2600)

    <RX>11:43:23.74 COM15 ZB_START_REQUEST_RSP (0x6600)

    <RX>11:43:23.75 COM15 ZDO_STATE_CHANGE_IND (0x45C0)
    State: 9 (0x9)

    <RX>11:43:26.11 COM15 AF_INCOMING_MSG (0x4481)
    GroupID: 0x0000
    ClusterID: 0x009A
    SrcAddr: 0xEDE8
    SrcEndpoint: 0x02
    DstEndpoint: 0x02
    WasBroadcast: 0x00
    LinkQuality: 0x98
    SecurityUse: 0x00
    Timestamp: 0x001D0148
    TransSeqNumber: 0x00
    Len: 0x04
    Data: .&.. (0x19, 0x26, 0x03, 0x05)

    <TX>11:43:45.91 COM15 UTIL_GET_DEVICE_INFO (0x2700)

    <RX>11:43:45.92 COM15 UTIL_GET_DEVICE_INFO_RESPONSE (0x6700)
    Status: SUCCESS (0x0)
    IEEEAddr: 0x00124B000FF381CC
    ShortAddress: 0x0000
    DeviceType: COORDINATOR, ROUTER, END_DEVICE (0x7)
    DeviceState: DEV_ZB_COORD (0x9)
    NumAssocDevices: 0x02
    AssocDevicesList: 0xEDE8, 0x2E8F



    If I had not send these two coomand then My endnode showing connected but not getting its status after sending these two command its seems ok.

    So is there miss configuration in Sys_reset ?

    or is it ok? every time i will have to send these two command for after sys_reset (either Hard or soft )


    Second Quesion

    While I am sending Util_Get_NV

    <TX>11:47:13.91 COM15 UTIL_GET_NV_INFO (0x2701)

    <RX>11:47:13.96 COM15 UTIL_GET_NV_INFO_RESPONSE (0x6701)
    Status: 8 (0x8)
    IEEEAddress: 0x00124B000FF381CC
    ScanChannels: NONE (0x0)
    PanID: 0x0000
    SecurityLevel: 0x40
    PreConfigKey: ................ (0x00, 0x90, 0x11, 0xFF, 0x01, 0x03, 0x05, 0x07, 0x09, 0x0B, 0x0D, 0x0F, 0x00, 0x02, 0x04, 0x06)


    whyis this not shaowing its PANID and Scan Channels ?

    How can I get it ?
    This time my PAn ID is (0x1190) channel (0xD)


    Please suggest your inputs....
  • You should read _NIB from NV to get the PAN ID. The NV ID of PAN ID is 0x21 and you should check 34th and 35th bytes to get PAN ID in response. You can get channel by 23th bytes in _NIB NV response.

  • Okay .Thanks This is working......

    Can I get each byte detail in the same packet ?
  • Yes, it maps to _NIB.
  • What about Hard reset and Soft reset ?
  • After reset, you have to do AF_Register and APP_CNF_BDB_START_COMMISSIONING(0).
  • Okay Thanks!!!!

    This time I am using windows machine for Z tool.
    If I want to use its on Linux . is it possible ?
    is there anything like API ...?
  • There is no Ztool like application on Linux. You can refer to CC2531EM-IOT-HOME-GATEWAY-RD for linux.