cancel
Showing results for 
Search instead for 
Did you mean: 

SPWF04SA seems to be stuck in miniAP mode

Steve Fairhead
Associate II
Posted on September 26, 2017 at 20:48

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_ssid

AT+S.SCFG=wifi_wpa_psk_text,wap_pwd

AT+S.SCFG=wifi_priv_mode,2

AT+S.SCFG=wifi_mode,1

AT+S.SCFG=ip_use_dhcpc,1

AT+S.WCFG

AT+S.RESET

AT+S.WIFI=1

Here'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:20

AT+S.WIFI=1

AT-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.50

All GPIO pins are pulled low.

What am I doing wrong?

Thanks,

Steve

#spwf04sa
1 REPLY 1
Posted on October 29, 2017 at 13:22

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.