This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28388D: ETHERNET example: enet_lwip Webserver failure after success ping

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hi team,

I ask this for our customer. Now customer are testing our enet_lwip example code(not enet_lwip_udp) and found something wrong. Their C2000Ware version is C2000Ware_4_01_00_00.

1. They have added predefined symbol ETHERNET in cm_common_config_c28x. And they follow the guide of readme.txt, and their ping is successful. But when they type 192.168.0.4 in the address bar, it failed. There is some Chinese in the picture, I have added translations. 

I noticed that the customer's IP was modified to 192.168.1.0, not 192.168.0, which is different from the readme.txt. But it looks like the customer's ping is successful. Regarding this part, I have advised them to use the correct IP and let them use cmd to complete the ping, this part of the action is now waiting for the customer's reply. But I still want to confirm with you what maybe the reason why the ping succeed but the Webserver fails in this step?

2. And there is a different issue from my side. I also use C2000Ware_4_01_00_00 and follow the steps in readme.txt. I have enabled ETHERNET and changed static IP address, but I failed on ping step, it shows Destination host unreachable. This phenomenon can also be reproduced on other computers. I would like to know at which step am I going wrong? 

3. I also have a question about some content of readme.txt. It says Open a web browser "in the other device", is it mean that the computer run F28388D code and the computer open a web browser and type 192.168.0.4 in the address bar should be 2 different computer? In my understanding it should be one computer, but the description in readme.txt looks like two computers, so wanted to confirm this with you. Thanks!

Best, 

Julia

  • Hi team,

    Please check the reply from customer:

    When IPAddr=0xC0A80004,that is 192.168.0.4,and set the IP address as below, it can ping successfully. This is a Chinese page, but it's a successful example, so please let me know if there is anything confused, thanks. But their Webserver step still fialed.

    Best, 

    Julia

     

  • Julia, 

    Can you ensure that the <C2000WareInstallDir>\Ethernet\third_party\lwip\lwip-2.1.2\src\apps\http\fs exists . The web page gets loaded from this folder.

    Best Regards

    Siddharth

  • Hi Siddharth,

    Yes customer's comupter have this. Customer still fails to load the web page on the computer that has been successfully ping.

    And could you please help on question 2 and 3 in my first post? It still not work on my computer. I wonder if it is because I am in TI VPN?

    Best, 

    Julia

  • Julia, 

    You should have two computers - one connected to the Control card for loading code using CCS.  

    The ethernet cable from Control card should be connected to the other computer . This computer acts as the other node in the network.  Are you able to see ethernet adapter connected to the second computer in the network panel ? Did you configure the IPv4 address to use 192.168.0.x ? 

    Then you can open up the terminal on the second computer and try to ping the Control Card . 

    You should also open the browser on the second computer and load the web page on it. 

    Let me know if you missed doing any of these steps

    Best Regards

    Siddharth

  • Hi Siddharth,

    I use 2 computers to do it but there still shows "Destination Host Unreachable" in CMD. I think I found the difference. From my side IP in CMD is 192.168.0.2(blue line) which is what I set in TCP/IPv4.

    But from customer side, the IP is 192.168.0.4 in their successful example:

    I wonder if it is correct to show 192.168.0.4 in this place? 

    I use computer ① to connected to the Control card for loading code using CCS, and use computer ② to connected to Control card via ethernet cable. And I have set computer ②'s static IP address to 192.168.0.2, and use computer ②'s CMD to ping 192.168.0.4. Then I got the error  "Destination Host Unreachable". Please remind me which step I got wrong.

    And if I set computer ②'s static IP address to 192.168.0.4, then I can use computer ②'s CMD to ping 192.168.0.4 successfully. And I can get the same page of CMD as customer. In this case I can ping successfully without using F28388D control card. I think this is the computer ② pinging with itself? I don't know if it is correct.

    Could you please give some advice? Thanks!

    Best, 

    Julia

  • Hi Siddharth,

    Could you please test this code with F28388D controlcard on your side? My C2000ware version is C2000Ware_4_01_00_00. I only modified the predefine of cm_common_config_c28x code, adding the ETHERNET definition. I want to know if it is because of the WIN10 firewall? I also failed without connecting to TI VPN.

    Best, 

    Julia

  • Julia, 

    I have verified the code on my side. The example seems to be working fine. 

    setting the  computer ②'s static IP address to 192.168.0.4 is incorrect since the F28388D Control Card's IP Addressis set to 192.168.0.4.

    The Destination Host Unreachable error tells that the ping packets from your computer cannot find a route to the destination IP address(destination host).
    Seems like a problem with your Internet settings.
    Best Regards
    Siddharth

  • Hi Siddharth,

    From your side what does the blue line show here? Is it the IP address of computer ②? I think it should not be 192.168.0.4(As the picture customer provided me shows), which means the customer's ping also seems to be having issues. Is my understanding correct?

    And could you please share your Internet settings? Are you using company computer or your own computer? Did you turn off the firewall on your computer?

    My network settings are as follows, and my colleague also verified this project. Our network is shown in the figure below. Could you please check the difference between my network settings and yours? Thanks!

    And only one ETHERNET port light from F28388D controlcard is on:

    Best, 

    Julia

  • Julia , 

    Here the snapshot from my side. 

    1. Ping to 192.168.0.4 -  This should display that it is receiving packets from 192.168.0.4 

    2. Internet settings on my PC 

    3. Webserver page 

    Will let you know if I have any other suggestions.

    Best Regards

    Siddharth

  • Julia ,

    I programmed C28x and CM core with the corresponding binaries to run from Flash. This way I will have only one computer (Windows) connected to the Ethernet port of F2838x Control card.

    Here also the ping works and also the webserver works fine for me. Attached are the snapshots.

    Only thing I observed is that I did not have any DNS server addresses configured. You can try removing that and checking.

    Best Regards

    Siddharth

  • Hi Siddharth,

    Thanks for your reply and I can successfully execute this code on another computer. It is because firewall on my computer. 

    On customer side their ping step is successful, but the HTTP Webserver step still fail. I will check with them for this issue. I'm wondering if it's because customer's computer is encrypted.

    And customer want to know if we have example using TCP/IP Stack directly, rather than using HTTP. If not, what modifications do they need to make in our example code to make it work?

    Would be very grateful if you could give more advice on this case, thanks!

    Their ping step:

    HTTP Webserver step:

    Best, 

    Julia

  • Julia , 

    Not sure what could be causing this issue.  If ping works , then the example should work fine as well.

    Will let you know if I have any other suggestions. 

    Best Regards

    Siddharth

  • Hi ,

    Will let customer to check if encrypted computer cause this issue. And customer want to know if we have example using TCP/IP Stack directly, rather than using HTTP. If not, what modifications do they need to make in our example code to realize it?

    Best, 

    Julia

  • Julia, 

    For TCP, the customer will have to refer the file tcp.c located at <C2000WareInstallDir>\libraries\communications\Ethernet\third_party\lwip\lwip-2.1.2\src\core\tcp.c . The file header of this file provides instructions for TCP implementation. 

    We currently don't have any such example. 

    Best Regards

    Siddharth

  • Hi Siddharth,

    It's been a while since this thread was last updated. I'm not sure if I need to ask a new question or we can continue the discussion under this thread.

    Now the issue above is solved, this issue is caused by customer computer's encryption. If customer use an unencrypted computer, TCP example code can work well. 

    But use an unencrypted computer is unacceptable for customer, customer cannot convince their end customer to run the code on unencrypted system. Our enet_lwip_udp example code can work well on customer's encrypted computer but TCP example code cannot. Do we have any solution on it? Does the TCP protocol not allow computer encryption?

    Best, 

    Julia

  • Julia, 

    Glad to know that customer was able to get it working on their computer. 

    Can you let me know what do you mean by computer encryption ? 

    Is it related to "http" links not been allowed to run on the browser?

    Best Regards

    Siddharth

  • Hi,

    Computer encryption means encryption software installed on the computer, this software will encrypt the files in the client's computer and cannot be opened directly by other computers. I don't know if my description is clear, you can understand it as an enterprise security measure for preventing data leakage.

    Or if you have other information need to know, please let me know, thank you.

    Best, 

    Julia

  • Julia, 

    From the description, looks like encryption software is preventing access to the folder <C2000WareInstallDir>\Ethernet\third_party\lwip\lwip-2.1.2\src\apps\http\fs  . The web page gets loaded from this folder.

    I am not really sure how encryption software works and how to get around it. 

    Best Regards

    Siddharth