ESP8266: SEND FAIL - causes, how to avoid, and how to recover?
-
- Posts: 3
- Joined: Tue Oct 20, 2015 12:58 am
ESP8266: SEND FAIL - causes, how to avoid, and how to recover?
Postby AndrewNode » Tue Oct 20, 2015 9:53 pm
We have an ESP8266 that works well usually (AT 0.5 with firmware 1.4 - latest release as of today).
The problem is, when we sent larger amounts of data (like 200KB), we occassionally get a SEND FAIL message from the ESP8266.
We are waiting for "SEND OK" after each AT+CIPSEND.
We have tried sending in 2040 byte chunks and smaller chunks (no difference)
We have tried varying delays between each successful AT+CIPSEND, from 100ms to 2seconds (no difference)
We have tried adjusting the AT+RFPOWER - and this helped a little, but didn't completely solve the problem.
I'm using the ESP8266 as an AP and transmitting data to an iPhone that is right next to it.
What would cause the SEND FAIL response from the ESP8266? We have a similar IC that we're testing alongside the ESP8266 that sends without the failures.
How can you recover from the send fail / re-start the sending?
The problem is, when we sent larger amounts of data (like 200KB), we occassionally get a SEND FAIL message from the ESP8266.
We are waiting for "SEND OK" after each AT+CIPSEND.
We have tried sending in 2040 byte chunks and smaller chunks (no difference)
We have tried varying delays between each successful AT+CIPSEND, from 100ms to 2seconds (no difference)
We have tried adjusting the AT+RFPOWER - and this helped a little, but didn't completely solve the problem.
I'm using the ESP8266 as an AP and transmitting data to an iPhone that is right next to it.
What would cause the SEND FAIL response from the ESP8266? We have a similar IC that we're testing alongside the ESP8266 that sends without the failures.
How can you recover from the send fail / re-start the sending?
-
- Posts: 3
- Joined: Tue Oct 20, 2015 12:58 am
Re: ESP8266: SEND FAIL - causes, how to avoid, and how to recover?
Postby AndrewNode » Mon Oct 26, 2015 9:23 pm
After the send fail, if I try to resend, I don't get any response from the 8266's UART
I have been using a packet sniffer and what I noticed is that the 8266 does a number of retransmissions - perhaps as expected, then sends a TCP connection close packet, and then a few more retransmissions before stopping communications.
(I had posted twice about this same topic as I didn't realize my intiial post was simply awaiting approval - but I had briefly mentioned about using a packet sniffer there).
I have been using a packet sniffer and what I noticed is that the 8266 does a number of retransmissions - perhaps as expected, then sends a TCP connection close packet, and then a few more retransmissions before stopping communications.
(I had posted twice about this same topic as I didn't realize my intiial post was simply awaiting approval - but I had briefly mentioned about using a packet sniffer there).
Re: ESP8266: SEND FAIL - causes, how to avoid, and how to recover?
Postby ESP_Faye » Tue Oct 27, 2015 2:31 pm
Hi,
Retransmissions mean that your network environment is not good. So the TCP transmission fail.
If you could provide the AT logs and WiFi packets, we will help analyze them.
Thanks for your interest in ESP8266 !
Retransmissions mean that your network environment is not good. So the TCP transmission fail.
If you could provide the AT logs and WiFi packets, we will help analyze them.
Thanks for your interest in ESP8266 !
Who is online
Users browsing this forum: No registered users and 3 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.