Can't connect with AP in AT command mode
Posted: Tue Aug 14, 2018 4:23 pm
Hi, new member! I am trying to use an ESP8266-1 so as to add WiFi to an existing logging product. I would prefer to use AT commands only if possible. After some problems with terminal emulators, I can now communicate with the module. I just can't seem to connect to my AP (router). Some details:
1. The module is plugged into a breadboard with good power and ground (I would show an image but I cant figure how to insert it, whats the url of a jpeg image???)
2. I am using a 3.3v ttl-to-rs232 module, connected to a PC
3. I can set the mode ok and confirm by readback (mode is 1, also tried 3)- AT+CWMODE=1
4. I can scan for local APs, my router shows up OK:
AT+CWLAP<cr><lf>, returns list of APs, including mine:
+CWLAP:(3,"FiOS-I74UB,-32,"48:5d:23:7e:84:ae",6,38,0) [note- not real mac addr]
5. Trying AT+CWJAP="FiOS-I74UB","---my pw--"<cr><lf> always results in an immediate ERROR, no details
6. I am trying to act as a station, eventually I want to get to UART-WiFi passthrough.
7. Connections: Pin1=gnd, 2=txd, 3=n/c, 4=3.3v, 5=n/c, 6=n/c, 7=rxd, 8=3.3V
It looks like the module is not even attempting to connect, since the error is immediate (seems like it should take at least a little while). Also if it tried, shouldn't it return "+CWJAP:<error code> FAIL" if the attempt is made? I am using the same ssid and password as all the other devices on the router, I even 'forgot' and re-connected an Android with no problem. I also tried using the "AT+CWJAP_CUR" command, no help.
I have a scope on the 3.3V line, and it looks quite clean (using a 10A bench supply). My guess is that I'm doing something basically wrong. The 'ERROR' message is not very helpful. Could be syntax, although I have been very careful entering the strings. Any suggestions would be much appreciated, I am at a standstill!
1. The module is plugged into a breadboard with good power and ground (I would show an image but I cant figure how to insert it, whats the url of a jpeg image???)
2. I am using a 3.3v ttl-to-rs232 module, connected to a PC
3. I can set the mode ok and confirm by readback (mode is 1, also tried 3)- AT+CWMODE=1
4. I can scan for local APs, my router shows up OK:
AT+CWLAP<cr><lf>, returns list of APs, including mine:
+CWLAP:(3,"FiOS-I74UB,-32,"48:5d:23:7e:84:ae",6,38,0) [note- not real mac addr]
5. Trying AT+CWJAP="FiOS-I74UB","---my pw--"<cr><lf> always results in an immediate ERROR, no details
6. I am trying to act as a station, eventually I want to get to UART-WiFi passthrough.
7. Connections: Pin1=gnd, 2=txd, 3=n/c, 4=3.3v, 5=n/c, 6=n/c, 7=rxd, 8=3.3V
It looks like the module is not even attempting to connect, since the error is immediate (seems like it should take at least a little while). Also if it tried, shouldn't it return "+CWJAP:<error code> FAIL" if the attempt is made? I am using the same ssid and password as all the other devices on the router, I even 'forgot' and re-connected an Android with no problem. I also tried using the "AT+CWJAP_CUR" command, no help.
I have a scope on the 3.3V line, and it looks quite clean (using a 10A bench supply). My guess is that I'm doing something basically wrong. The 'ERROR' message is not very helpful. Could be syntax, although I have been very careful entering the strings. Any suggestions would be much appreciated, I am at a standstill!