-->
Page 1 of 1

ESP8266 routing packets to/from ENC28j60

PostPosted: Sat Sep 24, 2016 12:29 am
by jonas18175
Hello,

my goal is to build a little AP, but it should use a ethernet connection.
I try to find a way to routing all packets on all ports to the ethernet,
but i have no plan from packet redirect. Is someone here there know many
about this topic and can help?

Re: ESP8266 routing packets to/from ENC28j60

PostPosted: Sat Sep 24, 2016 8:45 pm
by RichardS
This is a very interesting topic, hope people are able to help you as it will enlighten us all!

RichardS

Re: ESP8266 routing packets to/from ENC28j60

PostPosted: Sun Sep 25, 2016 3:41 am
by Me-no-dev
Do you want to make the ESP a router or do you just want to add the 28j60 as an interface to the ESP so you can use it just like you use WiFi?

LwIP is not compiled with routing support and I am not positive that it will compile and work, but can be tried!
As for attaching the LAN to the stack, you need to expose some functionality through an interface that LwIP understands and it should all work. For information about the interface API, read here: https://github.com/esp8266/Arduino/blob ... ip/netif.h

Re: ESP8266 routing packets to/from ENC28j60

PostPosted: Thu Apr 27, 2017 8:37 am
by jonas18175
I will push this post again.
I have no chance alone to build a ESP-Router which can use a Lan Port to route it as WLAN-AP.
So i will open up a github repository and i am very happy when some people tried with me to program a ESP-Router. I think it is a general interest.
The ESP has a build-in Ethernet-Controller, but i think there is useless: http://hackaday.com/2016/04/01/ethernet ... e-esp8266/
I think more in the direction for a ENC28J60: http://www.ebay.de/itm/ENC28J60-Etherne ... SwXYtY2m0W
It should be fast enought over SPI.
Has someone ideas for the implementation?

Jonas