• 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 ZigBee® Software & IEEE 802.15.4 Forum » Messages with same APS Sequence number being sent to application
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Messages with same APS Sequence number being sent to application

Messages with same APS Sequence number being sent to application

This question is answered
Matt Gigli
Posted by Matt Gigli
on May 02 2012 13:35 PM
Prodigy250 points

Hi all,

I couldn't find another thread talking about this, so I figured I would ask it here and see if you could help me. I have a ZigBee network setup that uses the APS ACKs. The basic flow is end device sends a request to coordinator, coord acks it, sends a response message, and end device acks the response. What happens sometimes though is, for whatever reason, sometimes the end device doesn't ack the coord fast enough (this is ok, it is doing work so maybe just doesn't respond in time), so the coord sends a retry.

The problem I am having is that both the original message AND the retry are getting sent to my end device application message call back (the end device eventually acks them both, stopping retries, but the main problem is that my application is processing receiving that message twice). Both of the messages have the same APS sequence number (because one of them is a retry). Does the stack allow messages with the same APS sequence number to be delivered to the application? Is there a setting to not allow duplicate messages through to the application?

Thank you very much for your help.

Matt

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Dirty Harry
    Posted by Dirty Harry
    on May 02 2012 20:41 PM
    Verified Answer
    Verified by Dirty Harry
    Mastermind19350 points

    Apparently so, and no. You will need to add a message sequence number to the Application layer data that you send using AF_DataRequest(), and then filter incoming messages at the Application layer based  on this sequence number, which will be tedious since it will be different for every sender of data (so hopefully you only need to  filter for one sender).

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jerry Yao
    Posted by Jerry Yao
    on Oct 11 2012 07:37 AM
    Prodigy50 points

    Hi Harry,

    Thank you for your helpful information, but I still  have some questions, I need your help.

    1st  When I use z-stack, I should add a message sequence number to avoid the duplicate frame, really?  

     I know the "SerralApp " example use a sequence number to avoid duplicate frame. 


    2nd If the Z-stack use the APS counter to filter the duplicate? 

    I can't find any operation of APS counter, if it is operated in the APSDE_DataReq( &req); The APSDE_DataReq is not open source


    3rd What is the function of "transID" in APSDE_DataReq_t ?

    Z-stack said that "transID"  is used as the sequence number. For test I have set it always to 0xAA, but I didn't find any change when in transmit. Using the Packet Sniffer I can't find the "transID"(0xAA) in the Frame.

    4th How does the NWK sequence number work in Z-stack?

    NWK layer is not open soure code for user. so I am wondering about if the NWK sequence number can filter the duplicate.

    thank you a lot !

    Jerry Yao

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dirty Harry
    Posted by Dirty Harry
    on Oct 11 2012 11:49 AM
    Suggested Answer
    Mastermind19350 points

    You're not asking anything new - the question is answered, plain and simple: if you want to avoid duplicate messages, add a message identification (i.e. counter) to your Application layer payload.

    Don't burn your precious time wondering/worrying about what you cannot see or control (i.e. the variables/counters used by the libraries). Focus on what you have control over: your Application layer payload.

    ZigBee is not TCP/IP, get used to it or find a different protocol to solve your problem. As an aside, take a look at the ZCL - maybe you can solve your problem by using a ZCL Profile, in which case, the ZCL does all of that messy filtering work for you.

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jerry Yao
    Posted by Jerry Yao
    on Oct 11 2012 19:33 PM
    Prodigy50 points

    Hi Harry,  You are right, thank you very much!

    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