ENC28J60

Your source for all things Atmel.

Moderator: phalanx

Post Reply
arix
Posts: 58
Joined: Wed Dec 17, 2008 7:11 am

ENC28J60

Post by arix » Mon Aug 30, 2010 3:57 pm

Hi,
I mounted a HanRun HR911105A RJ45 MagJack to the SparkFun breakout board for MagJack and using ENC28J60 and Arduino with Atmega328 chip managed to implement an example web server.

I used this tutorial:
http://www.nuelectronics.com/estore/ind ... roject_eth

After finishing with the hardware, I programmed Arduino with "ethershield_ping.pde" example from that tutorial.

Now when I connect Ethernet cable to MagJack, the laptop (on Win XP) don't detect any connection right at once. I have the standard ip set from the example "192.168.1.15", and if I set my laptop network address to something like 192.168.1.1 (both ip and gateway), then a network is recognized, BUT anyway pinging returns "request timed out". When connecting the cable even without the network being recognized, the green LED of link goes on and stays on. When pinging, it starts to blink (after each "request timed out"). The yellow LED never goes on!

Could you please guide me out of this situation? :D

stevech
Support Volunteer
Posts: 2907
Joined: Sat Jun 05, 2004 8:51 pm
Location: USA, California

Re: ENC28J60

Post by stevech » Tue Aug 31, 2010 8:24 pm

cable from laptop to Ethernet module ... it needs to be a cross-over cable unless both the module and the PC support automatic detection of wiring.

I always use an ethernet switch to avoid this possibility. The switch built into common home WiFi routers will do.
I have a cheap 10/100 switch that I use for such things.

arix
Posts: 58
Joined: Wed Dec 17, 2008 7:11 am

Re: ENC28J60

Post by arix » Tue Aug 31, 2010 10:16 pm

well I have a router and I have both cross and ordinary Ethernet cables. Non of them worked. Is there other troubleshooting techniques?

B0SC0
Posts: 1
Joined: Wed Sep 01, 2010 8:03 am

Re: ENC28J60

Post by B0SC0 » Wed Sep 01, 2010 8:10 am

You need to compare the two different types of Magjack's.

They are probably wired differently.

Look at the datasheets for both.

If you are using a Sparkfun breakout board, why didn't you use the Sparkfun Magjack?

Not all Magjack's are the same, but sometimes you can use different types or manufacturer's by adjusting to whatever pinout wiring is needed.

I am presently doing something similar.


B0SC0

Post Reply