Alerte et plantage régulier depuis Debian 11

Bonjour,
depuis l’upgrade en débian11 j’ai régulièrement des alertes
Pouvez vous m’aider à corriger ou faut-il passer à un autre plugins ?
J’utilisais ce plugins combiné à BLEA pour gérer la présence même si je savais que les 2 plugins en // n’étaient pas recommandé mais cela fonctionnait parfaitement pendant 4 ans.
Depuis Debian11, j’ai supprimé BLEA dans l’attente de le remplacer par TGW mais en attendant je voulais d’abord stabiliser la detection des téléphones via mon antenne Sena.
Voici le log :

-------------------- TRUNCATED LOG --------------------
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:13:21] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffb51b6ee0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:13:51] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffb65096d0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:14:06] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffb657efd0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:14:21] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffb51b6c10>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:14:36] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffb520deb0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:14:51] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffb657efd0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:15:01] ERROR [root](Thread-2) : Suspecting an issue with the bluetooth, stop monitoring
[2024-12-25 17:15:05] ERROR  : Arret de l'antenne local car alive=0
Can't set page timeout on hci0: Connection timed out (110)
[2024-12-25 17:20:09] ERROR [root](MainThread) : Unable to set PageTimeout to 1.5625s for controller hci0
[2024-12-25 17:20:10] ERROR  : Impossible de lancer le démon phone_detection, relancer le démon en debug et vérifiez la log
Can't set page timeout on hci0: Connection timed out (110)
[2024-12-25 17:25:08] ERROR [root](MainThread) : Unable to set PageTimeout to 1.5625s for controller hci0
[2024-12-25 17:25:10] ERROR  : Impossible de lancer le démon phone_detection, relancer le démon en debug et vérifiez la log
[2024-12-25 17:30:11] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffa3080250>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:34:15] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffa3933430>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:34:40] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffa490eaf0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:34:55] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffa3933430>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:35:10] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffa496dfd0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:35:40] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffa491a100>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:35:55] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffa491ab20>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:36:10] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffa3920eb0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:36:19] ERROR [root](Thread-2) : Suspecting an issue with the bluetooth, stop monitoring
[2024-12-25 17:36:39] ERROR  : Arret de l'antenne local car alive=0
Can't set page timeout on hci0: Connection timed out (110)
[2024-12-25 17:40:09] ERROR [root](MainThread) : Unable to set PageTimeout to 1.5625s for controller hci0
[2024-12-25 17:40:09] ERROR  : Impossible de lancer le démon phone_detection, relancer le démon en debug et vérifiez la log
Can't set page timeout on hci0: Connection timed out (110)
[2024-12-25 17:45:09] ERROR [root](MainThread) : Unable to set PageTimeout to 1.5625s for controller hci0
[2024-12-25 17:45:10] ERROR  : Impossible de lancer le démon phone_detection, relancer le démon en debug et vérifiez la log
[2024-12-25 17:50:10] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffff82292250>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:50:38] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffff83b29af0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:50:53] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffff83badfd0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:51:08] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffff82adb8b0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:51:23] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffff82adbee0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:51:38] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffff82b45430>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 17:51:48] ERROR [root](Thread-2) : Suspecting an issue with the bluetooth, stop monitoring
[2024-12-25 17:52:07] ERROR  : Arret de l'antenne local car alive=0
Can't set page timeout on hci0: Connection timed out (110)
[2024-12-25 17:55:08] ERROR [root](MainThread) : Unable to set PageTimeout to 1.5625s for controller hci0
[2024-12-25 17:55:10] ERROR  : Impossible de lancer le démon phone_detection, relancer le démon en debug et vérifiez la log
[2024-12-25 18:00:07] ERROR  : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
Can't set page timeout on hci0: Connection timed out (110)
[2024-12-25 18:00:11] ERROR [root](MainThread) : Unable to set PageTimeout to 1.5625s for controller hci0
[2024-12-25 18:00:12] ERROR  : Impossible de lancer le démon phone_detection, relancer le démon en debug et vérifiez la log
[2024-12-25 18:05:04] ERROR  : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2024-12-25 18:05:09] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffff89ab76d0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 21:13:45] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffff8b35f0d0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 21:15:38] ERROR [root](Thread-2) : Suspecting an issue with the bluetooth, stop monitoring
[2024-12-25 21:16:05] ERROR  : Arret de l'antenne local car alive=0
[2024-12-25 21:36:09] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffb1fceaf0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 21:38:04] ERROR [root](Thread-2) : Suspecting an issue with the bluetooth, stop monitoring
[2024-12-25 21:38:09] ERROR  : Arret de l'antenne local car alive=0
[2024-12-25 21:48:26] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffa616dfd0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-25 21:50:19] ERROR [root](Thread-2) : Suspecting an issue with the bluetooth, stop monitoring
[2024-12-25 21:50:39] ERROR  : Arret de l'antenne local car alive=0
[2024-12-26 04:26:12] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffa46e9c10>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-26 06:35:17] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffa46f5a00>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-26 16:51:20] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffa3688d30>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-26 17:02:28] ERROR [root](Thread-2) : Suspecting an issue with the bluetooth, stop monitoring
[2024-12-26 17:02:41] ERROR  : Arret de l'antenne local car alive=0
[2024-12-26 17:58:14] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffb959f0a0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-26 18:01:15] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffb8540f40>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-26 18:01:40] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffb958e340>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 127, in data_received
name=packet[10:].strip(b'\x00').decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 240: invalid start byte
[2024-12-26 22:31:11] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffb959ab50>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-27 09:47:17] ERROR [asyncio](Thread-2) : Fatal error: protocol.data_received() call failed.
protocol: <aiobtname.BTNameRequester object at 0xffffb958ebe0>
transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/var/www/html/plugins/phone_detection/resources/phone_detectiond/aiobtname.py", line 122, in data_received
resu=unpack("ssss",packet[:4])
struct.error: unpack requires a buffer of 4 bytes
[2024-12-27 11:08:29] ERROR [root](Thread-2) : Suspecting an issue with the bluetooth, stop monitoring
[2024-12-27 11:08:44] ERROR  : Arret de l'antenne local car alive=0


Informations Jeedom

Core : 4.4.19 (master)
DNS Jeedom : oui

Plugin : Détection de téléphone (Bluetooth)
Version : 2024-06-01 01:21:53 (stable)
Statut Démon : Démarré - (2024-12-27 11:10:05)

Bonjour,

le fait que quand le demon redemarre il ne puisse pas mettre a jour le « page timeout » sur hci0 montre que le driver est completement en vrac.

il faut arreter le redemarrage automatique du demon phone_detection, re-initialiser le driver bluetooth (hciconfig down, hciconfig up), et verifier que les commandes de base fonctionnent, par exemple recuperer le nom d’un telephone

hcitool -i hci0 name xx:xx:xx:xx:xx:xx

Benoit

Bonsoir Benoit et merci pour ton aide, mes retours sur tes suggestions :

  • Arret du redemarrage automatique du demon phone_detection : OK!
  • re-initialiser le driver bluetooth
    hciconfig down : OK!
    hciconfig up, Réponse :
    hci0: Type: Primary Bus: USB
    BD Address: 00:01:95:53:6A:7C ACL MTU: 310:10 SCO MTU: 64:8
    UP RUNNING
    RX bytes:4661533 acl:0 sco:0 events:60597 errors:0
    TX bytes:305770 acl:0 sco:0 commands:21146 errors:0
    Verifier que les commandes de base fonctionnent, par exemple recuperer le nom d’un telephone :
    hcitool -i hci0 name 08:87:C7:MacMonTel =
    Ok : réponse = le nom de mon Tel
    Le demon n’est plus en redémarrage auto …
    Pour préciser mon problème :
    La détection fonctionne de base et la présence et la disparition des téléphone sont correctement detectées.
    Les alertes apparaissent entre 0 et 10x par 24h et presque systématiquement quand les 2 téléphones surveillés sont absents (je dis presque parce que cela ne m’avait pas marqué au début des alertes mais depuis plusieurs jours c’est jamais).
    Si ce n’était que des alertes, ce ne serait pas grave mais comme des fonctions importantes de domotique sont gérées pas ces informations je souhaiterais trouver un moyen de fiabiliser cette détection

Quand les téléphones sont absents, la fréquence de polling augmente. Tu peux essayer de mettre par exemple 20s quand le téléphone est absent. Cela veut dire que tu seras détecté dans les 20 secondes. Le temps de déclaration du téléphone comme absent doit être un multiple des 20 secondes dans ce cas là

Par exemple:
20s quand téléphone absent
60s quand téléphone présent
120s pour déclarer un téléphone absent

Ok j’ai modifié le polling comme suit :
30s quand téléphone absent
60s quand téléphone présent
120s pour déclarer un téléphone absent

Surprise cette après-midi, j’ai découvert une nouvelle version du plugins !!
Mise à jour ok
Installation des dépendances en cours à 100% depuis 295 min
Aie !! ça tourne en boucle …
Impossible de relancer le demon ???
Que faire ??
hciconfig down
hciconfig up
Ne change rien ???
Un avis, un conseil ??

J’ai désactivé et réactivé le plugins et cela semble fonctionner …

Bonjour

Pour validation du plugin, merci de donner :

  • La page santé
  • Si Antenne locale
  • Si Antennes distantes
  • résultats

Cordialement

Bonjour Echo,
Qu’entendez-vous par Résultat ?
Depuis l’arrêt/relance du Plugins hier soir la détection fonctionne et pas d’alerte.
Mais comme indiqué plus haut dans le fil, les alertes semblent apparaitre quand les 2 téléphone sont absent…