Go Down

Topic: [Solved] Arduino Library Ethernet 2.0.0 - Not Work! (Read 463 times) previous topic - next topic

DrAngelOK

Aug 29, 2019, 08:07 am Last Edit: Sep 29, 2019, 01:27 pm by DrAngelOK
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?

Juraj

what is what you call "Arduino Ethernet R2"?

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).

DrAngelOK

what is what you call "Arduino Ethernet R2"?
http://shieldlist.org/arduino/ethernet-v5
network shield on WZ 5100

DrAngelOK

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:
https://www.arduinolibraries.info/libraries/ethernet
https://community.blynk.cc/t/new-arduino-ethernet-library-2-0-0/28335

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?

Juraj

http://shieldlist.org/arduino/ethernet-v5
network shield on WZ 5100
I have a clone and it works

DrAngelOK

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.

DrAngelOK

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.

Juraj

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?

DrAngelOK

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.

Juraj

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?

DrAngelOK

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

pjrc

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

https://forum.pjrc.com/threads/57416-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?

DrAngelOK

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

https://forum.pjrc.com/threads/57416-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.

Go Up