Pages: [1]   Go Down
Author Topic: ENC28J60 china ethernet shield = can't ping/no reply.  (Read 2131 times)
0 Members and 1 Guest are viewing this topic.
Fort Lauderdale FL
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Fort Lauderdale FL
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 =)
Logged

Rio de Janeiro, Brazil
Offline Offline
Jr. Member
**
Karma: 1
Posts: 85
Software developer, free software activist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
- GitHub repository: https://github.com/turicas/Ethernet_ENC28J60/
- Topic on Arduino Forum: http://arduino.cc/forum/index.php/topic,56057.html

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

Blog pt_BR: http://blog.justen.eng.br/
Curso de Arduino (Arduino Course, in Brazil) - http://www.CursoDeArduino.com.br/

Fort Lauderdale FL
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Fort Lauderdale FL
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 !!
Logged

Rio de Janeiro, Brazil
Offline Offline
Jr. Member
**
Karma: 1
Posts: 85
Software developer, free software activist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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! smiley-wink Probably the WebServer and WebServerSimpleLED examples will work properly -- the others probably not.
Let me know the results after your tests.
Logged

Blog pt_BR: http://blog.justen.eng.br/
Curso de Arduino (Arduino Course, in Brazil) - http://www.CursoDeArduino.com.br/

Fort Lauderdale FL
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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..



« Last Edit: August 16, 2011, 04:28:37 pm by fordfasterr » Logged

Rio de Janeiro, Brazil
Offline Offline
Jr. Member
**
Karma: 1
Posts: 85
Software developer, free software activist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley-cool
- Try to ping the board
- Try to get http://arduinos-ip/ with wget or curl (do not use your web browser)
- Reset Arduino
Logged

Blog pt_BR: http://blog.justen.eng.br/
Curso de Arduino (Arduino Course, in Brazil) - http://www.CursoDeArduino.com.br/

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
(put an LED at digital port  smiley-cool
Which port would that be?
Logged

Rio de Janeiro, Brazil
Offline Offline
Jr. Member
**
Karma: 1
Posts: 85
Software developer, free software activist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
(put an LED at digital port  smiley-cool
Which port would that be?

Ooops, sorry - port 8.
Logged

Blog pt_BR: http://blog.justen.eng.br/
Curso de Arduino (Arduino Course, in Brazil) - http://www.CursoDeArduino.com.br/

Fort Lauderdale FL
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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. smiley-cry
Logged

Sussex UK / CT USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1028
Forums forever
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

http://www.sheepdogguides.com/arduino/art5serv.htm

Logged

Hamburg, Germany
Offline Offline
Sr. Member
****
Karma: 6
Posts: 291
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged


Pages: [1]   Go Up
Jump to: