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.

TM4C129ENCPDT: TM4C129ENCPDT

Part Number: TM4C129ENCPDT

Dear All,

Good day.

I'm running simple http webserver on tm4c129 and both of SSI and CGI were disabled and everything was Ok (when enter the IP address I show the web page). But I faced a problem in loading the webpage server when the SSI enabled, actually the webpage can't load when the SSI enabled.

Note: I'm using lwip1.4.1/ No_SYS mode

Could you please advice and help me to solve my problem and how can I show the webpage by entering the IP address?

I really appreciate your support.

Regards

  • Hello Maram,

    Was the base of this project started from any TivaWare examples or our lwIP application report?

    It sounds like you are not using an RTOS correct?

    Just trying to get some basic details here to understand more, our Ethernet expert is out until tomorrow but maybe I can give you some pointers in the meantime.

    Best Regards,

    Ralph Jacobi

  • Hi Ralph,

    I hope the following points answer on your questions and give you more details about my problem:

    1. I'm using lwip Mainloop mode (No-Operating system running on target system).
    2. I have been starting work with TivaWare examples which is "Ethernet-based I/O Control (enet_io) and this example application demonstrates web-based I/O control using the Tiva Ethernet controller and the lwIP TCP/IP Stack.
    3. When I'm running "Ethernet-based I/O Control (enet_io)" example on TM4C129ENCPDT and after obtain the IP address by DHCP, I faced the same problem in loading webpage. Actually, by open a browser and enter the obtained IP address from DHCP the webpage has problem in loading most of the time, and even if the page loaded its missed some components such as icon of photos. Note: server side include enabled in this example.
    4. I'm starting to build my application "its contains two web pages" and its mainly depend on server side include "SSI" to update the information of the tags in webpage server, but I faced same problem in loading the page.
    5. I think there are some issues in the definitions of values in "lwipopts.h" file which this file contains all required definitions for lwip stack protocol. 

     please let me know if you need more clarifications. I'm waiting to hear from you and the ethernet experts.

    Best Regards,

  • Hi,

    When I'm running "Ethernet-based I/O Control (enet_io)" example on TM4C129ENCPDT and after obtain the IP address by DHCP, I faced the same problem in loading webpage. Actually, by open a browser and enter the obtained IP address from DHCP the webpage has problem in loading most of the time, and even if the page loaded its missed some components such as icon of photos. Note: server side include enabled in this example.

      I have no problem running the enet_io example. I don't see any problem loading the page. Do you have the same problem running enet_lwip? 

      Is your network too busy? Can you try the enet_io example in a different network? 

      Can you use the wireshark to debug what is the problem?

  • Hi,

    I was running enet_lwip example on my board without any problem the server webpage loaded successfully and I can moving between webpage buttons without any issue.

    But the problem appears when I'm running enet_io example (where the SSI enabled) and here you can see the screenshot of what I captured on wireshark, any advice please.

    Regards,

  • Hi,

      I try the enet_io example and use the SSI method to change the LED blinking rate and below is what I capture on the wireshark. I don't have any connection issue. As soon as I change the blink rate on the webpage, I can see instantly the LED on the board reflecting the same blink rate. I tried the I/O control demo 2 to change the LED blinking rate using SSI method. 

      Have you tried the example on a different network. Since I work from home, I try the example on my home network. Why don't you try the example at different networks and see if you find any different behaviors? You may also want to check your Ethernet cable (make sure it  is of good quality or try another cable) or try a different ethernet switch in your network or talk to your IT department if it is a network related issue. 

  • But the problem appears when I'm running enet_io example (where the SSI enabled) and here you can see the screenshot of what I captured on wireshark, any advice please.

    Based upon that wireshark capture:

    1. IP address 172.22.0.210 is the launchpad (MAC address vendor is TI).
    2. IP address 172.22.0.163 is your PC (MAC address vendor is G-ProCom)
    3. IP address 172.22.0.163 (your PC) is sending TCP resets to IP address 172.22.0.210 (the launchpad)

    Perhaps some firewall on your PC is filtering out the TCP traffic from the launchpad.

  • Hi,

      I have not heard back from you. I assume you have resolved the issue. I will close this thread for now. If there is any update from your side, simply write back to this post and the thread will reopen. 

  • Hi,

    I'm sorry in delayed response. 

    I solved my problem by disabling the dynamic headers (#define LWIP_HTTPD_DYNAMIC_HEADERS     0)  and  adding the http headers information's to the file source 'fs' folder by using remove (-h) from the following command:

    "  ../../../../tools/bin/makefsfile -i fs -o fs_data.h -r  -q " and this command tell the makefile to generate the fs file and adding headers information.  where '-h' tells to remove header information. 

    Regards.