How can I understand there is no internet connection

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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



0 Likes
1 Solution

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!

View solution in original post

3 Replies
JoYi_1844281
Level 6
Level 6
100 sign-ins 100 replies posted 50 likes received

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!

0 Likes
Anonymous
Not applicable


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.

0 Likes

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!