Chat freely about anything...

User avatar
By lotus49
#47836 I am waiting for my FTDI serial adapter to arrive so I decided to try to use an Arduino Uno to communicate with my ESP8266 (ESP-01 to be specific) as described in this post http://www.martyncurrey.com/arduino-to- ... mincation/.

I am embarrassed to admit that initially I connected my breadboard power supply to the wrong end of my breadboard thereby reversing the polarity. This resulted in a very warm ESP8266 but otherwise, I think I got away with it because putting it on the correct end has resulted in it largely working with the AT commands. I had to change the speed with which I communicate with the ESP8266 to 9600 from the default 115200 as my Arduino seemed to struggle at the higher speed using softserial (I was using the hardware RX/TX pins to communicate with my computer).

So, for example, if I send the AT+GMR command to my ESP8266 I get the following result:

Code: Select allAT+GMR
AT version:0.40.0.0(Aug  8 2015 14:45:58)
SDK version:1.3.0
Ai-Thinker Technology Co.,Ltd.
Build:1.3.0.2 Sep 11 2015 11:48:04
OK


So far, so good.

However, when I tried to list the local wifi APs, I got the following result:

Code: Select allAT+CWLAP
+CWLAP:(4,"Bears3",-80,"2c:b0:5d:43:de:b6",1,-4)
+CWLAP:(4,"Bears1",-83,"9c:d3:6d:8a:3e:78",1,-4)
+CWLAP:(3,"BTHub5-9M78",-87,"5c:dc:96:ea:63:54",1,1)
+CWLAP(,"TWf-wthFN"-9,62d:9:e:3:5"11)
CWA:(,"Tif-",88"2:c:6ea635",,)+CLP:3"ArB etok"-9,28373:4:9:2"140
CLA:(,vrgnmda4052",78"0:ef2a2c:c",,)+CLP:4"V0176-G,-3,c:f:4:c:828,6-)+WLP:4"TLTAK-372"-7,"83ce40:a:3"6,)
+WLP(4"lik,-8,1:b:b:e:c:0,60
CWA:(,"K1567,8,"0:e0fc1d:1"6,)+WLP:4"TLKAK8752,86"e:9:d:f755",,1)
+WLP(4"lian ",49"0:65a2:9:a"105)
CWAP(,"TiF-wt-FN"-8,6:3:4:3:f08,1,1)
CWAP(,"THb-3K8,76"8:ce4337:0",120+CLA:4,VM031-G"-8,9cd:6:2:d:8,1,-)
+WLP(0"TWFiwthFO"-9,"20:d:5:a:2"1,-7)


This looked fine until it got to the fourth AP by which time the output is clearly corrupt. Since I am only communicating at 9600 baud between both my PC and the Arduino and between the Arduino and the ESP8266, I would have thought they could both keep up easily.

Does anyone have any idea what's going on?
User avatar
By akc185
#47889 This happened to me as well. I changed baud rate for Soft serial of arduino to higher speed than esp (in my case 115200 kbps) and a RESET to esp8266 aftter loading updated program to Arduino saved my day.
Kindly let us know if this works for you or not.
User avatar
By lotus49
#47900
akc185 wrote:This happened to me as well. I changed baud rate for Soft serial of arduino to higher speed than esp (in my case 115200 kbps) and a RESET to esp8266 aftter loading updated program to Arduino saved my day.


I am a little confused by your reply as the softserial rate is the communication with the ESP not the PC.

Do you mean:

PC<------9600------>Arduino<-----115200----->ESP

or the other way round?
User avatar
By lotus49
#48155
akc185 wrote:This happened to me as well. I changed baud rate for Soft serial of arduino to higher speed than esp (in my case 115200 kbps) and a RESET to esp8266 aftter loading updated program to Arduino saved my day.
Kindly let us know if this works for you or not.

It helped but didn't eliminate the problem entirely.

Fortunately my NodeMCU dev board and the FTDI cable have turned up so I don't need to worry about it now.

Thanks for the help.