ENC28J60 on Netduino2Plus

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
stevestrong
Posts: 1354
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: ENC28J60 on Netduino2Plus

Post by stevestrong » Wed Nov 09, 2016 9:49 am

I used to use this site (also on github) as information source before switching to W5500 (which is much faster and easier to handle).

danieleff
Posts: 302
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: ENC28J60 on Netduino2Plus

Post by danieleff » Wed Nov 09, 2016 10:34 am

zoomx wrote:Well done!

I didn't know this library, I know only the ethercard library but reading here
http://www.tweaking4all.com/hardware/ar ... -ethernet/
where libraries are compared, it seem that UIPEthernet is better.
Except Ethercard is active, while UIPEthernet is not (I do not know about forks).

cassyarduino
Posts: 15
Joined: Tue Nov 08, 2016 12:52 pm
Location: Hungary

Re: ENC28J60 on Netduino2Plus

Post by cassyarduino » Wed Nov 09, 2016 11:12 am

Hi!

Right:
"Except Ethercard is active, while UIPEthernet is not (I do not know about forks)."

But:
- The UIPEthernet library uses the same API as the official Arduino Ethernet (compatible with WizNet W5100 ethernet library.).
In code only must change #include <Ethernet.h> to #include <UIPEthernet.h>.
- The UIPEthernet full support for persistent (streaming) TCP-connections and UDP (Client and Server each), ARP, ICMP, DHCP and DNS. Build around Adam Dunkels uIP Stack.
http://www.homautomation.org/2014/10/27 ... r-arduino/

Best Regards

stevestrong
Posts: 1354
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: ENC28J60 on Netduino2Plus

Post by stevestrong » Wed Nov 09, 2016 12:47 pm

Well, looking at the examples, Ethercard supports a lot of features, including DHCP, TCP, and so on.

cassyarduino
Posts: 15
Joined: Tue Nov 08, 2016 12:52 pm
Location: Hungary

Re: ENC28J60 on Netduino2Plus

Post by cassyarduino » Wed Nov 09, 2016 1:51 pm

The ethercard's readme.md say:"Hardware: Non-AVR boards are NOT currently supported (101/Zero/Due) #211"

The UIPEthernet supports: DHCP,DNS,UDP,TCP,ARP,ICMP.

My modified UIPEthernet supported more MCUs:AVR arduinos, STM32F MCU-s, ESP8266 MCU.
I already tested (modified UIPEthernet) on arduino nano, and maple mini (STM32F103CBT),
i will wiring ESP8266 with ENC28j60, and i will test it. (You can compile UIPEthernet to ESP8266 now, but i not tested yet on this hardware.)

danieleff
Posts: 302
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: ENC28J60 on Netduino2Plus

Post by danieleff » Wed Nov 09, 2016 4:45 pm

cassyarduino wrote:Hi all!

I working with leaflab 'maple mini' (STM32F103CBT6) and ENC28j60.
I compiled project with my modified UIPEthernet library with arduino IDE 1.6.9.
Original UIPEthernet writed by Norbert Truchsess.
You can download from https://github.com/ntruchsess/arduino_uip
You can download my modified version UIPEthernet from:http://www.zalaszam.hu/~cassy/devel/avr/UIPEthernet.zip
The wiring for 'maple mini' and ENC28j60:http://www.zalaszam.hu/~cassy/devel/ard ... wiring.PNG

Best Regards!
I was able to make the library work, but could you put somewhere more permanent and visible place like github, because buried in a forum thread is pretty hidden.

cassyarduino
Posts: 15
Joined: Tue Nov 08, 2016 12:52 pm
Location: Hungary

Re: ENC28J60 on Netduino2Plus

Post by cassyarduino » Wed Nov 09, 2016 10:35 pm

danieleff wrote:
I was able to make the library work, but could you put somewhere more permanent and visible place like github, because buried in a forum thread is pretty hidden.
I sended email to Norbert, but didn't answer.
I did not want fork Norbert's UIPEthernet library,
but if Norbert not will not respons.
I will put the modified code to the github.

But this forum in first place when You search "enc28j60 maple mini uipethernet" with google.:)

stevestrong
Posts: 1354
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: ENC28J60 on Netduino2Plus

Post by stevestrong » Thu Nov 10, 2016 1:24 pm

I would recommend to anyway fork the UIP repo, and work in your changes.

cassyarduino
Posts: 15
Joined: Tue Nov 08, 2016 12:52 pm
Location: Hungary

Re: ENC28J60 on Netduino2Plus

Post by cassyarduino » Thu Nov 10, 2016 2:58 pm

stevestrong wrote:I would recommend to anyway fork the UIP repo, and work in your changes.
I created a new organisation on github named 'UIPEthernet', forked Norbert's project and uploaded my modified code.
I don't have a lot of free time so I'd like to invite other developers to work on this project.

You can access this repo on github:https://github.com/UIPEthernet/UIPEthernet

Best Regards

cassyarduino
Posts: 15
Joined: Tue Nov 08, 2016 12:52 pm
Location: Hungary

Re: ENC28J60 on Netduino2Plus

Post by cassyarduino » Thu Nov 24, 2016 1:21 pm

cassyarduino wrote:The ethercard's readme.md say:"Hardware: Non-AVR boards are NOT currently supported (101/Zero/Due) #211"

The UIPEthernet supports: DHCP,DNS,UDP,TCP,ARP,ICMP.

My modified UIPEthernet supported more MCUs:AVR arduinos, STM32F MCU-s, ESP8266 MCU.
I already tested (modified UIPEthernet) on arduino nano, and maple mini (STM32F103CBT),
i will wiring ESP8266 with ENC28j60, and i will test it. (You can compile UIPEthernet to ESP8266 now, but i not tested yet on this hardware.)
Hi!

I tested the hardware and software on ESP8266.
The hardware:
Direct connecting between ESP-07, and ENC28j60 module doesn't working.
On ESP8266 the SPI SS/CS pin shared with boot configuration pin GPIO15.
For booting from SPI flash the GPIO15 must pull down to GND.
The ENC28j60 SS/CS pin pulled up to 3,3V.
I will try two BS170 FET as open collector line driver, or bus driver IC.

The software:
The UIPEthernet software doesn't working properly if can't communicate with ethernet device(ENC28j60).
The ESP8266 multitasking enviroment is not easy too (watchdog resets).
I will add error detection, and bypass algoritmus to the code.

Best Regards

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest