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.

RTOS/EK-TM4C129EXL: Fast internet connection exam

Part Number: EK-TM4C129EXL

Tool/software: TI-RTOS

Hello,


I have the EK-TM4c129EXL board and use the https example with TI-RTOS 2.16.1.14.

When I pull out the LAN cable, the function "HTTPCli_initSockAddr" needs about 10s before the function is exited.

That is to long. Can you give me some tips on how to find out faster if the board has a working Internet connection?

Since the firmware has to connect to different hosts, I always have to rebuild the connection to the server.

Many thanks in advance.

  • Hi msark,

    Can you share more information about the scenarios in which you want to check the status of your connection? Are you planning to check your connection status before attempting to do a DNS lookup, or before attempting a new connection to a server, in order to bypass the time you would lose by waiting for HTTPCli_initSockAddr() to return with a failure?

    Regards,
    Brandon
  • Hello,

    In the meantime, I can use the function EMAC_isLinkUp() to detect whether the LAN cable is connected to my board and to the remote station. When I disable the internet connection for the board in the router, I get a quick response from the HTTPCli_initSockAddr and HTTPCli_connect functions.
    But if the DSL cable is not connected to the router, HTTPCli_connect needs about 15s.
    Can I somehow get up faster (eg ping etc) if there is an internet connection?

  • Hi msark,

    Sorry, my response has been delayed as I've been out of the office. Have you made any progress with your issue?
    I have not found a faster way to determine if your device is connected to the Internet. The time you're reporting seems to correlate with the DNS lookup default timeout time. I will check with a colleague to see if they have any suggestions and tell you what I've found early next week.

    Best,
    Brandon
  • Brandon can you please report on your status?
  • Hi msark,

    There is currently no faster way to verify a connection. The DNS resolution time you encounter if you enter a hostname is not configurable and there is currently no API to ping an address directly.

    Regards,

    Brandon