element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum WiFi Module - reliable TCP stream
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 8 replies
  • Subscribers 481 subscribers
  • Views 1235 views
  • Users 0 members are here
  • wifi
  • stream
  • tcp
  • wireless
Related

WiFi Module - reliable TCP stream

Former Member
Former Member over 9 years ago

Hello,

I am looking for a suitable WiFi module that can handle TCP streaming without any hiccups in AP mode. Some WiFi modules that I have looked at before are the ESP8266, WF121 and WINC1500.

With all three of the above I am experiencing frequent 500ms to 1000ms'stalls when trying to send TCP packets at around 200Hz I do not have anything fancy in place just calling the TCP send function as fast as I can and reading as fast as I can on my laptop(packets are fairly small at around  30-10030-100 bytes

The WINC1500 probably has less of this problem, and the stall is a lot more frequent in AP mode then it is in STA mode.

Is this issue something that has to be handled in software? Or is there hardware that is capable of this? I am finding it hard to believe that I am experiencing this with all 3 modules...

Any guidance on this problem would be very much appreciated

  • Sign in to reply
  • Cancel
Parents
  • clem57
    clem57 over 9 years ago

    I would take a look at what was in common with these tests and check that something in software/hardware is causing the trouble. Since no setup information given, that is all I can suggest. I have used a Arduino Yun in AP mode to the internet with no troubles at all.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 9 years ago in reply to clem57

    Clem,

    thank you for your reply. I have tested this on 3 different modules, all on a different board (including the WINC1500 on their own development board) all set as AP and TCP server sending data out to a TCP receiver. The receiving side has been on 2 different laptops and 2 different phones with all the same result image. The issue is greatly minimised when the WINC1500 is in STA rather then AP mode, but their support can not recreate my problem, driving me mad.
    I'm not too sure where else to turn, I believe the problem all stems from the modules ability to handle and send high amount of packets while maintaining AP mode..

    I would still consider myself new to this, am I expecting too much from a low-power wifi module?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • clem57
    clem57 over 9 years ago in reply to Former Member

    Is this network traffic going through a router? A previous blog had this same problem and found the router was the cause.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 9 years ago in reply to clem57

    My system is roughly: The WiFI module as AP. and an external device connected to it.
    I then have UART or SPI transfer data to the WiFi Module and then have that transmitted over TCP.

     

    The information coming into the SPI or UART will be a continuous stream and I cant afford any packet loss or any hiccups in the transfers, at least not with good connection.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • clem57
    clem57 over 9 years ago in reply to Former Member

    If you are running on bare metal (no OS), how do you handle information from the external device at the same time transmitting thru WiFi? If you program both on the same processor, you should be using interrupts to smoothly do both together. Some TCP/IP software runs in blocking mode not allowing interrupts. Check which calls/APIs are being used. The Yun I mentioned earlier has the external device connected to the AVR which is separate from the processor handling handing the WiFi with a bridge to communicate.

    754px-Yun_Bridge_Diagram.png

     

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • clem57
    clem57 over 9 years ago in reply to Former Member

    If you are running on bare metal (no OS), how do you handle information from the external device at the same time transmitting thru WiFi? If you program both on the same processor, you should be using interrupts to smoothly do both together. Some TCP/IP software runs in blocking mode not allowing interrupts. Check which calls/APIs are being used. The Yun I mentioned earlier has the external device connected to the AVR which is separate from the processor handling handing the WiFi with a bridge to communicate.

    754px-Yun_Bridge_Diagram.png

     

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube