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

por
Guest
en 23/7/18 7:31 661 vistas

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
En 23/7/18 7:32

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!


Mantener informado

Acerca de esta comunidad

Esta comunidad es para profesionales y entusiastas de nuestros productos y servicios, compartir los mejores contenidos y nuevas ideas de marketing, construir su perfil profesional y mejorar el mercado para todos. Lea los lineamientos

Herramientas de las preguntas

3 seguidor(es)

Estadísticas

Preguntado: 23/7/18 7:31
Visto: 661 veces
Última actualización: 5/12/18 8:51