Go Down

Topic: Implementation for Microchip ENC28J60 Ethernet controller (Read 35 times) previous topic - next topic

suvenk

Hello alvarojusten
I have been using your library and webserver examples for the enc28j60 and they work great. Thank you for your work.
My idea is to use a microSD breakout board with the enc28j60, read files from the sd card and send them over ethernet.
I have been using this > http://www.embeddedmarket.com/products/ENC28J60-Ethernet-Module/
                      and   >http://www.embeddedmarket.com/products/Micro-SD-card-Interface-Breakout-Module-for-3-3V-and-5V-Logic-Level/
Using the simplified library(Simon Monk's) I can read from the sd card and send files over the ethernet.
However there are a few problems:

1.With Simon Monk's library the size of the files that can be sent is limited by the buffer size. To send the contents of the buffer I have to use the e.respond(); which closes the connection to the client and no more data can be sent.
2. With your library if I only write this one line #include <SD.h> and make no other additions to the sketch the webserver example stops working (the board replies to pings but if i open the address in a browser it just keeps waiting). I assume the problem is a buffer overrun.

Regarding this I have a few questions I will be thankful if you can help.
Is it possible fill the buffer with chars and send the contents of the buffer to the client without closing the connection?
To explain further : Read single chars from the file on sd card > fill the buffer with these chars > send the packet when the buffer is full > continue reading from file and begin filling buffer again > repeat till the whole file is sent.

If we can implement this, we can have fully functional web servers working off the arduino+enc28j60.
Hoping you can help me with this. Bravo for the good work again !!

Maldihtah13

I tried the code from https://github.com/turicas/Ethernet_ENC28J60 change the IP then upload the program. Upon entering the address in a web browser it didn't load. What do you think is the problem?

I have a different ethernet board but I wired it the same way as the one from http://www.nuelectronics.com/estore/?p=12. I already tested it with other code like the one from http://blog.thiseldo.co.uk/?p=344.

Hope I can make progress with this code since I find it easier to use.

geo

Hi Alvaro !

Any news about your famous library :) ?

Cheers!

joseinaciojr

I tried WebServerSimple and it worked. I can ping my board and access it from a browser.
But only for a while. After that I get the connection lost. No more ping or browser access.

Do you have any idea. I've been struggling for 3 days and nothing.

Thanks in advance.
Inacio

chiva

the library is on a very early stage of development, so don't expect it to run flawlessly
Mercadillo electrónico. Kit iniciación a Arduino, shield LCD a color y más cosas!

Go Up