chipKIT® Development Platform

Inspired by Arduino™

Ethernet library, DNS and DHCP support

Created Tue, 06 Sep 2011 21:33:51 +0000 by Raf


Raf

Tue, 06 Sep 2011 21:33:51 +0000

Hi, A question to the Digilent guys: are there any plans to include DHCP and DNS support into the Ethernet library? Thanks

Raf


cornmander

Wed, 07 Sep 2011 10:57:43 +0000

AFAIK, the Microchip Applications Libraries TCP/IP stack has support for DNS and DHCP. You can use these libraries and get DHCP and DNS support easily, but you'll have to use MPLAB instead of MPIDE.


GeneApperson

Mon, 12 Sep 2011 18:57:20 +0000

Raf,

Sorry for the delayed response. I've been totally swamped the last few days. The Digilent Ethernet library already supports DNS and DHCP.

Gene Apperson Digilent


KeithV

Tue, 13 Sep 2011 15:48:23 +0000

Raf,

To use DHCP and DNS as well as using the chipKIT MAC address, just don't pass any parameters to the Ethernet.Begin() command. So instead of having the historical:

Ethernet.begin(mac, ip); do: Ethernet.begin();

Then proceed as usual.

You may wish to read chipKITEthernet.pdf document which describes all of the chipKIT extension that is downloaded as part of the library under the chipKITEthernet/documets directory.

KeithV


Raf

Tue, 13 Sep 2011 20:27:37 +0000

@Gene: that's great, I just discovered it in the latest release of the software, thanks for your work! @KeithV: thanks for you help, I will test it


GeneApperson

Tue, 13 Sep 2011 20:31:52 +0000

@Raf,

To give credit where credit is due, KeithV wrote the libraries for the Network Shield. My main contribution was bugging him to get it done faster.

Gene