PaulStoffregen / Ethernet

Ethernet library for Teensy (Wiznet W5100 / W5200 / W5500)
http://www.pjrc.com/teensy/td_libs_Ethernet.html
130 stars 83 forks source link

UDP on W5100 not realible #14

Closed uzi18 closed 6 years ago

uzi18 commented 7 years ago

Hi Paul This is bug in both current Arduino Ethernet and Your library, udp does not work after 2-3 requests for ntp time on W5100.

For tests have used udpNTPClient example with original EthernetShield (W5100) and W5200 shield on ArduinoMega with Your git master lib. On W5100 problem exists, when changed shield to W5200, requests works ok and every ntp. So it is W5100 code related.

From 2nd/3rd request udp stops working, did some debug here and it looks like not DNS realted, have stored IPadress of timeserver and used method with IPAdress.

Any hint?

PaulStoffregen commented 6 years ago

I'm running it here on Mega (an older clone) using an Arduino Ethernet R3 shield, with IOREF jumpered to 5V since this old Mega lacks IOREF. Here's the hardware:

dsc_0153_web

I can't reproduce any sort of "stops working" problem, though it does seem not every NTP request is being answered.

sc

My best guess is this bug was probably fixed by https://github.com/PaulStoffregen/Ethernet/commit/bdef56ad89ea47413b18f682e53f858e618cf369 (Oct 25, 2017)

Going to close this old issue, since I can't reproduce it with my Mega board and a W5100 shield.

uzi18 commented 6 years ago

It could be also by #17 affected. As we use all available connections in our project. For now no problems with this, but stay tuned :)

PaulStoffregen commented 6 years ago

Please let me know if you find any way to reproduce the problem with the latest code.

Soon this version will become the official Arduino Ethernet lib, so I'd really like to resolve any outstanding issues before we publish it to so many people!

uzi18 commented 6 years ago

If it goes to official, it could be nice to have async dhcp and dns here, what do you think?