2017-09-26 11:48 AM
I'm trying to get a SPWF04SA to connect to a WAP with no success. Whatever I do, the radio seems to come up in MiniAP mode (wifi_mode=3). I'm sending the following commands, in UART mode, waiting for a positive response from each one before continuing:
AT+S.WIFI=0
AT+S.SSIDTXT=wap_ssidAT+S.SCFG=wifi_wpa_psk_text,wap_pwdAT+S.SCFG=wifi_priv_mode,2AT+S.SCFG=wifi_mode,1AT+S.SCFG=ip_use_dhcpc,1AT+S.WCFGAT+S.RESETAT+S.WIFI=1Here's what the last two give me:
AT+S.RESET
+WIND:2:Reset+WIND:1:Poweron:170216-fd39c59-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:39:HW in miniAP mode
+WIND:32:WiFi Hardware Started+WIND:26:Started AP:iwm-BD-01-56+WIND:24:WiFi Up:0:192.168.0.50All GPIO pins are pulled low.
What am I doing wrong?
Thanks,
Steve
#spwf04sa2017-10-29 05:22 AM
If you are using FW1.0.0, the one currently available online,
wifi_priv_mode == 2 is not allowed. miniAP is not supporting WPA security.
FW1.1.0 (very soon online) will support this feature too.