Ethernet shield Question

Salve a tutti e grazie innanzitutto per il Vostro intervento,

Per essere giustamente più preciso, posterò lo sketch che tra l'altro è quello preconfezionato nel software di arduino e io non ho fatto nient'altro che modificare i parametri di rete.

#include <SPI.h>
#include <Ethernet.h>

// network configuration. gateway and subnet are optional.

// the media access control (ethernet hardware) address for the shield:
byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x6C, 0xE3 }; (MAC DELLA MIA SCHEDA)
//the IP address for the shield:
byte ip[] = { 192, 168, 0, 6 }; (IP LIBERO DELLA MIA RETE)
// the router's gateway address:
byte gateway[] = { 192, 168, 0, 1 }; (IP MODEM)
// the subnet:
byte subnet[] = { 255, 255, 255, 0 }; (CLASSICO PARAMETRO ORMAI UN DEFAULT PER MOLTE RETI)

// Initialize the Ethernet server library
// with the IP address and port you want to use
// (port 80 is default for HTTP):
EthernetServer server(80);

void setup()
{
// initialize the ethernet device
Ethernet.begin(mac, ip, gateway, subnet);

// start listening for clients
server.begin();
}

void loop()
{
// if an incoming client connects, there will be bytes available to read:
EthernetClient client = server.available();
if (client == true) {
// read bytes from the incoming client and write them back
// to any clients connected to the server:
server.write(client.read());
}
}

Per quanto riguarda l'hw, possiedo un Arduino UNO, con shield ethernet che trovate rappresentata in questa immagine: http://arduino.cc/en/Guide/ArduinoEthernetShield

Rammento che se collego arduino direttamente al pc, funziona tutto alla perfezione, visualizzando ad esempio, una pagina di prova nel browser.
Come ultima cosa, ho provato a collegare al mio modem, un piccolo convertitore USB/ETHERNET, attribuendogli un indirizzo ip, sia statico che dinamico e funziona sempre.
Altro test che ho eseguito è stato quello di disabilitare e abilitare il DHCP, ma il modem già a priori, non visualizza lo shield collegato, nella lista preposta...., mah che rabbia :0

lucadentella:
ciao

per capire meglio... se colleghi con un cavo l'ethernet shield alla presa di rete del PC riesci a pingare Arduino e a collegarti?
Se invece entrambi (PC e Arduino) sono connessi al router no?
Veramente strano, il router dovrebbe avere un semplice "switch" al suo interno...

prova così: carica uno sketch che risponda al ping, dal PC fai:

ping <indirizzo_ip_arduino>

e se non ti risponde dai

arp -a

vedi se almeno il PC riesce ad ottenere l'ARP che hai definito nel tuo sketch

Proverò anche (ARP-A) e vediamo se fa qualcosa.

Ciao