[Solved] Arduino Library Ethernet 2.0.0 - Not Work!

Good day.

This library on Arduino Due + Arduino Ethernet R2 does not work for me.

I tried various options for connecting pins and initialization. Compiled a demo project. Nothing helped. Throws an error: Ethernet shield was not found.

With libraries 1.x works without problems.

What to do?

what is what you call "Arduino Ethernet R2"?

Please post a link to your Ethernet 2.0.0 library. In the IDE you only get the Ethernet2 library in version 1.0.4 (currently).

Juraj:
what is what you call "Arduino Ethernet R2"?

http://shieldlist.org/arduino/ethernet-v5
network shield on WZ 5100

pylon:
Please post a link to your Ethernet 2.0.0 library. In the IDE you only get the Ethernet2 library in version 1.0.4 (currently).

I am writing in Visual Studio. But I also tried this library in IDE 1.8.5.
I have access to library 1.1.2 in IDE.
This is not an Ethernet2 library. This is a new version of the Ethernet library. It supports all chips: 5100, 5200 and 5500.
Link to 2.0.0:

Why don't you use version 1.x if that works for you? Are you using the original Arduino Ethernet shield or a clone?

DrAngelOK:
Arduino Shield List: Arduino Ethernet Shield v5.0
network shield on WZ 5100

I have a clone and it works

pylon:
Why don't you use version 1.x if that works for you? Are you using the original Arduino Ethernet shield or a clone?

I am using a Chinese clone.
Library 2.0.0 supports 5100 and 5500.
I have a part of devices with 5100, and a part with 5500.
I wanted to unify the firmware, and not use 2 libraries as before.

Juraj:
I have a clone and it works

Works with library 2.0.0?
There were some features when switching from 1.x
Are the pins the same?
Even the example from the library does not work for me.

DrAngelOK:
Works with library 2.0.0?
There were some features when switching from 1.x
Are the pins the same?
Even the example from the library does not work for me.

yes it works with 2.0.0
what error do you get? how does it not work?

Juraj:
yes it works with 2.0.0
what error do you get? how does it not work?

Example: SimpleClient.
Throws an error: Ethernet shield was not found.

Pins connected: SCK,MISO,MOSI - Due 6pin SPI, SS - 10 pin, 3.3v, gnd,reset.

DrAngelOK:
Example: SimpleClient.
Throws an error: Ethernet shield was not found.

Pins connected: SCK,MISO,MOSI - Due 6pin SPI, SS - 10 pin, 3.3v, gnd,reset.

the shield uses 5 V pin. didn't you put it on the Due as a shield?

Shield Arduino not plugged in, and located side by side and connected by wires.
Exactly with the same connection works with the 1.x library
There is a pin 3.3v on the shield

A duplicate of this question was posted on the PJRC forum. Same answer, works fine with the shield plugged into Arduino Due.

Arduino Library Ethernet 2.0.0 - Not Work!!

Version 2.0 uses a faster SPI clock speed. Maybe your wiring is good enough for the slower speed the old version used, but not good enough for the faster clock?

pjrc:
A duplicate of this question was posted on the PJRC forum. Same answer, works fine with the shield plugged into Arduino Due.

Arduino Library Ethernet 2.0.0 - Not Work!!

Version 2.0 uses a faster SPI clock speed. Maybe your wiring is good enough for the slower speed the old version used, but not good enough for the faster clock?

Ok, I will check this option.

pjrc:
A duplicate of this question was posted on the PJRC forum. Same answer, works fine with the shield plugged into Arduino Due.

Arduino Library Ethernet 2.0.0 - Not Work!!

Version 2.0 uses a faster SPI clock speed. Maybe your wiring is good enough for the slower speed the old version used, but not good enough for the faster clock?

Updated IDE - works:
e: \ Soft \ _Run \ Arduino> plink.exe -v -serial COM13
Opening serial device COM13
Configuring baud rate 9600
Configuring 8 data bits
Configuring 1 data bits
Configuring no parity
Configuring XON / XOFF flow control
Initialize Ethernet with DHCP:
DHCP assigned IP 192.168.2.217
connecting to www.google.com ...
connection failed

disconnecting.
Received 0 bytes in 0.0000, rate = 0.00 kbytes / second

Thank you for help.
Solution to the problem:

  1. Update IDE
  2. Deleting:
    if (ETH_MAX_COUNT> 0) {SPI.begin (MY_PIN_ETH);
    Now you do not need to run the SPI library for Ethernet for work.
    For SD only:
    if (SD_MAX_COUNT> 0) {SPI.begin (MY_PIN_SD_0); }