ESP8266 Developer Zone The Official ESP8266 Forum 2016-08-08T14:34:15+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=1324 2016-08-08T14:34:15+08:00 2016-08-08T14:34:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1324&p=8321#p8321 <![CDATA[Re: ESP8266 completely unreliable]]>
I am also having similar problems with getting a reliable TCP data stream, did you find a way to fix this?

regards,

Statistics: Posted by George_ — Mon Aug 08, 2016 2:34 pm


]]>
2015-11-23T16:55:28+08:00 2015-11-23T16:55:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1324&p=4718#p4718 <![CDATA[Re: ESP8266 completely unreliable]]>
Sorry that we could not duplicate your problem.

Here is our sample codes http://bbs.espressif.com/viewforum.php?f=31, could it help ?

Could you please provide your test code, or UART output logs, or WiFi captured packets for debugging ?

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Mon Nov 23, 2015 4:55 pm


]]>
2015-11-20T01:08:26+08:00 2015-11-20T01:08:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1324&p=4669#p4669 <![CDATA[Re: ESP8266 completely unreliable]]>
We don't have 'test code' as such but there is ESP application code that replaces the AT set. We would need to provide a full description of this. Also this interfaces with a PIC microcontroller. With respect to the slow TCP handling, on of our team has found the following:

'Reading through the forums, there does seem to a recognition that the TCP throughput is slow , around an aggregate of 7Kb/sec with TCP interpacket delays of upto 0.8 of a sec, ie random delays.'

Also

'However there seems to be anecdotal evidence that the RTOS version of the SDK results in faster TCP traffic, ( by how much, I can't tell)'

Do you, or anyone else have experience of the TCP operation using the RTOS? Random delays are not acceptable for our application. Imagine your car brake operated with an ESP ! Our application is not so safety critical but does involve real-time control of quite expensive items.

Mike Bolton

Statistics: Posted by MikeBolton — Fri Nov 20, 2015 1:08 am


]]>
2015-11-18T10:15:37+08:00 2015-11-18T10:15:37+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1324&p=4638#p4638 <![CDATA[Re: ESP8266 completely unreliable]]>
Please provide your test code, we will have a try.

If there are UART output logs, or WiFi captured packets for debugging, it will be even better.

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Wed Nov 18, 2015 10:15 am


]]>
2015-11-18T00:04:04+08:00 2015-11-18T00:04:04+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1324&p=4634#p4634 <![CDATA[Re: ESP8266 completely unreliable]]>
A USART dump would mean nothing to you as we don't use the AT code but our own short command version.

Mike Bolton

Statistics: Posted by MikeBolton — Wed Nov 18, 2015 12:04 am


]]>
2015-11-09T15:18:58+08:00 2015-11-09T15:18:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1324&p=4509#p4509 <![CDATA[Re: ESP8266 completely unreliable]]>
You need to capture the WiFi packets.
Could you use PC to communicate with ESP8266 through WiFi, and use wireshark to capture the WiFi packets ?
UART output logs can also help a little, could you provide the UART output logs for debugging ?

Statistics: Posted by ESP_Faye — Mon Nov 09, 2015 3:18 pm


]]>
2015-11-08T19:37:57+08:00 2015-11-08T19:37:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1324&p=4485#p4485 <![CDATA[Re: ESP8266 completely unreliable]]>
How can I use Wireshark (which I have) to capture packets when all I have is a Smartphone and the ESP-01? The only comms I have is via the ESP USART lines. I am monitoring the traffic to and from the ESP USART with a PC program. My Wireshark works on an Ethernet connection. Can I set up Wireshark on another PC to act as a sniffer of the WiFi? (I am running out of available PCs for this)

The serious unreliability issues have not gone away. The delay between the Phone sending and something coming out of the ESP USART is between immediate and many seconds. (TCP/IP) and completely unpredictable. No use for a real-time control scheme. Messages getting stuck in the TCP stack?

We are not using the AT command set as this is far to slow and clumsy. We have our own ESP code that communicates with a PIC microcontroller that replaces the AT code. Our objective is to receive TCP info from a Smartphone app and send this to a CAN network and from CAN back to the Phone when needed.

Mike Bolton

Statistics: Posted by MikeBolton — Sun Nov 08, 2015 7:37 pm


]]>
2015-11-03T10:26:05+08:00 2015-11-03T10:26:05+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1324&p=4425#p4425 <![CDATA[Re: ESP8266 completely unreliable]]>
Could you please provide the captured WiFi packets for debugging ?

You can capture the WiFi packets by omnipeek, or wireshark, or other tools.

Statistics: Posted by ESP_Faye — Tue Nov 03, 2015 10:26 am


]]>
2015-11-02T04:56:18+08:00 2015-11-02T04:56:18+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1324&p=4403#p4403 <![CDATA[ESP8266 completely unreliable]]>
1. When we try to connect the WiFi using DHCP, the phone sometimes connects immediately, sometimes after a while and occasionally not at all. We have also tried the 'touching' of the antenna as reported by others which sometimes allowed connection quicker.

2. When we do get a connection and set up the module for a SoftAP/ TCP server, the Smartphone app connects quickly sometimes, sometimes after several tries and sometimes never. If it takes many tries, it then fails to work correctly. However, if it does connect immediately, it then works correctly, so it is not our code issue.

3. When we do get a correct connection, there are often, (but not predictable) delays between the message being sent from the Smartphone and issuing from the ESP UART. Many times, nothing comes out of the UART at all. Others have reported this apparent TCP delay but it may not even be a TCP issue. This is no use at all for a control application.

Reason for thinking this is the ESP behaviour is different on each power on. It can work fine for weeks then go haywire next time it is powered on. When it is not working correctly, I can power off and on again and it often fixes itself. From my experience, this could be registers not being initialised correctly (at all?) on POR or being corrupted when in use. The relevant routines here are 'hidden' !

As it stands, the ESP8266 in a ESP_01 module is just too unreliable (unpredictable) to be of any use in a 'real-time' control application.

We have wasted too many man-hours on this. The hardware is just what we want. The firmware is in serious need of 'fixing'.

Mike Bolton

Statistics: Posted by MikeBolton — Mon Nov 02, 2015 4:56 am


]]>