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.

0

Ethernet M-Duino 21+ version

By
Guest
on 7/23/18, 11:31 AM 399 views

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() {

}


0

Alejandro Jabalquinto

--Alejandro Jabalquinto--

1000000016
| 0 0 0
--Alejandro Jabalquinto--
Alejandro Jabalquinto
On 7/23/18, 11:32 AM

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

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. Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 7/23/18, 11:31 AM
Seen: 399 times
Last updated: 12/5/18, 1:51 PM