I'm trying make a web server with a 18f4685 and enc28j60 but when i
make a page longer to +-1400 characters the page don't show in the browser.
Hi trying change the "MAC_TX_BUFFER_SIZE" to 4000 but don't resolve.
Someone can help-me?
Thanks.
Douglas Kennedy
Joined: 07 Sep 2003 Posts: 755 Location: Florida
Posted: Thu Oct 11, 2007 1:34 pm
It's several years since I did this but there are restrictions imposed upon the MAc encapsulation of a packet . I believe it is 1500 payload plus an 8 byte preamble plus 6 byte destination and 6 byte sender addresses and a 2 byte type . You should look at the internet specifications before trying changes any packet not meeting internet specifications is destined for the bit bucket.
frequentguest Guest
T
Posted: Thu Oct 11, 2007 2:23 pm
The TCP server and HTTP server handle fragmentation of the file if the size of the page > 1 packet. You shouldn't have to change the MAC buffer size to do this. What is happening when you try to read a large file? Do smaller files work? Which web server are you using? What hardware are you using?
bloureiro
Joined: 26 Feb 2007 Posts: 6
Posted: Tue Oct 16, 2007 3:28 am
If hi do smaller files this work.
Hi use the TCP/IP stack of ccs. The hardware is the 18F4685 and enc28j60.
when you try to read a large file the enc28j60 don't respond.
Thanks.
frequentguest Guest
Posted: Tue Oct 16, 2007 8:12 am
Can you debug the code to figure out where it's getting hung up?
bloureiro
Joined: 26 Feb 2007 Posts: 6
Posted: Tue Oct 16, 2007 8:25 am
Sorry but hi only have a programmer gtp+ no a debugger.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum