Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_seq() has unusual sequence number after several request #87

Closed
vooc opened this issue May 18, 2013 · 3 comments
Closed

get_seq() has unusual sequence number after several request #87

vooc opened this issue May 18, 2013 · 3 comments

Comments

@vooc
Copy link

vooc commented May 18, 2013

First, Thank you for making this code. It is very helpful.
Secondly, sorry for my English.

I use modified version of this library by fredycpu so i can send large html file.
I'm using 256 bytes of ethernet::buffer.
open file from sd, and serve it via http.
after a few refresh on same page (20 - 30 times), arduino still running, still get the request, answer it, send file. but the browser did not receive anything.

using wireshark, error happened after arduino send weird sequence number 4294935041 etc. previous sequence number is below 35000. seems like first 3 bytes of tcp sequence header filled with FF.

with this code (tcpip.cpp) static void get_seq() { //get the sequence number of packets after an ack from GET SEQ =((gPB[TCP_SEQ_H_P]*256+gPB[TCP_SEQ_H_P+1])*256+gPB[TCP_SEQ_H_P+2])*256+gPB[TCP_SEQ_H_P+3]; Serial.print("Get SEQ: "); Serial.println(SEQ); }

i get
Get SEQ: 32513 --> browser gets the data
Get SEQ: 30977 --> browser gets the data
Get SEQ: 4294935041 --> no data.. just waiting
Get SEQ: 4294935041 --> no data again..

can you point out where is my problem?
or is it a bug?

Thank you

@mstuetz
Copy link

mstuetz commented Jul 4, 2013

For a solution see #68 (comment)

@fredycpu
Copy link
Contributor

can anyone test my mods i have packet lost i think i have hardware problem ?
hereis the latest Library with my mods, sketch and sd card content ...
in advance thanks
fred
http://microinfo.fr/multipacketsSD.rar
have you tried with images file above 100kb ?
i have more packets lost at spi fullspeed (default settings in enc28j60.cpp)
my sketch is in exemples and sd content is in exmples/mutipacketSD/copy to sd/

@solarkennedy
Copy link
Contributor

In some sense this can be closed as the original issue (invalid seq numbers) has been fixed.

@jcw jcw closed this as completed Feb 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants