Closed marcoCasamento closed 1 year ago
Somehow it looks like the wire protocol is broken for some reason in your case. I have not seen this myself, but I will go and look in my MQTT logs to see if that is really the case. Has you situation resolved it self? Or still seeing this strange behaviour?
Yes, sorry, this must be closed!
I’ve had the same doubt that there were some connection issues.
I’ve put a ping running for a few hours and it reported less than 1% of loss packets, but still SOME of them were losts. I’ve changed the ESP board with no luck, then I’ve tried to change firmware and I had the same problem.
Finally, last weekend I’ve moved the container running mosquitto to a different server and I had 24+ hours without problem! So the problem is NOT in the firmware and this must be closed. Sorry, I should have put an update on the issue.
Just yesterday evening I’ve also discovered that my linux server was using two ip addresses (one static and one by dhcp client). Removing the address from dhcp for some unknown reason put the lost packet to 0.
From: Robert van den Breemen @.> Sent: martedì 20 dicembre 2022 14:07 To: rvdbreemen/OTGW-firmware @.> Cc: Marco Casamento @.>; Author @.> Subject: Re: [rvdbreemen/OTGW-firmware] MQTT broker not connected (Issue #149)
Somehow it looks like the wire protocol is broken for some reason in your case. I have not seen this myself, but I will go and look in my MQTT logs to see if that is really the case. Has you situation resolved it self? Or still seeing this strange behaviour?
— Reply to this email directly, view it on GitHub https://github.com/rvdbreemen/OTGW-firmware/issues/149#issuecomment-1359324375 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AABW2Y7CMDKIRU3AKO2IPALWOGVNZANCNFSM6AAAAAASPXYU7M . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AABW2Y2NF2BAWUEP6IXKE7TWOGVNZA5CNFSM6AAAAAASPXYU7OWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSRAWSNO.gif Message ID: @. @.> >
Thanks for letting me know.
Hi and thanks for the great FW. I use the firmware on a Nodosvop v2 with a PIC16F88 on PIC FW 5.0.1 and MCU FW 0.9.5+4eb7d24 (30-05-2022). It's configured on a MQTT server that I run in a container and seems to works just fine, but I've noticed that HomeAssistant about every 10/15 minutes say that all entities provided by the MQTT integrations are unavailable. If I connect through telnet on the MCU I see:
After a while it reconnects and things start to work again:
I've already checked MQTT logs (seems fine but I'm not an expert) and WiFi connection that seems good, probably best proof is the solid telnet connection while printing error messages. What can be the problem ? How can I troubleshoot it ?
UPDATE It turns out I looked at the wrong place for MQTT logs. MQTT server indeed logs some relevant errors: