Go Down

Topic: Ethernet shield (Read 16986 times) previous topic - next topic

garus

Jan 23, 2011, 02:08 am Last Edit: Jan 23, 2011, 02:08 am by garus Reason: 1
I have been trying to complete the tutorial found at the below link but I keep getting stuck at this step "Finally, set your Mac address and IP address as normal with this shield."

I have been searching the internet trying to figure out how to determine what IP and MAC address they are talking about and how to find that.

The Ardunio site says that "Newer Arduino Ethernet Shields include a sticker with the device's MAC address. "

My Shield has the following numbers on it's sticker "90-A2-DA-00-2F-E4" problem is this looks nothing like what the program is asking for. The tutorial example looks like
Code: [Select]
byte mac[] = {  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

So at this point the problem is:

1. What MAC and IP are they asking for?
2. How do I locate them and include them in the code?

TUTORIAL LINK:
http://community.pachube.com/node/112#controller


My grand plan is to use an Arduino UNO and an Ethernet shield to turn on a series of lights when an "ON" signal is sent from a php script.

PaulS

Quote
My Shield has the following numbers on it's sticker "90-A2-DA-00-2F-E4"

Code: [Select]
byte mac[] = {  0x90, 0xA2, 0xDA, 0x00, 0x2F, 0xE4 };

Quote
1. What MAC and IP are they asking for?

The MAC address is the one on the sticker. The IP address is some unused address on your network. That address will belong to the Arduino/Ethernet shield in the same way that the IP address of your computer (possibly assigned by a router) belongs to your computer.

Quote
2. How do I locate them and include them in the code?

Turn the shield over and look at the back of it to find the MAC address.
Turn your network administrator over and look for the IP address on his/her back. If that doesn't work, ask nicely.

You include them in the code using two fingers and a text editor. If you can type better than I do, you might use three or four fingers.

garus

Thank you!

I am super clear on the mac address now!

Only problem with turning my network administrator over is that he is pushing 300 lb

Thats not true. The real problem is I am at home and don't have a network administrator.

What is this IP? is it the one found in: System preferences / Network / Built in Ethernet / IP address

PaulS

I find mine by opening a command window and typing ipconfig.

GaryP

garus,

Check your computers IP as PaulS advices. Go to windows "Command prompt" and type "ipconfig". You should see three main things:
1. IP address, typically, behind firewalled home network; 192.168.x.xxx or 10.x.x.x
2. Subnet mask, typically; 255.255.255.0
3. Gateway, follows the IP address, same subnet, 192.168.1.1.

When you have found the subnet ex. 192.168.x.x, you can try to find free IP address for your ethernet shield by using the ping-command.
Try in command prompt; "ping 192.168.1.10", for example. If that is free at the moment, you won't get reply from any computer, and you can try it with your shield.

Kari
The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

garus

I should have mentioned I am on a mac.

u0421793


mrtaylor

Quote
Turn your network administrator over

Touch me and I will kick off the planet

PPale

Hi,

I'm new here so I don't know whether it is appropriate to ask a related but oot the same question here, or should I start a new thread. Please, advise me.

My question is rather simple one:

Can I freely use pin 4, if I don't plan to use SD interface ?
I need pin 4 for some other taks. I do not need SD interface (and there is no SD connector on my Ethernet shield).

pp

PaulS

If there is no SD card reader on your shield, pin 4 is available for use.

Go Up