• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » Low Power RF Hardware & Tools Forum » question about AF_DataRequest in CC2530 Zstack
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

question about AF_DataRequest in CC2530 Zstack

question about AF_DataRequest in CC2530 Zstack

This question is not answered
huilian du
Posted by huilian du
on May 01 2012 18:17 PM
Prodigy120 points

I am using CC2530 Zstack-2.3.1-1.4.0 on an application based on the SampleApp project.  When I use "AF_DataRequest" with an option of AF_ACK_REQUEST to send message from a router to coordinator: When the coordinator is on, the router works perfectly. When I turn the coordinator off and let the router send the message by calling "AF_DataRequest" with an option of AF_ACK_REQUEST, what I expected is it will give a status information of failure in the incoming information under case “AF_DATA_CONFIRM_CMD” , but I get nothing. At the meantime by using the TI packet sniffer I see that the router keep transmitting the packets forever although I set the APSC_MAX_FRAME_RETRIES = 3.  The destination information used in AF_DataRequest is as following:

 

DstAddr.addrMode = (afAddrMode_t)afAddr16Bit;

DstAddr.addr.shortAddr = 0x0000; 

The reason I want to do this experiment is that the coordinator in the network works as a gateway to collect data from all routers, the routers need to know when the coordinator has problem or has been changed so that the routers will rejoin the network. I do not want to use the “many to one” function because it needs send the ManyToOne request every 15 seconds.  

I believe there is something wrong in the configuration or some where, but I can not figure out. 

I hope someone would help me with this, Thank you very much!

2530 Z-stack
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Suyash Jain
    Posted by Suyash Jain
    on May 10 2012 20:31 PM
    Expert3350 points

    Hello Huilian,

    I tried to reproduce your experiment with the Z-Stack-2.5.0. In the test setup I had the Coordinator and Router in my network. I modified the SampleApp Router configuration to send a unicast message to coordinator (with Application level acknowledgement enabled) on SW1 press as in your application. I set a breakpoint inside the AF_DATA_CONFIRM_CMD callback event when status recieved is not sucess.

    case AF_DATA_CONFIRM_CMD:
             afDataConfirm = (afDataConfirm_t *)MSGpkt;
             if ( afDataConfirm->hdr.status != ZSuccess )
              {
                 #define SAMPLEAPP_SEND_MSG_EVT 0x0200
                // The data wasn't delivered -- Do something
                osal_start_timerEx( SampleApp_TaskID,SAMPLEAPP_SEND_MSG_EVT,100 );  //just a test statement ( else section is optimized!) - set breakpoint here
              }
             break;

    Then after turning OFF the coordinator, I see that breakpoint hits (so stack sends the AF_DATA_CONFIRM_CMD with status failure) after the Stack has tried to send the message NWK_MAX_DATA_RETRIES (defined in f8wConfig.cfg) multipled by 4 times. The status message or reason for confirmation is ZMacNoACK (0xE9), since there were only two devices in the network and the message was'nt acknowledged at MAC layer when coordinator was turned OFF.

    Can you confirm if this is the procedure you follow or can you try to repeat the above test, as you should recieve the AF_DATA_CONFIRM_CMD callback, you should not have to do any settings for this. 

    Also, in your application how often are you sending the message to the coordinator.

    Regards

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • huilian du
    Posted by huilian du
    on May 11 2012 11:55 AM
    Prodigy120 points

    Thank you very much, Suyash.

    Yes, that  was exactly what I did in Z-Stack-2.3.1-1.4.0.

    I need sent the message to the coordinator every 60 seconds.

    Would you please try it with Z-Stack-2.3.1-1.4.0?

    Thanks a lot.

    Huilian

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use