Pages: [1]   Go Down
Author Topic: Ethernet shield  (Read 12470 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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.
« Last Edit: January 22, 2011, 08:08:20 pm by garus » Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 549
Posts: 46060
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
My Shield has the following numbers on it's sticker "90-A2-DA-00-2F-E4"
Code:
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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 549
Posts: 46060
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Espoo, Finland
Offline Offline
God Member
*****
Karma: 6
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged


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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I should have mentioned I am on a mac.
Logged

London, GB
Offline Offline
Sr. Member
****
Karma: 7
Posts: 332
Nothing works.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ifconfig, then.
Logged

Colorado
Offline Offline
Full Member
***
Karma: 1
Posts: 220
Arduino 0022 and Ubuntu 11.10 64bit.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Turn your network administrator over
Touch me and I will kick off the planet
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 549
Posts: 46060
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: