Page 4 of 4

Re: ENC28J60 on Netduino2Plus

Posted: Thu Nov 24, 2016 1:30 pm
by danieleff
cassyarduino wrote:
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


Use a different pin on ESP8266 for CS, not GPIO15. Generally any pin can be used as cable select.

Re: ENC28J60 on Netduino2Plus

Posted: Thu Nov 24, 2016 3:57 pm
by cassyarduino
danieleff wrote:
Use a different pin on ESP8266 for CS, not GPIO15. Generally any pin can be used as cable select.


Ok. I will try, but GPIO15 with two fet tested already.
"Not-default" SS pin didn't working anytime for me (e.g.:atmega2560).
But maybe i was/am lamer.

I want create wiring too for easy usage with default settings.

Re: ENC28J60 on Netduino2Plus

Posted: Sun Dec 04, 2016 6:45 pm
by zoomx
After installing the UIPEthernet library I get this error on Arduino IDE

Code: Select all

Invalid version found: 1.04


Open library.properties file and change version from 1.04 to 1.0.4

There is a pull request about this in the original repo and an issue in Arduino repo to change the error message in something useful adding the library name to the message.

Re: ENC28J60 on Netduino2Plus

Posted: Mon Dec 05, 2016 2:23 pm
by cassyarduino
ESP8266 wiring with ENC28j60 completed.
I uploaded to:https://github.com/UIPEthernet/UIPEthernet/blob/master/hardware/ESP8266_enc28j60_wiring.PNG

The code doesn't full tested yet.
I will correct this "version bug" also.
Coming soon I commit the code changes.

Re: ENC28J60 on Netduino2Plus

Posted: Thu Dec 08, 2016 2:51 pm
by cassyarduino
Hi All!

I uploaded modified UIPEthernet library to https://github.com/UIPEthernet/UIPEthernet
I modified the following:
- Set the version to 1.1.0
(This version tested on ESP8266 too. Working properly. Without watchdog resets.)
- Correct ESP8266 exception(28).
- Add watchdog reset calls in functions for stable running on ESP8266.
- Add geterevid function to get ENC28j60 chip erevid (revision information).
- Change linkStatus to static for outside call.
- Add functions bypass, if can't communicate with ethernet device.
- Add SPI bus instabil communication detection.
- Change debuging/logging. Remove individual debuging. Add global and scalable debuging feature.
You can setup debuging/logging level in utility/logging.h
You can use this header file in Your scetch too.
Add "LogObject" define for serial logging/debuging with board specific default setting.

Best Regards

Re: ENC28J60 on Netduino2Plus

Posted: Fri Dec 09, 2016 9:18 am
by zoomx
I hope that I wil find time to check it!

Thanks!

Re: ENC28J60 on Netduino2Plus

Posted: Thu Dec 15, 2016 3:40 pm
by cassyarduino
Hi All!

I added support to MBED/SMeshStudio IDE.
Compiled to STM32F103RB (Nucleo).
You can download from:https://github.com/UIPEthernet/UIPEthernet

Best Regards

Re: ENC28J60 on Netduino2Plus

Posted: Thu Mar 02, 2017 9:04 am
by anass
hi everyone
sorry for bothring you all. i'm trying to connect my STM32L152 to a network using enc28j60, i can get the MAC address, but can't get the IP address.
i used the ARP_req but i didn't see it in Wireshark. i'm using the EtherSield library. pleas help me

Re: ENC28J60 on Netduino2Plus

Posted: Thu Mar 02, 2017 10:05 am
by cassyarduino
Hi!

Can You try this library: https://github.com/UIPEthernet/UIPEthernet ?

Best Regards

anass wrote:hi everyone
sorry for bothring you all. i'm trying to connect my STM32L152 to a network using enc28j60, i can get the MAC address, but can't get the IP address.
i used the ARP_req but i didn't see it in Wireshark. i'm using the EtherSield library. pleas help me

Re: ENC28J60 on Netduino2Plus

Posted: Thu Mar 02, 2017 10:46 am
by anass
[quote="cassyarduino"]Hi!

Can You try this library: https://github.com/UIPEthernet/UIPEthernet ?

Best Regards

hi
thanks for your quick reply
i'm using a library i think it's completed. i got my MAC address, but i don't know how to use the library to get my ip adress.
thanks