Loading...
Pages: [1]   Go Down
Author Topic: Revision Request for "Ethernet.begin"  (Read 2178 times)
0 Members and 1 Guest are viewing this topic.
Pasig City, Philippines
Offline Offline
Newbie
*
Karma: 3
Posts: 35
I enjoy doing Simple Things!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Devices: Seeeduino V2.2 (ATmega328P) & Wiznet Ethernet Shield

Request: Return Error Code & optionally Retry. If possible, subroutine should know the status of the Link LED.

Situation: "Ethernet.begin(mac, ip, gateway, subnet);" does NOT return a status and next line is executed; presuming Wiznet is connected. A timing feature "delay(1000);" is NOT satisfactory. In my case, Full Duplex (FDX) LEDs flashes continuously (for up to 15 minutes) until the Link LED is turned on.

This revision request may solve a lot of failed Arduino Ethernet projects, that interface Wiznet to some routers.

I suggest Ethernet.begin code to return 0 ONLY IF the Link LED is turned on. This would allow for program execution to continue or halt. Also add two more options to the line: one for retry until Link LED is on, and one for retry until a specified timeout.

If this revision has already been done, please let me know. Current Example code, such as "WebClient" in Arduino 0022 will always show "connection failed", unless Ethernet.begin is patched.

This is my latest discovery from experimentation, based on my past programming where "ERRORLEVEL" has been used during my Palm OS PDA programming days. I just received my Seeed Studio package on Monday.

Thank you for reading my post. Have a nice day!

Kuya Marc
Logged

I run Xubuntu Linux as my only computer operating system!
Windows does not run here; Only Linux!

I learned Arduino on my own while living in the Philippines!
I first learned Arduino theory in September 2010 and then used ProtoStack's ATmega168 Dev Kit to learn the Arduino Bootloader. Prior to receiving my Seeeduino 328 in January 2011, I have built three ATmega8L boards that work with Arduino IDE. As of April 2013, I have over 3 Dozen Arduino-compatible boards, most of which I built by hand. I have an Arduino Mini R5, Arduino Mega 2560 clone and a Arduino Due.
I'm in Twitter and in Google+.
Sometimes, I use Skype as Kuya.Marc.

I've founded MirandaSoft in 1992 and now in the process of retiring...

Pages: [1]   Go Up
Print
 
Jump to: