ENC28J60 Library?

Go To Last Post
15 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

Does anyone know of a good, multipurpose library for the ENC28J60 and the AVR? I know that Procyon AVRLib has one, but let's face it, it's sort of out of date.

I also found some code at tuxgraphics.org about an AVR based webserver, and there is lots of good stuff, but it's still missing some things (DHCP for one).

Does anyone know of a library that's feasible to port to an AVR? I'm using an atmega256 in a project with SPI ethernet, and I'm trying to get all my ducks in a row.

If one does not exist, would there be any interest in creating one?

Regards,

Benjamin Turner
bplturner@gmail.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Microchip has TCP/IP code that you could convert:

http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en022889

It's all written in C.

Leon

Leon Heller G1HSM

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As for tcp/ip libraries, there's uip and lwip. There's a port of uip on the tuxgraphics site. What's the issue with the procyon library being 'out of date'?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Decide what it is you want. A ENC28J60 driver or a TCP stack.
You say the first, but it seems you mean the other.
Have a look at NutOS/NutNet. There may not be a driver for the ENC28J60, but that can probably be found somewhere else or written in a couple of hours.

/Jesper
http://www.yampp.com
The quick black AVR jumped over the lazy PIC.
What boots up, must come down.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

bplturner wrote:
Hello,
I also found some code at tuxgraphics.org about an AVR based webserver, and there is lots of good stuff, but it's still missing some things (DHCP for one).

Which uses Procyon enc28j60 as a backend.....
I have the same dilemma with enc28j60. Right now, I'm using the tuxgraphic code, which fulflls my needs. I may switch to uIP someday....

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I say the Procyon is out of date, because it doesn't support the atmega128 or the atmega256, which is what I am using.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Surely the 128 predates Procyon ? Anyway why not just port it up to date if you need 256 "support" (whatever that means)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Mega128 support is in Procyon for sure (dual uart, timers, ...). I am using it succesfully in my project :)
I don't know about 256 though.

V.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
Surely the 128 predates Procyon ? Anyway why not just port it up to date if you need 256 "support" (whatever that means)

The Procyon library uses a bunch of preprocessor definitions in the header files to get all the ports and such correct. I guess I could add these, I just wanted to stray away from the Procyon library entirely. I will look at the Microchip stack.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jesper wrote:
Decide what it is you want. A ENC28J60 driver or a TCP stack.
You say the first, but it seems you mean the other.
Have a look at NutOS/NutNet. There may not be a driver for the ENC28J60, but that can probably be found somewhere else or written in a couple of hours.

I want both. I will look at NutOS also.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I too have been looking at getting a tcpip stack and webserver running on a atmega128 (with 32kb external ram and a enc28j60).

I had success getting uip working with this hardware, but the delayed ack issue with uip made it an unusable solution. Everything was just too slow because of it.

I have started working on getting lwip to function with freertos using this same hardware. I have freertos working, but have been having issues with lwip. Unfortunately I have had very limited time to spend working on it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

:shock:
Hmmmm, exactly which searchwords did you use when you found these pages, Bingo?

/Jesper
http://www.yampp.com
The quick black AVR jumped over the lazy PIC.
What boots up, must come down.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, I've changed my mind. I think the easiest route would be to use Procyon AVRLib's TCP stack and ENC28J60 driver and adapt it to my own purposes.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jesper wrote:
:shock:
Hmmmm, exactly which searchwords did you use when you found these pages, Bingo?

he..he :-)

I always wanted to try a mag-jack .....

Etherrape did refer to the other

/Bingo