Arduino + Wifi 2.0 shield

Postings related to the second version of the WiShield

Arduino + Wifi 2.0 shield

Postby Lyghtning » Sat Nov 13, 2010 4:58 pm

I just purchased the Wifi 2.0 shield without antenna...

Nothing will compile

So i thought it was me, so i redownloaded arduino IDE 0021, i still also have 0018

I downloaded WiServer, i downloaded Wifishield lib 1.3

Put all in the right directories

Went to File / Examples/ WiServer/ SimpleServer

Anything in examples will not complete all come back with

E:\arduino-0021\libraries\WiShieldLib\g2100.c: In function 'zg_init':
E:\arduino-0021\libraries\WiShieldLib\g2100.c:63: error: 'PRR0' undeclared (first use in this function)
E:\arduino-0021\libraries\WiShieldLib\g2100.c:63: error: (Each undeclared identifier is reported only once
E:\arduino-0021\libraries\WiShieldLib\g2100.c:63: error: for each function it appears in.)
E:\arduino-0021\libraries\WiShieldLib\g2100.c: In function 'zg_drv_process':
E:\arduino-0021\libraries\WiShieldLib\g2100.c:518: error: 'PORTL' undeclared (first use in this function)


All i want to do is make my little board blink an LED from a webpage...

That's all not to much to ask for... any help would be appreciated. Now i'm kind of stuck without any direction.. I've read the wiki, there were 0 *.o files to delete. i've restarted IDE many times to make sure .h files were correct
If anyone has info please share.
Lyghtning
 
Posts: 7
Joined: Sat Nov 13, 2010 4:51 pm

Re: Arduino + Wifi 2.0 shield

Postby gordonendersby » Sun Nov 14, 2010 4:16 am

Have you commented out defines in apps_conf.h ?

Code: Select all
//Here we include the header file for the application(s) we use in our project.
//#define APP_WEBSERVER
//#define APP_WEBCLIENT
//#define APP_SOCKAPP
//#define APP_UDPAPP
#define APP_WISERVER


For the simple server you need to define APP_WISERVER and leave the rest commented out.
I think the webserver example would have worked out of the box without changing apps_conf.h
The wiserver code and simplewebserver example was contributed by a user adding an extra layer of abstraction on top of the original library. So it needs the defines changed to make it work.

This is covered a few times in posts on the forum.
Have a good read through the older posts as there is a lot of good information in there.
Once youve got over the first few hurdles you will have no trouble.

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

Re: Arduino + Wifi 2.0 shield

Postby Lyghtning » Sun Nov 14, 2010 2:17 pm

Yes i've commented things out

And out of the box none of the sketchs are loading
Lyghtning
 
Posts: 7
Joined: Sat Nov 13, 2010 4:51 pm

Re: Arduino + Wifi 2.0 shield

Postby Lyghtning » Sun Nov 14, 2010 2:24 pm

This is error

In file included from E:\arduino-0021\libraries\WiShieldLib\/apps-conf.h:80,
from E:\arduino-0021\libraries\WiShieldLib\/uip-conf.h:71,
from E:\arduino-0021\libraries\WiShieldLib\/uipopt.h:104,
from E:\arduino-0021\libraries\WiShieldLib\/uip.h:89,
from E:\arduino-0021\libraries\WiShieldLib\/global-conf.h:43,
from E:\arduino-0021\libraries\WiShieldLib\clock-arch.c:35:
E:\arduino-0021\libraries\WiShieldLib\/webclient.h:106: error: conflicting types for 'uip_tcp_appstate_t'
E:\arduino-0021\libraries\WiShieldLib\/webserver.h:43: error: previous declaration of 'uip_tcp_appstate_t' was here
In file included from E:\arduino-0021\libraries\WiShieldLib\/apps-conf.h:84,
from E:\arduino-0021\libraries\WiShieldLib\/uip-conf.h:71,
from E:\arduino-0021\libraries\WiShieldLib\/uipopt.h:104,
from E:\arduino-0021\libraries\WiShieldLib\/uip.h:89,
from E:\arduino-0021\libraries\WiShieldLib\/global-conf.h:43,
from E:\arduino-0021\libraries\WiShieldLib\clock-arch.c:35:
E:\arduino-0021\libraries\WiShieldLib\/socketapp.h:52: error: conflicting types for 'uip_tcp_appstate_t'
E:\arduino-0021\libraries\WiShieldLib\/webclient.h:106: error: previous declaration of 'uip_tcp_appstate_t' was here
Lyghtning
 
Posts: 7
Joined: Sat Nov 13, 2010 4:51 pm

Re: Arduino + Wifi 2.0 shield

Postby Lyghtning » Sun Nov 14, 2010 2:26 pm

This is app-conf.h

#ifndef __APPS_CONF_H__
#define __APPS_CONF_H__
//Here we include the header file for the application(s) we use in our project.
#define APP_WEBSERVER
//#define APP_WEBCLIENT
//#define APP_SOCKAPP
//#define APP_WISERVER
#ifdef APP_WEBSERVER
#include "webserver.h"
#endif
#ifdef APP_WEBCLIENT
#include "webclient.h"
#endif
#ifdef APP_SOCKAPP
#include "socketapp.h"
#endif
#ifdef APP_WISERVER
#include "server.h"
#endif
#endif
Lyghtning
 
Posts: 7
Joined: Sat Nov 13, 2010 4:51 pm

Re: Arduino + Wifi 2.0 shield

Postby Lyghtning » Sun Nov 14, 2010 2:28 pm

Reloaded from scratch
Arduino 0021, downloaded Wiserver.zip

Webserver will not run without modifications. all examples give same error above
Lyghtning
 
Posts: 7
Joined: Sat Nov 13, 2010 4:51 pm

Re: Arduino + Wifi 2.0 shield

Postby gordonendersby » Mon Nov 15, 2010 4:54 am

One quick thought.
You have named the directory "WiShield" in libraries havnt you?
The directory name has to be the same as the library name, its also case sensitive.

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

Re: Arduino + Wifi 2.0 shield

Postby Lyghtning » Mon Nov 15, 2010 11:15 am

So i had to check, renamed for caps sensativity

WiShield, correct

Still producing errors, i actually decided to go a bit simpler route.

Figured i'd test just the simple client.

So i commented out everything except webclient

Compiled, found errors for Getweather
So i started deleting the getweather from the sketch, once i got past that it started requiring dependancy's on wiserver...
So i exited sketch, and enviroment, "did not save changes"
went back into app-config.h uncommented out wiserver, since there was dependancy's
Tried to compile got same error as above...

Getting there

So i redownloaded again to start from scratch, and even the sketch listed above as the working out of the box still produces errors...
If i dont have to use a example sketch ill possibly just build my own. Trying to get a simple webpage and LED response, doesnt matter which pin.
On/Off

I saw someone posted a sketch on led but it's a bit more complex than i want to start with.
Lyghtning
 
Posts: 7
Joined: Sat Nov 13, 2010 4:51 pm

Re: Arduino + Wifi 2.0 shield

Postby Lyghtning » Mon Nov 15, 2010 11:23 am

On a good note, the Dataflash sketches are loading fine

Intro and Upload


however none of the WiShield sketches are loading, so at least i'm on a decent level here... and all my old sketches still load
Lyghtning
 
Posts: 7
Joined: Sat Nov 13, 2010 4:51 pm

Re: Arduino + Wifi 2.0 shield

Postby gordonendersby » Mon Nov 15, 2010 11:48 am

That is bizarre I dont know whats going on there.

I saw your error message
E:\arduino-0021\libraries\WiShieldLib\g2100.c: In function 'zg_init':
So was wondering if it was named correctly.

It worked out of the box for me.

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


Return to WiShield 2.0

Who is online

Users browsing this forum: Google [Bot] and 1 guest