Forum Discussion
Altera_Forum
Honored Contributor
16 years agoHi.
You have in the NIOS code:
IPsource_1 = 0xC0; // Assign ie: 192.168.0.44 IP for the DE2
IPsource_2 = 0xA8;
IPsource_3 = 0x00;
IPsource_4 = 0x2C;
IPdestination_1 = 0xxx; // Insert your IP data here
IPdestination_2 = 0xxx;
IPdestination_3 = 0xxx;
IPdestination_4 = 0xxx;
Mac_dest1 = 0xxx; // Insert your MAC address data here
Mac_dest2 = 0xxx;
Mac_dest3 = 0xxx;
Mac_dest4 = 0xxx;
Mac_dest5 = 0xxx;
Mac_dest6 = 0xxx;
Mac_source1 = 0x01; // Assign an MAC address for DE2
Mac_source2 = 0x60;
Mac_source3 = 0x6E;
Mac_source4 = 0x11;
Mac_source5 = 0x02;
Mac_source6 = 0x0F;
Well, look for in your OS "net conections" (If it's XP) and see the details for the active one. You'll be find there your machine IP and your MAC address, write them in IPdestination and Mac_dest respectively. No more to do. The NIOS code has asigned an IP for your DE2 and a Mac too, you can change it if you want for another, So your DE2 will have for ever you run that code the same IP and MAC, change the IPdest and Macdest if you run the code in another computer.....or READ some more about net connections. Cheers. Alberto.