dhcp and dns

Questions specifically related to the TCP/IP stack that interfaces with the driver.

dhcp and dns

Postby mogorman » Tue Jan 19, 2010 9:12 am

I have successfully gotten dhcp working on a wishield and arduino 168. I am working on trying to get dns on it as well, but having both might not fit on the chip, might have to up to a 328 to do that. Anyways how do I go about giving my changes back to the community? I didn't see a place to post git diffs. I would appreciate any improvements on my dhcp section, as it seems a bit timing sensitive and I can't make it gracefully recover like other dhcp clients do when dealing with slow dhcp servers. I was able to pull leases fine from my linksys and fon routers though, and then connect to my http server.
mogorman
 
Posts: 1
Joined: Tue Jan 19, 2010 9:08 am

Re: dhcp and dns

Postby GregEigsti » Tue Jan 19, 2010 10:31 am

I have DNS working (uIP stack version) and can zend you a zip of it if you like. Had to modify the WiShield code, as I'm sure that you did, to allow UDP along with other socket app types (TCP, WISERVER, etc.). Ran into a sticky spot playing header magic to always have the UDP stuff included with everything else, then saw something shiny...

For DHCP, I was getting the first response back from the server but never then second that the uIP DHCP sample expects. Did not feel like digging into the DHCP stack/reference and figuring out what was going on (or if this single packet reply was "good enough"). Glad to hear you got it working. How have you worked around including the UDP header along with the other app type headers?

Saw an interesting link about a guy making a library to do DNS, DHCP and at least Bonjour - I'd like to have Bonjour on the WiShield! In the "new stuff" post that was recently added it mentioned a "stack overhaul" and I'm not sure what that means - I don't want to spend too much time it my work will be replicated or broken with the new software.

Anyway, congrats!
Greg
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: dhcp and dns

Postby ArdWifi » Wed Feb 03, 2010 8:52 am

I am really interested in DHCP, DNS and bonjour... and would love to know the magic to get it going... I have tried implementing the uIP stack and I am at a loss as to where to start... :( Any pointers?
ArdWifi
 
Posts: 44
Joined: Wed Feb 03, 2010 8:39 am

Re: dhcp and dns

Postby PhatBaja » Sun Feb 21, 2010 9:52 pm

Anyone has any updates on this? I would really like to make post requests with my WiShield using a server name instead of the server IP address. Has anyone done this before, and if yes, can you post a sample code?
PhatBaja
 
Posts: 4
Joined: Sat Jan 30, 2010 11:52 pm

Re: dhcp and dns

Postby billyburly » Sun Feb 28, 2010 11:34 pm

would someone mind posting this code if you have gotten dhcp working. i am quite interested in using this in my project and have not been successful in getting it to work
billyburly
 
Posts: 1
Joined: Wed Feb 24, 2010 6:25 pm

Re: dhcp and dns

Postby GregEigsti » Mon Mar 01, 2010 11:13 pm

I never got back to DHCP but did manage to get a SocketApp based DNS sketch working. Unless your app uses UDP you will have to do some surgery on the WiShied source to allow UDP and TCP (SocketApp, WiServer, etc.) to coexist - UDP is needed for DNS lookup-. I'd be happy to send you my sketch and some hints on how you might need to modify the WiShield source but can't offer much support. PM me with an email address that I can send a zip file to.

Greg
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: dhcp and dns

Postby SirPoonga » Wed Mar 17, 2010 1:29 pm

Isn't there a simplified version of DNS, I forgot what its acronym is. It's a basic table lookup if I recall. Something like that would satisfy most arduino users. I would love it. I would rather use ad hoc for my current project than a router that redirects http to the arduino. I want anyone that connects to control the arduino with as little instruction as possible.

Ultimately I am looking for it to be as simple as taking an iPhone or any wifi device and connect to a broadcasted AP. Opena browser and be automatically forwarded to the web control. I will be doing this with a router that has dd-wrt installed. However, since one of my requirements is to run off a battery if I can remove the router component that will save on battery life.
SirPoonga
 
Posts: 39
Joined: Thu Feb 04, 2010 12:24 am


Return to TCP/IP Stack

Who is online

Users browsing this forum: No registered users and 1 guest