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.
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:
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.
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?
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
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?
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?
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
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); }