cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/UDP Echo Server Example

zabel
Associate III
Posted on March 19, 2012 at 18:21

Hello,

did anybody try the TCP/UDP echo example from stm32f2x7_eth_lwip.zip? It compiles out of the box, and tcp echo works fine if tried first, but udp echo does not work for me (I am using a STM32F220G-EVAL board). When I try the echo tool which is included in the zip archive, mostly I don't get any answer, sometimes I get one answer and than nothing more.

Command and answers are:

echotool.exe 192.168.0.10 /p udp /n 5

Hostname 192.168.0.10 resolved as 192.168.0.10

Response time out

Response time out

Response time out

Response time out

Response time out

Statistics: Received=0, Corupted=0, Lost=5

When I get no replay, Wireshark shows ICMP messages ''Destination unreachable (port unreachable)'', despite the port 7 is correctly used in the example program.

TCP echo works as expected only if UDP was not tried first. When UDP was tried first, TCP echo becomes very slow (response times ~500-900 ms).

Any ideas?

Regards

  Dirk

#tcp-test-tool #udp-test-tool #me-too
7 REPLIES 7
amin23
Associate II
Posted on March 22, 2012 at 07:48

Hello,

Please refer to the AN3384, I did a test it works fine, I am using STM32F2x7_ETH_LwIP_V1.1.0

simonlee0311
Associate II
Posted on March 24, 2012 at 04:42

Hi, Dirk

Do you check your Jumper on your EVB? 

- STM322xG-EVAL jumpers setting

+===========================================================+

     +  Jumper |       MII mode configuration            |     RMII mode configuration(*)       +

+======================================================+

       +  JP5    | 2-3 provide 25MHz clock by MCO(PA8)     |  Not fitted                          +

         +         | 1-2 provide 25MHz clock by ext. Crystal |                                      +

        + -----------------------------------------------------------------------------------------+

        +  JP6    |          2-3                            |  1-2                                 +

        + -----------------------------------------------------------------------------------------+

        +  JP8    |          Open                           |  Close                               +

        + -----------------------------------------------------------------------------------------+

        +  JP22   | 1-2: RS232 is enabled                                                          +

       

 (*) User have to provide the 50 MHz clock by soldering a 50 MHz oscillator (ref SM7745HEV-50.0M or  equivalent) on the U3 footprint located under CN3 and also removing jumper on JP5. This oscillator  is not provided with the board. 

npham
Associate II
Posted on January 08, 2014 at 20:49

Could anyone please tell me where can I download the echotool.exe? Thanks

Nhan Pham

Amel NASRI
ST Employee
Posted on January 21, 2014 at 17:11

Google echotool.exe, you will find where to download it for free.

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Posted on January 21, 2014 at 22:04

You may also find these TCP and UDP Test Tools useful:

http://www.simplecomtools.com/productcart/pc/viewContent.asp?idpage=23

Giuseppe Cannarella
Associate II
Posted on December 02, 2014 at 09:39

Hi Diz,

I've same issue. Have you resolved it? In which way?

Maybe you can you help me...

Thanks.

Posted on December 02, 2014 at 13:11

The OP started the thread >2 years ago. Please consider fully stating YOUR problem, what you have tested, your setup etc.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..