Problems with the module, LOTS!
Posted: Fri Dec 26, 2014 11:18 am
Hey all,
First post here, I've tried getting help on our Swedish board but they can't figure out what's wrong so I'm trying here now to see if you guys have any idea what might be wrong.
First off, the connections.
I'm running the ESP8266 on 3.3V with a 800mA supply. Data lines are connected through a logic converter to change the voltage on the datalines from 5V from my RS232-UART adapter to 3.3V that the ESP8266 likes. The GPIO0 is floating while not in firmware update mode, I then connect it to GND. CH_PD is always connected to 3.3V. I have common ground between 5V and 3.3V and that's it for the connections.
I don't know which version I had in the module from the beginning, but I've updated to cloud update 00180902 and in the beginning that seemed like a nice firmware. Because when I first started out I couldn't power on the ESP8266 more than once every 10-15 times I tried to start it. Also it seems like if I cut the power for a minute or so it then is able to start like it should. This was not the problem with the cloud firmware 00180902. I could also issue AT+RST and that worked great.
However, I ran into problems when communicating with my server, I will describe that more later on, that made me chat with my Swedish guys and they said that you need to update the firmware to 0.9.2.2 / V00180902_02. So I did, it kinda went back to what it was before cloud update.. I have start problems, I can't do AT+RST again and so on. Also the communication with my server didn't get any better.
So, I thought.. lets try the cloud update again and now it's like before and after the cloud firmware. I have startup problems, I can't do AT+RST.. Now NO firmware seems to work properly.. Also when I do AT+RST I get OK, then the modules locks up and gets very warm..
What's wrong!? I've also tried hooking the RESET pin to VCC but that seems to put the module in the RESET state, the same goes for hooking it up to GND.. So I need to have that floating..
Ok, so when I finally get the module up and running, I run the following commands;
After I send that GET line, after waiting to get a > of course, my server locks up completely.. I feels like it "bans" my IP address for a while and then after a few minutes I can reconnect again. If I do the same with the ESP8266 module, the server locks once again.
If I try www.google.com instead, it works like a charm. But of course, I dont have any page over at google.com so I dont know if I actually accesses that page or not.. but still, I dont get banned from Google and the module responds quickly and all that stuff.
So, I tried a larger string length with AT+CIPSEND=150 and it works.. Well, I dont lock my server up, I dont get any info from the file it runs as that is a simple page that will update a database when the module has connected. So it all seems to work quite ok, I guess.
Except that the module doesn't actually run the webpage that I'm trying to access. I don't get any lines in the log on my server that it has tried to access the page even, but at least, I'm glad it doesnt lock up the server..
So now, asking for some help!
- Why does the connection to my server lock up the server? I can run the webpage in a browser without any problems.. so there's no endless loops or anything..
- Why can't I issue AT+RST anymore so that it restarts itself and doesn't hang itself?
- Why do I have these startup errors?
I've tried with two modules and I get the same results. I'm about to throw everything in the trash cause I'm so tired of all the problems, as if you compare with Youtube videos it all looks so easy, just do this and that and it works.. I do the same, F* OFF to me! I don't understand it..
Please help me out! What should I do, which firmware should I use, in which sequence should my AT commands go, can I do something to the electronics?
Thanks in advance!
First post here, I've tried getting help on our Swedish board but they can't figure out what's wrong so I'm trying here now to see if you guys have any idea what might be wrong.
First off, the connections.
I'm running the ESP8266 on 3.3V with a 800mA supply. Data lines are connected through a logic converter to change the voltage on the datalines from 5V from my RS232-UART adapter to 3.3V that the ESP8266 likes. The GPIO0 is floating while not in firmware update mode, I then connect it to GND. CH_PD is always connected to 3.3V. I have common ground between 5V and 3.3V and that's it for the connections.
I don't know which version I had in the module from the beginning, but I've updated to cloud update 00180902 and in the beginning that seemed like a nice firmware. Because when I first started out I couldn't power on the ESP8266 more than once every 10-15 times I tried to start it. Also it seems like if I cut the power for a minute or so it then is able to start like it should. This was not the problem with the cloud firmware 00180902. I could also issue AT+RST and that worked great.
However, I ran into problems when communicating with my server, I will describe that more later on, that made me chat with my Swedish guys and they said that you need to update the firmware to 0.9.2.2 / V00180902_02. So I did, it kinda went back to what it was before cloud update.. I have start problems, I can't do AT+RST again and so on. Also the communication with my server didn't get any better.
So, I thought.. lets try the cloud update again and now it's like before and after the cloud firmware. I have startup problems, I can't do AT+RST.. Now NO firmware seems to work properly.. Also when I do AT+RST I get OK, then the modules locks up and gets very warm..
What's wrong!? I've also tried hooking the RESET pin to VCC but that seems to put the module in the RESET state, the same goes for hooking it up to GND.. So I need to have that floating..
Ok, so when I finally get the module up and running, I run the following commands;
Code: Select all
AT
I get OK
AT+CWMODE=1
I get OK
AT+CIPMUX=0
I get OK
AT+CIPMODE=0
I get OK
AT+CWJAP="Networkname","password"
Works!
AT+CIFSR
I get correct IP
AT+CIPSTART="TCP","www.myserver.com",80
AT+CIPSEND=66
GET /xxx.php?value1=3\r\n HTTP/1.1\r\nHost: www.myserver.com\r\n\r\n
After I send that GET line, after waiting to get a > of course, my server locks up completely.. I feels like it "bans" my IP address for a while and then after a few minutes I can reconnect again. If I do the same with the ESP8266 module, the server locks once again.
If I try www.google.com instead, it works like a charm. But of course, I dont have any page over at google.com so I dont know if I actually accesses that page or not.. but still, I dont get banned from Google and the module responds quickly and all that stuff.
So, I tried a larger string length with AT+CIPSEND=150 and it works.. Well, I dont lock my server up, I dont get any info from the file it runs as that is a simple page that will update a database when the module has connected. So it all seems to work quite ok, I guess.
Except that the module doesn't actually run the webpage that I'm trying to access. I don't get any lines in the log on my server that it has tried to access the page even, but at least, I'm glad it doesnt lock up the server..
So now, asking for some help!
- Why does the connection to my server lock up the server? I can run the webpage in a browser without any problems.. so there's no endless loops or anything..
- Why can't I issue AT+RST anymore so that it restarts itself and doesn't hang itself?
- Why do I have these startup errors?
I've tried with two modules and I get the same results. I'm about to throw everything in the trash cause I'm so tired of all the problems, as if you compare with Youtube videos it all looks so easy, just do this and that and it works.. I do the same, F* OFF to me! I don't understand it..
Please help me out! What should I do, which firmware should I use, in which sequence should my AT commands go, can I do something to the electronics?
Thanks in advance!