Jump to content
Sign in to follow this  
chain

Diamondback Linksprite

Recommended Posts

I am not finding any documentation on how to get this board to work with the wifi.

I have gotten the red led on the board to light, I see the Mac Address on my router, but other than that, I get compile errors and I am unable to use other libraries with this board.

Please help.. please point me in the right direction. 

Share this post


Link to post
Share on other sites
Guest Ward Ryan

The red WIFI light is on.

How do I set the local ip address? (I know my ip address for my router, but what do I set the local ip address to in code?)

 

What do I configure in this file?

 

Why does this only work with unsigned char security_type = 0; // 0 - open; 1 - WEP; 2 - WPA; 3 - WPA2

set to 0?

 

I am using 

 

/******************************************************************************
 
  Filename: apps-conf.h
  Description: Web application configuration file
 
 ******************************************************************************
 
  TCP/IP stack and driver for the WiShield 1.0 wireless devices
 
  Copyright© 2009 Async Labs Inc. All rights reserved.
 
  This program is free software; you can redistribute it and/or modify it
  under the terms of version 2 of the GNU General Public License as
  published by the Free Software Foundation.
 
  This program is distributed in the hope that it will be useful, but WITHOUT
  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
  more details.
 
  You should have received a copy of the GNU General Public License along with
  this program; if not, write to the Free Software Foundation, Inc., 59
  Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
  Contact Information:
  <asynclabs@asynclabs.com>
 
   Author               Date        Comment
  ---------------------------------------------------------------
   AsyncLabs 05/29/2009 Initial port
 
 *****************************************************************************/
 
#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_UDPAPP
#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_UDPAPP
#include "udpapp.h"
#endif
 
#ifdef APP_WISERVER
#include "server.h"
#endif
 
#endif /*__APPS_CONF_H__*/
 

Share this post


Link to post
Share on other sites
Guest Ward Ryan

Do you have any suggestions on what I need to configure in the apps_conf.h file?

 

Do you have any samples of what other people have done that works for them?

Share this post


Link to post
Share on other sites

There's  several sample code in ZG2100BasedWiFiShield library. Before you choose one of them, you need revise the apps-conf.h

 

The apps-conf.h you post indicated that you use SimpleServer .

 

For example, if you want to use WebServer , the apps-conf.h should be:

 

 

 *****************************************************************************/
 
#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_UDPAPP
//#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_UDPAPP
#include "udpapp.h"
#endif
 
#ifdef APP_WISERVER
#include "server.h"
#endif
 
#endif /*__APPS_CONF_H__*/
 
If the red WIFI light on, it indicates that your diamondback connecting to your network.
 
The local_ip in the code is IP address for diamondback , it should be compared with your router. 

Cuhead 5

 

Share this post


Link to post
Share on other sites
Guest Ward Ryan

I think I am getting close to figuring this out..

 

The wifi red light now comes on with "unsigned char security_type = 3; // 0 - open; 1 - WEP; 2 - WPA; 3 - WPA2"

 

So it is authenticating...

 

I uncommented out APP_WEBSERVER and commented out the APP_WISERVER

 

//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
 
But when I compile it, I get this error message (see below).. Is there something more to configure?

 

Arduino: 1.5.6-r2 (Mac OS X), Board: "Arduino Duemilanove or Diecimila, ATmega328"
 
ZG2100BasedWiFiShield/uip.c.o: In function `uip_process':
/Users/wardryan/Documents/Arduino/libraries/ZG2100BasedWiFiShield/uip.c:776: undefined reference to `webserver_appcall'
/Users/wardryan/Documents/Arduino/libraries/ZG2100BasedWiFiShield/uip.c:815: undefined reference to `webserver_appcall'
/Users/wardryan/Documents/Arduino/libraries/ZG2100BasedWiFiShield/uip.c:1570: undefined reference to `webserver_appcall'
/Users/wardryan/Documents/Arduino/libraries/ZG2100BasedWiFiShield/uip.c:1597: undefined reference to `webserver_appcall'
/Users/wardryan/Documents/Arduino/libraries/ZG2100BasedWiFiShield/uip.c:1674: undefined reference to `webserver_appcall'
ZG2100BasedWiFiShield/uip.c.o:/Users/wardryan/Documents/Arduino/libraries/ZG2100BasedWiFiShield/uip.c:1755: more undefined references to `webserver_appcall' follow
ZG2100BasedWiFiShield/stack.c.o: In function `stack_init':
/Users/wardryan/Documents/Arduino/libraries/ZG2100BasedWiFiShield/stack.c:77: undefined reference to `webserver_init'
 
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×