salve a tutti,
ho acquistato un' ethernet shield che non funziona, ho chiesto aiuto al venditore il quale dopo alcune domande mi ha detto che sembrerebbe essere difettosa poichè rimangono accesi solo il led pwr e L (a suo dire dovrebbero lampeggiare diversi altri led) fatto sta che il router non la vede in nessun modo, per avere la sostituzione devo inviarla di nuovo a lui in inghilterra dove sarà testata e in caso di difetti mi sarà sostituita e rimbrsata la spedizione.
Ora mi chiedo cè un modo per capire inequivocabilmente che è la ethernet shield ad essere difettosa poichè in caso la shield funzionasse mi sarebbe rispedita e dovrei pagare 2 spedizioni completamente inutili.
Il mio arduino Uno ha sempre funzionato benissimo ma non ho mai utilizzato le porte ICSP, la suddetta shield utilizza tali porte. cè un modo per verificare che funzionino?
L’ hai pagato con paypal?
Quale modello é?
L’ esempio del rivenditore l’ hai provato?
Ciao Uwe
Ciao, prova con quello che hanno suggerito a me. Magari con la tua funziona.
http://forum.arduino.cc/index.php?topic=208557.0
Nel mio caso non ha funzionato ma magari non stiamo nemmeno parlando dello stesso modello di scheda..
Ciao e buona giornata.
LongiArduino
ragazzi la shield è questa:
http://hobbycomponents.com/index.php/2012-ethernet-w5100-network-shield-for-arduino-uno-mega-2560-1280-328.html
si ho pagato con paypal, ma piu’ che un risarcimento vorrei la shield funzionante…
ho provato lo sketch del venditore ma come detto sopra non cè verso di farla vedere al router.
grazie delle risposte
Che MAC address gli hai assegnato ?
Guglielmo
come mac ho lasciato questo DE:AD:BE:EF:FE:ED
l’ip ho dovuto modificarlo in 192.168.0.55
lo sketch usato è il seguente
/* FILE: ARD_Ethernet_Shield_HCARDU0034_Example.pde
DATE: 25/04/13
VERSION: 0.2
This is an example of how to use the HobbyComponents Arduino Ethernet shield
(HCARDU0033). This Ethernet shield is based on the W5100 Ethernet controller and
is compatible with the standard Aduino Ethernet libraries. It requires no additional
libraries to work.
This program will serve a basic webpage at the ip address specified below. As an
example of content, the webpage contains the current status of the 6 analogue input
pins.
REVISIONS:
V0.1 Initial version
V0.2 Added line to configure pin 53 as an output on Mega's to stop the SPI
master potentially being configured as a slave by hardware.
You may copy, alter and reuse this code in any way you like, but please leave
reference to HobbyComponents.com in your comments if you redistribute this code.
This software may not be used directly for the purpose of selling products that
directly compete with Hobby Components Ltd's own range of products.
THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, WHETHER
EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
REASON WHATSOEVER.
*/
#include <SPI.h>
/* Include the standard Ethernet library */
#include <Ethernet.h>
/* MAC address of the Ethernet shield. If you are using this on your
own network, then the MAC address below will be fine, but remember if
you use more than one shield on your network they will need to be assigned
unique MAC addresses */
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
/* The IP address of the shield. Make sure this matches the IP
address range of your network and is not in use by any other
device on it */
IPAddress ip(192, 168, 1, 55 );
/* The port number the shield will respond to. Use port 80
for standard HTTP requests */
EthernetServer server(80);
/* Start the Ethernet interface */
void setup()
{
//pinMode(53, OUTPUT); //Uncomment this line if using a Mega
Ethernet.begin(mac, ip);
server.begin();
}
void loop()
{
/* All client requests are terminated with a blank line. This flag will
signify if the current line received from this client is a blank line */
boolean bBlankLineFlag = true;
/* Used to hold the current byre received from the client */
char cCurrentByte;
/* Loop counter used for reading the 6 analogue inputs */
int k;
/* Wait for a request from a client */
EthernetClient ethernet = server.available();
if (ethernet)
{
/* Continue to read data from the client one byte at a time until
there is no more data */
while (ethernet.connected())
{
/* Is there still data available to be read? ethernet class
ethernet.connected() returns the number of bytes available */
if (ethernet.available())
{
/* If data is available read the next byte */
cCurrentByte = ethernet.read();
/* If the next byte read is a new line termination ? */
if (cCurrentByte == '\n')
{
/* If so was it a blank line? */
if (bBlankLineFlag)
{
/* If it was then we can now send a response to the client’s http request... */
ethernet.println("HTTP/1.1 200 OK");
ethernet.println("Content-Type: text/html");
ethernet.println();
/* ...and add some useful content by reading the 6
analogue inputs and returning their status */
ethernet.println("<body>");
ethernet.println("<big><span style=\"font-weight: bold;\">www.hobbycomponents.com Ethernet Shield Example</span></big>
");
ethernet.println("****************************************************
");
for (k = 0; k < 6; k++)
{
ethernet.println("Analogue input ");
ethernet.print(k);
ethernet.print(": ");
ethernet.print(analogRead(k));
ethernet.print("
");
}
ethernet.println("****************************************************
");
ethernet.println("</body>");
/* Disconnect from the client */
ethernet.stop();
}
/* The last received byte was the start of a new line so flag as no
data received for this line yet */
bBlankLineFlag = true;
/* If the last byte received wasn't a new line then it must be data... */
} else if (cCurrentByte != '\r')
{
/* ...and so flag this as not a blank line. */
bBlankLineFlag = false;
}
}
}
}
}
Direi che quello è un MAC address di fantasia e NON corrisponde ad alcun produttore reale.
Probabilmente hai un router particolarmente schizzinoso e, se il MAC non corrisponde ad un produttore reale ... NON l'accetta (... già capitato ad altri utenti).
Prova a sostituire i primi 3 bytes con 90:A2:DA (90:A2:DA:EF:FE:ED) e vedi quello che succede (per inciso 90:A2:DA identificano Gheo SA ... quella che fa le schede Ethernet per Arduino) ...
Guglielmo
purtroppo niente, ne con lo sketch webserver di arduino ne con quello del venditore.
spedisco tranquillo?
Il sito la descrive come :
"This Ethernet Shield is based on the Wiznet W5100 Ethernet Chip and gives you an easy way to get your Arduino online. It is directly supported by the official Arduino Ethernet Library."
... quindi, visto che è pienamente compatibile con la libreria ufficiale, dall'IDE, vai negli esempi e carica i vari esempi che trovi per la Ethernet e provane alcuni ... se non ne funziona nessuno ... ci sono pochi dubbi ...
Guglielmo
Già fatto, allora procedo. Thank you.