9 years, 2 months ago.

eth.connect() takes approximately 8s, is it the normal behaviour ?

I have tried both of the examples and it appears that the board takes approximately 8 to 10 seconds in the eth.connect() function. Does anyone know if it's possible to improve this performance ?

Question relating to:

3 Answers

9 years, 2 months ago.

Using DHCP or static IP? If you are using DHCP then that could be causing some delay, normally only a second or so at most but it can vary. You can use something like wireshark to tell how long the DHCP request is taking.

9 years, 2 months ago.

my experience is dhcp takes less time as compared to static one. By the which board are you using ?? try to connect it to some different network, it could be the conncection problem as well

I'm using LPC1768 with DHCP. I will try to install wireshark to check the time of the DHCP request. I think it should be faster with static mode, as the board doesn't wait from the network. I have also read that using serial port can cause troubles and increase time of transmission packets.

posted by Florian Fouquet 19 Feb 2015

I have observed that lpc1768 takes more time as compared to k64f,

posted by zain aftab 20 Feb 2015
8 years, 7 months ago.

On my K64F, DHCP takes about 1 second, and static takes about 8 seconds. I don't know why, I would have thought static would be faster than dhcp.