Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ESP32-S2 TCP Previous Segment Not Captured

Hello,

I'm having an issue with my ESP32-S2-SOLO-2U-N4 device where occasionally I am getting a "TCP Previous Segment Not Captured" message in response to a data packet coming in. Please see file here: https://www.dropbox.com/scl/fi/9xl8h932vkmyi8i2bshez/ESP32-S2_TCP_Previous_Segment.pcapng?rlkey=17c50hca8i4cazzaucapv08c9&st=f4w2z2qk&dl=0

A little background info - I have a LabVIEW application that sends packets of data (7 bytes) every ~50ms to my ESP32-S2. On the other end of the ESP32-S2 I have an MCU. So the ESP32-S2 is really just a liaison between the two (I understand that the ESP device can act as an MCU as well... These are design constraints I currently have). Anyways, the ESP32-S2 forwards the TCP data to Serial to the MCU, the MCU processes the data and responds via Serial with a 14-byte packet. The ESP32-S2 takes that packet and sends it over TCP back to LabVIEW to read.

Note: This is a pretty large file. The main IP addresses here are 192.168.1.201 (my PC w/ LabVIEW) and 192.168.1.170 (ESP32-S2) but some lines of interest are 2992-2995, 2329-2332, and 1757-1760 (among others). You'll notice that the two communicate well the vast majority of the time, but occasionally this error happens and it takes ~1 second to get back to normal comms which I can not have.

I've tried a slew of different programming methods, firmware, and such with no luck. The only thing really remaining for me to try would be using the ESP-IDF but I am having a very difficult time even installing the software so I've kind of turned away from that (at the moment, anyway). Thanks in advance.