Problem with AP + STA mode

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello,

We have customized SN8205 module and when We'd tested apsta app on this it's working fproperly.

But when we had modified app to our requirement its not working properly.

commented below line in apsta.mk so we can configure device at runtime.

#WIFI_CONFIG_DCT_H := wifi_config_dct.h

Please find below flow of new app:

1) Write config SSID and PASSPHRASE to dct.  

2) Start config interface  

3) Configure module using html pages through phone 

4) Connect to the STA SSID and PASSPHRASE given by user  

5) Write softap SSID and PASSPHRASE to dct

6) Start softap interface

Above all the steps are worked properly.But when i'm trying to connect with softap it's not connecting with my PC or Phone.

Please find attached apsta.c file.

Any help in this case will be appreciated.

Thanks & Regards

prashant

0 Likes
3 Replies
Anonymous
Not applicable

seyhanabirjepatil

Any update on above question??

We'd also tested above scenario with 3.1.2 but any device is not connecting with softAP and PASSPHRASE.

0 Likes
Anonymous
Not applicable

Any updates regarding this??

In 5th step in place of softAP mode if we are trying config mode then it's working perfect.

So anyplease help with softAP mode.

0 Likes
Anonymous
Not applicable

Can you try as below for your reference?

Below is our partial code.

1. I think that it need data length field setting.

strcpy( (char *) ( ex_dct_wifi_local.soft_ap_settings.SSID.value ), ex_cmd_parsed_buf[0] );

  ex_dct_wifi_local.soft_ap_settings.SSID.length = strlen( ex_cmd_parsed_buf[0] );

   

    ex_dct_wifi_local.soft_ap_settings.security = get_security_value( secu_type );

    strcpy( ex_dct_wifi_local.soft_ap_settings.security_key, ex_cmd_parsed_buf[2] );

    ex_dct_wifi_local.soft_ap_settings.security_key_length = strlen( ex_cmd_parsed_buf[2] );

    ex_dct_wifi_local.soft_ap_settings.channel = atoi( ex_cmd_parsed_buf[3] );

0 Likes