Feature requests for stack

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

Re: Feature requests for stack

Postby aerodyno » Wed Sep 23, 2009 10:42 am

Feature Request: One field called "passphrase" that takes a passphrase OR wep_key, depending on the selected network type.

Basically you choose your network type (WEP, WPA, etc), and enter your passphrase or WEP key, if any. The WiShield software handles converting a WEP key to a properly formatted hex array if WEP40 or WEP128 is your selected network type.

Of course, the ideal scenario we'd all like is the same one we have with our laptops. Just pick a network and enter the password -- the laptop figures out the network type and sends the password / wep_key in the appropriate format. The sooner we can get to that day, the better! ;)

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

Re: Feature requests for stack

Postby LttlScamp » Tue Oct 13, 2009 9:28 am

I don't know how feasible this or if it falls under the "stupid question" category but would it be possible to include the SMTP modules in the uIP stack implemented for WiShield?
LttlScamp
 
Posts: 36
Joined: Mon Sep 28, 2009 11:07 am

Re: Feature requests for stack

Postby GregEigsti » Tue Oct 13, 2009 10:05 am

I'm wondering if adding SMTP as a sample sketch, that could be easily moved into another sketch, would better serve the community. Adding it to the stack library would make the size of the WiShield goop larger and that is a problem on a limited resource environment like the Arduino. As a sketch it would be available for those who want to take that size hit.

BTW - SMTP is a really simple protocol (aside from optional encryption, password validation, etc.). I'd be happy to provide a sample SMTP script once I get my "test" Arduino back on track (bootloader reloaded hopefully).

Thoughts?
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 GregEigsti » Tue Oct 13, 2009 4:28 pm

I just downloaded the uIP stack distribution and found that the SMTP goop is not part of the stack rather it is a separate sample app. As soon as I am able I'll start looking at creating an SMTP sample sketch.

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 LttlScamp » Wed Oct 14, 2009 9:48 am

Yep, I was looking at that too. Of course, I'm a programming feeb and I couldn't just put the referenced headers and code into my WiShield libraries and get the example code to compile.

I noticed one of the included header files in the smtp.c is an smtp-strings.h which isn't anywhere in the file list on the uIP site that I could find.

But again, I really have no idea what I'm talking about when it comes to this stuff so I'll leave up to any experts out there to get it working if possible.

I agree that the SMTP protocol itself is pretty simple. Use it all the time for testing my mail servers. But it's the protosockets gibberish that I get stumped on! :?
LttlScamp
 
Posts: 36
Joined: Mon Sep 28, 2009 11:07 am

Re: Feature requests for stack

Postby GregEigsti » Wed Oct 14, 2009 10:18 am

I started an SMTP sketch sample last night but cannot test it out at this point. The UPS report for my AVR ISP says out for delivery and I am home sick... So maybe something in the near future - as soon as it is tested out and cleaned up.

Since the SMTP stuff is based upon the socket app sample I cannot say at this time if I'll be able to get it working with other WiShield sketch types (e.g. upd app, WiServer, etc.)

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 LttlScamp » Wed Oct 14, 2009 11:16 am

For me that isn't an issue as I won't be using twitter and SMTP at the same time.

Appreciate your help on this!

BTW, I did try compiling the smtp.c example app against the SocketApp library but as-is it (not suprisingly) barfs with a bunch of errors I won't even begin to try and decipher!
LttlScamp
 
Posts: 36
Joined: Mon Sep 28, 2009 11:07 am

Re: Feature requests for stack

Postby GregEigsti » Wed Oct 14, 2009 11:34 am

Its those errors that you are getting trying to compile socketapp that have me worried ;) A WiShield app, at least as shown in the examples, can be set up as a WiServer app, UDP app, socket app, etc. The SMTP stuff that I am working on requires the app to be set up as a socket app. What I am not sure of is if a WiServer app and socket app can coexist together... I am doubtful (without modifying WiServer) as you only get one UIP_APPCALL function and both app types are going to want to set their own.

I think my code should be working and I'll give it a try once I can (hopefully) put the bootloader back on my test Arduino. Making it work alongside a WiServer app would be the next step...

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 LttlScamp » Mon Oct 19, 2009 7:23 am

I second the request for a NTP sketch. This would be great since there's no on-board RTC.
LttlScamp
 
Posts: 36
Joined: Mon Sep 28, 2009 11:07 am

Re: Feature requests for stack

Postby GregEigsti » Mon Oct 19, 2009 8:56 am

I believe that NTP is only available for the UDP protocol which is great if you are utilizing a WiShield UDP app. However trying to mix UDP and TCP in a WiShield app is problematic. I found that I got the following build errors when both APP_SOCKAPP and APP_UDPAPP where defined in apps-conf.h.

Build Errors
/.../Arduino/libraries/WiShield/udpapp.h:40: error: redefinition of 'struct socket_app_state'
/.../Arduino/libraries/WiShield/udpapp.h:42: error: redefinition of typedef 'uip_tcp_appstate_t'
/.../Arduino/libraries/WiShield/socketapp.h:52: error: previous declaration of 'uip_tcp_appstate_t' was here

That said, and without looking at the errors, my guess is that this would not be too difficult to accomplish but would require a little creative rearranging of the WiShield code to get rid of the build errors.

Home of NTP
http://www.ntp.org/

An implementation of NTP to rip-off ;)
http://www.tuxgraphics.org/electronics/ ... lock.shtml

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