Forum Discussion
Altera_Forum
Honored Contributor
14 years agoEthernet link on DE2-115
Hi, I am using DE2-115 to do Ethernet UDP data transferring with the simple_socket_server template. Everything seems correct but the link will fail for several seconds at the beginning every ti...
Altera_Forum
Honored Contributor
14 years agoHi Cris,
Thanks a lot for your reply and I fixed the error according to your suggestion. I do have another problem now: Am I able to send the packet faster? The current data rate obviously is not satisfying. If I do not want to change SOPC, is there anything I can do to increase the data rate? Thanks! --- Quote Start --- Are you sure the Ethernet link has already been established when you start the SSS task? Probably the driver initialization code sends a PHY reset command, so you need to wait a short time before the link becomes active again whenever you restart your application. Do you have some debug printf in your console, showing when autonegotiation is actually performed? Moreover, what do you mean with 'several seconds' : a few seconds or much longer time? You can try to wait longer than this time (with a sleep) before calling sendto: this way you will understand if the problem is related to a needed delay or it's a pathological problem affecting the first packet transmitted. --- Quote End ---