Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

[RTEX] Plugin BLEA - clé USB Bluetooth SENA UD100a - JeedomSmart - Odroid-C2

Répondre
Avatar de l’utilisateur
akenad
Actif
Messages : 697
Inscription : 27 oct. 2017, 11:39

[RTEX] Plugin BLEA - clé USB Bluetooth SENA UD100a - JeedomSmart - Odroid-C2

Message par akenad » 02 janv. 2018, 18:31

Bonjour à tous, c'est akenad :-),

Aujourd'hui je vais vous présenter un retour d'expérience sur la mise en œuvre du plugin BLEA (Bluetooth Advertisement) sur une JeedomSmart 3.1.7 avec la clé USB Bluetooth 4.0 SENA Model Parani-UD100a, décrite ici :
http://www.senanetworks.com/ud100-g03.html

ATTENTION ! : au fournisseur chez qui vous approvisionnez cette clé, ce n'est pas parce qu'elle est rouge et noir qu'elle est d'origine …

J'ai procédé en 3 étapes :
-connexion de la clé sur un port USB de la JeedomSmart
-installation et configuration du plugin BLEA
-prise d'informations système sur la JeedomSmart

1) Connexion de la clé sur un port USB de la JeedomSmart

La JeedomSmart expose alors un port HCI qui peut être utilisé comme port clé Bluetooth dans le plugin BLEA.

2) Installation et configuration du plugin BLEA

Pour configurer le plugin, le mieux est de s'inspirer de la documentation Jeedom officielle ici :
https://jeedom.github.io/plugin-blea/fr_FR/
avec les précisions suivantes :
- lancer l'installation des dépendances
Dans la configuration du plugin BLEA,
- sélectionner comme Port clé Bluetooth dans le menu déroulant : «Adr-MAC-cle» (hci0)
- cliquer sur le bouton sauvegarder (Configuration) et redémarrer le démon

3) Prise d'informations système sur la JeedomSmart

Se connecter en ssh sur la JeedomSmart avec le compte jeedom et lancer les commandes suivantes :

Code : Tout sélectionner

jeedom@jeedom:~$ uname -a
Linux jeedom 3.14.79-94 #1 SMP PREEMPT Mon Nov 21 17:13:27 BRST 2016 aarch64 GNU/Linux

jeedom@jeedom:~$ cat /etc/issue
Debian GNU/Linux 8 \n \l

jeedom@jeedom:~$ lsusb
Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
[…]

jeedom@jeedom:~$ hciconfig -a
hci0:   Type: BR/EDR  Bus: USB
        BD Address: #Adr-MAC-cle# ACL MTU: 310:10  SCO MTU: 64:8
        UP RUNNING PSCAN
        RX bytes:1158 acl:0 sco:0 events:63 errors:0
        TX bytes:1038 acl:0 sco:0 commands:62 errors:2
        Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'jeedom'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous,
        HCI Version: 4.0 (0x6)  Revision: 0x2031
        LMP Version: 4.0 (0x6)  Subversion: 0x2031
        Manufacturer: Cambridge Silicon Radio (10)

jeedom@jeedom:~$ apt-cache policy bluetooth
bluetooth:
  Installed: 5.23-2
  Candidate: 5.23-2+deb8u1
  Version table:
     5.43-2~bpo8 0
        100 http://oph.mdrjr.net/meveric/ jessie/backports arm64 Packages
     5.23-2+deb8u1 0
        500 http://ftp.debian.org/debian/ jessie/main arm64 Packages
        500 http://security.debian.org/ jessie/updates/main arm64 Packages
 *** 5.23-2 0
        100 /var/lib/dpkg/status

jeedom@jeedom:~$ dmesg
[…]
[1128840.726547] usb 1-1.3: new full-speed USB device number 6 using dwc_otg
[1128840.761474] usbcore: registered new interface driver btusb
[1128840.954964] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error
[1134184.108244] Bluetooth: HCI request failed to create LE connection: status 0x0c
[…]

root@jeedom:~# systemctl status bluetooth -l
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
   Active: active (running) since Thu 1970-01-01 00:00:27 UTC; 48 years 0 months ago
     Docs: man:bluetoothd(8)
 Main PID: 434 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─434 /usr/lib/bluetooth/bluetoothd
Jan 01 21:40:23 jeedom bluetoothd[434]: Sap driver initialization failed.
Jan 01 21:40:23 jeedom bluetoothd[434]: sap-server: Operation not permitted (1)
Jan 01 21:40:23 jeedom bluetoothd[434]: hci0 Load Connection Parameters failed: Unknown Command (0x01)
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
L'équipement Awox Smartplug avec ses Commandes On / Off et son bouton « Tester » fonctionne.

Toutefois j'ai relevé les 3 messages d'erreurs suivants qui m'interpellent :
- « jeedom bluetoothd[434]: hci0 Load Connection Parameters failed: Unknown Command (0x01) »
- dmesg « ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error »
- dmesg « Bluetooth: HCI request failed to create LE connection: status 0x0c »

Pas sûr que cela fonctionne correctement quelque soit l'équipement BLE et soit stable dans le temps en l'état.
A noter que cette JeedomSmart est en Debian8, Kernel 3.14.79-94, bluetooth 5.23-2.
L'empilement de cette clé UD100, des versions noyau et bluetooth n'est peut-être pas 100 % compatible BLE.

Je me demande comment se comporterait cette clé UD100 avec une JeedomSmart sous Debian9 (et donc Kernel et bluetooth plus récent).

Pour l'instant je vais rester en production sur l'utilisation de la clé USB Bluetooth ASUS BT400. J'ai d'ailleurs posté récemment un retour d'expérience sur cette clé, accessible directement via le lien « Présentation akenad », en signature de tous mes posts.
Comme je l'avais précisé dans ce précédent post, j'ai fais l'acquisition de la Box domotique JeedomSmart en octobre 2017 et j'avais comme règle jusqu'à présent de la considérer comme une « boîte noire » et de ne pas modifier moi-même son système.

Cette règle va commencer à être difficile à tenir car je serais bien tenté par un passage de la JeedomSmart en Debian9.
Je ne vais pas développer ici, ce n'est pas directement le sujet, mais ça pourrait faire l'objet d'un prochain billet sur le forum « La box JEEDOM SMART ».

Voila j'espère que ce retour d’expérience sera utile aux membres Jeedom.

akenad :-)
Dernière édition par akenad le 05 nov. 2019, 18:04, édité 5 fois.
Présentation akenad
JeedomSmart Debian Stretch
Odroid-C2 eMMC Armbian Buster Kernel 5
RPi3B+ SSD Raspbian Stretch
RPi4B SSD Raspbian Buster
NUC Intel i7Gen7 ProxMox VM Debian Stretch & Buster

FireMan
Timide
Messages : 12
Inscription : 29 déc. 2017, 09:34

Re: Plugin BLEA - clé USB Bluetooth SENA UD100 - JeedomSmart

Message par FireMan » 02 janv. 2018, 22:24

Très intéressant, il semblerai donc que cette clé ai du mal a fonctionner directement sur la Jeedom Smart. Pour ma part elle ne fonctionne pas. Tiens nous informé si tu as du nouveau. J' essaie quelques tests de mon côté avant de la renvoyer.

Avatar de l’utilisateur
akenad
Actif
Messages : 697
Inscription : 27 oct. 2017, 11:39

Re: Plugin BLEA - clé USB Bluetooth SENA UD100 - JeedomSmart

Message par akenad » 03 janv. 2018, 11:12

Bonjour FireMan,

tu as peut-être remarqué dans mon billet que parmi les commandes lancées il y en a une qui fait apparaître la possibilité d'installer un backport en Bluetooth 5.43-2, peut-être que cela améliorerait le fonctionnement de l'UD100a.
La description du paquet en question est ici :
https://oph.mdrjr.net/meveric/dists/jes ... 4/Packages

Je ne vais pas tenter cette mise à jour car j'ai dis que je ne modifierais pas moi même le système de la JeedomSmart.
C'est peut-être un test à faire par l'équipe Jeedom, et si c'est concluant cela pourrait être intégré dans les dépendances.

Par ailleurs comme je l'avais annoncé j'ai publié un billet sur le forum « La box JEEDOM SMART » concernant Debian9,
accessible directement via le lien « Présentation akenad », en signature de tous mes posts.

Si tu as acheté ton UD100a chez le bon fournisseur tu peux peut-être la conserver et patienter.

akenad :-)
Présentation akenad
JeedomSmart Debian Stretch
Odroid-C2 eMMC Armbian Buster Kernel 5
RPi3B+ SSD Raspbian Stretch
RPi4B SSD Raspbian Buster
NUC Intel i7Gen7 ProxMox VM Debian Stretch & Buster

FireMan
Timide
Messages : 12
Inscription : 29 déc. 2017, 09:34

Re: Plugin BLEA - clé USB Bluetooth SENA UD100 - JeedomSmart

Message par FireMan » 03 janv. 2018, 12:41

Merci pour ta réponse, effectivement je vais la garder sous le coude et tenter d' en savoir plus auprès de l' équipe Jeedom.

FireMan
Timide
Messages : 12
Inscription : 29 déc. 2017, 09:34

Re: Plugin BLEA - clé USB Bluetooth SENA UD100 - JeedomSmart

Message par FireMan » 03 janv. 2018, 18:04

Il me met une tonne d' erreurs à la commande : dmesg

Code : Tout sélectionner

[86917.330777] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[87216.516976] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[87216.746541] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[129815.551250] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[129815.777254] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[129816.000268] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[130115.006040] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[130115.228997] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[130115.454148] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[130415.265090] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[130415.488189] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[130415.713223] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[130715.773199] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[130715.999255] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[130716.221782] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[131015.173009] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[131015.406322] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[131015.632135] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[131315.581111] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[131315.811202] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[131316.036176] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[131615.359005] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[131615.582101] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[131615.806151] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[131914.819873] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[131915.044088] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[131915.266001] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[132215.319990] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[132215.545049] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[132215.768126] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[132515.395295] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[132515.623004] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[132515.847141] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[132814.814828] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[132815.041860] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[132815.263909] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[133115.292893] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[133115.525838] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[133115.750016] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[133415.998036] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[133416.221149] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[133416.443194] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[133715.353908] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[133715.576849] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[133715.801002] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[134014.833754] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[134015.070754] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[134015.292830] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[134316.372150] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[134316.604156] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[134316.827243] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[134614.792709] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[134615.020138] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[134615.243773] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[134915.129762] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[134915.352791] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[134915.574856] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[135214.950652] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[135215.174797] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[135215.397786] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[135515.304727] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[135515.529803] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[135515.752887] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[135814.782565] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[135815.008178] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[135815.231682] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[136116.110911] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[136116.348946] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[136116.571050] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[136415.534754] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[136415.767824] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[136415.990859] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[136714.964557] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[136715.186632] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[136715.408684] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[137015.759693] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[137015.983826] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[137016.206871] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[137315.368647] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[137315.600702] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[137315.823813] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[137614.796473] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[137615.019498] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[137615.241586] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[137916.151851] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[137916.379840] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[137916.603930] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[138214.541369] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[138214.764392] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[138214.987504] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[138515.030455] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[138515.255497] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[138515.477575] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[138815.868667] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[138816.091816] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[138816.316763] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[139115.151456] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[139115.377651] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[139115.602560] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[139414.645315] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[139414.868348] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[139415.091390] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[139715.742570] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[139715.970063] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[139716.193692] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[140015.226425] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[140015.450456] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[140015.672520] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[140314.766331] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[140314.995399] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[140315.219292] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[140615.605443] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[140615.836470] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[140616.058699] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[140914.946248] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[140915.171291] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[140915.393452] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[141215.493367] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[141215.723341] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[141215.945505] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[141515.840502] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[141516.072907] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[141516.297606] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[141815.360347] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[141815.585350] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[141815.808456] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[142114.868166] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[142115.094083] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[142115.318277] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[142415.523329] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[142415.752361] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[142415.977418] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[142714.926098] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[142715.150202] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[142715.374267] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[143015.490356] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[143015.716314] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[143015.940377] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[143315.489249] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[143315.715279] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[143315.938390] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[143615.111278] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[143615.336254] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[143615.560247] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[143914.607955] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[143914.831955] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[143915.055061] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[144215.445150] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[144215.669367] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[144215.893641] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[144515.018022] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[144515.240004] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[144515.463140] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[144671.037617] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[144671.262574] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[144671.486717] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[144814.401884] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[144814.630873] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[144814.854949] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[145116.020260] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[145116.243203] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[145116.466401] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[145414.621880] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[145414.854302] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[145415.082965] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[145715.079971] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[145715.303012] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[145715.528131] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[146014.909889] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[146015.135946] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[146015.359656] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[146314.439732] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[146314.673796] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[146314.896834] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[146614.938844] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[146615.164954] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[146615.390976] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[146915.979541] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[146916.205129] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[146916.428228] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[147214.564714] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[147214.789618] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[147215.012858] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[147515.069693] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[147515.294852] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[147515.517830] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[147814.849626] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[147815.073822] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[147815.299865] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[148115.329605] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[148115.556881] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[148115.778970] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[148414.780540] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[148415.004716] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[148415.226846] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[148716.203084] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[148716.429228] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[148716.658169] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[149014.604594] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[149014.829642] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[149015.051742] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[149315.060747] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[149315.288779] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[149315.511861] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[149614.833685] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[149615.062321] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[149615.285725] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[149682.073729] usb 1-1.1: USB disconnect, device number 7
[149688.279619] usb 1-1.1: new full-speed USB device number 8 using dwc_otg
[149688.290909] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[149688.312638] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[149688.334613] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[149688.429663] usb 1-1.1: device descriptor read/64, error -71
[150392.118779] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[150402.838200] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[150611.345472] usb 1-1.1: USB disconnect, device number 8
[150616.193719] usb 1-1.1: new full-speed USB device number 9 using dwc_otg
[150616.444651] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[150632.919912] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[150633.145101] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[150633.368188] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[150664.197348] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[150664.424480] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[150664.648516] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[150686.117406] usb 1-1.1: USB disconnect, device number 9
[150693.641502] usb 1-1.1: new full-speed USB device number 10 using dwc_otg
[150693.652586] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[150693.673908] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[150693.695176] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[150693.791530] usb 1-1.1: device descriptor read/64, error -71
[187058.326753] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[261408.048691] libphy: stmmac-0:00 - Link is Down
[261408.232645] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[261413.048562] libphy: stmmac-0:00 - Link is Up - 1000/Full
[261413.056010] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[261465.047086] libphy: stmmac-0:00 - Link is Down
[261465.148004] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[261470.046942] libphy: stmmac-0:00 - Link is Up - 1000/Full
[261470.054279] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[370115.901107] libphy: stmmac-0:00 - Link is Down
[370115.949861] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[370118.901025] libphy: stmmac-0:00 - Link is Up - 1000/Full
[370118.908254] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[370172.909498] libphy: stmmac-0:00 - Link is Down
[370173.010466] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[370175.909422] libphy: stmmac-0:00 - Link is Up - 1000/Full
[370175.916544] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[500637.973026] usb 1-1.1: USB disconnect, device number 10
[500641.797375] usb 1-1.1: new full-speed USB device number 11 using dwc_otg
[500641.807946] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[500641.828156] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[500642.065827] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[500719.358569] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[500719.583572] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[500719.805683] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[500905.390147] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[500905.612185] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[500905.834312] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[500973.086164] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[501127.563344] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[501127.785388] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[501128.006349] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[501204.816944] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[501205.046915] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[501205.270111] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[501386.775176] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[501505.306065] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[501505.531010] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[501505.755023] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[501600.267411] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[501600.489344] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

[501600.712530] ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error

beber49
Timide
Messages : 197
Inscription : 26 janv. 2017, 20:11

Re: Plugin BLEA - clé USB Bluetooth SENA UD100 - JeedomSmart

Message par beber49 » 08 janv. 2018, 15:50

J'ai la même clef, acheté sur conseils lus sur le site de BLEA sur le site de LEXTRONIC.

Qui pourrait nous aider ?

VKalio
Timide
Messages : 1
Inscription : 17 sept. 2017, 23:23

Re: Plugin BLEA - clé USB Bluetooth SENA UD100 - JeedomSmart

Message par VKalio » 10 janv. 2018, 21:59

Je viens d'acheter et d'installer cette clef sur ma Jeedom Smart et ça fonctionne sur BLEA, mes MiBand 2 et Mi Plant sont bien détectés. Du coup ça me met le doute si tu dis qu'il n'y a pas que des clefs d'origine en circulation, perso achetée sur eBay...

JFM
Timide
Messages : 17
Inscription : 21 août 2017, 13:53

Re: Plugin BLEA - clé USB Bluetooth SENA UD100 - JeedomSmart

Message par JFM » 12 janv. 2018, 19:05

Bonjour

Je viens d'acheter la clé sur le site de lextronics mais du coup j'hésite avant de l'ouvrir.....

A voir vos messages, elle n'a pas l'air de fonctionner si bien que ça sur Jeedom Smart...

JFM
Timide
Messages : 17
Inscription : 21 août 2017, 13:53

Re: Plugin BLEA - clé USB Bluetooth SENA UD100 - JeedomSmart

Message par JFM » 13 janv. 2018, 09:16

Bon je l’ai installé hier soir et tout fonctionne à merveille sans rien faire de spécial !

FireMan
Timide
Messages : 12
Inscription : 29 déc. 2017, 09:34

Re: Plugin BLEA - clé USB Bluetooth SENA UD100 - JeedomSmart

Message par FireMan » 14 janv. 2018, 16:19

J' ai du avoir une clé défaillante

Avatar de l’utilisateur
akenad
Actif
Messages : 697
Inscription : 27 oct. 2017, 11:39

Plugin BLEA - clé USB Bluetooth SENA UD100 - JeedomOdroid

Message par akenad » 16 janv. 2018, 00:28

Bonjour à tous, c'est akenad :-),

Aujourd'hui je vais vous présenter un retour d'expérience sur la mise en œuvre du plugin BLEA (Bluetooth Advertisement) sur une JeedomOdroid 3.1.7 avec la clé USB Bluetooth 4.0 SENA Model Parani-UD100a.

Pour réaliser une JeedomOdroid c'est ici

L'objectif est de refaire pour l'UD100 sur la JeedomOdroid (Debian9) ce que j'avais fais sur la JeedomSmart (Debian8) et voir si cela améliore le fonctionnement.

Pour mémoire j'avais fais fonctionner avec l'UD100 une Awox Smartplug mais j'avais relevé 3 messages d'erreurs qui m'interpellait :
- « jeedom bluetoothd[434]: hci0 Load Connection Parameters failed: Unknown Command (0x01) »
- dmesg « ERROR::handle_hc_nak_intr:1307: Can not read device info from hub.We take it error »
- dmesg « Bluetooth: HCI request failed to create LE connection: status 0x0c »

Avec la JeedomOdroid ces messages n'apparaissent plus comme je l'avais supposé.

Pour faire fonctionner le bluetooth sur la JeedomOdroid il faut aussi installer le paquet bluez :

Code : Tout sélectionner

jeedom@jeedom3:~$ sudo apt-get install bluez
jeedom@jeedom3:~$ sudo apt-get install bluetooth
Voici pour comparer (avec la JeedomSmart) les résultats des commandes sur la jeedomOdroid :

Code : Tout sélectionner

jeedom@jeedom3:~$ uname -a
Linux jeedom3 4.14.10-odroidc2 #18 SMP Sat Dec 30 10:20:35 CET 2017 aarch64 GNU/Linux
jeedom@jeedom3:~$ cat /etc/issue
Debian GNU/Linux 9 \n \l

jeedom@jeedom3:~$ lsusb
Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
[...]

jeedom@jeedom3:~$ sudo hciconfig -a
hci0:   Type: Primary  Bus: USB
        BD Address: #Adr-MAC-cle#  ACL MTU: 310:10  SCO MTU: 64:8
        UP RUNNING
        RX bytes:788792 acl:11 sco:0 events:34498 errors:0
        TX bytes:92818 acl:13 sco:0 commands:12359 errors:0
        Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'jeedom3'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous,
        HCI Version: 4.0 (0x6)  Revision: 0x2031
        LMP Version: 4.0 (0x6)  Subversion: 0x2031
        Manufacturer: Cambridge Silicon Radio (10)

jeedom@jeedom3:~$ apt-cache policy bluetooth
bluetooth:
  Installed: 5.43-2+deb9u1
  Candidate: 5.43-2+deb9u1
  Version table:
     5.43-2+deb9u1 500
        500 http://httpredir.debian.org/debian stretch/main arm64 Packages
        500 http://httpredir.debian.org/debian stretch/main armhf Packages
        500 http://security.debian.org stretch/updates/main arm64 Packages
        500 http://security.debian.org stretch/updates/main armhf Packages

jeedom@jeedom3:~$ dmesg
extrait :
[    2.981956] usb 1-1.3: new full-speed USB device number 4 using dwc2
[    3.085006] usb 1-1.3: New USB device found, idVendor=0a12, idProduct=0001
[    3.085014] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.230015] Bluetooth: Core ver 2.22
[    4.230077] Bluetooth: HCI device and connection manager initialized
[    4.230091] Bluetooth: HCI socket layer initialized
[    4.290716] usbcore: registered new interface driver btusb

jeedom@jeedom3:~$ systemctl status bluetooth -l
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2018-01-14 23:47:09 CET; 23min ago
     Docs: man:bluetoothd(8)
 Main PID: 1353 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bluetooth.service
           └─1353 /usr/lib/bluetooth/bluetoothd

Jan 14 23:47:09 jeedom3 systemd[1]: Starting Bluetooth service...
Jan 14 23:47:09 jeedom3 bluetoothd[1353]: Bluetooth daemon 5.43
Jan 14 23:47:09 jeedom3 systemd[1]: Started Bluetooth service.
Jan 14 23:47:09 jeedom3 bluetoothd[1353]: Starting SDP server
Jan 14 23:47:09 jeedom3 bluetoothd[1353]: kernel lacks bnep-protocol support
Jan 14 23:47:09 jeedom3 bluetoothd[1353]: System does not support network plugin
Jan 14 23:47:09 jeedom3 bluetoothd[1353]: Bluetooth management interface 1.14 initialized
Jan 14 23:47:09 jeedom3 bluetoothd[1353]: Failed to obtain handles for "Service Changed" characteristic
Jan 14 23:47:09 jeedom3 bluetoothd[1353]: Sap driver initialization failed.
Jan 14 23:47:09 jeedom3 bluetoothd[1353]: sap-server: Operation not permitted (1)

jeedom@jeedom3:~$ pip show bluepy
Name: bluepy
Version: 1.1.2
Summary: Python module for interfacing with BLE devices through Bluez
Home-page: https://github.com/IanHarvey/bluepy
Author: Ian Harvey
Author-email: website-contact@fenditton.org
License: UNKNOWN
Location: /usr/local/lib/python2.7/dist-packages
Requires:

jeedom@jeedom3:~$
Donc la JeedomSmart est en Debian8, Kernel 3.14.79-94, bluetooth 5.23-2 et la JeedomOdroid est en Debian9, Kernel 4.14.10-odroidc2, bluetooth 5.43-2, et l'UD100a à l'air de mieux fonctionner.

Voila j'espère que ce retour d’expérience sera utile aux membres Jeedom.

akenad :-)
Dernière édition par akenad le 29 déc. 2018, 21:49, édité 1 fois.
Présentation akenad
JeedomSmart Debian Stretch
Odroid-C2 eMMC Armbian Buster Kernel 5
RPi3B+ SSD Raspbian Stretch
RPi4B SSD Raspbian Buster
NUC Intel i7Gen7 ProxMox VM Debian Stretch & Buster

Avatar de l’utilisateur
akenad
Actif
Messages : 697
Inscription : 27 oct. 2017, 11:39

Plugin BLEA - JeedomSmart Stretch – antenne BLEA déportée SENA UD100a sur Odroid-C2

Message par akenad » 29 déc. 2018, 21:44

Bonjour à tous, c'est akenad :) ,

Aujourd'hui je vais vous présenter un retour d'expérience sur la mise en œuvre du plugin BLEA sur une JeedomSmart Stretch et antenne BLEA déportée SENA UD100a sur un Odroid-C2.

Les équipements et logiciels utilisés sont les suivants :

- JeedomSmart Stretch, Jeedom 3.2.11, plugin BLEA 2018-06-15
- Odroid-C2 Armbian Stretch Kernel 4.x
- clé USB Bluetooth BLE 4.0 SENA Model Parani-UD100a, avec une antenne additionnelle SMA ominidirectionnelle 2,4 Ghz 12dbi
- Awox Smartplug, Nodon NIU, iTag

J'ai procédé en 3 étapes :
-installation sur l’Odroid-C2 de Armbian Stretch avec un Kernel 4.x
-installation et configuration du plugin BLEA sur la JeedomSmart Stretch
-prise d'informations système sur l’Odroid-C2

1) Installation sur l’Odroid-C2 de Armbian Stretch avec un Kernel 4.x

pour installer c’est ici :
viewtopic.php?f=128&t=32932&p=630489&#p630241

puis :

Code : Tout sélectionner

$ sudo apt-get update && sudo apt-get upgrade
$ sudo apt-get install bluez
$ sudo apt-get install bluetooth
2) installation et configuration du plugin BLEA sur la JeedomSmart Stretch

Pour configurer le plugin, la documentation Jeedom officielle ici :
https://jeedom.github.io/plugin-blea/fr_FR/

avec les précisions suivantes :
- ne pas sélectionner de Contrôleur Bluetooth, c’est-à-dire définir « Aucun » comme port clef bluetooth dans la Configuration et cliquer sur le bouton sauvegarder.

Le démon du plugin est en statut et Configuration « NOK ».
Ce qui est normal car il n’y a pas de clé Bluetooth de connecté sur la JeedomSmart elle même car je ne veux pas utiliser d’Antenne BLEA en local mais uniquement une antenne BLEA déportée (Remote), à savoir l’UD100a sur Odroid-C2 avec une seule antenne suffisamment puissante pour rayonner sur tout le logement.
AntenneBLEA.png
AntenneBLEA.png (532.42 Kio) Consulté 5096 fois
Installation de l’Antenne BLEA déportée :
(inspiré d’ici : http://sarakha63-domotique.fr/rasberry- ... t-possible)

Jeedom → Plugins -> Protocole domotique -> Bluetooth Advertisement

-cliquez sur “Antennes” puis “Ajouter” et remplissez les champs :
Nom:   AntenneBLEA (ou autre)
Ip:   IP OdroidC2
Port: 22
User:   nom user crée à l’installation d’Armbian sur OdroidC2
Password:   mot de passe du user
Device:   hci

-Cliquez sur “Sauvegarder” puis sur “Envoyer les fichiers”

-depuis une session ssh de l’OdroidC2, contrôlez la présence des fichiers envoyés :
ls /home/pluginblea/blead/resources (doit contenir le dossier “blead” et le fichier “install.sh”)

-cliquez sur “Lancer les dépendances”

-depuis la session ssh de l’OdroidC2, contrôlez l’installation des dépendances :
tail ­-f /tmp/blea_dependancy

-attendre la fin de l’installation

-Cliquez sur “Lancer” pour démarrer le démon BLEA

-depuis la session ssh de l’OdroidC2, contrôlez les logs du démon :
tail ­-f /tmp/blea

-Fermez et ouvrez à nouveau la fenêtre « Antennes »

-le cœur de l’antenne doit passer de la couleur rouge à verte

3) prise d'informations système sur l’Odroid-C2

Le système :

Code : Tout sélectionner

$ uname -a
Linux domobox 4.18.8-odroidc2 #264 SMP PREEMPT Wed Sep 19 12:35:18 CEST 2018 aarch64 GNU/Linux

$ cat /etc/issue
Debian GNU/Linux 9 \n \l
La clé Bluetooth UD100a :

Code : Tout sélectionner

$ lsusb
Bus 001 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ sudo hciconfig -a
hci0:   Type: Primary  Bus: USB
        BD Address: #Adr-MAC-cle#  ACL MTU: 310:10  SCO MTU: 64:8
        UP RUNNING
        RX bytes:894701776 acl:265 sco:0 events:51254159 errors:0
        TX bytes:116246015 acl:310 sco:0 commands:16032458 errors:0
        Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'domobox'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous,
        HCI Version: 4.0 (0x6)  Revision: 0x2031
        LMP Version: 4.0 (0x6)  Subversion: 0x2031
        Manufacturer: Cambridge Silicon Radio (10)
les système et USB :

Code : Tout sélectionner

$ dmesg | grep usb
[    0.000000] Kernel command line: root=UUID=4722b364-ae1f-42d6-ad8f-831b86997837 rootwait rootfstype=ext4 panic=10  consoleblank=0 loglevel=1 ubootpart=0d190000-01 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   cgroup_enable=memory swapaccount=1
[    0.373115] usbcore: registered new interface driver usbfs
[    0.373154] usbcore: registered new interface driver hub
[    0.373213] usbcore: registered new device driver usb
[    0.554946] GPIO line 501 (usb-hub-reset) hogged as output/high
[    1.637759] usbcore: registered new interface driver usb-storage
[    1.668507] usbcore: registered new interface driver usbhid
[    1.668509] usbhid: USB HID core driver
[    1.683886] dwc2 c9000000.usb: c9000000.usb supply vusb_d not found, using dummy regulator
[    1.683922] dwc2 c9000000.usb: c9000000.usb supply vusb_a not found, using dummy regulator
[    1.685182] dwc2: probe of c9000000.usb failed with error -22
[    1.685412] dwc2 c9100000.usb: c9100000.usb supply vusb_d not found, using dummy regulator
[    1.685452] dwc2 c9100000.usb: c9100000.usb supply vusb_a not found, using dummy regulator
[    1.738352] dwc2 c9100000.usb: dwc2_check_params: Invalid parameter lpm=1
[    1.738356] dwc2 c9100000.usb: dwc2_check_params: Invalid parameter lpm_clock_gating=1
[    1.738359] dwc2 c9100000.usb: dwc2_check_params: Invalid parameter besl=1
[    1.738363] dwc2 c9100000.usb: dwc2_check_params: Invalid parameter hird_threshold_en=1
[    1.738730] dwc2 c9100000.usb: DWC OTG Controller
[    1.738745] dwc2 c9100000.usb: new USB bus registered, assigned bus number 1
[    1.738769] dwc2 c9100000.usb: irq 34, io mem 0xc9100000
[    1.738927] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[    1.738931] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.738934] usb usb1: Product: DWC OTG Controller
[    1.738937] usb usb1: Manufacturer: Linux 4.18.8-odroidc2 dwc2_hsotg
[    1.738940] usb usb1: SerialNumber: c9100000.usb
[    2.111655] usb 1-1: new high-speed USB device number 2 using dwc2
[    2.292278] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=32.98
[    2.292340] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.292503] usb 1-1: Product: USB2.0 Hub
[    2.580387] usb 1-1.3: new full-speed USB device number 3 using dwc2
[    2.661169] usb 1-1.3: New USB device found, idVendor=0a12, idProduct=0001, bcdDevice=82.41
[    2.661207] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   34.257670] usbcore: registered new interface driver btusb
Le service Bluetooth :

Code : Tout sélectionner

$ dmesg | grep Blue
[   34.240503] Bluetooth: Core ver 2.22
[   34.240561] Bluetooth: HCI device and connection manager initialized
[   34.240576] Bluetooth: HCI socket layer initialized
[   34.240581] Bluetooth: L2CAP socket layer initialized
[   34.240599] Bluetooth: SCO socket layer initialized
[   38.906607] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   38.906613] Bluetooth: BNEP filters: protocol multicast
[   38.906628] Bluetooth: BNEP socket layer initialized

$ systemctl status bluetooth -l
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2018-12-29 19:42:41 CET; 5min ago
     Docs: man:bluetoothd(8)
 Main PID: 1822 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bluetooth.service
           └─1822 /usr/lib/bluetooth/bluetoothd

Dec 29 19:42:41 domobox systemd[1]: Starting Bluetooth service...
Dec 29 19:42:41 domobox bluetoothd[1822]: Bluetooth daemon 5.43
Dec 29 19:42:41 domobox bluetoothd[1822]: Starting SDP server
Dec 29 19:42:41 domobox systemd[1]: Started Bluetooth service.
Dec 29 19:42:41 domobox bluetoothd[1822]: Bluetooth management interface 1.14 initialized
Dec 29 19:42:41 domobox bluetoothd[1822]: Failed to obtain handles for "Service Changed" characteristic
Dec 29 19:42:41 domobox bluetoothd[1822]: Sap driver initialization failed.
Dec 29 19:42:41 domobox bluetoothd[1822]: sap-server: Operation not permitted (1)
Les paquets BlueZ, Bluetooth et python :

Code : Tout sélectionner

$ dpkg -l | grep blue
ii  bluetooth                        5.43-2+deb9u1                  all          Bluetooth support
ii  bluez                            5.43-2+deb9u1                  arm64        Bluetooth tools and daemons
ii  libbluetooth3:arm64              5.43-2+deb9u1                  arm64        Library to use the BlueZ Linux Bluetooth stack

$ dpkg -l | grep python
ii  dh-python                        2.20170125                     all          Debian helper tools for packaging Python libraries and applications
ii  libpython-dev:arm64              2.7.13-2                       arm64        header files and a static library for Python (default)
ii  libpython-stdlib:arm64           2.7.13-2                       arm64        interactive high-level object-oriented language (default python version)
ii  libpython2.7:arm64               2.7.13-2+deb9u3                arm64        Shared Python runtime library (version 2.7)
ii  libpython2.7-dev:arm64           2.7.13-2+deb9u3                arm64        Header files and a static library for Python (v2.7)
ii  libpython2.7-minimal:arm64       2.7.13-2+deb9u3                arm64        Minimal subset of the Python language (version 2.7)
ii  libpython2.7-stdlib:arm64        2.7.13-2+deb9u3                arm64        Interactive high-level object-oriented language (standard library, version 2.7)
ii  libpython3-stdlib:arm64          3.5.3-1                        arm64        interactive high-level object-oriented language (default python3 version)
ii  libpython3.5-minimal:arm64       3.5.3-1+deb9u1                 arm64        Minimal subset of the Python language (version 3.5)
ii  libpython3.5-stdlib:arm64        3.5.3-1+deb9u1                 arm64        Interactive high-level object-oriented language (standard library, version 3.5)
ii  python                           2.7.13-2                       arm64        interactive high-level object-oriented language (default version)
ii  python-apt-common                1.4.0~beta3                    all          Python interface to libapt-pkg (locales)
ii  python-chardet                   2.3.0-2                        all          universal character encoding detector for Python2
ii  python-dev                       2.7.13-2                       arm64        header files and a static library for Python (default)
ii  python-gdbm                      2.7.13-1                       arm64        GNU dbm database support for Python
ii  python-minimal                   2.7.13-2                       arm64        minimal subset of the Python language (default version)
ii  python-pip                       9.0.1-2                        all          Python package installer
ii  python-pip-whl                   9.0.1-2                        all          Python package installer
ii  python-pkg-resources             33.1.1-1                       all          Package Discovery and Resource Access using pkg_resources
ii  python-requests                  2.12.4-1                       all          elegant and simple HTTP library for Python2, built for human beings
ii  python-six                       1.10.0-3                       all          Python 2 and 3 compatibility library (Python 2 interface)
ii  python-urllib3                   1.19.1-1                       all          HTTP library with thread-safe connection pooling for Python
ii  python2.7                        2.7.13-2+deb9u3                arm64        Interactive high-level object-oriented language (version 2.7)
ii  python2.7-dev                    2.7.13-2+deb9u3                arm64        Header files and a static library for Python (v2.7)
ii  python2.7-minimal                2.7.13-2+deb9u3                arm64        Minimal subset of the Python language (version 2.7)
ii  python3                          3.5.3-1                        arm64        interactive high-level object-oriented language (default python3 version)
ii  python3-apt                      1.4.0~beta3                    arm64        Python 3 interface to libapt-pkg
ii  python3-dbus                     1.2.4-1+b1                     arm64        simple interprocess messaging system (Python 3 interface)
ii  python3-gi                       3.22.0-2                       arm64        Python 3 bindings for gobject-introspection libraries
ii  python3-minimal                  3.5.3-1                        arm64        minimal subset of the Python language (default python3 version)
ii  python3-pycurl                   7.43.0-2                       arm64        Python bindings to libcurl (Python 3)
ii  python3-software-properties      0.96.20.2-1                    all          manage the repositories that you install software from
ii  python3.5                        3.5.3-1+deb9u1                 arm64        Interactive high-level object-oriented language (version 3.5)
ii  python3.5-minimal                3.5.3-1+deb9u1                 arm64        Minimal subset of the Python language (version 3.5)
module python bluepy :

Code : Tout sélectionner

$ pip show bluepy
Name: bluepy
Version: 1.1.2
Summary: Python module for interfacing with BLE devices through Bluez
Home-page: https://github.com/IanHarvey/bluepy
Author: Ian Harvey
Author-email: website-contact@fenditton.org
License: UNKNOWN
Location: /usr/local/lib/python2.7/dist-packages
Requires:
ATTENTION /!\ :
Si l’ampoule Awox Mesh est allumé (elle n’est pas incluse dans le plugin BLEA), de nombreux messages d’avertissement sons visibles dans le fichier dmesg.
extrait dans dmesg :

Code : Tout sélectionner

[1310829.326021] Bluetooth: hci0: advertising data len corrected
[1310839.292046] Bluetooth: hci0: advertising data len corrected
[1313944.179057] Bluetooth: hci0: request failed to create LE connection: status 0x0c
[1313997.073008] Bluetooth: hci0: advertising data len corrected
[1314226.564040] Bluetooth: hci0: advertising data len corrected
[1314327.644010] Bluetooth: hci0: advertising data len corrected
[1314406.675041] Bluetooth: hci0: advertising data len corrected
[1315069.083041] Bluetooth: hci0: advertising data len corrected
[1315286.191033] Bluetooth: hci0: advertising data len corrected
[1316054.446002] Bluetooth: hci0: advertising data len corrected
A noter que le plugin BLEA, pour communiquer avec les équipements BLE, s’appuie sur le module python bluepy 1.1.2, qui lui-même s’appuie sur BlueZ 5.43.
En fonction des versions on peut s’attendre à des comportements différents qui ne seront pas forcement liés directement au plugin BLEA.
Ici c’est un OdroidC2 Armbian stretch kernel 4.x avec SENA UD100a.
En début d’année (voir plus haut) j’avais rencontré quelques difficultés avec une SENA UD100a sur une JeedomSmart Jessie (bluepy 1.1.2 et BlueZ 5.23).
J’ai pu constaté des perturbations bluetooth provoquant éventuelles des décrochages du plugin BLEA avec l’association
SENA UD100a / BlueZ / présence équipement Bluetooth Mesh.
Se serait peut-être à creuser plus avant.
Par exemple une mise à jour en bluepy 1.3.0 et BlueZ 5.47 ou 5.50 et une mise à jour du firmware de la SENA UD100a (je n’ai pas trouvé) pourrait peut-être améliorer.

Les versions de bluepy sont décrites ici : https://github.com/IanHarvey/bluepy
et les problèmes ici : https://github.com/IanHarvey/bluepy/issues
Les versions de BlueZ ici : http://www.bluez.org

En attendant je n’utilise plus l'ampoule Awox Mesh.

Voila j'espère que ce retour d’expérience sera utile aux membres Jeedom.

akenad :)
Présentation akenad
JeedomSmart Debian Stretch
Odroid-C2 eMMC Armbian Buster Kernel 5
RPi3B+ SSD Raspbian Stretch
RPi4B SSD Raspbian Buster
NUC Intel i7Gen7 ProxMox VM Debian Stretch & Buster

jpb
Timide
Messages : 97
Inscription : 30 août 2016, 00:18
Localisation : Angoulême

Re: Plugin BLEA - clé USB Bluetooth SENA UD100a - JeedomSmart - Odroid-C2

Message par jpb » 05 mars 2019, 23:59

bonjour
a mon tour de faire un petit retour.
l'UD100 avec une grande antenne pour gagner en porté. fonctionne très bien depuis un peu plus d'un an sur un RPI3.
et soudainement depuis 3 jours seul les équipements à moins de 2m sont détecte.
j'ai testé:
- le hub USB avec alim 3A
- remis l'antenne d'origine de UD100 ( c'est pire je détecte plus aucun équipement)
- réinstaller les dépendances...
rien a faire elle fonctionne avec la grande antenne mais avec une porté vraiment très limité alors que je couvrais sans problème toute la maison et même un nut dans la voiture à l'extérieur.

j'ai cherché mais j'ai rien trouvé comme autre antenne qui aurai de longue porté ou possibilité de changer l'antenne. vous avez d'autre produit avec bonne porté?
RPI 3, SSD, AEOTEC Z-stick
détecteurs de fumée fibaro, fil pilot Qubino, volet Qubino, bléa NUT...
IPX 800 V4

Avatar de l’utilisateur
Fabrice
Modérateur
Messages : 3424
Inscription : 27 oct. 2016, 22:26
Localisation : Planète terre, IDF, 93

Re: Plugin BLEA - clé USB Bluetooth SENA UD100a - JeedomSmart - Odroid-C2

Message par Fabrice » 06 mars 2019, 07:05

Bonjour,

Non, c'est la seule qui à tous ces critères. J'en possède 2, avec deux antennes et c'est vraiment un bon produit.
- Elle à beaucoup baissée en prix maintenant.

Si elle fonctionne un peu :
- Tentez de l'ouvrir et de regarder s'il n'y a pas un coupure sur le circuit de l'antenne.

Plus simple encore, elle n'a pas 2 ans, elle est donc encore sous garantie !
Helper Officiel Jeedom
- Jeedom : 3.3.36
- Protocole : Z-Wave / RFXcom / BLEA
- Raspberry Pi : Pi 3 B+ / Pi 3 B / Pi Zero W

Mrautomate22
Timide
Messages : 4
Inscription : 14 mars 2019, 01:11

Re: Plugin BLEA - clé USB Bluetooth SENA UD100a - JeedomSmart - Odroid-C2

Message par Mrautomate22 » 14 mars 2019, 01:28

Bonjour, pour ceux qui ont testé, avez vous une antenne BLEA en particulier à conseiller avec le dongle usb (http://www.senanetworks.com/ud100-g03.html) ?
Dernière édition par Mrautomate22 le 16 mars 2019, 02:09, édité 1 fois.

Avatar de l’utilisateur
Fabrice
Modérateur
Messages : 3424
Inscription : 27 oct. 2016, 22:26
Localisation : Planète terre, IDF, 93

Re: Plugin BLEA - clé USB Bluetooth SENA UD100a - JeedomSmart - Odroid-C2

Message par Fabrice » 14 mars 2019, 06:52

Bonjour,

Oui, j'en ai deux :
- 1 de 8 db qui se connecte sur la clé SENA directement
- une autre de 12 db, qui possède en plus une embase et un câble de 1.5m.
Elles se trouvent sur Amazon :
8 db : https://www.amazon.fr/gp/product/B002VY ... UTF8&psc=1
12 db : https://www.amazon.fr/gp/product/B00OUO ... UTF8&psc=1

Franchement, les deux apportent un réel gain. une suffit largement chez moi, l'autre c'est pour assurer la détection à l'extérieur de la maison.
- Mes NUT sont détectés par les deux antennes en permanence.
Helper Officiel Jeedom
- Jeedom : 3.3.36
- Protocole : Z-Wave / RFXcom / BLEA
- Raspberry Pi : Pi 3 B+ / Pi 3 B / Pi Zero W

Répondre

Revenir vers « [Plugin Officiel] BLEA »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 12 invités