Go Down

Topic: Ethernet Shield (Read 1 time) previous topic - next topic

Max89

I have solution !
But it involves spherical chickens in frictionless vacuum...

Onions

Quote
The shield must be assigned a MAC address and a fixed IP address using the Ethernet.begin() function. A MAC address is a globally unique identifier for a particular device. 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.


Yes, inventing a random mac address should work fine!


Onions.
My website: http://www.harryrabbit.co.uk/electronics/home.html Up and running now! (Feel free to look round!) :D

dannyn382

Do you know how to convert the MAC that is given to us on the board to the proper byte array that the software is looking for?

Max89

#3
Jan 05, 2012, 10:08 am Last Edit: Jan 05, 2012, 10:29 am by Max89 Reason: 1
http://www.miniwebtool.com/mac-address-generator/
This one is good for generating random MAC
But I have no idea how to convert it ...

New questions appears -
I find that you can connect breakboard using corssed cable to LAN socekt in computer, same cable can be used to connect it to router

If someone needs library I found one
http://www.kiranjose.com/blog/2011/09/connect-to-internet-with-arduino-mega-2560-and-enc28j60-breakout-board_crossover_ethernet_cable/
I have solution !
But it involves spherical chickens in frictionless vacuum...

PaulS

Quote
Do you know how to convert the MAC that is given to us on the board to the proper byte array that the software is looking for?

The string on the sticker looks like:
11-22-33-44-55-66

The mac address array looks like:
Code: [Select]
byte macAddr[] = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66};

Go Up