Jump to content


Photo

Diamondback Linksprite


  • Please log in to reply
6 replies to this topic

#1 chain

chain

    Advanced Member

  • Members
  • PipPipPip
  • 756 posts

Posted 14 May 2014 - 12:49 AM

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. 



#2 chain

chain

    Advanced Member

  • Members
  • PipPipPip
  • 756 posts

Posted 14 May 2014 - 12:57 AM

Did you use the ZG2100BasedWiFiShield library´╝čBefore you compile , you need to revise the apps-conf.h

Cuhead 14

 

For more details, you can view this page: 

http://linksprite.co...le_With_Arduino



#3 Guest_Ward Ryan_*

Guest_Ward Ryan_*
  • Guests

Posted 14 May 2014 - 07:32 AM

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__*/
 


#4 Guest_Ward Ryan_*

Guest_Ward Ryan_*
  • Guests

Posted 14 May 2014 - 11:56 PM

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?

#5 chain

chain

    Advanced Member

  • Members
  • PipPipPip
  • 756 posts

Posted 15 May 2014 - 01:15 AM

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

 



#6 Guest_Ward Ryan_*

Guest_Ward Ryan_*
  • Guests

Posted 18 May 2014 - 05:23 AM

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'
 
 


#7 chain

chain

    Advanced Member

  • Members
  • PipPipPip
  • 756 posts

Posted 19 May 2014 - 01:22 AM

Did you also put other WiFiShield library in your Arduino libraries folder?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users