ARDUINO UNO e WIFI ETHERNET SHIELD

Ciao a tutti,
premetto che sono un profano della materia e purtroppo non riesco a risolvere la difficoltà del momento: ho da poco acquistato una scheda ARDUINO UNO ed una scheda WIFI ETHERNET SHIELD...
Ho utilizzato uno schetch precompilato della libreria wifi (vedi sotto) per visualizzare su browser la scritta "hello word", ma non riesco a visualizzare nulla...
Cosa sto sbagliando? Potreste aiutarmi?

Lo schetch è:

/*

  • A simple sketch that uses WiServer to serve a web page
    */

#include <WiServer.h>

#define WIRELESS_MODE_INFRA 1
#define WIRELESS_MODE_ADHOC 2

// Wireless configuration parameters ----------------------------------------
unsigned char local_ip[] = {192,168,1,4}; // IP address of WiShield
unsigned char gateway_ip[] = {192,168,1,1}; // router or gateway IP address
unsigned char subnet_mask[] = {255,255,255,0}; // subnet mask for the local network
const prog_char ssid[] PROGMEM = {"Digicom_F2CB"}; // max 32 bytes

unsigned char security_type = 3; // 0 - open; 1 - WEP; 2 - WPA; 3 - WPA2

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

// WEP 128-bit keys
// sample HEX keys
prog_uchar wep_keys[] PROGMEM = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, // 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
unsigned char wireless_mode = WIRELESS_MODE_INFRA;

unsigned char ssid_len;
unsigned char security_passphrase_len;
// End of wireless configuration parameters ----------------------------------------

// This is our page serving function that generates web pages
boolean sendMyPage(char* URL) {

// Check if the requested URL matches "/"
if (strcmp(URL, "/") == 0) {
// Use WiServer's print and println functions to write out the page content
WiServer.print("");
WiServer.print("Hello World!");
WiServer.print("");

// URL was recognized
return true;
}
// URL not found
return false;
}

void setup() {
// Initialize WiServer and have it use the sendMyPage function to serve pages
WiServer.init(sendMyPage);

// Enable Serial output and ask WiServer to generate log messages (optional)
Serial.begin(57600);
WiServer.enableVerboseMode(true);
}

void loop(){

// Run WiServer
WiServer.server_task();

delay(10);
}

GRAZIE MILLE
PIERPAOLO

Non so aiutarti, ma anche io volevo collegare Arduino via Wifi per accedere al calendario di google.

Qualcuno mi sa aiutare che Shield acquistare e come fare?

Magari meglio aprire un post dedicato

... "una scheda WIFI ETHERNET SHIELD" è un tantino generico, che modello esatto di scheda è ? Link al prodotto ?

Guglielmo

P.S. : Cortesemente puoi racchiudere il codice dentro gli appositi tag "code" (bottone # dell'edit)

penso sia l'originale, o almeno non ne ho viste di compatibili wifi... Se ci fossero a una 30 di euro me la sarei già presa!!! :grin:

SUBSEA:
... Se ci fossero a una 30 di euro me la sarei già presa!!! :grin:

Cerca, cerca, che di modulini per collegarsi in WiFi attorno ai 30 € ce ne sono e anche carini ... :wink:

Guglielmo

vero, vero! per te questo com'è? Tutte le categorie | eBay Italia??? si può usare lo stesso codice (e libreria) dell'originale?

Ciao

si può usare lo stesso codice (e libreria) dell'originale?

direi proprio di no.
L'originale ha molte differenze rispetto a molti altri moduli wifi che usano moduli di terzi comandati via comandi AT

addirittura non si connette neanche al wifi:

Is this shield a 2.4Ghz shield compatible with my home WI-FI router?
No. Please, take note that even this is a wireless product it's not compatible with 2.4Ghz products. You can't use this shield to connect your Arduino to the Internet. This shield allows only to interact with AirQ Networks devices or to interface another AirQ ShielD.

quindi, non credo che esistano cloni della shield.

Ciao

addirittura non si connette neanche al wifi:

infatti leggendo bene su github la descrizione del progetto, si capiva che cmq non era uno shield wifi.
Usa le frequenze tipiche dei mirf (o NRF24L01)

sì, è solo una board che usa un proprio protocollo per comandare altre shield della stessa marca via wirless...

SUBSEA:
vero, vero! per te questo com'è? Tutte le categorie | eBay Italia??? si può usare lo stesso codice (e libreria) dell'originale?

Per quello ti è già stato risposto, non è un modulo WiFi ...

NO, io intendevo cosette simpatiche come questo http://www.rovingnetworks.com/products/RN171XV che trovi montato su questa schedina della SparkFun : https://www.sparkfun.com/products/10822 oppure quest'altro, in vendita da RS : http://it.rs-online.com/web/p/kit-di-sviluppo-interfacce/7379811/?searchTerm=MRF24WB0MA anche lui usato su varie board, tra cui quella di Elettronica-In (... per quest'ultimo modulo devo ringraziare Testato per la segnalazione) :wink:

Guglielmo