Skip to main content
Don david
Associate
April 10, 2017
Question

SPWF01SA Wifi Direct mode setting

  • April 10, 2017
  • 1 reply
  • 1604 views
Posted on April 10, 2017 at 13:10

Hi All,

I bought SPWF01SA wifi module from ST and i want to set it up in Wi-FI Direct mode and transfer data between two wifi direct devices. Can anybody tell me how to proceed further

Kind Regards

Don David

#spwf01sa-wifimodule
    This topic has been closed for replies.

    1 reply

    Gerardo GALLUCCI
    ST Employee
    April 10, 2017
    Posted on April 10, 2017 at 18:04

    Hi David,

    ST SPWF0xS modules are not implementing WiFi Direct mode. You can setup the ad-hoc mode, called IBSS into datasheet and user manuals. Or, better, use the miniAP capability. You can setup SPWF module to act as a basic AP, providing link up to 5 devices. Also DHCP/DNS servers are running in this case!

    Hope it helps

    jerry

    ps: if you are using an evaluation board, you can enable miniAP capability with a simple HW reset with GPIO7 low at boot time. Use both push-buttons.

    Don david
    Don davidAuthor
    Associate
    April 11, 2017
    Posted on April 11, 2017 at 09:14

    Hi Gerardo,

    Thanks for the reply. I tried to set the SPWF01SA in miniAP modeby using the following command

    AT+S.SCFG=wifi_mode,3

     

    AT+S.SCFG=wifi_priv_mode,0

     

    at+s.ssidtxt=

    EM

     

    at&w

     

    at+cfun=1

    And after this i connected it to my PC and entered 

    http://captiveportal.net

    in the address bar and tried to setup the miniAP mode as per the datasheet and following error pops up.0690X00000606jGQAQ.png

    And in the COM Port i am receiving the Forbidden error message.

    0690X00000603cnQAA.jpg

    Can you tell what is going wrong here.

    Best Wishes

    Don

    Gerardo GALLUCCI
    ST Employee
    April 11, 2017
    Posted on April 11, 2017 at 18:53

    When in miniAP, and 'ip_apredirect' configuration variable is not empty, default homepage is changed.

    Now, if you want to really perform the remote configuration of the module via HTTP, this is the right page!

    Why are you getting that message? Because password is wrong

    Fill 'PassKey' field with content of 'user_desc' configuration variable. Default is 'anonymous'.

    Let me know...

    jerry

    ps: there is a good handson tutorial on st.com/wifimodules page