Hello everyone,
I´m using a Arduino Ethernet Board R3(no shield ) with PoE.
If I plug in the Arduino to a PoE-Switch(Allnet All8894WMP), the ethernet chip sometimes works, sometimes do nothing.
The Atmel always start ups(blink Sketch for Pin8).
When the ethernet chip does not work, the TX-LED on the Arduino board blinks approximately 10 times with ( ~10Hz)
and then for 500ms off.
When I now click on the RST-Button the ethernet chip start up.
Do anyone know the problem, or is it possible to read out the activity of the ethernet chip?
kind regards,
Sebastian
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
//***********************************************************
// Defines //
#define ledPin 8
#define TIMER_PRELOAD_40HZ 63972
//*********************************************************//
// Globale Variablen //
byte mac[] = { 0x90, 0xA2, 0xDA, 0x0F, 0x8F, 0xE8 };
IPAddress ip(192, 168, 1, 105);
IPAddress BroadcastIP(255, 255, 255, 255);
unsigned int localPort = 8000; // local port to listen on
EthernetUDP Udp;
//*********************************************************//
// Init //
void setup()
{
pinMode(ledPin, OUTPUT);
timer1Init();
Ethernet.begin(mac,ip);
Udp.begin(localPort);
}
//*********************************************************//
// MainLoop //
void loop()
{
Udp.beginPacket(BroadcastIP, localPort );
Udp.write("hello");
Udp.endPacket();
delay(1000);
}