ETH is only sending some UDP bytes, then less, then nothing.

I wrote a very simple sketch that sends an UDP message ("LOOPING.") in a loop

https://pastebin.com/46H8E4n9

the problem:
It only sends the full message the first time. "LOOPING."
The next is only "ING."
Then "G."
And finally only the dot. "."

All following messages are empty.
https://i.gyazo.com/4122f1db2005297326f05b16c849856d.png

The exact same sketch works flowless on an Arduino Uno + Ethernet Shield.
All my libs are up to date.

It IS working, if I do a begin() and stop() before and after every message.

Udp.begin(localPort);
Udp.beginPacket(miniserver_ip, miniserver_port);
Udp.write("LOOPING.");
Udp.endPacket();
Udp.stop();

Richard
Richard
7
| 0 0 0
Asked on 11/5/17, 3:55 AM
0
vote
113 Views

I found what was causing the problem:
SPI frequency must be set to 4MHz (instead of 8MHz) in Ethernet2/src/utility/w5500.cpp

Richard
Richard
7
| 0 0 0
Answered on 11/5/17, 8:48 PM
0
vote

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

41 follower(s)

Stats

Asked: 11/5/17, 3:55 AM
Seen: 113 times
Last updated: 11/5/17, 8:48 PM