ENC28J60 china ethernet shield = can't ping/no reply.

Hi everyone.

I recently acquired a ENC28J60 based uno shield on ebay.

It looks like this:

My problem is that I can't get this thing to either: load the page, or reply to a ping.

I have changed the generic IP used in the example, but I just used the default examples mac address since there is no mac address sticker on this anywhere on this board for me to use instead of the default.

Any ideas for what may be wrong?

I am getting a link light when I connect it to my router on one of the unused ports.

Ok, a self-reply here... I think I found the problem. I need a library specific to this adapter. I found one in a link on the original ebay sale.. I copied it to the library directory and sure enough - all of the examples give compile errors.

I suppose now what I really need is to find the proper library for this card OR to find a way to correct the errors given in the compiler screen...

Any help would be appreciated =)

fordfasterr:
Ok, a self-reply here... I think I found the problem. I need a library specific to this adapter. I found one in a link on the original ebay sale.. I copied it to the library directory and sure enough - all of the examples give compile errors.

I suppose now what I really need is to find the proper library for this card OR to find a way to correct the errors given in the compiler screen...

Any help would be appreciated =)

The standard Arduino Ethernet library does not work with ENC28J60-based Ethernet shields/modules. Does exist a library that you can use but it is now easy to use. I'm writing a new library that is compatible with ENC28J60 and uses the same API/classes/functions of the standard Arduino Ethernet library, it's called Ethernet_ENC28J60 and you can get more information at:

Please test my code with your shield and helps improving the library!

Thanks for the update Alvarojusten.

I also found what appears to be the original library for this board

here:

http://www.nuelectronics.com/estore/index.php?main_page=product_info&cPath=1&products_id=4

I'll try your library too! Thanks.

Alvaro, I was able to make the card work using the original library.

Tonight I will install your library and test out the board with your sample codes.

  • wish me luck !!

fordfasterr:
Alvaro, I was able to make the card work using the original library.

Tonight I will install your library and test out the board with your sample codes.

  • wish me luck !!

Good luck! :wink: Probably the WebServer and WebServerSimpleLED examples will work properly -- the others probably not.
Let me know the results after your tests.

Ok, out of the box the simple LED failed, asked for SPI.h, so I added it, compiled and uploaded fine...

But no reply on the port I used. I made sure to set it up identically to the original sketch that worked as expected...

I used the example code that came with your .zip file.

UPDATE: I copied the files to the proper libraries folder this time. It compiled without including the SPI.h lib but it still won't connect from the browser.
A port scan on the IP also shows no open ports, but it WILL reply to a ping.

I have tested both the simple server, and simple server led. both

With simple server led, i can ping, but no web page. I can ping port 80 ! (but from a browser, I don't get the page).

with simple server, i cannot ping..

fordfasterr:
Ok, out of the box the simple LED failed, asked for SPI.h, so I added it, compiled and uploaded fine...

But no reply on the port I used. I made sure to set it up identically to the original sketch that worked as expected...

I used the example code that came with your .zip file.

UPDATE: I copied the files to the proper libraries folder this time. It compiled without including the SPI.h lib but it still won't connect from the browser.
A port scan on the IP also shows no open ports, but it WILL reply to a ping.

I have tested both the simple server, and simple server led. both

With simple server led, i can ping, but no web page.

with simple server, i cannot ping..

The error about SPI.h is because you are compiling the standard Arduino Ethernet library - so the Ethernet_ENC28J60 is not in the sketchbook/libraries folder (note that if you have any folder called Ethernet* in your sketchbook/libraries, Arduino IDE will use it, so please let only the Ethernet_ENC28J60 at sketchbook/libraries).

Please try:

  • Upload WebServerSimple (put an LED at digital port 8)
  • Try to ping the board
  • Try to get http://arduinos-ip/ with wget or curl (do not use your web browser)
  • Reset Arduino

(put an LED at digital port 8)

Which port would that be?

PaulS:

(put an LED at digital port 8)

Which port would that be?

Ooops, sorry - port 8.

I have it on port 4, and its a digital port.

It works perfectly using the original library...

Anyway, I did move your library into the correct folder and it still doesn't work. =(

Do you have access to a circuit diagram?

I have a page explaining how to use the NuElectronics ENC28J60 Ethernet board... maybe stuff there will help, especially if you can find out what lines your board talks to the Arduino with, so you can make changes as necessary for your board.

Hi,

I also have the same problem. I can ping the board, but no reaction with WebServerSimpleLED and the connected LED and no response with a browser.

markbee