Feature requests for stack

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

Re: Feature requests for stack

Postby benres » Sun Nov 01, 2009 1:18 am

First, this is a great product. Once I actually read the documentation and made the correct change in "apps-conf.h", it was up and running in no time.

I'd really like DHCP and DNS lookup.
benres
 
Posts: 9
Joined: Sun Nov 01, 2009 1:03 am

Re: Feature requests for stack

Postby aerodyno » Tue Nov 10, 2009 11:55 pm

I second benres's request for DHCP support! That would be awesome!
aerodyno
 
Posts: 65
Joined: Tue Aug 04, 2009 8:42 pm

Re: Feature requests for stack

Postby aerodyno » Wed Dec 23, 2009 1:52 pm

DNS Lookup, so we aren't hard-coding IP addresses into our GET and POST requests.
aerodyno
 
Posts: 65
Joined: Tue Aug 04, 2009 8:42 pm

Re: Feature requests for stack

Postby peterM » Wed Dec 23, 2009 2:32 pm

DHCP indeed. I'd like to be able to give a WiShield-enabled device to someone without the need for them to use the IDE to configure it for their network.
Happy holidays everyone.
peterM
 
Posts: 16
Joined: Sat May 09, 2009 4:58 pm
  • Website

Re: Feature requests for stack

Postby GregEigsti » Thu Dec 24, 2009 11:24 am

I have DNS working in a quick a dirty sample app; let me clean things up and I'll post the sample. It will require a couple of things to work for you:
  • A couple of minor changes to the WiShield headers are needed
  • You will need to include a .c and .h file in your sketch to get the DNS code
  • Part of this work is getting UDP and TCP to play together nicely in a single app; I have only tested with "raw" sockets. I have a feeling it won't work with the WiServer code but that should be simple enough to fix.
  • The sample sketch works but does not represent the cleanest/best way to do things; it will just be one way to get things working and will require some understanding by the user to correctly utilize it.

This is just a "port" of the uIP resolv sample but its working! Hopefully this code will be included as an integrated and optional part of the WiShield code in the next release.

I'll post my changes for you all and then start working on DHCP, which I fear will be a tougher nut to cracks.

Happy Holidays!
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: Feature requests for stack

Postby parkerkrhoyt » Tue Dec 29, 2009 2:09 pm

Ran across this today. Perhaps some of the code could be reused? Looks like there's a DHCP library in action here...

http://www.dial911anddie.com/weblog/200 ... r-pachube/

Hope this helps (because I'd _really_ like DHCP as well (on WiClient)).

Kevin
parkerkrhoyt
 
Posts: 8
Joined: Fri Nov 27, 2009 7:55 pm

Re: Feature requests for stack

Postby GregEigsti » Tue Dec 29, 2009 2:34 pm

The uIP sources have DNS/DHCP samples (WiShield uses the uIP stack) - these have the advantage of working right out of the box (well almost). I have had to do bug fixing in the SMTP and DNS uIP samples that I have played with; but they work. I plan on creating a DHCP sample but just have not gotten there yet.

On a related note; as I said I have DNS working but to do so means making changes to the WiShield/WiServer code. I nearly have a "one size fits all" solution worked out (for DNS) but not quite yet. Since I don't use the higher level stuff (WebClient/WebServer/WiServer) my motivation to get the required changes working for these scenarios is quite low ;) However, if you need DNS let me know and I can help get you going - its easy to make the WiShield code changes to enable one app type to work - getting them all to work has been a bit painful.

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: Feature requests for stack

Postby aerodyno » Mon Feb 22, 2010 6:09 pm

I'm not sure if this was already posted, but we need the auto-reconnect feature built-in to the stack. We've hacked around it with Hruska's awesome code in this thread:

viewtopic.php?f=10&t=108&hilit=reconnect&start=20

But this should really be built-in to the stack, wouldn't you agree. ;)

Thanks AsyncLabs!

-s
aerodyno
 
Posts: 65
Joined: Tue Aug 04, 2009 8:42 pm

Re: Feature requests for stack

Postby PhatBaja » Mon Feb 22, 2010 8:23 pm

GregEigsti wrote:On a related note; as I said I have DNS working but to do so means making changes to the WiShield/WiServer code. I nearly have a "one size fits all" solution worked out (for DNS) but not quite yet.

Greg, were you able to advance on the DNS front? Can you post an example code for this?
PhatBaja
 
Posts: 4
Joined: Sat Jan 30, 2010 11:52 pm

Re: Feature requests for stack

Postby GregEigsti » Mon Feb 22, 2010 11:30 pm

PM me with your email address and I can send you the code - due to time constraints it might take a few days for me to get it to you (because it will require some instructions on how to use) and I won't be able to offer support. You are going to have to do surgery on your WiShield headers to get it working (I never got that part cleaned up).

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

PreviousNext

Return to TCP/IP Stack

Who is online

Users browsing this forum: No registered users and 1 guest