CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Problem with web server

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bloureiro



Joined: 26 Feb 2007
Posts: 6

View user's profile Send private message

Problem with web server
PostPosted: Thu Oct 11, 2007 4:31 am     Reply with quote

Hi use the stack and example from CCS.

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

View user's profile Send private message AIM Address

PostPosted: Thu Oct 11, 2007 1:34 pm     Reply with quote

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
PostPosted: Thu Oct 11, 2007 2:23 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Oct 16, 2007 3:28 am     Reply with quote

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







PostPosted: Tue Oct 16, 2007 8:12 am     Reply with quote

Can you debug the code to figure out where it's getting hung up?
bloureiro



Joined: 26 Feb 2007
Posts: 6

View user's profile Send private message

PostPosted: Tue Oct 16, 2007 8:25 am     Reply with quote

Sorry but hi only have a programmer gtp+ no a debugger.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group