Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHello Everybody,
I have been in a similar spot some time ago. I have a DE2-115 and i succeeded in sending UDP messages to my pc and showing them on Wireshark. I started from a DE2-115 tutorial for the TSE, is a good place to start and it comes with an SDC file so you can use this file. First thing to check is to see if your network connection is ok. This is a negotiation between the Nic on your PC or switch or router and the Ethernet chip on your DE. You can check the link by looking at the 1000 /100 /10 mb leds on the DE board, if they light up you have a working hardware connection. In this area on the DE there are also LEDs that indicate send and receive. If you send and Ethernet packet from the DE to the PC, and you use a switch or router, and the packet is not correctly formatted, the switch will discard the packet and your PC will receive nothing. So, you can leave out the switch and connect the DE directly to your PC. This way normally, badly formed packets also will be shown on Wireshark provided you select the right interface to monitor in Wireshark. To use Wireshark effectively the only thing you have to do is select the right Ethernet interface and start it, all frames will show themselves on the screen. But as another respondent to this thread correctly stated, you need to enable promiscuous mode so all traffic, even traffic that does not destined to your PC (messages that do not have the MAC destination == your PC Nic MAC and are not special broadcast messages) are passed through. Remark: once you can format messages properly (UDP / IP …) you can send messages from your DE and back and monitor traffic with a third PC if you have a Managed Switch. Managed Switches have the option to send all traffic that goes from port A (DE) to port B (e.g. printer) also to port C (mirrored port). If you connect a Wireshark PC to port C you will see all traffic from A to B. With an unmanaged/or managed switch that is not correctly configured you will not see traffic from A to B if you are connected to port C. Best Regards, Johi.