Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHelp: Simple Socket Server - Stratix IV GX
Hello,
I have a very basic knowledge on FPGAs and Verilog, as I only started to learn about it this semester. my final year project is quite big as I have to implement a PoE structure then make connection with the FPGa board then finally adding a sensor to system. For now I needs to build a simple socket server work on my FPGA board Stratix IV. I have looked through the forum and found this article, which explains nicely on how to build one http://www.alteraforum.com/forum/showthread.php?t=28837 but there are things that I did not understand because of different board. what does this mean (DE2_115_WEB_SERVER_RGMII_ENET0 demo) ad where can I find the demo that is suitable for my board. honestly I don't know where to start, please any guidelines will really be helpful . Thanks You27 Replies
- Altera_Forum
Honored Contributor
- Altera_Forum
Honored Contributor
i think you don't understand what you are doing there. If you disable tse how could your ethernet link work?
In your case, you have to put IP address directly like this (network_utilities.c) : (i'm not sure since i use dhcp)
and yes you should replace the section of code i gave to you, and this one above too. please read this before trying to continue your project, you need some basis ftp://ftp.altera.com/up/pub/altera_material/12.0/tutorials/de4/using_triple_speed_ethernet.pdfint get_ip_addr(alt_iniche_dev *p_dev, ip_addr* ipaddr, ip_addr* netmask, ip_addr* gw, int* use_dhcp) { IP4_ADDR(*ipaddr, 192, 168, 1, 100); IP4_ADDR(*gw, 192, 168, 1, 254); IP4_ADDR(*netmask, 255, 255, 255, 0); /* Non-standard API: return 1 for success */ return 1; } - Altera_Forum
Honored Contributor
--- Quote Start --- i think you don't understand what you are doing there. If you disable tse how could your ethernet link work? and yes you should replace the section of code i gave to you, and this one above too. please read this before trying to continue your project, you need some basis ftp://ftp.altera.com/up/pub/altera_material/12.0/tutorials/de4/using_triple_speed_ethernet.pdf --- Quote End --- Alright thank you, am really a beginner here. I appreciate your help - Altera_Forum
Honored Contributor
hi,
one question : what is the board you re using? ps : hold on, this job is not an easy one ^^ - Altera_Forum
Honored Contributor
--- Quote Start --- hi, one question : what is the board you re using? ps : hold on, this job is not an easy one ^^ --- Quote End --- I am using Stratix IV GX230, I have managed to enable the SGMII because it was showing disabled in the results. I set the (TSE_MAC_PCS_SGMII= 1), I still don't receive anything I can notice that the FPGA sends packets thru the link but nothing is received - Altera_Forum
Honored Contributor
- Altera_Forum
Honored Contributor
you are telling me the fpga not the board. Is that a terasic board or something else or a custom board?
disable pcs option in tse cause you re using an external phy. Read the manual!!! Are you using a copper rj45 link? - Altera_Forum
Honored Contributor
--- Quote Start --- you are telling me the fpga not the board. Is that a terasic board or something else or a custom board? disable pcs option in tse cause you re using an external phy. Read the manual!!! Are you using a copper rj45 link? --- Quote End --- It is a terasic board,, Yes I am using an external PHY but I thought I need an SGMII interface as shown in the manual https://www.alteraforum.com/forum/attachment.php?attachmentid=12408 and yes I am using the rj45 link - Altera_Forum
Honored Contributor
can you try to force your pc to this ip address : 192.168.1.1, gateway is the same as last reply (look above), same for mask. if it still doesnt work, try to force you pc to 1Gb/s or 100M or whatever, but don't let it auto negociate speed. (i read something like this in this forum when someone tried to direct link his pc to his card)
i can't really help you further if it doesn't work. I'm sorry. : ( - Altera_Forum
Honored Contributor
--- Quote Start --- can you try to force your pc to this ip address : 192.168.1.1, gateway is the same as last reply (look above), same for mask. if it still doesnt work, try to force you pc to 1Gb/s or 100M or whatever, but don't let it auto negociate speed. (i read something like this in this forum when someone tried to direct link his pc to his card) i can't really help you further if it doesn't work. I'm sorry. : ( --- Quote End --- Hi I have disabled the DHCP from the BSP editor. Then gave a static IP of 192.168.1.234, then I run it and here are the results, I have noticed that LED D23 keeps blinking and the RX LED of ENET is blinking too but what does that "yyyyyyyyyyy" mean ????!!!