Nanode 5: Issues w/ Reading MAC Address

89 views
Skip to first unread message

Luis Fraguada

unread,
Jan 4, 2012, 2:28:05 AM1/4/12
to nanode...@googlegroups.com
Hello all!
Glad to have finally found the group.  I ordered a Nanode 5 (#0571) ages ago and finally got a chance to built it over the holidays.  The build instructions were  very clear, and I have run the "Ethershield_DHCPTest" and the "Ethershield_webserver" with great success.  I wanted to get the MAC address which is written to the 11AA02E48 chip (which was already soldered to the red PCB, with what look like three clean connections).  To do this I downloaded Stephen's NanodeUNIO library and went to town.  The "NanodeMAC" sketch gives me the following output:

Nanode MAC reader
Reading MAC address... failure
MAC address is AF:00:00:04:A8:01

Running the "NanodeUNIO_Test" I get the following results:

NanodeUNIO test
Read status register...
(failure)
3
Read the device...
(failure)
00: 00000000000000000000000000000000 ................
10: 00000000000000000000000000000000 ................
20: 00000000000000000000000000000000 ................
30: 00000000000000000000000000000000 ................
40: 00000000000000000000000000000000 ................
50: 00000000000000000000000000000000 ................
60: 00000000000000000000000000000000 ................
70: 00000000000000000000000000000000 ................
80: 00000000000000000000000000000000 ................
90: 00000000000000000000000000000000 ................
A0: 00000000000000000000000000000000 ................
B0: 00000000000000000000000000000000 ................
C0: 00000000000000000000000000000000 ................
D0: 00000000000000000000000000000000 ................
E0: 00000000000000000000000000000000 ................
F0: 00000000000000000000000000000000 ................
Write to the device...
(failure)
Read again...
(failure)
00: 00000000000000000000000000000000 ................
10: 00000000000000000000000000000000 ................
20: 00000000000000000000000000000000 ................
30: 00000000000000000000000000000000 ................
40: 00000000000000000000000000000000 ................
50: 00000000000000000000000000000000 ................
60: 00000000000000000000000000000000 ................
70: 00000000000000000000000000000000 ................
80: 00000000000000000000000000000000 ................
90: 00000000000000000000000000000000 ................
A0: 00000000000000000000000000000000 ................
B0: 00000000000000000000000000000000 ................
C0: 00000000000000000000000000000000 ................
D0: 00000000000000000000000000000000 ................
E0: 00000000000000000000000000000000 ................
F0: 00000000000000000000000000000000 ................
Try writing in the write-protected area...
(failure)
Read again...
(failure)
00: 00000000000000000000000000000000 ................
10: 00000000000000000000000000000000 ................
20: 00000000000000000000000000000000 ................
30: 00000000000000000000000000000000 ................
40: 00000000000000000000000000000000 ................
50: 00000000000000000000000000000000 ................
60: 00000000000000000000000000000000 ................
70: 00000000000000000000000000000000 ................
80: 00000000000000000000000000000000 ................
90: 00000000000000000000000000000000 ................
A0: 00000000000000000000000000000000 ................
B0: 00000000000000000000000000000000 ................
C0: 00000000000000000000000000000000 ................
D0: 00000000000000000000000000000000 ................
E0: 00000000000000000000000000000000 ................
F0: 00000000000000000000000000000000 ................

If I now run the "NanodeMAC" sketch, I get this:

Nanode MAC reader
Reading MAC address... failure
MAC address is 02:79:08:F1:01:A1

Where is it getting this number, and why is it different after I run the "NanodeUNIO_Test" sketch?

Using the NanodeMAC library from github user thiseldo also gave me similar results.

Does anyone have any ideas as to what is going on with the MAC address functionality on this Nanode?  Any help would be appreciated.  Seems everything else works as expected, just this issue.  

Best,
Luis

Ian Chilton

unread,
Jan 4, 2012, 7:03:19 AM1/4/12
to nanode...@googlegroups.com
Hi,

If the DHCP Test is working then your hardware must be ok.

I use the https://github.com/thiseldo/NanodeMAC with no problem but
i'm still on Arduino 0022 / 0023 so if you are on 1.0, it may be worth
downloading and trying that.

Ian

Message has been deleted

Stephen Early

unread,
Jan 4, 2012, 8:58:57 AM1/4/12
to nanode...@googlegroups.com


On Wednesday, 4 January 2012 12:03:19 UTC, Ian Chilton wrote:
Hi,

If the DHCP Test is working then your hardware must be ok.

 

I use the https://github.com/thiseldo/NanodeMAC with no problem but
i'm still on Arduino 0022 / 0023 so if you are on 1.0, it may be worth
downloading and trying that.

The NanodeMAC code has absolutely no error checking, so if the MAC part is missing or damaged or there's a problem with the DIG7 line it will happily read fill the MAC address in with anything.  If the MAC address it's giving you doesn't start with 00:04:A3 then it's not the one from the MAC chip.

Steve

Ian Chilton

unread,
Jan 4, 2012, 10:41:56 AM1/4/12
to nanode...@googlegroups.com
Hi,

Odd.

If you use this sketch with 0023, what exact output do you get? -

https://github.com/thiseldo/EtherShield/blob/master/examples/EtherShield_DHCPTest/EtherShield_DHCPTest.pde

Ian


On Wed, Jan 4, 2012 at 12:58 PM, Luis Fraguada <frag...@gmail.com> wrote:
> Hello Ian,
> Yes, I have also used that code in Arduino 0023 to no avail.
>
> What would be a way to check if I can even communicate properly to the chip?
>
> best,
> Luis

Luis Fraguada

unread,
Jan 4, 2012, 2:19:17 PM1/4/12
to nanode...@googlegroups.com
Hello Ian,
The following (as well as a nicely blinking red LED)  is the exact output in the serial monitor after running that sketch in Arduino IDE 0022/0023 (DNS cleared out on purpose, though it gave valid numbers):

DHCP Client test
0:0:0:0:0:0
Init ENC28J60
Init done
ENC28J60 version 7
Requesting IP Addresse
My IP: 192.168.1.45
Netmask: 255.255.255.0
DNS IP: ##.##.##.## 
GW IP: 192.168.1.1

Any ideas?

Thanks, 
Luis

Luis Fraguada

unread,
Jan 5, 2012, 11:41:49 AM1/5/12
to nanode...@googlegroups.com
What would be the appropriate way to check if the hardware is functioning properly?  Is there a way to just briefly check the connection to the component which stores this information in order to determine if it is a hardware fault?

best,
Luis

Stephen Early

unread,
Jan 5, 2012, 11:54:44 AM1/5/12
to nanode...@googlegroups.com
Take the AVR out of its socket.  Use a multimeter to check that the DIG7 line (that's pin 13 on the AVR) isn't connected to anything other than pin 1 of the 11AA02E48.

Steve

Luis Fraguada

unread,
Jan 5, 2012, 11:56:42 AM1/5/12
to nanode...@googlegroups.com
Excellent!
I will report back with the results tomorrow. 
Thanks
Luis

Ian Chilton

unread,
Jan 5, 2012, 12:04:13 PM1/5/12
to nanode...@googlegroups.com
Hi,

This looks like you have a hardware problem as it's not getting the
mac address there either (0:0:0:0:0:0).

I'd check that you have no shorts (around it and the ATMega
particularly) and that it's connected to the ATMega (D7), Vcc and GND
correctly.

Ian

Luis Fraguada

unread,
Jan 6, 2012, 5:20:17 PM1/6/12
to nanode...@googlegroups.com
ok, finally got around to checking this.
Vcc and GND are correctly connected.  AREF / 21 and PD0 / 2 are both connected to the last pin on the chip.

Any way to remedy this?
Luis

Nigel Worsley

unread,
Jan 6, 2012, 6:18:21 PM1/6/12
to nanode...@googlegroups.com
> ok, finally got around to checking this.
> Vcc and GND are correctly connected. AREF / 21 and PD0 / 2 are both connected to the last pin on the chip.

I think you are counting the pin numbers incorrectly. They run anticlockwise, with pin 1 being the bottom right if
you orient the nanode as shown in the build guide. This means that the pin on the MAC chip is conected to
PD7 / 13 (which it should be) and also to either AREF / 21 or GND / 22 depending on how your numbering goes,
which are both very close to the SMT pad. GND is about a millimetre away, it is very easy to have a tiny bit of
older bridging the gap that can only be seen if you look really closely (or use a magnifying glass if your eyesight is
geting as bad as mine, I often use a 10x jeweller's style eyepiece)

Nigle

Message has been deleted

Luis Fraguada

unread,
Jan 7, 2012, 6:04:38 AM1/7/12
to nanode...@googlegroups.com

oops, I was checking the wrong chip!
Pins 8/GND, 13/PD7, and 22/GND are connected to that pin on the MAC chip.  Here are some photos:



I thought my soldering was ok.  Any way to fix this?
Thanks for the attention!
Luis

Luis Fraguada

unread,
Jan 14, 2012, 3:39:13 AM1/14/12
to nanode...@googlegroups.com
I posted the images a few days ago but not sure they are showing up correctly.  Can anyone confirm if the post is visible, and if so, is there anything particularly wrong with the soldering around the MAC ID chip?

Thanks!
Luis

Stephen Early

unread,
Jan 14, 2012, 6:39:19 AM1/14/12
to nanode...@googlegroups.com
I can see the pictures but I can't see well enough to say whether the soldering is good.

What was the result of the continuity test?  You said "8/GND, 13/PD7, and 22/GND are connected to that pin on the MAC chip" - does that mean that there's a connection between all three of those pins on the processor?  If so, there's a short somewhere between DIG7 and ground which you'll need to find and fix.

Luis Fraguada

unread,
Jan 14, 2012, 8:42:56 AM1/14/12
to nanode...@googlegroups.com
Here is what I can tell thus far:

13/PD7, 8/GND, and 22/GND are all connected to Pins 1/SCIO and 3/Vss of the 11AA02E48
Also all of those pins (13/PD7, 8/GND, and 22/GND) connect to each other.

Unfortunately, I am not just sarting with this so finding shorts is not something I've really mastered.  From what I can see, there are no giant globs of solder connceting any two contacts.  Other than that, I am not so sure how to find this short.  I suppose then that I could use the board, just with a fake MAC id and no access to the memory space on the 11AA02E48.



olab

unread,
Jan 14, 2012, 3:48:01 PM1/14/12
to nanode-users
Hi Luis,

There is obviously a short.
You have 2 circuits here :
8 + 22 + 3 (MAC chip) are correctly grounded.
13 + 1 (MAC chip) are correctly connected together but wrongly also to
ground.

I have designed a .jpeg which could help. Look here : http://i44.tinypic.com/kbubua.jpg

It's part of my gerber view of nanode 5 PCB. In order to highlight the
path that needs a careful checking for short, I have grayed the rest.
The green tracks are bottom side, red top side.
You should check specifically around the places pointed by the yellow
arrows, both sides. Judging by the photos, there must be no problem
elsewhere.
At a last resort, if you find nothing, you may want to cut the track
above the yellow cross just at the via (hole) to part the path in two
and find out on which side is the short. It is not totally impossible
that the MAC chip could have fried and shorted internally 1-3.

Hope this helps ;)

Luis Fraguada

unread,
Jan 16, 2012, 3:25:54 AM1/16/12
to nanode...@googlegroups.com
Hello,
I sincerely appreciate the graphic and the explanation.  I did not have a chance to check everything over the weekend, but I was able to identify the zones you mention.  Will report back when I have something more conclusive.  Again, thanks!

Luis
Reply all
Reply to author
Forward
0 new messages