ESP8266 send reliability. ( < 25%)
Posted: Mon May 25, 2015 5:22 am
Finally got my esp8266 working. Connects to wifi just fine everything. I'm using an arduino uno with a few sensors and the esp to send that data to mysql. My wifi is N only so the esp is connecting to that.
Like I said everything works just fine except for the fact that the send fails about 77% of the time. I added a couple of counters and let it run overnight. Here is the code , http://pastebin.com/5vNiPwm7 .
I've tried using a short/long delay after line 199 but that just made it worse. The amount of data is short and I only have this running once per minute.
Anything that can be done to troubleshoot why its failing? Or something that needs to be changed to make it send more reliably?
EDIT: I wanted to add a few things that I've since tried. I put in a 470uf capacitor just to make sure it wasn't a power issue, that didn't help. I also swapped out the ESP unit with another just to be sure.
I've also notice that the longer it runs the more it fails. Also, and this might be anecdotal, but the longer it runs the more garbage I get in my secondary serial debug session.
Lastly, I put in a few lines to debug whether it was linking or not. It seems to link every time after running AT+CIPSTART but fails to send the data 75% of the time. ( The 75% figure holds up after 8 hours of continuous running.)
Thanks
Like I said everything works just fine except for the fact that the send fails about 77% of the time. I added a couple of counters and let it run overnight. Here is the code , http://pastebin.com/5vNiPwm7 .
I've tried using a short/long delay after line 199 but that just made it worse. The amount of data is short and I only have this running once per minute.
Anything that can be done to troubleshoot why its failing? Or something that needs to be changed to make it send more reliably?
EDIT: I wanted to add a few things that I've since tried. I put in a 470uf capacitor just to make sure it wasn't a power issue, that didn't help. I also swapped out the ESP unit with another just to be sure.
I've also notice that the longer it runs the more it fails. Also, and this might be anecdotal, but the longer it runs the more garbage I get in my secondary serial debug session.
Lastly, I put in a few lines to debug whether it was linking or not. It seems to link every time after running AT+CIPSTART but fails to send the data 75% of the time. ( The 75% figure holds up after 8 hours of continuous running.)
Thanks