Pages: [1]   Go Down
Author Topic: Ethernet Shield - Cable present?  (Read 165 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi together,

I am a newbie wit Arduino and am really impressed about the possibilities. Within my first project I set the clock of a TinyRTC modul once a day over NTP to the correct time and show it on a LCD. Everything works fine when the ethernet cable is connected to the board. If not, the sketch stops at "if (Ethernet.begin(mac) != 0) .." till the timeout is over.
My question is now if it is possible to check if a cable is pluged before starting to configure the ethernet connection? I have searched for I little while now but can't find a hint.
Thx for the help and excuse my bad englisch ;-)
Greetings,
Frank
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 115
Posts: 5374
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The unfortunate answer is "you can't". The w5100 does not have that capability. However, the newer version from Wiznet, the w5200, does have that capability, along with double the number of sockets available.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thx for the answer, unfortunately that is what I had expect. So my sollution will be to reduce the DHCP timeout.
Logged

Pages: [1]   Go Up
Jump to: