-->
Page 7 of 8

Re: Ethernet cable connection to ESP8266 w/ or w/o RJ45 jack

PostPosted: Tue Feb 16, 2016 11:27 am
by Cicero
Hi all,

I apologise for the delay in responding here. I have done all of this, I just dont have time currently to put the code into a shareable state for posting, so it'll take some time to get it to that point.

If anyone is in need of immediate help though, you can drop me an email on "mark @ cdelec . co . za", and I'll try help you out privately until I have the code and everything in a publicly shareable state.

Thanks
Cicero

Re: Ethernet cable connection to ESP8266 w/ or w/o RJ45 jack

PostPosted: Tue Feb 16, 2016 12:02 pm
by eriksl
So you have it working, including IP? Routing?

Re: Ethernet cable connection to ESP8266 w/ or w/o RJ45 jack

PostPosted: Tue Feb 16, 2016 12:06 pm
by Cicero
Yeah I do.

I've explained a little back where I pulled some info from, I've adapted a few projects (spi, stacks, udp tcp routing, dhcp, dns) that other people have done with the ENC and integrated it all into the ESP.

I'm not using the Arduino platform, so its all in straight up C. I've also got the MQTT and HTTPD projects working through the ENC as well.
One quite big advantage that this has over some other ENC stacks, is that it can send multiple packets and serve massive webpages through the httpd project structure. I've essentially just mimicked the SDK functionality, so replaced the espconn_sent() functions (etc) to redirect the packet to the ENC, and I take care of the flags above that.

There are some bugs at the moment, but I'll get to those in due time.

Attached is a connection diagram someone wanted previously.

EDIT: Note that these ENC28J60 boards have built in pullups on the CS lines -and they differ for different manufacturers. For this board shown here, its a 10k onboard pullup, and on the ESP there's a 10k pulldown for GPIO15 needed for pulling that line low on startup. I needed to drop the ESP pulldown to 1k (stronger) for this reason.

Re: Ethernet cable connection to ESP8266 w/ or w/o RJ45 jack

PostPosted: Fri Apr 01, 2016 6:58 pm
by PuceBaboon
Cicero wrote:EDIT: Note that these ENC28J60 boards...


CNLohr's minimal hardware, "party-trick" espthernet, just in case you haven't seen it yet. It's probably not what
the original poster wants. :o But anyway, it's worth cross-referencing here:-

http://hackaday.com/2016/04/01/ethernet ... ore-198174

https://github.com/cnlohr/espthernet