Looking for user contributed version fearures

Questions specifically regarding the WiShield 1.0 family driver.

Looking for user contributed version fearures

Postby gordonendersby » Tue Oct 19, 2010 9:04 am

Hi Guys,

Im currently going blind reading through old posts and source code, specifically the excellent user contributed version.
There are now a lot of posts on the forum. You used to be able to scan through and get an idea of how things are progressing.
There seems to be a lot of old suggestions for fixing this or that problem and I believe a lot of these suggestions and fixes have made it into the user contributed code.

The reason I ask is that I was just looking for a method to find out when the connection is established with my wireless router.
Ive read several posts on the subject but cant find any of the suggested solutions in the user contributed source.
I could just implement one of the suggested fixes but I dont know if another fix may have already been implemented and Ive just missed it while pouring over the code.

Is there a method available to test if the connection to the wireless router is up?
Is there a list of improvements and fixes that have already been merged with the source?

Thanks

Gordon
gordonendersby
 
Posts: 40
Joined: Tue May 12, 2009 7:43 am

Re: Looking for user contributed version fearures

Postby GregEigsti » Tue Oct 19, 2010 6:25 pm

Its been a while since I looked... There should be checkin notes on GitHub that will give you an idea of what has made it into the user contrib branch.
WiFi.init() in the user contrib branch has been updated to do a couple of neat new tricks:
- Takes an optional connection timeout parameter
- Returns true/false on connection status

I'm pretty sure that I am remembering this correctly - its been a while since I have played with any fun projects :(

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: Looking for user contributed version fearures

Postby gordonendersby » Wed Oct 20, 2010 8:08 am

Thanks Greg Ill have a more indepth look at the changes committed to github.

Gordon
gordonendersby
 
Posts: 40
Joined: Tue May 12, 2009 7:43 am

Re: Looking for user contributed version fearures

Postby gordonendersby » Sun Oct 24, 2010 9:01 am

Hi Greg,

Been reading some more and decided I wanted to do something similar to your pop3 email checker you posted some time ago.
But Im well and truly stuck as I wanted to use the extra features in the user contributed branch.
Im running Ubuntu 9.04 with the arduino ide without any problems with any other sketches or libraries so far.
I downloaded the source by the "Downloads" button on the branch page.
http://github.com/asynclabs/WiShield_user_contrib
Im using the yellowjacket so the interrupt pin is hard wired to 2.
I havnt included a sketch as Im using the webserver example to troubleshoot this.

Her goes:
Im having some trouble getting the user contributed code connected to my wifi router.
Ive started using ver21 of the ide with the user branch and couldn't get any connection to my router so I shifted back to ver19.
Still no go and couldnt find a problem.

To see what was happening, I tried the standard webserver example in ver19 with the user contributed branch and it still couldn't connect to my router.
Im aware of the change of type for the ssid.
The sketch is compiling and uploading without any errors.
So I put the standard version of the wishield library back, compiled and uploaded the webserver example again and it connected without any problem.

Back to the user contributed library.
I traced through as far as the the call to zg_drv_process() within WiShield::init in WiShield.cpp then started to get lost.
zg_drv_process() isnt returning no matter how long I wait.
I tried adding 65 seconds to the wifi.init() call as I couldnt see a default value. Still no go.

So Im a bit stuck.
Are you able to run the webserver example with the current user source on github ?
Ive seen how busy you are and Im wondering if maybe a typo has sneaked in to the user contributed source?
Ive run out of time today but in the next day or so could try working back through the commits and downloading the source before each commit to see if I can nail down the problem.
Or if you have a known working copy and could email me a copy I could check it against github.

I appreciate what youve done with this code..
Gordon.endersby(fix my email address with an @)blueyonder.co.uk
gordonendersby
 
Posts: 40
Joined: Tue May 12, 2009 7:43 am

Re: Looking for user contributed version fearures

Postby bnadeau » Sun Oct 24, 2010 9:53 am

Gordon, Greg.

I believe I'm having the same issue with the user-contrib version of the library and examples. If I run SimpleServer or WebServer using the main stable library, no problem, I can see the default pages in a browser. If I run the same examples from the user-contrib version, the device connects to the WiFi (i.e. I can ping it), but I can not see the default page in the browser.

I'll keep digging, but if you find anything I would really appreciate if you post it here.

bruno
bnadeau
 
Posts: 1
Joined: Sun Oct 24, 2010 9:45 am

Re: Looking for user contributed version fearures

Postby GregEigsti » Sun Oct 24, 2010 10:07 am

SimpleServer (WiServer) is known not to work in the user contrib branch - I think it is due to the last change committed (too large packet bug fix) - but am not sure.

I'll try to give the web server sketch a try to see if I can repro the problem. I know that the UDP and TCP examples work - or they did last time I played with them. I just don't have the time or resources to verify every sketch ever conceived and every piece of WiFi hardware.

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: Looking for user contributed version fearures

Postby GregEigsti » Sun Oct 24, 2010 11:22 am

Quick update - I was able to repro the WebServer/SimpleServer problem (I knew SimpleServer was broken).
I tried reverting the "packet too large" "fix" that I had added to the user contrib branch (see thread) and that fixed the problem with both WebServer/SimpleServer.

Anyway, I need to figure out GitHub on Windows (not a huge leap but had been using it on the Mac) and will check in this fix (or revert to the working version). Just beware that you will be susceptible to the "too large packet problem".

Maybe somebody can go re-read the thread above and refresh me on the current status of this issue and if there is a better fix for the problem (I seem to remember there being a better fix...)

I'll let you know when this fix is in. Should be in the next hour or so - I have some other pressing matters to attend to.

Good news anyway, kind of. I thought that "fix" was hinky (my version of it) ;)
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: Looking for user contributed version fearures

Postby GregEigsti » Sun Oct 24, 2010 1:13 pm

Ok, the backed out changes have been pushed to GitHub. Grab a new copy of the user contrib code and see if things are better for you.
Note: you will be susceptible to the "packet too large" issue but this is better than never getting off of the ground.

Tested the changes out with SimpleServer and WebServer and all works well for me.

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: Looking for user contributed version fearures

Postby gordonendersby » Mon Oct 25, 2010 2:12 am

Hi Greg

Thanks Ill give it a go a bit later.
When I first found the problem it was with a socketapp sketch so ill try that as well.

Why not ask anync if they will allow a section on the forum for the user branch?
Then if a change is committed a post could go on the forum to ask people like me to test scripts and examples.
I wouldnt mind doing that.
There could also be a sticky at the top to document the working features.

Gordon
gordonendersby
 
Posts: 40
Joined: Tue May 12, 2009 7:43 am

Re: Looking for user contributed version fearures

Postby gordonendersby » Mon Oct 25, 2010 8:48 am

Hi Greg,

After all your work yesterday.
Ive had a play and Im sorry to tell you I couldnt get the example scripts id used to connect.
So started going back through the commits on the git hub.

Got back to:
July 10, 2010
Add RSSI to g2100
And it worked for me.

Went forward one commit to the ssid type changes. Moving away from using progmem for the ssid and it stopped working.
I couldnt see anything that would cause a problem.
Also tried several other commit points after that and still wouldnt work for me.
Is there a possibility that something didnt get commited at that time but is still in your copy?

Also is there any difference when taking a copy from github between downloading a zip file and using the command line git commands?
Maybe I should try getting a copy through the command line. Ill have to set that up and try.
Ive ran out of steam at the moment though.

You sound very busy at the moment.
Sorry not smart enough to directly debug and find out what is wrong. I dont know enough about the stack.
I have ME/CFS, it severely effects my concentration and memory so cant work on stuff like this for too long any more.
But I can do some of the grunt work.
So if you want to have a second set of eyes going over your working copy of the library let me know
I can at least work through a diff of the github version and yours to see if I can find anything.

Gordon
Gordon.endersby(fix my email address with an @)blueyonder.co.uk
gordonendersby
 
Posts: 40
Joined: Tue May 12, 2009 7:43 am

Next

Return to WiShield 1.0 Driver

Who is online

Users browsing this forum: No registered users and 1 guest