• 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 » Microcontrollers » Stellaris® ARM® Microcontrollers » Stellaris® ARM® LM3S Microcontrollers Forum » EK-LM3S9B92 - enet_lwip doesn't send all the messages.
Share
Stellaris® ARM® Microcontrollers
  • Forum
Options
  • Subscribe via RSS
Helpful Stellaris® LM4F Series Links
  • LM4F Series
  • Stellaris PinMux Utility
  • Stellaris® LM4F120 LaunchPad
  • LM4F MCU Applications
  • LM4F MCU Video
  • ARM Cortex-M4F Whitepaper
  • Stellaris MCU Brochure
  • LM4F232 Eval Kit
  • EK-LM3S9B92 - enet_lwip doesn't send all the messages.

    EK-LM3S9B92 - enet_lwip doesn't send all the messages.

    This question is not answered
    Lubomir Bogdanov
    Posted by Lubomir Bogdanov
    on Dec 29 2010 20:48 PM
    Prodigy10 points

    Hi, everyone!

    I'm using the evaluation kit EK-LM3S9B92 and the example from TI - enep_lwip. I modified it by removing the http server. Instead I just send and receive messages. The problem is - when I send more than one message not everything arrives to my computer. I'm sending this with LM3S9B92:

                "\n\r:START:FILE_START:2010:12:26:22:35:16:01a1:END\0",
                "\n\r:START:2010:12:26:22:35:16:01a2:END\0",
                "\n\r:START:2010:12:26:22:35:16:01a3:END\0",
                "\n\r:START:2010:12:26:22:35:16:01a4:END\0",
                "\n\r:START:2010:12:26:22:35:16:01a5:END\0",
                "\n\r:START:2010:12:26:22:35:16:01a6:END\0",
                "\n\r:START:2010:12:26:22:35:16:01a7:END\0",
                "\n\r:START:2010:12:26:22:35:16:01a8:END\0",
                "\n\r:START:2010:12:26:22:35:16:01a9:END\0",
                "\n\r:START:2010:12:26:22:35:16:01aa:END\0",
                "\n\r:START:2010:12:26:22:35:16:01ab:END\0",
                "\n\r:START:2010:12:26:22:35:16:01ac:END\0",
                "\n\r:START:2010:12:26:22:35:16:01ad:END\0",
                "\n\r:START:2010:12:26:22:35:16:01ae:END\0",
                "\n\r:START:2010:12:26:22:35:16:01af:END\0",
                "\n\r:START:2010:12:26:22:35:16:01b0:END\0",
                "\n\r:START:2010:12:26:22:35:16:01b1:END\0",
                "\n\r:START:2010:12:26:22:35:16:01bb:END\0",
                "\n\r:START:2010:12:26:22:35:16:01bc:END\0",
                "\n\r:START:2010:12:26:22:35:16:01bd:END\0",
                "\n\r:START:FILE_END:END\0"

    and I get this on my computer:

    :START:FILE_START:2010:12:26:22:35:16:01a1:END
    :START:2010:12:26:22:35:16:01a2:END
    :START:2010:12:26:22:35:16:01a3:END
    :START:2010:12:26:22:35:16:01a4:END
    :START:2010:12:26:22:35:16:01a5:END
    :START:2010:12:26:22:35:16:01a6:END
    :START:2010:12:26:22:35:16:01a7:END
    :START:2010:12:26:22:35:16:01a8:END
    :START:2010:12:26:22:35:16:01a9:END
    :START:2010:12:26:22:35:16:01aa:END
    :START:2010:12:26:22:35:16:01ab:END
    :START:2010:12:26:22:35:16:01ac:END
    :START:2010:12:26:22:35:16:01ad:END
    :START:2010:12:26:22:35:16:01ae:END2045.enet_lwip.txt
    :START:2010:12:26:22:35:16:01af:END
    :START:2010:12:26:22:35:16:01b0:END

    As you can see 4 messages are missing.

    I'm using Stellaris peripheral library - SW-EK-LM3S9B92-6594, lwip library - lwip-1.3.2, enet_lwip example in C:\Documents and Settings\user\Desktop\StWare\boards\ek-lm3s9b92\enet_lwip and TeraTerm v4.65 as a terminal. I use Eclipse with Sourcery G++ Lite for ARM EABI. I use a router with DHCP.

    I suspect this part of the code:

        for(ul_Count = 0; ul_Count < 21; ul_Count++)
        {
            length = strlen(c_Send_To_Host[ul_Count]);
            length++;
            UARTprintf("\nul_Count:%02d --> %s --> LEN: %d",ul_Count, c_Send_To_Host[ul_Count], length);
            tcp_write(pcb,c_Send_To_Host[ul_Count],length, 1);
            tcp_output(pcb);
        }

     

    where c_Send_To_Host is a string table (two dimensional array to be exact) containing 21 different messages. I tried it with lwip-1.3.1 and SW-EK-LM3S9B92-5570 - same result.I tried with tcp_write(...., 0); and it got even worse - 6 messages were missing. I've uploaded the modified enet_lwip.c file.

     

    Thanks in advance!

    Happy holidays!

     

    enet_lwip EK-LM3S9B92 problem sending messages
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Stellaris Reed
      Posted by Stellaris Reed
      on Dec 30 2010 10:32 AM
      Prodigy620 points

      Hello Lubomir:

      Each TCP write consumes one or more pbuf's.  There are only 24 pbufs initialiezed by default so it is quite possible your applicaiton is overrunning the amount fo available pbufs.  You should try allocating additional pbufs.  Please try this out and report back the result.

      Happy Holidays!

      -Reed

      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