This is our old Q&A Site. Please post any new questions and answers at

I am trying to get TCP and HTML working on "Friendyarm" board. The delays that I see in Wireshark are long. I get a "syn" packet and it shows that I sent the "syn" "ack" packet back 256 milliseconds later. There is no reason for this delay. It then gets worse. After getting the "ack" followed by the "psh" "ack" packet (with the HTML GET request) my response shows up about 3 seconds later - and meanwhile IE resets the connection. Is there a function in the router or PC that delays a packet with an error but still sends it through ? Any ideas on what might cause this ?

asked 04 Apr '13, 10:42

Vernon%20Lermond's gravatar image

Vernon Lermond
accept rate: 0%

Looks like your "friendlyarm" board isn't really powerful enough to do what you want to do. I doubt that router or PC are causing any of this since your descriptions seems to say that packets coming back from that embedded device take a long time to arrive. You could verify this by using a tap just in front of the device, but that involves having a tap in the first place, and dedicated capture equipment to record the packets.

Can you monitor CPU load on the board? I guess it's probably 100% while processing your connection.

permanent link

answered 04 Apr '13, 11:12

Jasper's gravatar image

Jasper ♦♦
accept rate: 18%


Jasper's on the money here. General purpose computers with oodles of memory and processing power at hand can afford to lavish in the way they treat network connections. They can have buffers preallocated, and processes running "ready to take your call, right now". Embedded controller network stacks can't afford that, in that they have very tight limits on resources and have to be prudent. I'm pretty sure that's where your problem lies. Your stack is probably checking that it has a process running to connect to, allocates memory only when it needs, and so on. (That all said I know the Arduino (ATmega 328) and Wiznet 5100 combo I have responds to a SYN in about 20ms. Unfortunately though, at least with the standard library, it like sending flushing payload responses without delay , sending out tiny 60-70 byte packets, make the whole transaction quite slow)

(04 Apr '13, 12:46) martyvis
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 04 Apr '13, 10:42

question was seen: 1,778 times

last updated: 04 Apr '13, 12:53

p​o​w​e​r​e​d by O​S​Q​A