cancel
Showing results for 
Search instead for 
Did you mean: 

SPWF04 Station Disassociation

Jobin Joseph
Associate II
Posted on February 03, 2018 at 06:29

I am using SPWF04 module for embedded web server application. I can access web pages on the web server from the PC/laptop, but when i access from android phone wifi module reports station disassociation.

8 REPLIES 8
Elio Cometti
Senior II
Posted on February 05, 2018 at 14:18

Can you please detail the scenario when the module reports station disassociation? console log, what is the station doing, ecc.

I suppose your SPWF04 is configured as MiniAP, isn't it?

Posted on February 05, 2018 at 16:39

The SPWF04 configured as MiniAP. When i connect the wifi on the phone, it showing as connecting...... obtaining ip address..... and this process is continuing. On the console showing station is associated and after few seconds showing station is disassociated and this is process is continuing. 

at

AT-S.OK

AT+S.FCFG

AT-S.OK

AT+S.RESET

+WIND:2:Reset

+WIND:1:Poweron:171117-0328fe3-SPWF04S

+WIND:13:Copyright (c) 2012-2017 STMicroelectronics, Inc. All rights Reserved:SPWF04SA

+WIND:65:Factory Reset:1

+WIND:0:Console active

+WIND:3:Watchdog Running:20

+WIND:32:WiFi Hardware Started

+WIND:21:WiFi Scanning

+WIND:35:WiFi Scan Complete:00

AT+S.WIFI=0

AT-S.OK

+WIND:49:WPA Terminated:0

+WIND:38:WiFi Powered Down

at+s.ssidtxt=Release Tool

AT-S.OK

AT+S.SCFG=wifi_priv_mode,1

AT-S.OK

AT+S.SCFG=wifi_mode,3

AT-S.OK

AT+S.WCFG

AT-S.OK

AT+S.RESET

+WIND:2:Reset

+WIND:1:Poweron:171117-0328fe3-SPWF04S

+WIND:13:Copyright (c) 2012-2017 STMicroelectronics, Inc. All rights Reserved:SPWF04SA

+WIND:0:Console active

+WIND:3:Watchdog Running:20

AT+S.WIFI=1

AT-S.OK

+WIND:32:WiFi Hardware Started

+WIND:26:Started AP:Release Tool

+WIND:24:WiFi Up:0:192.168.0.50

+WIND:24:WiFi Up::fe80:0:0:0:280:e1ff:febd:ff11

+WIND:28:Station Associated:24:DA:9B:17:21:8C:0

+WIND:72:Station Disassociated:24:DA:9B:17:21:8C:8

+WIND:28:Station Associated:24:DA:9B:17:21:8C:0

+WIND:72:Station Disassociated:24:DA:9B:17:21:8C:8

+WIND:28:Station Associated:24:DA:9B:17:21:8C:0

+WIND:72:Station Disassociated:24:DA:9B:17:21:8C:8

+WIND:28:Station Associated:24:DA:9B:17:21:8C:0

AT+S.GCFG

AT-S.List

AT-S.Var:nv_manuf=ST

AT-S.Var:nv_model=SPWF04SA

AT-S.Var:nv_serial=3817Z24857

AT-S.Var:nv_wifi_macaddr=00:80:E1:BD:FF:11

AT-S.Var:standby_time=10

AT-S.Var:standby_enabled=0

AT-S.Var:sleep_enabled=0

AT-S.Var:etf_mode=0

AT-S.Var:blink_led=1

AT-S.Var:ext_volume=3

AT-S.Var:ramdisk_memsize=16

AT-S.Var:aes128_key=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

AT-S.Var:user_desc=anonymous

AT-S.Var:python_script=3:/uPython_test.py

AT-S.Var:python_memsize=32

AT-S.Var:console_enabled=1

AT-S.Var:console_speed=115200

AT-S.Var:console_hwfc=0

AT-S.Var:console_echo=1

AT-S.Var:console_errs=2

AT-S.Var:console_winds=2

AT-S.Var:console_verbose=1

AT-S.Var:console_repeater=0x21

AT-S.Var:console_delimiter=0x2C

AT-S.Var:console_wind_off_low=0x00000000

AT-S.Var:console_wind_off_medium=0x00000000

AT-S.Var:console_wind_off_high=0x00000000

AT-S.Var:wifi_tx_msdu_lifetime=0

AT-S.Var:wifi_rx_msdu_lifetime=0

AT-S.Var:wifi_operational_mode=0x00000011

AT-S.Var:wifi_beacon_wakeup=1

AT-S.Var:wifi_beacon_interval=100

AT-S.Var:wifi_listen_interval=0

AT-S.Var:wifi_rts_threshold=3000

AT-S.Var:wifi_ssid=52:65:6C:65:61:73:65:20:54:6F:6F:6C:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

AT-S.Var:wifi_ssid_len=12

AT-S.Var:wifi_txfail_thresh=5

AT-S.Var:wifi_dtim_period=1

AT-S.Var:wifi_add_tim_ie=0

AT-S.Var:wifi_region=1

AT-S.Var:wifi_ht_mode=1

AT-S.Var:wifi_channelnum=6

AT-S.Var:wifi_opr_rate_mask=0x003FFFCF

AT-S.Var:wifi_bas_rate_mask=0x0000000F

AT-S.Var:wifi_mode=3

AT-S.Var:wifi_auth_type=0

AT-S.Var:wifi_atim_window=0

AT-S.Var:wifi_powersave=0

AT-S.Var:wifi_tx_power=18

AT-S.Var:wifi_rssi_thresh=0

AT-S.Var:wifi_rssi_hyst=0

AT-S.Var:wifi_ap_idle_timeout=120

AT-S.Var:wifi_beacon_loss_thresh=10

AT-S.Var:wifi_priv_mode=1

AT-S.Var:wifi_wep_keys[0]=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

AT-S.Var:wifi_wep_keys[1]=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

AT-S.Var:wifi_wep_keys[2]=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

AT-S.Var:wifi_wep_keys[3]=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

AT-S.Var:wifi_wep_key_lens=00:00:00:00

AT-S.Var:wifi_wep_default_key=0

AT-S.Var:wifi_wpa_psk_raw=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

AT-S.Var:wifi_wpa_psk_text=

AT-S.Var:wifi_eap_identity=identity

AT-S.Var:

mailto:wifi_eap_anon_identity=anonymous@identity.org

AT-S.Var:wifi_eap_passwd=password

AT-S.Var:wifi_eap_type=0

AT-S.Var:wifi_eap_skip_datechecks=0

AT-S.Var:wifi_wps_walk_time=120

AT-S.Var:wifi_wps_pin=1234567

AT-S.Var:ip_sock_memsize=1

AT-S.Var:ip_sock_threshold=0

AT-S.Var:ip_dhcp_lease_time=120

AT-S.Var:ip_macfilter=00:00:00:00:00:00

AT-S.Var:ip_num_clients=5

AT-S.Var:ip_allow_port_scans=1

AT-S.Var:ip_use_v6=1

AT-S.Var:ip_use_dhcpd=1

AT-S.Var:ip_use_httpd=1

AT-S.Var:ip_use_tftpd=1

AT-S.Var:ip_use_dhcpc=2

AT-S.Var:ip_hostname=iwm-BD-FF-11

AT-S.Var:ip_apdomainname=captiveportal.net

AT-S.Var:ip_apredirect=firstset.html

AT-S.Var:ip_ipaddr=192.168.0.50

AT-S.Var:ip_netmask=255.255.255.0

AT-S.Var:ip_gw=192.168.0.1

AT-S.Var:ip_dns1=208.67.222.222

AT-S.Var:ip_dns2=208.67.220.220

AT-S.Var:ip_local=0:0:0:0:0:0:0:0

AT-S.Var:ip_dns1v6=0:0:0:0:0:0:0:0

AT-S.Var:ip_dns2v6=0:0:0:0:0:0:0:0

AT-S.Var:ip_dhcp_timeout=20

AT-S.Var:ip_ntp_server1=ptbtime1.ptb.de

AT-S.Var:ip_ntp_server2=ntp0.ipv6.fau.de

AT-S.Var:ip_ntp_refresh=3600

AT-S.Var:ip_ntp_startup=1

AT-S.Var:ip_mdns_domain_name=SPWF04S-Default

AT-S.Var:ip_mdns_device_name_ttl=120

AT-S.Var:ip_mdns_services_name=SPWF04S-WebSrv SPWF04S-TFTPSrv

AT-S.Var:ip_mdns_services_prot=_http._tcp _tftp._udp

AT-S.Var:ip_mdns_services_keys=dev1 dev2

AT-S.Var:ip_mdns_services_vals=number1 number2

AT-S.Var:ip_mdns_services_port=80 69

AT-S.Var:ip_mdns_services_ttl=120 60

AT-S.Var:ip_mdns_startup=01:01

AT-S.OK

AT+S.STS

AT-S.List

AT-S.Var:build=171117-0328fe3-SPWF04S

AT-S.Var:fw_version=1.1.0

AT-S.Var:boot_version=1.0

AT-S.Var:var_version=2

AT-S.Var:free_heap=38216

AT-S.Var:min_heap=35360

AT-S.Var:system_time=946689264

AT-S.Var:system_uptime=177

AT-S.Var:system_sleeptime=0

AT-S.Var:reset_reason=2

AT-S.Var:startup=0

AT-S.Var:random_number=3136117926

AT-S.Var:gpio_enable=0x0000

AT-S.Var:app_fs=1

AT-S.Var:ram_fs=1

AT-S.Var:user_fs=1

AT-S.Var:extvol_fs=0

AT-S.Var:nv_power_cycles=28

AT-S.Var:nv_wdog_resets=1

AT-S.Var:nv_reset_cycles=61

AT-S.Var:wifi_state=10

AT-S.Var:wifi_own_macaddr=00:80:E1:BD:FF:11

AT-S.Var:wifi_bssid=00:80:E1:BD:FF:11

AT-S.Var:wifi_aid=0

AT-S.Var:wifi_channelnum=6

AT-S.Var:wifi_sup_rate_mask=0x003FFFCF

AT-S.Var:wifi_bas_rate_mask=0x0000000F

AT-S.Var:wifi_chan_activity=0x00001FFF

AT-S.Var:wifi_max_tx_power=18

AT-S.Var:wifi_gf_mode=0

AT-S.Var:wifi_reg_country=

AT-S.Var:wifi_dtim_period=0

AT-S.Var:wifi_num_assoc=1

AT-S.Var:ip_from_AutoIP=0

AT-S.Var:ip_ipaddr=192.168.0.50

AT-S.Var:ip_netmask=255.255.255.0

AT-S.Var:ip_gw=192.168.0.1

AT-S.Var:ip_dns1=208.67.222.222

AT-S.Var:ip_dns2=208.67.220.220

AT-S.Var:ip_linklocal=fe80:0:0:0:280:e1ff:febd:ff11

AT-S.Var:ip_local=0:0:0:0:0:0:0:0

AT-S.Var:ip_dns1v6=0:0:0:0:0:0:0:0

AT-S.Var:ip_dns2v6=0:0:0:0:0:0:0:0

AT-S.OK

+WIND:72:Station Disassociated:24:DA:9B:17:21:8C:8

+WIND:28:Station Associated:24:DA:9B:17:21:8C:0

+WIND:72:Station Disassociated:24:DA:9B:17:21:8C:8
Posted on February 05, 2018 at 19:35

From log I understand you are setting WEP encryption without a password.

I'm not sure it is a valid configuration.

Actually, I cannot get an IP until I set a valid password (40/104 bits) in the SPWF04.

Ex.:

pwd=54321

AT+S.SCFG=wifi_wep_keys[0],3534333231

AT+S.SCFG=wifi_wep_key_lens,05

Ex:

pwd=1234567890123

AT+S.SCFG=wifi_wep_keys[0],31323334353637383930313233

AT+S.SCFG=wifi_wep_key_lens,0D

Posted on February 05, 2018 at 23:01

See the attached console log, i implemented password and still same cannot connect with android phone.

But i can connect with laptop without any issue. Actually i was using version FW1.0.0, this version dont have any connection issue with both PC and phone.

________________

Attachments :

teraterm1.log.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hy4S&d=%2Fa%2F0X0000000b3a%2FYyCLyAOlm6_KjxnhAXpqwj0Bhj3.dmZg5sKKPdExUZ4&asPdf=false
Elio Cometti
Senior II
Posted on February 06, 2018 at 10:16

Thanks for the log.

Is the phone disassociating during the access to the web server, or is the phone failing to get an IP?

Posted on February 06, 2018 at 14:59

I am not accessing web server because its not even connecting to the wifi properly. I think phone is  failing to get an IP. When i connect  the wifi on the phone it show

 connecting...... obtaining ip address..... and this process is continues.

Posted on February 06, 2018 at 15:36

Can you please capture the DHCP Offer or ACK packet sent by the SPWF04 to the phone and send to me?

Also please try setting a static IP on the phone for the 'Release Tool' network.

Posted on February 06, 2018 at 16:08

How i can

capture the DHCP Offer or ACK packet sent by the SPWF04 to the phone?