Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
804 Views

IP packet rate using DE2 and Nios2

Hello, 

My goal is to send video over IP using the DE2 kit with nios-2/f. 

I tried to use Altera's CD demonstration called DE2_NET. 

I managed to send packets to a directly connected PC using the DM9000A and the driver supplied in the demo: DM9000A.C. 

My problem is that the maximum number of received packets,which are 1518 Bytes each, is only 30 per second, that is about 45KBps. 

 

I noticed that DM9000A.C TransmitPacket() function contains a sleep() routine before copying each byte to the DM9000A TX buffer. 

 

My questions are: 

1. What is the reason for this poor rate and how can I acheive a rate of ~80Mbit/s? 

2.Are the 20 micro-sec sleep() routines needed? 

 

Thank you very much, 

tr.
0 Kudos
8 Replies
Altera_Forum
Honored Contributor I
44 Views

Hi. 

Did you download my code from http://www.alteraforum.com/forum/showthread.php?t=3947  

Just I´m planning to do that, and I get about 1.2Mbytes/sec in PC side. 

Nobody answer me, how to speed up that code. 

 

Regards. 

Alberto.
Altera_Forum
Honored Contributor I
44 Views

I see you've overwritten some of the DM9000A.C functions. 

I will try using your code. 

 

Thank you very much. 

 

TR.
Altera_Forum
Honored Contributor I
44 Views

There's an Altera application note AN440 discussing the bootlenecks and potential improvements with NIOS II ethernet communication. According to this literature, the intended 80 Mbps data rate seems to be illusional with a 10/100 Mbps interface.

Altera_Forum
Honored Contributor I
44 Views

@suitcase 

Yes, I´ve modified the DM9000.C and more, I´ve reduce the delays times, testing them carrefully. 

I´ve also add a UDP header, and checking it with the wireshark software. Just only try it, and let me know if you´ve got some improvements. Ideas, etc. 

Maybe between us we could get a better aproximation of the target. 

 

@Frank. 

Thanks so much for the application note data, sounds interesting.
Altera_Forum
Honored Contributor I
44 Views

Hello and thank you very much for your answers. 

BTXSistemas, I used your code and it seems like I got an impoovement! 

According to Ethereal, the packet rate is now about 28Mbit/sec. 

I'll keep updating you, 

Thank you, 

TR.
Altera_Forum
Honored Contributor I
44 Views

Hey man !! 

That is more I get testing with wireshark !! good. 

Did you do some modifications to my code or ??
Altera_Forum
Honored Contributor I
44 Views

No. Now I am going to test the rate in a windows UDP server, I'll tell you if this is the actual rate. 

 

TR
Altera_Forum
Honored Contributor I
44 Views

I use DE2 kit, room, web editor 6.0 Nios II IDE version 6.0 for my project "Control over Ethernet."  

 

but I failed so far eviar package or any data. I thank I might work with some sort of structure in Nios II to work, because until now I'm starting to ncursionar on this issue.  

 

 

Thank you