-->
Page 1 of 1

Several access points and wrong channel

PostPosted: Sun Nov 16, 2014 5:22 am
by aterentiev
Yesterday I noticed very strange behavior after I set up the access point mode AT+CWSAP. It seems to be that ESP8266 continues to support the last AP after creating the newer one.

I'm working on a small hardware that should generate a new AP at startup. The name of the AP is generated randomly. So the command was
AT+CWSAP="Access Point 23-67-31","password",11,3


The first issue was that my AP started on the 6th channel and not on the 11th. I'm not sure what happened, but after a while it changed to the 11th and stayed there. What could be the reason?

Second one... It worked some time long perfectly, so I started to debug the rest, rebooting the chip several times. Every time the chip started it created a new AP with unique numbers in the name. I was very surprised to see that on both my PC and smartphone I can see at least the last three created APs!

After some chip reboots and maybe after some working time the only last one was there. But this time was maybe 10 minutes or more(!). During this time I was able to connect to some (old) access points(!!!).

AT+CWSAP? said there was only one (last) AP.

Is it only my problem or is it a known "feature"? Thank you in advance!

The version is
AT+GMR
00150900

Re: Several access points and wrong channel

PostPosted: Wed Nov 19, 2014 4:08 am
by zioax
Try to use "AT+RST" in the code before other command. If it doesn't work, maybe a fw issue, so update to the last version.

Re: Several access points and wrong channel

PostPosted: Wed Nov 19, 2014 8:43 am
by aterentiev
Thank you, zioax! It looks like it is a reason.
I found it yesterday, you just confirmed my results. Great.

So, the solution is to reset the module with AT+RST every time important parameters/commands like AT+CWMODE are changed or starting AP is done.