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

PIC18F4620 + ENC28J60 DHCP problem

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







PIC18F4620 + ENC28J60 DHCP problem
PostPosted: Fri Mar 06, 2009 1:47 am     Reply with quote

Hello,

I have hardware that uses CCS TCPIP stack. It runs fine in my lab and most of the places in the field.

But in some cases it does not pick IP address from DHCP server. It occurs in some typical properties.

what can be the reason?
sang



Joined: 29 Nov 2005
Posts: 4

View user's profile Send private message

PostPosted: Fri Sep 11, 2009 12:09 pm     Reply with quote

Did you manage to solve this problem? I have similar problem with 18F67J10 and ENC28J60. I think it could be the CCS TCP/IP stack but I am not sure. The DHCP work fine in most cases but in some cases, it will fail to get and IP from the DHCP server.
bkamen



Joined: 07 Jan 2004
Posts: 1611
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Mon Sep 14, 2009 10:38 am     Reply with quote

I've been using the CCS TCP/IP Stack (which you have to remember is MicroChip's stack editing by the guys at CCS so it will compile with CCS).


I have found that on the PICDEM.net2 (using the PIC18F97J60 and not the ENC28J60 to which I added the needed #defines) to make it work that DHCP always gets an address (and quickly).

On my prototype board without having changed any low-layer items, DHCP takes longer (and I have some ethernet corruption issues because of the jack currently hacked onto the board as the intended one was out of stock) BUT STILL always gets an address.

You should look on your DHCP server if you can to see the requests coming in.

OR, you should be using a packet sniffer to check the conversation. (easy and fun. get wireshark or ethereal)

So what I'm saying is that I haven't seen the stack fail to get DHCP even with slightly wonky ethernet hardware.

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
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