Skip to content

Example sketches print incorrect message: "Ethernet cable is not connected" when there is no client #111

Open
@bkelly13

Description

@bkelly13

Arduino DUE, Arduino Ethernet Shield 2, IDE 1.8.8, windows 10

Application: Web Server from David A Mellis and Tom Igoe, The text of the code was copied from here:

https://www.arduino.cc/en/Tutorial/WebServer

This appears to be a problem with function Ethernet.linkStatus() returning an incorrect status. It declares that the Ethernet cable is not connected when it is.

I modified this app by putting code at the top of the loop to blink the LED_BUILTIN. It does blink and the rate can be easily changed. A solid indicator that the app is properly downloaded.

After a reset the serial port displays:

Ethernet cable is not connected.  

Setup:

My desktop and Arduino board are hard cabled to a D-Link switch. I have verified that the Ethernet cables and switch are working correctly.

I can reproduce the fault with multiple Arduino Due boards and multiple Ethernet shields.

A ping from my computer does not solicit a reply.

Connect serial monitor port and it displays:

(time)  Ethernet WebServer Exaple
(time) Ethernet cable is not connected
(time) server is at 192.168.1.177
(time) Exiting setup

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: documentationRelated to documentation for the projecttype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions