AnsweredAssumed Answered

SPWF01S Station connection problems

Question asked by bertrand.cyrille on Dec 17, 2014
Latest reply on Jan 7, 2015 by Artem.Kravchenko
Hi all,
I'm using the WiFi module to connect to infra WiFi in socket server mode.
The module return (through serial link) that connection to WiFi is OK.
But sometimes, in the WiFi router interface (a Freebox), the module is seen but stay in a not reachable status. At the end, it's not possible to send data to socket server. Even a ping to module address doesn't work.
Sometimes it works perfectly... for few hours and then back to unreachable.

SPWF01S output on startup :
+WIND:1:Poweron (141106-0950875-SPWF01S)
+WIND:13:ST SPWF01SA1 IWM: Copyright (c) 2012-2014 STMicroelectronics, Inc.  All rights Reserved.
+WIND:3:Watchdog Running
+WIND:0:Console active
+WIND:32:WiFi Hardware Started
+WIND:19:WiFi Join:F4:CA:E5:D3:65:34
+WIND:25:WiFi Association with 'freebox_EVB' successful
+WIND:51:WPA Handshake Complete
+WIND:24:WiFi Up:192.168.1.43
OK

The OK at the end is the answer of socket server start command :
AT+S.SOCKD=27024

My config config is :
# Dumping All Configuration Keys:
#  nv_manuf = ST
#  nv_model = SPWF01SA1
#  nv_serial = 4313D07237
#  nv_wifi_macaddr = 00:80:E1:FF:B5:14
#  blink_led = 0
#  wind_off_low = 0x00200000
#  wind_off_medium = 0x00000008
#  wind_off_high = 0x00000000
#  user_desc = IoTMesh
#  escape_seq = at+s.
#  localecho1 = 0
#  console1_speed = 115200
#  console1_hwfc = 0
#  console1_enabled = 1
#  sleep_enabled = 0
#  standby_enabled = 0
#  standby_time = 10
#  wifi_tx_msdu_lifetime = 0
#  wifi_rx_msdu_lifetime = 0
#  wifi_operational_mode = 0x00000011
#  wifi_beacon_wakeup = 1
#  wifi_beacon_interval = 100
#  wifi_listen_interval = 0
#  wifi_rts_threshold = 3000
#  wifi_ssid = 66:72:65:65:62:6F:78:5F:45:56:42:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
#  wifi_ssid_len = 11
#  wifi_channelnum = 6
#  wifi_opr_rate_mask = 0x00003FCF
#  wifi_bas_rate_mask = 0x0000000F
#  wifi_mode = 1
#  wifi_auth_type = 0
#  wifi_atim_window = 0
#  wifi_powersave = 0
#  wifi_tx_power = 18
#  wifi_rssi_thresh = 0
#  wifi_rssi_hyst = 0
#  wifi_ap_idle_timeout = 120
#  wifi_beacon_loss_thresh = 10
#  wifi_priv_mode = 2
#  wifi_wep_keys[0] = 49:6F:54:4D:65:73:68:30:30:38:30:45:31:00:00:00
#  wifi_wep_keys[1] = 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
#  wifi_wep_keys[2] = 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
#  wifi_wep_keys[3] = 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
#  wifi_wep_key_lens = 0D:00:00:00
#  wifi_wep_default_key = 0
#  wifi_wpa_psk_raw = XXX...
#  wifi_wpa_psk_text = XXX...
#  ip_use_dhcp = 0
#  ip_use_httpd = 1
#  ip_mtu = 1500
#  ip_hostname = GWM4_0080E1
#  ip_apdomainname = gwm4_iotmesh.net
#  ip_ipaddr = 192.168.1.51
#  ip_netmask = 255.255.255.0
#  ip_gw = 192.168.1.254
#  ip_dns = 192.168.1.254
#  ip_http_get_recv_timeout = 3000
#  ip_dhcp_timeout = 20
#  ip_sockd_timeout = 250

OK

I really don't understand why module is sometimes reachable and sometimes not.

Any ideas ?
Thanks.

Outcomes