2018-02-02 09:29 PM
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.
2018-02-05 05:18 AM
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?
2018-02-05 08:39 AM
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.OKAT+S.FCFGAT-S.OKAT+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:00AT+S.WIFI=0AT-S.OK+WIND:49:WPA Terminated:0+WIND:38:WiFi Powered Downat+s.ssidtxt=Release ToolAT-S.OKAT+S.SCFG=wifi_priv_mode,1AT-S.OKAT+S.SCFG=wifi_mode,3AT-S.OKAT+S.WCFGAT-S.OKAT+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:20AT+S.WIFI=1AT-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:0AT+S.GCFGAT-S.ListAT-S.Var:nv_manuf=STAT-S.Var:nv_model=SPWF04SAAT-S.Var:nv_serial=3817Z24857AT-S.Var:nv_wifi_macaddr=00:80:E1:BD:FF:11AT-S.Var:standby_time=10AT-S.Var:standby_enabled=0AT-S.Var:sleep_enabled=0AT-S.Var:etf_mode=0AT-S.Var:blink_led=1AT-S.Var:ext_volume=3AT-S.Var:ramdisk_memsize=16AT-S.Var:aes128_key=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00AT-S.Var:user_desc=anonymousAT-S.Var:python_script=3:/uPython_test.pyAT-S.Var:python_memsize=32AT-S.Var:console_enabled=1AT-S.Var:console_speed=115200AT-S.Var:console_hwfc=0AT-S.Var:console_echo=1AT-S.Var:console_errs=2AT-S.Var:console_winds=2AT-S.Var:console_verbose=1AT-S.Var:console_repeater=0x21AT-S.Var:console_delimiter=0x2CAT-S.Var:console_wind_off_low=0x00000000AT-S.Var:console_wind_off_medium=0x00000000AT-S.Var:console_wind_off_high=0x00000000AT-S.Var:wifi_tx_msdu_lifetime=0AT-S.Var:wifi_rx_msdu_lifetime=0AT-S.Var:wifi_operational_mode=0x00000011AT-S.Var:wifi_beacon_wakeup=1AT-S.Var:wifi_beacon_interval=100AT-S.Var:wifi_listen_interval=0AT-S.Var:wifi_rts_threshold=3000AT-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:00AT-S.Var:wifi_ssid_len=12AT-S.Var:wifi_txfail_thresh=5AT-S.Var:wifi_dtim_period=1AT-S.Var:wifi_add_tim_ie=0AT-S.Var:wifi_region=1AT-S.Var:wifi_ht_mode=1AT-S.Var:wifi_channelnum=6AT-S.Var:wifi_opr_rate_mask=0x003FFFCFAT-S.Var:wifi_bas_rate_mask=0x0000000FAT-S.Var:wifi_mode=3AT-S.Var:wifi_auth_type=0AT-S.Var:wifi_atim_window=0AT-S.Var:wifi_powersave=0AT-S.Var:wifi_tx_power=18AT-S.Var:wifi_rssi_thresh=0AT-S.Var:wifi_rssi_hyst=0AT-S.Var:wifi_ap_idle_timeout=120AT-S.Var:wifi_beacon_loss_thresh=10AT-S.Var:wifi_priv_mode=1AT-S.Var:wifi_wep_keys[0]=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00AT-S.Var:wifi_wep_keys[1]=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00AT-S.Var:wifi_wep_keys[2]=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00AT-S.Var:wifi_wep_keys[3]=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00AT-S.Var:wifi_wep_key_lens=00:00:00:00AT-S.Var:wifi_wep_default_key=0AT-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:00AT-S.Var:wifi_wpa_psk_text=AT-S.Var:wifi_eap_identity=identityAT-S.Var:
mailto:wifi_eap_anon_identity=anonymous@identity.org
AT-S.Var:wifi_eap_passwd=passwordAT-S.Var:wifi_eap_type=0AT-S.Var:wifi_eap_skip_datechecks=0AT-S.Var:wifi_wps_walk_time=120AT-S.Var:wifi_wps_pin=1234567AT-S.Var:ip_sock_memsize=1AT-S.Var:ip_sock_threshold=0AT-S.Var:ip_dhcp_lease_time=120AT-S.Var:ip_macfilter=00:00:00:00:00:00AT-S.Var:ip_num_clients=5AT-S.Var:ip_allow_port_scans=1AT-S.Var:ip_use_v6=1AT-S.Var:ip_use_dhcpd=1AT-S.Var:ip_use_httpd=1AT-S.Var:ip_use_tftpd=1AT-S.Var:ip_use_dhcpc=2AT-S.Var:ip_hostname=iwm-BD-FF-11AT-S.Var:ip_apdomainname=captiveportal.netAT-S.Var:ip_apredirect=firstset.htmlAT-S.Var:ip_ipaddr=192.168.0.50AT-S.Var:ip_netmask=255.255.255.0AT-S.Var:ip_gw=192.168.0.1AT-S.Var:ip_dns1=208.67.222.222AT-S.Var:ip_dns2=208.67.220.220AT-S.Var:ip_local=0:0:0:0:0:0:0:0AT-S.Var:ip_dns1v6=0:0:0:0:0:0:0:0AT-S.Var:ip_dns2v6=0:0:0:0:0:0:0:0AT-S.Var:ip_dhcp_timeout=20AT-S.Var:ip_ntp_server1=ptbtime1.ptb.deAT-S.Var:ip_ntp_server2=ntp0.ipv6.fau.deAT-S.Var:ip_ntp_refresh=3600AT-S.Var:ip_ntp_startup=1AT-S.Var:ip_mdns_domain_name=SPWF04S-DefaultAT-S.Var:ip_mdns_device_name_ttl=120AT-S.Var:ip_mdns_services_name=SPWF04S-WebSrv SPWF04S-TFTPSrvAT-S.Var:ip_mdns_services_prot=_http._tcp _tftp._udpAT-S.Var:ip_mdns_services_keys=dev1 dev2AT-S.Var:ip_mdns_services_vals=number1 number2AT-S.Var:ip_mdns_services_port=80 69AT-S.Var:ip_mdns_services_ttl=120 60AT-S.Var:ip_mdns_startup=01:01AT-S.OKAT+S.STSAT-S.ListAT-S.Var:build=171117-0328fe3-SPWF04SAT-S.Var:fw_version=1.1.0AT-S.Var:boot_version=1.0AT-S.Var:var_version=2AT-S.Var:free_heap=38216AT-S.Var:min_heap=35360AT-S.Var:system_time=946689264AT-S.Var:system_uptime=177AT-S.Var:system_sleeptime=0AT-S.Var:reset_reason=2AT-S.Var:startup=0AT-S.Var:random_number=3136117926AT-S.Var:gpio_enable=0x0000AT-S.Var:app_fs=1AT-S.Var:ram_fs=1AT-S.Var:user_fs=1AT-S.Var:extvol_fs=0AT-S.Var:nv_power_cycles=28AT-S.Var:nv_wdog_resets=1AT-S.Var:nv_reset_cycles=61AT-S.Var:wifi_state=10AT-S.Var:wifi_own_macaddr=00:80:E1:BD:FF:11AT-S.Var:wifi_bssid=00:80:E1:BD:FF:11AT-S.Var:wifi_aid=0AT-S.Var:wifi_channelnum=6AT-S.Var:wifi_sup_rate_mask=0x003FFFCFAT-S.Var:wifi_bas_rate_mask=0x0000000FAT-S.Var:wifi_chan_activity=0x00001FFFAT-S.Var:wifi_max_tx_power=18AT-S.Var:wifi_gf_mode=0AT-S.Var:wifi_reg_country=AT-S.Var:wifi_dtim_period=0AT-S.Var:wifi_num_assoc=1AT-S.Var:ip_from_AutoIP=0AT-S.Var:ip_ipaddr=192.168.0.50AT-S.Var:ip_netmask=255.255.255.0AT-S.Var:ip_gw=192.168.0.1AT-S.Var:ip_dns1=208.67.222.222AT-S.Var:ip_dns2=208.67.220.220AT-S.Var:ip_linklocal=fe80:0:0:0:280:e1ff:febd:ff11AT-S.Var:ip_local=0:0:0:0:0:0:0:0AT-S.Var:ip_dns1v6=0:0:0:0:0:0:0:0AT-S.Var:ip_dns2v6=0:0:0:0:0:0:0:0AT-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:82018-02-05 11:35 AM
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
2018-02-05 03:01 PM
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=false2018-02-06 01:16 AM
Thanks for the log.
Is the phone disassociating during the access to the web server, or is the phone failing to get an IP?
2018-02-06 06:59 AM
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.
2018-02-06 07:36 AM
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.
2018-02-06 08:08 AM
How i can
capture the DHCP Offer or ACK packet sent by the SPWF04 to the phone?