WISHIELD 2.0 I can´t connect

Hi

I'm new with my Wishield 2.0 and I've been trying for a week to make it work, but without success.
Somebody can tell me why I cannot conect my wishield to my router??

My code is of 64 bits 6265353331 is it correct in the way I wrote it?
I only want to stablish conection with my AP and turn on the red led
Is any other thing that I have to change in the files *.h or *.c like the lenght of the WEP from 13 to 5?

/*

  • A simple sketch that uses WiServer to get the hourly weather data from LAX and prints
  • it via the Serial API
    */

#include <WiServer.h>

// Wireless configuration parameters ----------------------------------------
unsigned char local_ip[] = {192,168,1,2}; // IP address of WiShield
unsigned char gateway_ip[] = {192,168,1,254}; // router or gateway IP address
unsigned char subnet_mask[] = {255,255,255,0}; // subnet mask for the local network
char ssid[] = {"ASYNCLABS"}; // max 32 bytes
unsigned char security_type = 1; // 0 - open; 1 - WEP; 2 - WPA; 3 - WPA2

// WPA/WPA2 passphrase
const prog_char security_passphrase[] PROGMEM = {"12345678"}; // max 64 characters

// WEP 128-bit keys
prog_uchar wep_keys[] PROGMEM = {
0x62, 0x65, 0x35, 0x33, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Key 0
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Key 1
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Key 2
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Key 3
};

// setup the wireless mode; infrastructure - connect to AP; adhoc - connect to another WiFi device
#define WIRELESS_MODE_INFRA 1
#define WIRELESS_MODE_ADHOC 2
unsigned char wireless_mode = WIRELESS_MODE_INFRA;
unsigned char ssid_len;
unsigned char security_passphrase_len;
// End of wireless configuration parameters ----------------------------------------

void setup() {
}

void loop(){
}

Is the name of your WiFi network ASYNCLABS? I'm guessing that's just what was defined in the sample. You'd have to set it to the SSID of your network. That's the thing that shows up when you search for WiFi networks. They're often named Linksys, for instance.

Also, you're setup for WEP, is that what you're using?

If you are connecting a new computer to your wireless network, what do you have to type in for the password?

The name of my Access Point is INFINITUMxxx I guess I have to change it

and yes, it is my WEP KEY with some changes.

I don't really know for sure how you enter the WEP key. It could be as you've done, or it could be that each of those numbers are ASCII characters and should each be represented by a byte in the array. In that case, 6265353331 would be:

   0x36, 0x32, 0x36, 0x35, 0x33, 0x35, 0x33, 0x33, 0x33, 0x31, 0x00, 0x00, 0x00,   // Key 0

But that's 10 bytes or 80 bits. The way you had it is 5 bytes or 40 bits. Neither is 64 bits...

Also, make sure the IP address, router, and mask you're setting up are compatible with your network.

You will need to use the correct SSID for it to work. You also need to use a 128bit key, 64bit encryption will not work. Try logging into your access-point and configure the keys to use 128bit encryption, or switch to wpa/wpa2 (which is better secured anyway).

Also, I don't know if it is relevant, but you don't call anything in your setup() or loop(); I don't know how it will do anything without method/function calls.

If you haven't done so already, open the file apps-conf.h and uncomment which sketch you are using.
As shown here I had been using the webserver sketch.

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