FreeRTOS problem with softAP.

kostbill
Posts: 7
Joined: Sat Feb 27, 2016 10:05 pm

FreeRTOS problem with softAP.

Postby kostbill » Sat Apr 09, 2016 5:03 am

Hello.

I am using the latest FreeRTOS and I cannot make the esp8266 work as softAP.

This is the code I am using inside the user_init:

Code: Select all

   
//start soft AP mode.
struct softap_config softapconfig;

wifi_set_opmode(SOFTAP_MODE);
wifi_softap_get_config(&softapconfig);
memset(softapconfig.ssid, 0, 32);
memset(softapconfig.password, 0, 64);

sprintf(softapconfig.ssid, "ESP8266");
sprintf(softapconfig.password, "12345678");
softapconfig.authmode = AUTH_WPA_WPA2_PSK;
softapconfig.ssid_len = 0;
softapconfig.channel = 1;
softapconfig.max_connection = 4;
softapconfig.ssid_hidden = 0;
softapconfig.beacon_interval = 400;

wifi_softap_set_config(&softapconfig);


I have tried all the different variations of the authmode, different values for channel and beacon interval.
In my smartphone, I cannot see the ESP8266.

In the terminal, I see this:

chksum 0x9d
load 0x3ffe8000, len 2508, room 0
tail 12
chksum 0xba
ho 0 tail 12 room 4
load 0x3ffe89d0, len 1200, room 12
tail 4
chksum 0xd1


And then nothing.

Any help?

Thanks.

kostbill
Posts: 7
Joined: Sat Feb 27, 2016 10:05 pm

Re: FreeRTOS problem with softAP.

Postby kostbill » Tue Apr 12, 2016 2:30 am

It turns out that it is not the softAP that is not working, but the module. I am working on the esp-12E.

So, I put an esp-01 and it works fine.

I tried again the 12E and still it doesn't work.

I tried another 12E and it does not work again.

The two esp-12E, seem to be dead now! If I try to download any program, they do the same. Stop after boot.

The weird thing is that they were working before that.

I suspect it is the Makefile, because the esp-12E has a different flash from the 01.

Any advice? Are they dead?

sathishkumar
Posts: 1
Joined: Sat May 28, 2016 2:44 am

Re: FreeRTOS problem with softAP.

Postby sathishkumar » Sat May 28, 2016 2:56 am

I think reflashing with another app would resolve this..

Who is online

Users browsing this forum: No registered users and 13 guests