Arduino Webserver with ENC28J60 ethernet module & ping timeout problem.

I have an Arduino UNO and a Geeetech ENC28J60 Ethernet module (http://www.geeetech.com/Documents/ENC28J60%20Manual%20Source%20Code.pdf). I tried to build the arduino example Webserver sketch. But it didn't work. Do I have to use the exact Arduino Wiznet Ethernet shield as the sketch says or I can get this to work with some modifications??

And also

I managed to build a webserver with this hardware but using a library found on the Internet (from Andy's), But when I ping, most of the pings get time out, and so when i access the webserver it takes alot of time to show the html page (I used a homemade crosscable to connect the ethernet module directly to my laptop). what can cause this kind of ping time out??

I tried to build the arduino example Webserver sketch. But it didn’t work.

It didn’t compile/link? Or, it didn’t do what it was supposed to do when run on hardware it is not designed to work with?

Do I have to use the exact Arduino Wiznet Ethernet shield as the sketch says or I can get this to work with some modifications??

If you want the code to work as-is, you have to use the hardware it was designed for. You could get the code to work with some minor modifications. Keep setup() and loop(). Replace everything else. OK, so maybe that’s not so minor.

I could compile and upload the sketch to the avr. But I cannot access the html page.

And can anyone recommend me a good Ethernet library to work with a simple home made ENC28J60 Ethernet module or this module: http://www.geeetech.com/Documents/ENC28J60%20Manual%20Source%20Code.pdf.

Thanx

Hi All,
I have a same problem, and same ethernet module with enc28j60 chip.
But i find solution of this problem here: http://blog.trollmaker.com/article11/arduino-1-0-with-enc28j60-ethernet-shield-v1-1
Also i test it, and its work!

Hey, I just put up a new web server for ENC28J60. You could see if it works for you. http://maniacbug.wordpress.com/2012/01/28/webserver/

Finally got this working on Leonardo if anyone is interested.

I used the library found at: http://trollmaker.com/article11/arduino-1-0-with-enc28j60-ethernet-shield-v1-1

I had to modify one file: enc28j60.c in the etherShield directory. Change the defaults to:

define ENC28J60_CONTROL_CS 10

define SPI_MOSI 16

define SPI_MISO 14

define SPI_SCK 15

This is necessary since Leonardo ISP connections are no longer on digital pins 10, 11, 12 and 13 (as on UNO). On the Leonardo they are

MISO - Digital 14 SCK - Digital 15 MOSI - Digital 16 SS - Digital 17

Hope this helps a bit.

Hi All,

I managed to get my ENC28J60 module (http://www.ebay.com/itm/320813932028?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649) to work on an Arduino Leonardo, using the Library from ssellay's link, but I have one problem: alfer a number of commands the server crashes (if I try to Ping the web server from my PC, I get a "Destination host unreachable" message) and I have to reset my Arduino in order to restart the server.

Can anyone help me with this.

Thanx