Page 4 of 4

Re: Socket issues

Posted: Thu Aug 24, 2017 2:57 am
by ESP_igrr
permal: No luck so far. Please check attached PDF and advise if possible.

Re: Socket issues

Posted: Thu Aug 24, 2017 5:28 pm
by permal
ESP_Iggr: Looks like a standard setup of a default mosquitto docker image, same as I have used.

I tried it again now, using the updated version of tcp_perf, commit fc85cb683d4a5e4c2a5b4cb7d607a3790b0cfb96. At first it looked to be working, but then the same thing happens again. Eventually it fails creating sockets, but I guess that is a programming error in the tool. See attached images (they are in reverse order, but I labeled them and you can see the time stamps).

Update:
I'm still getting this behavior consistently. Simply resetting the device allows it to successfully connect again, but it starts failing again after one or two disconnects. Also, I do not need to start/stop the mosquitto broker to provoke the problem; that was likely an observation-error on my part.

Update two:
If it matters, the network path is as follows: ESP32 -> Unifi AP-AC Pro -> Switch -> Broker.

Re: Socket issues

Posted: Mon Aug 28, 2017 3:35 am
by zhangyanjiao
permal: Please show us your capture information when tcp packet transmit from ESP32 to Unifi AP-AC Pro in detail by WireShark or Ominipeek. Thanks !

Re: Socket issues

Posted: Mon Aug 28, 2017 4:48 am
by permal
Packets between ESP32 and Unifi AP? I'm sorry, but I do not have any such listening devices that lets be sniff the wireless communication. Can a second ESP32 be used for such a thing, if so, how?

If you actually mean the packets at the receiving end (mosquitto container) then that is what I've shown in earlier posts.

Re: Socket issues

Posted: Sat Nov 04, 2017 10:15 pm
by permal
Status update. I think I've finally found the cause of the problem discussed in this thread - it has turned out to be a bug in the MQTT broker. After updating to mosquitto 1.4.14 (from 1.4.8) it is finally running stable.