Chat freely about anything...

User avatar
By JMCol
#46780 As the titel says, the command AT+CWJAP fails.
I already posted in an old thread on last Saterday but it passed probably unnoticed.

The module in a ESP-7 and the power supply comes from an old PC.

On booting at 74880 baudrate I get this:
Code: Select allets Jan  8 2013,rst cause:1, boot mode:(3,7)

load 0x40100000, len 816, room 16
tail 0
chksum 0x8d
load 0x3ffe8000, len 788, room 8
tail 12
chksum 0xcf
ho 0 tail 12 room 4
load 0x3ffe8314, len 288, room 12
tail 4
chksum 0xcf
csum 0xcf

2nd boot version : 1.2
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size : 8Mbit
jump to run user1


Continuing at 115200 baudrate, the AT commands "AT+GMR" and "AT+CWLAP" are normal:
Code: Select allAT+GMR

AT version:0.25.0.0(Jun  5 2015 16:27:16)
SDK version:1.1.1
compile time:Jun  5 2015 21:03:10

AT+CWLAP

+CWLAP:(0,"Wifi Collette",-78,"f8:d1:11:4c:e8:96",1)
+CWLAP:(0,"Tenda_202538",-46,"c8:3a:35:20:25:38",6)

OK


As you noticed, both AP's have no password.

If I try to connect to one of these AP's I get this:
Code: Select allAT+CWJAP_DEF="Wifi Collette",""

+CWJAP:1

FAIL


I tried the AT+CWMODE with 1, 2 or 3 (Station, AP or both).
The voltage is 3.32V. It is mesured on the entry of the ESP module.
I tried two ESP8266 on the specific router (a Tenda whis is at 75 cm away from the ESP).
I also tried to join the router which I use for Internet ("Wifi Collette", a TP-LINK router which is 8 m away from the ESP).
I check the spelling of the AT command and looked for spaces within the command.
Everything returned an ERROR but it worked 5 days ago.
I really don't know what to do.
Do you have any idea ?
User avatar
By JMCol
#46965 Hello eduperez.
I was not aware of your reply, so I discoverd it this morning.
One of the routers has no spaces, but I will try what you suggested, especially your second proposal.
Of course, I will keep the forum informed of the results.
User avatar
By JMCol
#46967 I tried your second option. Your are a saviour. I really didn' know what to do because it is the first time I use a password for the router. It was even uneasy to find the place in the router where to write the password because I am not accustomed to it.
Now the command is successfull. I even took advantage of this opportunity to simplify the name of the router.

202.jpg
202.jpg (8.16 KiB) Viewed 6266 times