Ciao a tutti
ho iniziato ad usare da poco l'arduino uno e sto cercando di utilizzare l' Ethernet Shield.
La mia domanda è molto semplice:
Come faccio a sapere l'indirizzo MAC del mio Ethernet Shield???
Grazie a tutti.
Ciao a tutti
ho iniziato ad usare da poco l'arduino uno e sto cercando di utilizzare l' Ethernet Shield.
La mia domanda è molto semplice:
Come faccio a sapere l'indirizzo MAC del mio Ethernet Shield???
Grazie a tutti.
Ciao,
lo setti tu, il mac (qui un esempio):
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
Nelle Eth Shield più recenti ci dovrebbe essere uno sticker con un mac da poter utilizzare, altrimenti un mac random va bene, a patto che sia univoco nella rete in cui viene utilizzato.
Da http://www.arduino.cc/en/Guide/ArduinoEthernetShield:
Current Ethernet shields come with a sticker indicating the MAC address you should use with them. For older shields without a dedicated MAC address, inventing a random one should work, but don't use the same one for multiple boards.
e ancora, da http://arduino.cc/en/Reference/EthernetBegin:
mac: the MAC (Media access control) address for the device (array of 6 bytes). this is the Ethernet hardware address of your shield. Newer Arduino Ethernet Shields include a sticker with the device's MAC address. For older shields, choose your own.
Ok...grazie mille