jshridha / anovamaster

BSD 2-Clause "Simplified" License
5 stars 5 forks source link

Disconnect after exactly 4mn35 #9

Open domotiquefacile opened 2 years ago

domotiquefacile commented 2 years ago

I have an Anova Precision Cooker Bluetooth and a Raspberry Pi Zero 2 W. I managed to have a connection but unfortunately the connection is dropped each time after between 4mn36 and 4mn 34:

Feb 12 14:43:02 Trying to connect to B4:99:4C:67:D6:BA
Feb 12 14:43:03 Start connection timeout monitor. Will idle timeout in 299.998309 seconds.
Feb 12 14:43:03 Already connected, skipping connect()
Feb 12 14:43:12 Already connected, skipping connect()
Feb 12 14:43:20 Already connected, skipping connect()
[...]
Feb 12 14:47:29 Already connected, skipping connect()
Feb 12 14:47:32 Connection error (TypeError), disconnecting.
Feb 12 14:47:37 Trying to connect to B4:99:4C:67:D6:BA
Feb 12 14:47:38 Start connection timeout monitor. Will idle timeout in 299.99836 seconds.
Feb 12 14:47:38 Already connected, skipping connect()
Feb 12 14:47:38 Unknown status:
Feb 12 14:55:37 AnovaMaster starting...
Feb 12 14:55:37 Setting up connection
Feb 12 14:55:37 Trying to connect to B4:99:4C:67:D6:BA
Feb 12 14:55:38 Start connection timeout monitor. Will idle timeout in 299.999025 seconds.
Feb 12 14:55:38 Already connected, skipping connect()
Feb 12 14:55:38 MQTT connected with result code 0
Feb 12 14:55:40 Running main loop
Feb 12 14:55:45 Already connected, skipping connect()
Feb 12 14:55:52 Already connected, skipping connect()
[...]
Feb 12 14:59:58 Start connection timeout monitor. Will idle timeout in 298.681718 seconds.
Feb 12 15:00:02 Already connected, skipping connect()
Feb 12 15:00:05 Connection error (TypeError), disconnecting.
Feb 12 15:00:10 Trying to connect to B4:99:4C:67:D6:BA
Feb 12 15:00:10 Start connection timeout monitor. Will idle timeout in 299.998588 seconds.
Feb 12 15:00:10 Already connected, skipping connect()
Feb 12 15:00:11 Unknown status:

The log stopped after the "Unknow status" line until I restart the service. If I restart the service, it connects again without any issue. When it is connected, it is working perfectly (I can change the temperature and start/stop). The regular time for disconnection (4mn35 = 275 seconds) is somehow suspicious. Do you have an idea what could be the issue ? Thanks