Pages: [1]   Go Down
Author Topic: Wifi Bee, Arduino Uno, cannot connect to webServer hosted by wifi Bee  (Read 551 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

I am a fresh newbie trying to get my hands on this wifi Bee.  I am planning to do a wifi bee controlled ikea lamp device, as:

 http://www.open-electronics.org/arduino-wifi-rgb-lamp-ikea-dudero-modding/

I have all the libraries, and the program compiled ok.  I have also followed the step as:

http://www.seeedstudio.com/wiki/Wifi_Bee#Downloading_and_configuring_the_Library_for_running_the_application_examples

to set up a static ip from DHCP router.  Now the problem is when i set the ip address (192.168.0.4) as my wifi Bee local ip address, i cannot connect to this ip address through computer, however, the wifi bee is connected to my home wifi (wifi led glows).  I was wondering if anyone can shed some light on this problem?  Any help is appreciated.  
The code is copied from open-electronics:
Quote
1   /* IKEA Dudero mods WIFI Version
2   
3    created 2011
4    by Boris Landoni
5   
6    This example code is in the public domain.
7   
8   http://www.open-electronics.org
9   
10   
11   http://www.futurashop.it
12   
13   
14   http://blog.elettronicain.it/
15   
16    */
17   
18   // Inclusione Libreria per Server Web WiFi
19   #include <WiServer.h>
20   #include <avr/pgmspace.h>
21   #include <EEPROM.h>
22   
23   int red = 3;    // RED LED connected to PWM pin 3
24   int green = 5;    // GREEN LED connected to PWM pin 5
25   int blue = 6;    // BLUE LED connected to PWM pin 6
26   int r=50; int g=100; int b=150;
27   int rup; int gup; int bup;
28   int fader=0;
29   int inc=10;
30   String inString = String(50);
31   char buffer[160]; // make sure this is large enough for the largest string it must hold
32   
33   // Definizione Parametri Rete Wireless
34   #define WIRELESS_MODE_INFRA 1  // Infrastrutturata (basata su Access Point)
35   #define WIRELESS_MODE_ADHOC 2  // Ad-hoc (senza Access Point)
36   
37   unsigned char local_ip[] = {192, 168, 0, 4};      // Indirizzo IP
38   unsigned char gateway_ip[] = {192, 168, 0, 1};        // Indirizzo gateway IP
39   unsigned char subnet_mask[] = {255, 255, 255, 0};   // Subnet Mask
40   const prog_char ssid[] PROGMEM = {"mywifiSSID"};        // SSID access point
41   
42   // Selezione tipo di cifratura rete Wireless
43   unsigned char security_type = 3;  // 0 -> nessuna cifratura
44                                     // 1 -> cifratura WEP
45                                     // 2 -> cifratura WPA
46                                     // 3 -> cifratura WPA2
47   
48   // Password cifratura per WPA/WPA2 (max. 64 cratteri)
49   const prog_char security_passphrase[] PROGMEM = {"mypassword"};
50   
51   // Password cifratura per WEP 128-bit keys
52   prog_uchar wep_keys[] PROGMEM = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
53                    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
54                    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
55                    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
56
The wifi bee i am using is Copperhead Wifi Shield from linksprite:
http://www.linksprite.com/product/showproduct.php?lang=en&id=195

Regards,
Code smiley-grin
« Last Edit: November 14, 2012, 08:01:14 pm by CodeCaCola » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can anyone please help me  smiley-small
Logged

Pages: [1]   Go Up
Jump to: