• 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 » SimpleLink™ Wi-Fi® » Maximum Packet Size?
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Maximum Packet Size?

Maximum Packet Size?

This question is answered
Nathan Abercrombie
Posted by Nathan Abercrombie
on Apr 20 2012 13:37 PM
Prodigy220 points

I am trying to send ~5kB / sec using TiWi-SL and a MSP430f5438.  Will I need to send this in multiple transactions to the TiWi? or can I send all 5kb over the SPI bus in one transaction?

EDIT: Actually, I need ~10kB / sec.  I found these, but they are not mentioned anywhere else in the Basic Wifi App.

#define IPPROTO_RAW             255
#define IPPROTO_MAX 256
#define MAX_PACKET_SIZE 1500

EDIT 2: I have sent 500 B successfully, but 700 B causes something to hang, I am investigating further.

Nathan

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Elad Raz92038
    Posted by Elad Raz92038
    on Apr 22 2012 02:11 AM
    Expert1580 points

    Hi Nathan

    The CC3000 internal packet buffers are limited to Max MTU (=1500). The CC3000 doesn't add fragmentation.

    Can you please send details why the 700byte hangs the system?

    - Elad

    - Elad Raz

    CTO

    www.integrity-project.com

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Igor56492
    Posted by Igor56492
    on Apr 22 2012 05:32 AM
    Verified Answer
    Verified by Nathan Abercrombie
    Intellectual1735 points

    Hi Nathan

    The CC3000 is capable to transmit up to 1470 data bytes for packet.

    If you are using basic WiFi application and attempting to send data than within hte basic WiFi application itself there is a buffer limitation.

    What are the sizes of the wlan_tx_buffer/spi_buffer that can be found in spi.c?

    Igor

    cc3000
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nathan Abercrombie
    Posted by Nathan Abercrombie
    on Apr 23 2012 01:38 AM
    Prodigy220 points

    It was my mistake.  I was sending 700 integers, ie, 1400 bytes of data.  Of course, then comes the packet header and all that other stuff, and it was too much.  I was able to get 600 integers, thus, 1200+ bytes, so all is well.  

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • carson mcafee
    Posted by carson mcafee
    on Sep 29 2012 05:39 AM
    Prodigy60 points

    Hi Nathan

    I am working with the MSP430FR5739+CC3000 EVK. I am attempting to maximize the transmission rate of the system. I have modified the Basic Wifi App to send one packet whenever it receives communication (not just the word "DATA"). The standard packet is of this form (server.c):

    unsigned char dataPacket[] = { '\n', 0xBE,'1','2','3','4','5', 0xEF };

    This packet contains 8 bytes. I have managed to modify it to send 60 bytes:

    unsigned char dataPacket[60] = "AAAAAAAAA1AAAAAAAAA2AAAAAAAAA3AAAAAAAAA4AAAAAAAAA5AAAAAAAAA6";

    I want to sent packets with 1400 bytes of data, but I cant get a variable to contain this much data. I tried to define it like this:

    unsigned char large_Data_Packet[1400] = {0};

    The problem with this is that the standard memory map of the Fram 5739 does not have enough ram to instantiate this variable. At least I think this is the problem. 

    I am new to programming in C, so could you suggest how I can create a dummy variable with 1400 bytes? How did you manage to create a data packet with 600 integers?


    Many Thanks

    Carson

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pedro5084
    Posted by Pedro5084
    on Oct 02 2012 16:21 PM
    Intellectual2390 points

    Hi Carson, 

    Is this question similar to http://e2e.ti.com/support/low_power_rf/f/851/t/217393.aspx

    Does it answer you question? 

    Pedro 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • carson mcafee
    Posted by carson mcafee
    on Oct 04 2012 07:38 AM
    Prodigy60 points

    Hi Pedro

    Yes. This is linked to my other problem. Modifying the linker command file to create 3 individual buffers, and then addressing them directly with pointers, is the solution.

    Many Thanks

    Carson

    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