Blea scan passif debian buster plante (commande pasvend)

Bonjour,

A force de me pencher sur ce sujet je ne suis pas sûr que le problème vienne du plugin mais peut être trouverais-je tout de même de l’aide ici.

J’ai un problème avec le plugin blea, le demon plante et voici le log

[2020-06-22 17:09:33.947][DEBUG] : Daemon is ready
[2020-06-22 17:09:34.277][WARNING] : GLOBAL------Exception on scanner (trying to resolve by myself 14): Failed to execute management command 'pasvend'
[2020-06-22 17:09:34.726][WARNING] : GLOBAL------Exception on scanner (trying to resolve by myself 15): Failed to execute management command 'pasvend'
[2020-06-22 17:09:35.175][WARNING] : GLOBAL------Exception on scanner (trying to resolve by myself 16): Failed to execute management command 'pasvend'
[2020-06-22 17:09:35.629][WARNING] : GLOBAL------Exception on scanner (trying to resolve by myself 17): Failed to execute management command 'pasvend'
[2020-06-22 17:09:36.074][WARNING] : GLOBAL------Exception on scanner (trying to resolve by myself 18): Failed to execute management command 'pasvend'
[2020-06-22 17:09:36.526][WARNING] : GLOBAL------Exception on scanner (trying to resolve by myself 19): Failed to execute management command 'pasvend'
[2020-06-22 17:09:36.985][WARNING] : GLOBAL------Exception on scanner (trying to resolve by myself 20): Failed to execute management command 'pasvend'
[2020-06-22 17:09:37.440][ERROR] : GLOBAL------Exception on scanner (didn't resolve there is an issue with bluetooth) : Failed to execute management command 'pasvend'
[2020-06-22 17:09:37.441][INFO] : GLOBAL------Shutting down due to errors
[2020-06-22 17:09:37.442][DEBUG] : Send to jeedom :  {'learn_mode': 0, 'source': 'local'}
[2020-06-22 17:09:37.448][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-06-22 17:09:37.457][DEBUG] : http://127.0.0.1:80 "POST /plugins/blea/core/php/jeeBlea.php?apikey=#macléapi# HTTP/1.1" 200 0
[2020-06-22 17:09:39.442][DEBUG] : GLOBAL------Shutdown
[2020-06-22 17:09:39.442][DEBUG] : GLOBAL------Removing PID file /tmp/jeedom/blea/deamon.pid
[2020-06-22 17:09:39.443][DEBUG] : GLOBAL------Closing all potential bluetooth connection
[2020-06-22 17:09:39.719][DEBUG] : LoopNetServer Thread stopped
[2020-06-22 17:09:39.719][DEBUG] : Exit 0

j’ai vu que la commande pasvend de bluepy-helper correspondait à l’arrêt d’un scan passif, j’ai donc modifié la config du plugin pour faire un scan actif et tout fonctionne correctement.

J’ai essayer de faire un scan passif depuis debian directement avec bluepy-helper mais sans succés, j’ai une erreur badState. Alors est-ce que je reproduis le problème ou utilise mal bluepy-helper ça je ne sais pas.

La commande « le on » de bluepy-helper fonctionne bien mais « pasv » ou « pasvend » retourne l’erreur « badState ». Parce que, d’après le code de bluepy-helper; je ne suis pas dans l’état connecté et effectivement avec la commande « stat » je vois que je suis à l’état « disc ».

Les commandes scan et scanend fonctionne bien par contre.

Je suis sur une distrib debian buster. Sur un Dell Optiplex. C’est le bluetooth interne mais j’ai essayé avec un dongle USB et j’ai le même problème.

Si quelqu’un a une idée, j’ai peur que les piles de mes NUT se vident encore plus vite, déjà que cela ne tient pas bien longtemps.

Merci

la commande en ssh

hciconfig

te retourne quoi ?

quel version de jeedom ?

hci0:   Type: Primary  Bus: USB
        BD Address: 18:1D:EA:39:3E:FF  ACL MTU: 1021:4  SCO MTU: 96:6
        UP RUNNING
        RX bytes:45402953 acl:0 sco:0 events:1320015 errors:0
        TX bytes:3996616 acl:0 sco:0 commands:419790 errors:0

et pour jeedom c’est la version v4.0.58

Bonjour,
As-tu trouver une solution à ton problème ?
J’ai le même comportement sur un NUC10, Chipset intégré Bluetooth v5
Tu penses que le fonctionnement actif peut être plus énergivore pour les NUT ?

Merci

Hello, non je n’ai pas trouvé de solution mais je n’ai pas l’impression que mes piles se vident plus vide donc je reste comme ça. Au pire j’utiliserai une antenne déporté type raspberry zero