• 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 » SMPL_NOMEM on SMPL_Link for ED ?
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

SMPL_NOMEM on SMPL_Link for ED ?

SMPL_NOMEM on SMPL_Link for ED ?

This question is answered
Bulek
Posted by Bulek
on Apr 15 2012 08:56 AM
Intellectual305 points

Hi,

I'm working on AP and EDs network that need to be as tolerant as possible to various real environment events (out of range, restarts, ...)

While I have EDs normally working, and I also develope AP (frequent builds, restarts, etc...)

I spot that on EDs, when they don't receive ACK on their messages they try to repeat Join&Link procedure... Probably cause I also change AP address, but Link IDs on EDs grow and after some time I get SMPL_NOMEM status from SMPL_Link call. From code :

  SMPL_NOMEM         No room to allocate local Rx port, no more
 *                                room in Connection Table, or no room in
 *                                output frame queue.

I guess I ran out of resources, since I'm reconnecting from ED, it's safe to clear everything needed to get pass this problem. Any advice ?

Thanks in advance,

regards,

Bulek.

 

SimpliciTI SimpliciTI End Device
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Bulek
    Posted by Bulek
    on Apr 16 2012 04:44 AM
    Intellectual305 points

    Hi,

    I've explored this problem further and found interesting thing. I can recreate this problem and it seems like a bug or at lest inconsistent behaviour in SIMPlCITI code.

    Scenario :

    1. run AP

    2. run ED and it will JOIN&Link

    3. power reset AP (it comes on with same address, but empty connection table)

    4. ED occasionally sends message with ACK request to check if it's linked with AP. It doesn't receive ACK, cause AP is not responding to unconnected peer frames

    5. ED goes into rejoin&link phase when it joins and links to the "new" AP. Regardless the fact, that the address of AP is the same it takes another entry in connection table for this new link (it doesn't recognize that AP with same address is already in connection table) under new Receive port number and same Send port number as previous connection. For the first time this works, cause there is one free entry in connection table, but for the second time it reports out of memory...

    What I'll do right now as a workaround is to clean connection table with IOCTL call, but I think this should be managed properly in SIMPLICITI code...

    On the other thought this may be intentional behaviour, cause this is ability to have more connections to same device ?

    Regards,

    Bulek.

     

    SimpliciTI
    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 Apr 17 2012 10:47 AM
    Suggested Answer
    Mastermind27500 points

    Hi,

    Bulek

    4. ED occasionally sends message with ACK request to check if it's linked with AP. It doesn't receive ACK, cause AP is not responding to unconnected peer frames

    5. ED goes into rejoin&link phase when it joins and links to the "new" AP. Regardless the fact, that the address of AP is the same it takes another entry in connection table for this new link (it doesn't recognize that AP with same address is already in connection table) under new Receive port number and same Send port number as previous connection. For the first time this works, cause there is one free entry in connection table, but for the second time it reports out of memory...

    Do you call SMPL_Unlink() between step 4 and 5 (if the ED recognizes that AP is gone and try to link to another AP)? I think this is necessary to free the resource from the old "connection", otherwise the nwk_getNextConnection() at the beginning of nwk_link() function will fail since the old connection still occupy the handle resources.

    -Leo-

    Regards,

    Leo Hendrawan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Bulek
    Posted by Bulek
    on Apr 18 2012 16:56 PM
    Intellectual305 points

    I'm calling IOCTL that changes state of connections to FREE.

    It seems to work, EDs now reconnect in all cases. But is this proper solution ?

    Thanks in advance,

    regards,

    Bulek.

     

    SimpliciTI
    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 Apr 19 2012 03:11 AM
    Verified Answer
    Verified by Bulek
    Mastermind27500 points

    Hi,

    altough you didn't mention it, i assume you are using the IOCTL_OBJ_CONNOBJ. Basically it should be the same, because if you see the code both calls nwk_freeConnection(). The only difference is only that SMPL_Unlink() will send an unlink message first and wait for the reply (with timeout).

    So basically, no major difference between both function in terms of freeing connection resource on the local device. However for the remote device, it will a difference since by using SMPL_Unlink() the remote device will also know that the local device is unconnecting so that the remote device can also free the connection resources, while using the IOCTL_OBJ_CONNOBJ, the remote device will not get this information and still keep the connection information.

    I think as good practice, i would advise to use the SMPL_Unlink() instead the IOCTL_OBJ_CONNOBJ.

    Hope this helps.

    -Leo-

    Regards,

    Leo Hendrawan

    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