Welcome!
This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
Ethernet M-Duino 21+ version
Hi,
we have same problems with Mduino 21+ and LAN, we can not set the IP address.
With this code we can ping Mduino 21 but we can not ping Mduino 21+:
#include <Ethernet.h>
#include <SPI.h>
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
IPAddress ip(192, 168, 100, 10);
void setup() {
Serial.begin(9600);
while (!Serial); // wait for serial port to connect. Needed for native USB port only
Ethernet.begin(mac, ip);
}
void loop() {
}
Hi,
the problem here is the Ethernet library that you import.
The reason is that the MDuino 21 uses the W5100 ethernet chip and the MDuino 21+ uses the W5500.
So you have to use the “Ethernet2.h”. To fix your following problems look out in this link, which test a Ethernet configuration on a MDuino Plus version.
http://blog.industrialshields.com/en/ethernet-test-on-m-duinos-plus-version/
Thanks for your trust!
Keep Informed
About This Community
Question tools
Stats
Asked: 7/23/18, 11:31 AM |
Seen: 520 times |
Last updated: 12/5/18, 1:51 PM |