3 Replies Latest reply on Oct 22, 2015 12:29 AM by JoYi_1844281

    How can I understand there is no internet connection

    buay_905486

      Hi,


      Our USI09 wifi module connects to server and sends data to the server over internet. Normally it works perfectly. But, when WiFi connection is OK but there is no internet connection, It assumes that it sends data to the server even if there is no internet connection. All related functions returns WICED_SUCCESS. Is there a function to understand whether there is no internet connection even if there is no problem at the WiFÄ° connection?


      We need urgent answer. Please help.


      Burcak



        • 1. Re: How can I understand there is no internet connection
          JoYi_1844281

          What is your mean No internet connection ? Would you have more clear description ?

           

          The module normal act as WiFi station, get it's IP address from associated network!

          If the associated network did not connected to internet, the wifi module would not know !

           

          The best way to solved this kind of issue is used heartbeat protocol between module and server!

          • 2. Re: How can I understand there is no internet connection
            buay_905486


            We are using persistent TCP connections to the server, and we keep these connections alive as long as device is connected to the wifi AP. The problem is, if at some point internet service is lost, we are not able to detect internet outage. We keep sending messages over this socket assuming the connection is still alive. The send packet method return success even if the message never makes it to the server.

            • 3. Re: How can I understand there is no internet connection
              JoYi_1844281

              As I told! The WiFi module is L2 device,

              It only could detect WiFi signal is lost or not, But IP layer and network stack stuff !

               

              If internet service is lost during normal operation ! There are no good way to detect it !

              Or you could wait the network stack detect it by protocol time out!

               

              The best way is your application do some error checking and implement ACK protocol between application with server!