Dear all,
Working very happily with the Teensy 4.1 with ethernet connection, it works like a charm when booting the Teensy 4.1 with an ethernetcable connected. There is a but though .
The device will not connect to ethernet when the Teensy has been booted up WITHOUT the ethernet cable attached, in other words.
I start the Teensy with the Ethernet.begin() and Ethernet.waitforIP(10000), when the cable is connected, Teensy continues to boot and does it's audio magic. Data is however communicated on one of the Serial busses to an RS485 master. Works fine. The Ethernet cable is used when we want high speed audio measurements from the Teensy, however. Link is not established if Teensy was booted WITHOUT an ethernet connection.
So in short:
Teensy booted with Ethernet connection, everything works fine, I can disconnect en reconnect the cable and the linkState() responds as expected.
Teensy booted without Ethernet connection, the connection can never be made again, linkState() is always false.
What am I doing wrong?
Working very happily with the Teensy 4.1 with ethernet connection, it works like a charm when booting the Teensy 4.1 with an ethernetcable connected. There is a but though .
The device will not connect to ethernet when the Teensy has been booted up WITHOUT the ethernet cable attached, in other words.
I start the Teensy with the Ethernet.begin() and Ethernet.waitforIP(10000), when the cable is connected, Teensy continues to boot and does it's audio magic. Data is however communicated on one of the Serial busses to an RS485 master. Works fine. The Ethernet cable is used when we want high speed audio measurements from the Teensy, however. Link is not established if Teensy was booted WITHOUT an ethernet connection.
So in short:
Teensy booted with Ethernet connection, everything works fine, I can disconnect en reconnect the cable and the linkState() responds as expected.
Teensy booted without Ethernet connection, the connection can never be made again, linkState() is always false.
What am I doing wrong?
Code:
Serial.print(F("Starting Ethernet... "));
if(!Ethernet.begin()) {
Serial.println(F("Failed"));
} else {
Serial.print(F("OK\nWait for DHCP... "));
if (!Ethernet.waitForLocalIP(10000)) {
Serial.println(F("Failed"));
}
Serial.print("Link3:"); Serial.println(Ethernet.linkState());
Serial.println(F("OK"));