Forum Discussion
Altera_Forum
Honored Contributor
16 years agoSimple Socket Server on DE2 w/Davicom DM9000A
updated.
Altera's Simple Socket Server demo running on a DE2 board with the Davicom DM9000a driver. here it is....zipped downloaded project source for sss on the de2 board. download link currently unavailable. Includes: - Hardware design (TLD in schematic block diagram format) - Programmable .SOF (time-limited, as developed in Quartus Web Edition v9.2) - SOPC builder system file - DM9000A driver for Nichestack TCP/IP stack / Altera HAL environment (courtesy of Columbia Uni) - Simple socket server software Simply... - (1) Download the .SOF in Quartus Programmer - (2) Open the software workspace in the "/software" directory in Nios II Build Tools (Eclipse IDE) - (3) Open Run >> Run Configurations. Delete the current configuration. Create a new launch configuration selecting the project name under the Project Tab. Ensure your DE2 board is plugged into USB. Check the target connection tab and make sure it is present. - (4) Plug into your local network (DHCP is enabled, or app will default to static IP) - (5) View the Nios II console for debugging information (via JTAG UART) - (6) Telnet into the board from a pc: telnet <ip address> 30. Enjoy the simple socket server demo from Altera! Questions/comments? Fire away below!98 Replies
- Altera_Forum
Honored Contributor
Thanks a lot, can't wait.
- Altera_Forum
Honored Contributor
Enjoy...................................
http://www.mediafire.com/?75wlgv51dyhqq56 this is the original zip file shared by tnnDesign regards hasi86 - Altera_Forum
Honored Contributor
hi friends,
I am trying to build Simple Socket Server on Altera DE2-70 Board, everything seem fine, but when I run it, it showed me the error. I searched around the internet, but seem none of solution work for me. Please help me with it. Here is my error message Copyright 1996-2008 by InterNiche Technologies. All rights reserved. prepped 0 interfaces, initializing... inet startup error: unable to find any working interfaces panic: IP dtrap - needs breakpoint Please help Thank you so much! - Altera_Forum
Honored Contributor
Good day. I have been running the simple socket server now with no issues on the DE2-70. Thanks for providing. I have been able to modify my system in sopc, add components as necessary and rebuild a working system. Now I would like to be able to detect the status of the ethernet link for display on a front panel. Does anyone know how to access the link status.
JT - Altera_Forum
Honored Contributor
--- Quote Start --- Good day. I have been running the simple socket server now with no issues on the DE2-70. Thanks for providing. I have been able to modify my system in sopc, add components as necessary and rebuild a working system. Now I would like to be able to detect the status of the ethernet link for display on a front panel. Does anyone know how to access the link status. JT --- Quote End --- could you please show me how you do it? I still stuck in the SSS , there is still the error about initialize the DM9000A chip - Altera_Forum
Honored Contributor
Is it possible to upload the files? It could really help.
- Altera_Forum
Honored Contributor
Hi Guys,
I follow everything from your suggestion. After i run it, the following message appear at my console and it look good. But when i telnet from my PC to the board, it doesnt work. I direct connect UTP LAN cable from my PC to the board. Can someone advise me? Thanks. This software project uses an unlicensed version of the NicheSta=============== Software License Reminder ================ This software project uses an unlicensed version of the NicheStack TCP/IP Network Stack - Nios II Edition. If you want to ship resulting object code in your product, you must purchase a license for this software from Altera. For information go to: "http://www.altera.com/nichestack" ===================================================== InterNiche Portable TCP/IP, v3.1 Copyright 1996-2008 by InterNiche Technologies. All rights reserved. Your Ethernet MAC address is 00:07:ed:ff:92:78 Static IP Address is 192.168.1.234 prepped 1 interface, initializing... dm9ka_init Created "Inet main" task (Prio: 2) Created "clock tick" task (Prio: 3) mctest init called IP address of et1 : 192.168.1.234 Simple Socket Server starting up [sss_task] Simple Socket Server listening on port 30 Created "simple socket server" task (Prio: 4) - Altera_Forum
Honored Contributor
Hi Sir,
I do everything that i know. But i could not telnet my board. I think my board doesn't really have the ethernet connection up. Can you send me your project file? my email add is [email protected]. I will really appreciate your help. I am struggling here. Thanks. =============== Software License Reminder ================ This software project uses an unlicensed version of the NicheStack TCP/IP Network Stack - Nios II Edition. If you want to ship resulting object code in your product, you must purchase a license for this software from Altera. For information go to: "http://www.altera.com/nichestack" ===================================================== InterNiche Portable TCP/IP, v3.1 Copyright 1996-2008 by InterNiche Technologies. All rights reserved. Your Ethernet MAC address is 00:07:ed:ff:92:78 prepped 1 interface, initializing... dm9ka_init Created "Inet main" task (Prio: 2) Created "clock tick" task (Prio: 3) mctest init called IP address of et1 : 192.168.1.234 Acquired IP address via DHCP client for interface: et1 IP address : 192.168.1.103 Subnet Mask: 255.255.255.0 Gateway : 192.168.1.1 Simple Socket Server starting up [sss_task] Simple Socket Server listening on port 30 Created "simple socket server" task (Prio: 4) - Altera_Forum
Honored Contributor
- Altera_Forum
Honored Contributor
Just a couple of responses to your questions.
Congratulations "cafukarfoo". You are definately are on the right track. The fact your DE2 board is acquiring an IP over DHCP means the ethernet connection is up and operational. Remember...you can only telnet into the board when a server socket is setup and listening on a particular protocol/port. Try testing your SSS by pinging the DE2 board. If the board reply's to a ICMP packet (ping), then everthing is working and ready for you to implement socket comms. Well done also to "shenlung". I believe you can access the link status through a memory register on the Davicom DM9000A controller device. You will need to check the datasheet and modify the ethernet driver accordingly. A few notes also to those who have asked: - Yes, project was build on Quartus Web edition. - Once running, found the SSS to be extremely stable. Wrote a C library to facilitate socket comms between the DE2 and a Win32 console app. Found the link to be stable and capable of transferring a large amount of data between the DE2<-->PC with no errors.