ESP8266 Developer Zone The Official ESP8266 Forum 2017-08-11T14:37:48+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=5919 2017-08-11T14:37:48+08:00 2017-08-11T14:37:48+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5919&p=15088#p15088 <![CDATA[Loosing TCP connection on some android devices]]> Im not sure that im posting this in the correct location of the forum, but here it goes.

I am havving issues maintaining a stable tcp connection between the ESP and an android phone. The strange thing is that i've tried the android application on a number of devices, and only one of them are failing so far, a Huawei P10 plus.

Connecting to the AP from the android devices are all good.

The ESP acts as a server. It gets a connection from the P10 plus and the P10 plus sends an array of bytes over TCP. Then the esp proccesess the information, and sends back an array of bytes as a response.
This scenario is then repeated until the client(android app) ends the connection.

Although this wont work with the P10 plus as a client. They connect fine and the initiall packets are beeing transmitted as expected but after around 20 sec it always fails. The ESP sends an RST packet and on the android side a SocketException "Software caused connection abort" are thrown on reading from the inputstream.

I've made a packet capture of this on the phone.

Any help would be greatly appreciated.
Untitled.png

Statistics: Posted by cylinder — Fri Aug 11, 2017 2:37 pm


]]>