Hi all, 2 questions please:
this is for a remote, battery powered burst mode (each 5 minutes) station.
Q1)How long does W5500 take to be really ready after a (reset pin) hardware reset?
I read several postigs about this but they diverted into DNS and whatnot.
We have static MAC, IP, DNS, and are talking to another unit with static IP, so no DNS lookups or so.
It says PLOCK (PLL Lock) - 1 ms, but how long do we need to wait for W5500 to be able to actually be programmed with said static info?
Our code:
void resetEthernet(){ //resets the ethernet shield. Delays incorporated! Takes about ?? seconds.
Serial.print("Resetting ethernet card..."); // texts are just for test, will be removed in production
digitalWrite(PIN_ETH_RESET, ETH_RESET); // reset W5500
delay(10); // 1ms needed per manual
digitalWrite(PIN_ETH_RESET, ETH_NORESET); // turn off reset, let W5500 boot up
delay(2000); // how long does W5500 take to be really ready for what comes next line??
Ethernet.begin(mac, ip, dnsServer, gateway, subnet); // Eth must be initialized after each power up/reset
delay(1000); // this delay relates to the Arduino Ethernet library
W5100.setRetransmissionTime(0x07D0); // reduce wait
W5100.setRetransmissionCount(4);
Serial.println("Done.");
}
Q2) How long does auto negotiation (10/100, full/half) take?
We need to “wake up” as fast as possible, but also save power.
Right now the W5500 is set to 10M Link (75mA) to avoid the 100M Link (128mA) .
I would love to set it to “Un-Link Auto-negotiation mode” (65mA), which saves another 10mA and limit the other side to 10M, as to avoid 100M Link (128mA), but don’t know how much time we’ll lose for the auto negoatiation.
Thanks!