• 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 Proprietary Software & SimpliciTI Forum » How to recover from a failed link?
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

How to recover from a failed link?

How to recover from a failed link?

This question is answered
Amer Y Abufadel
Posted by Amer Y Abufadel
on Apr 23 2012 08:18 AM
Intellectual300 points

Hello all,

I have a two device peer-to-peer SimpliciTI network and I am trying to work out how to recover from a link failure. 

Case 1: Link between link_to and link_listen devices fails due to distance.  When the two devices are within proper proximity, communication is reestablished. The linkID's are the same so this is expected.

Case2: link_to device loses power and is restarted.  When this happens, the link_to device sends a SMPL_Link command that succeeds even though the link_listen device is not executing a SMPL_LinkListen.  Is that normal?  My understanding the two SMPL link pair should go together.

Case3: link_listen device loses power.  It gets stuck at the SMPL_LinkListen since the link_to device never executes a SMPL_Link command anymore.  What is the best practice to recover in this case? Use SMPL_SendOpt instead?

Any hints or pointers greatly appreciated.

Thank you,

-- Amer

SimpliciTI SMPL_SendOpt SMPL_LinkListen
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Leo Hendrawan
    Posted by Leo Hendrawan
    on Apr 23 2012 16:11 PM
    Mastermind28725 points

    Hi Amer,

    Amer Y Abufadel

    Case 1: Link between link_to and link_listen devices fails due to distance.  When the two devices are within proper proximity, communication is reestablished. The linkID's are the same so this is expected.

    In this case, as long as both devices do not use e.g. SMPL_Unlink or restart itself, i think it should be no problem. After they can reach other again, they should be able to communicate between each other again.

    Amer Y Abufadel

    Case2: link_to device loses power and is restarted.  When this happens, the link_to device sends a SMPL_Link command that succeeds even though the link_listen device is not executing a SMPL_LinkListen.  Is that normal?  My understanding the two SMPL link pair should go together.

    Case3: link_listen device loses power.  It gets stuck at the SMPL_LinkListen since the link_to device never executes a SMPL_Link command anymore.  What is the best practice to recover in this case? Use SMPL_SendOpt instead?

    The best way to do this is storing the network information after the linking succeeds for the first time. To get the network information, you can use SMPL_Ioctl - IOCTL_OBJ_NVOBJ. When the device restarts, it should check in the non volatile memory whether the network information is available which in this case after the device restarts, the information should be available, then they can copy the network information back to the connection handle.

    Unfortunatelly there is currently no example code on doing this, however i would try to make one in the next following days since this issue is kept being asked all the time. I'll let you know if i come up with the example code.

    Regards,

    Leo Hendrawan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MEDARZ
    Posted by MEDARZ
    on Apr 27 2012 01:09 AM
    Prodigy100 points

    Hi Leo,

    Im subscribing to this post because im also very interested in knowing how to get the connection saved to non volatile memory and then reading it again. It would be really helpful to have this information.

    Thanks in advance,

    Mario Medina

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Leo Hendrawan
    Posted by Leo Hendrawan
    on May 02 2012 04:31 AM
    Verified Answer
    Verified by Amer Y Abufadel
    Mastermind28725 points

    Hi all,

    i finally made it to create a small example for restoring SimpliciTI network connection after power cycle. I haven't got time to write much explanation about the code, but hopefully the code explains itself.

    I put it on the SimpliciTI FAQ page:

    http://processors.wiki.ti.com/index.php/SimpliciTI_FAQ#Restoring_connection_after_power_cycle

    I hope this helps.

    Regards,

    Leo Hendrawan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MEDARZ
    Posted by MEDARZ
    on May 03 2012 07:38 AM
    Prodigy100 points

    Thanks for the code ! this definitely will be from great great help!!!!

    Regards.

    Mario Medina

    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