Try ENC since we didn’t want to change any thing in your code first.
But we did change IP config and MAC which didn’t work for us.
Step2:
Change to Ethernet
Step3:
Change to WiFi
Step4:
Try to read message in event
Step5:
Add reading temperature.
Only thing we are not sure is the Application server where read data from the socket. We don’t have it and we wrote it by self. If you have then you can send to us.
Also, the CAN application that we are using to send 1000msg/ second can make different. How do you send the message from the host?
The reason I’m suspecting the ENC28J60 or something else network related to be at fault is because it works for 100% when I turn off this line of code:
sock.SendTo(data, endPoint);
Quick question, this line is commented out in my example program. Do you have it commented out as well during your testing? I’m expecting you don’t because as you said, you are receiving the packets but I just want to make sure.
Would it help if I ordered a dev board and the mikroe board you’re using?
Or do you think it would be better if I were to use the onboard PHY of the SC20100S? If so, is there any documentation on how to connect it, the correct impedance and what mag jack to use?
If 1-2 time in few hours then we will try more. But it happened every 500 messages easily then we are not on same page. If so then yes, you may need a dev board to see how different between yours and ours design.
Just ordered a SC20100S dev board from Digi and a Mikroe ENC28 click to test it out. Should arrive in a few days, I will report back my findings afterwards.