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: Send Command Successful but No transmission

Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK-ARCHIVE, Z-STACK

Hey,

We are using  Z-stack 2.6.1. 

We have a ZNP Coordinator and 9 Routers (All routers are added to 1 group)

One router has the Occupancy sensor and acts as master for the remaining 8 devices

There are two functionalities of Master:

1) Reporting Attribute - To Coordinator (Occupancy sensor value)

2) Write Attribute - To other routers by group_id (Occupancy value)

Initially the system works as expected. After 1 or 2 days of operation we face the following issues 

1) The zcl_SendReportCmd, zcl_SendWriteRequest  functions are returning SUCCESS but we do not see any corresponding packet transmission in the sniffer. 

2) Sometimes zcl_SendWriteRequest returns 0x10 (ZMemError) 

3) We get the response for the Read Attribute which indicates the device is still communicating

What may be causing this irregular behaviour ? 

Regards,

Suhrith

  • It seems there’s memory leak in your application. I would suggest you to check if your application has memory leak first.

  • Hey YK,

    Thanks for the quick reply

    I have checked for potential memory leak cases and have taken precautions. I dont think there is a memory leak issue.

    Regards,

    Suhrith

  • Hey Suhrith,

    How often do you transmit the zcl_Send[ReportCmd/WriteRequest] and are you able to send any more packets successfully after the first instance of the issue?  What is the failure rate involved and does behavior improve if you pause for a while or reset the device after the problem occurs?  Several workarounds are possible, including checking the MAC_MCPS_DATA_CNF callback, enabling APS ACKs, or parsing report/write responses.  Can you provide any sniffer logs with comments that explain/identify the issue?  Several improvements have been made to Z-Stack since v2.6.1 and it would be worth reviewing the Release Notes bugs identified in v3.0.2 as well as the versions in Z-STACK-ARCHIVE.

    Regards,
    Ryan

  • Hey Ryan,

    1) How often do you transmit the zcl_Send[ReportCmd/WriteRequest] 

    Once in every 5 minutes and whenever there is a change in sensor value we transmit the zcl_Send[ReportCmd/WriteRequest] 

    2) are you able to send any more packets successfully after the first instance of the issue?

    Yes

    3) What is the failure rate involved

    Once its stop communicating 100% failure rate

    4) does behavior improve if you pause for a while or reset the device after the problem occurs

    Yes, the device works fine if rebooted

    5) Can you provide any sniffer logs with comments that explain/identify the issue?

    I will attach the sniffer logs soon

    Regards,

    Suhrith

  • Hi Suhrith,

    As YK said, this appears to be a memory leak.  An example of this is described in the Z-Stack 3.0.x Known Issues Wiki Page: http://processors.wiki.ti.com/index.php/Zigbee_Known_Issues_and_Proposed_Fixes#Memory_Leak_in_zcl.c 

    I suggest that you use difference compare software to notice the changes in the ZCL files between Z-Stack 2.6.1, Z-Stack HA 1.2.2a, and Z-Stack 3.0.2.

    Regards,
    Ryan

  • Hello Suhrith,

    Do you have any updates?

    Regards,
    Ryan

  • Hey Ryan,

    I reviewed the changes in Z-Stack 2.6.1, Z-Stack Home, Z-Stack 3.0.x, there are many changes done to the zcl.c files

    After tests I have figured out that, Occupancy change Multicast from the Master to the 8 remaining nodes is successful for the first 70-80 times

    Then the Master stops multicasting

    I am having difficulty in recreating the exact failure scenario again (to provide logs), I am still working on it, will update 

    Regards,

    Suhrith

  • Hey Ryan,

    I have added the sniffer logs for the issue mentioned:

    0083.test2.psd

  • I will need NWK keys as all packets are encrypted, or a sniffer log with the device joining process included.  Your previous answers are also contradictory, stating that you are able to send more packets after the issue first occurs yet there is a complete failure rate.  Further IAR debugging may be required to identify the issue but as mentioned before it would be optimal to upgrade the stack version.

    Regards,
    Ryan

  • This thread will be closed until further updates can be provided.

    Regards,
    Ryan