J'ai un raspberry pi3 (bt intégré avec jeedom en netinstall en 3.1.7) et j'ai mis un msata et j'ai refais une installation complète (tout fonctionne, enfin presque).
Dans le tuto il disait qu'il fallait désactiver le bt sur les raspi3 avec la commande "sudo echo "dtoverlay=pi3-disable-bt" >> /boot/config.txt"
Puis en fait on m'a dit que pour le rpi3 ne vaut que dans le cas de l'utilisation de la carte zwave razberry (qui se monte sur le port gpio).
Du coup, je vire le dtoverlay=pi3-disable-bt du /boot/config.txt
et dans le dmesg j'ai
[ 83.721435] Bluetooth: Core ver 2.22
[ 83.721538] NET: Registered protocol family 31
[ 83.721544] Bluetooth: HCI device and connection manager initialized
[ 83.722624] Bluetooth: HCI socket layer initialized
[ 83.722642] Bluetooth: L2CAP socket layer initialized
[ 83.722684] Bluetooth: SCO socket layer initialized
Je me dis, banco ca va être de la rigolade
Je met a jour les dépendances :
[ 83.721435] Bluetooth: Core ver 2.22
[ 83.721538] NET: Registered protocol family 31
[ 83.721544] Bluetooth: HCI device and connection manager initialized
[ 83.722624] Bluetooth: HCI socket layer initialized
[ 83.722642] Bluetooth: L2CAP socket layer initialized
[ 83.722684] Bluetooth: SCO socket layer initialized
Je vérifie une derniere fois si y'a des mises à jours du plugin ! et la paf y'a le plugin blea (UPDATE market / plugin : blea 2018-03-01 17:16:17)
Je me dis, mince je ne suis pas dans la bonne version, je regarde ma version actuelle : Version2018-03-01 17:16:17
Je me dis, bah WTF, bon pas grave je relance la mise à jour à travers la page d'update !
Du coup je re-relance les dépendances :
Code : Tout sélectionner
Launch install of blea dependancy
Hit:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.3).
libffi-dev is already the newest version (3.2.1-6).
libssl-dev is already the newest version (1.1.0f-3+deb9u1).
python-dev is already the newest version (2.7.13-2).
python-requests is already the newest version (2.12.4-1).
bluetooth is already the newest version (5.43-2+rpt2+deb9u2).
python-pip is already the newest version (9.0.1-2+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.11.0-3+deb9u2).
libglib2.0-dev is already the newest version (2.50.3-2).
0 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
Requirement already satisfied: pyudev in /usr/lib/python2.7/dist-packages
Requirement already satisfied: pyserial in /usr/lib/python2.7/dist-packages
Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages
Requirement already satisfied: cryptography in /usr/lib/python2.7/dist-packages
Requirement already satisfied: pycrypto in /usr/lib/python2.7/dist-packages
Cloning into 'bluepy'...
running build
running build_py
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/bluepy
copying bluepy/sensortag.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/scanner.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/thingy52.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/get_services.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/btle.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/blescan.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/__init__.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/uuids.json -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/bluez-src.tgz -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/bluepy-helper.c -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/Makefile -> build/lib.linux-armv7l-2.7/bluepy
running install
Working dir is /tmp/bluepy
execute make -C ./bluepy clean
execute make -C bluepy -j1
running build
running build_py
copying bluepy/bluepy-helper -> build/lib.linux-armv7l-2.7/bluepy
running install_lib
copying build/lib.linux-armv7l-2.7/bluepy/sensortag.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/bluepy-helper.c -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/scanner.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/thingy52.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/get_services.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/btle.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/blescan.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/bluepy-helper -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/__init__.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/bluez-src.tgz -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/uuids.json -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/Makefile -> /usr/local/lib/python2.7/dist-packages/bluepy
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/sensortag.py to sensortag.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/scanner.py to scanner.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/thingy52.py to thingy52.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/get_services.py to get_services.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/btle.py to btle.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/blescan.py to blescan.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/__init__.py to __init__.pyc
running install_egg_info
running egg_info
creating bluepy.egg-info
writing bluepy.egg-info/PKG-INFO
writing top-level names to bluepy.egg-info/top_level.txt
writing dependency_links to bluepy.egg-info/dependency_links.txt
writing entry points to bluepy.egg-info/entry_points.txt
writing manifest file 'bluepy.egg-info/SOURCES.txt'
reading manifest file 'bluepy.egg-info/SOURCES.txt'
writing manifest file 'bluepy.egg-info/SOURCES.txt'
removing '/usr/local/lib/python2.7/dist-packages/bluepy-1.1.2.egg-info' (and everything under it)
Copying bluepy.egg-info to /usr/local/lib/python2.7/dist-packages/bluepy-1.1.2.egg-info
running install_scripts
Installing blescan script to /usr/local/bin
Installing thingy52 script to /usr/local/bin
Installing sensortag script to /usr/local/bin
Everything is successfully installed!
Hit:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.3).
libffi-dev is already the newest version (3.2.1-6).
libssl-dev is already the newest version (1.1.0f-3+deb9u1).
python-dev is already the newest version (2.7.13-2).
python-requests is already the newest version (2.12.4-1).
bluetooth is already the newest version (5.43-2+rpt2+deb9u2).
python-pip is already the newest version (9.0.1-2+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.11.0-3+deb9u2).
libglib2.0-dev is already the newest version (2.50.3-2).
0 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
Requirement already satisfied: pyudev in /usr/lib/python2.7/dist-packages
Requirement already satisfied: pyserial in /usr/lib/python2.7/dist-packages
Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages
Requirement already satisfied: cryptography in /usr/lib/python2.7/dist-packages
Requirement already satisfied: pycrypto in /usr/lib/python2.7/dist-packages
Cloning into 'bluepy'...
running build
running build_py
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/bluepy
copying bluepy/sensortag.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/scanner.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/thingy52.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/get_services.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/btle.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/blescan.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/__init__.py -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/uuids.json -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/bluez-src.tgz -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/bluepy-helper.c -> build/lib.linux-armv7l-2.7/bluepy
copying bluepy/Makefile -> build/lib.linux-armv7l-2.7/bluepy
running install
Working dir is /tmp/bluepy
execute make -C ./bluepy clean
execute make -C bluepy -j1
running build
running build_py
copying bluepy/bluepy-helper -> build/lib.linux-armv7l-2.7/bluepy
running install_lib
copying build/lib.linux-armv7l-2.7/bluepy/sensortag.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/bluepy-helper.c -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/scanner.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/thingy52.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/get_services.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/btle.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/blescan.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/bluepy-helper -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/__init__.py -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/bluez-src.tgz -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/uuids.json -> /usr/local/lib/python2.7/dist-packages/bluepy
copying build/lib.linux-armv7l-2.7/bluepy/Makefile -> /usr/local/lib/python2.7/dist-packages/bluepy
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/sensortag.py to sensortag.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/scanner.py to scanner.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/thingy52.py to thingy52.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/get_services.py to get_services.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/btle.py to btle.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/blescan.py to blescan.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/bluepy/__init__.py to __init__.pyc
running install_egg_info
running egg_info
creating bluepy.egg-info
writing bluepy.egg-info/PKG-INFO
writing top-level names to bluepy.egg-info/top_level.txt
writing dependency_links to bluepy.egg-info/dependency_links.txt
writing entry points to bluepy.egg-info/entry_points.txt
writing manifest file 'bluepy.egg-info/SOURCES.txt'
reading manifest file 'bluepy.egg-info/SOURCES.txt'
writing manifest file 'bluepy.egg-info/SOURCES.txt'
removing '/usr/local/lib/python2.7/dist-packages/bluepy-1.1.2.egg-info' (and everything under it)
Copying bluepy.egg-info to /usr/local/lib/python2.7/dist-packages/bluepy-1.1.2.egg-info
running install_scripts
Installing blescan script to /usr/local/bin
Installing thingy52 script to /usr/local/bin
Installing sensortag script to /usr/local/bin
Everything is successfully installed!
Bon bah la je me dis qu'il faut que je relance la mise a jours des plugins généralement, je trouve 2,3 plugin a mettre a jour, puis je vire surveillance station qui ne me sert plus a rien et la je retourne dans les logs !
Je n'avais que les logs blea_dependance qui apparaissaient, mais la j'ai les logs ble
Voici ce que ca donne :
Code : Tout sélectionner
[2018-03-14 21:09:35][ERROR] : Impossible de lancer le démon blea, vérifiez la log
[2018-03-14 21:10:39][ERROR] : Impossible de lancer le démon blea, vérifiez la log
[2018-03-14 21:15:11][ERROR] : Erreur sur la fonction deamon_start du plugin : Vous devez attendre au moins 45s entre 2 lancements du démon
[2018-03-14 21:15:17][ERROR] : Erreur sur la fonction deamon_start du plugin : Vous devez attendre au moins 45s entre 2 lancements du démon
[2018-03-14 21:15:40][ERROR] : Impossible de lancer le démon blea, vérifiez la log
[2018-03-14 21:20:39][ERROR] : Impossible de lancer le démon blea, vérifiez la log
[2018-03-14 21:25:38][ERROR] : Impossible de lancer le démon blea, vérifiez la log
[2018-03-14 21:30:41][ERROR] : Impossible de lancer le démon blea, vérifiez la log
[2018-03-14 21:31:35][ERROR] : Impossible de lancer le démon blea, vérifiez la log
[2018-03-14 21:35:38][ERROR] : Impossible de lancer le démon blea, vérifiez la log
[2018-03-14 21:37:36][ERROR] : Impossible de lancer le démon blea, vérifiez la log
Dans le menu défilant "Port clef bluetooth" je ne peux pas choisir mon module bt... (j'ai le bt interne du raspi3)
Le truc aussi c'est que pour les dépendances dans les logs ca a l'air de bien se passer mais dans les fait la mise à jour de la date du plugin plea ne se fait pas : 2017-11-27 21:39:10 (reste bloqué).
Comme j'ai redémarré jeedom il n'y a pas longtemps, je me dis que je vais me coucher et que peut etre que tout reviendra demain...
Affaire a suivre...
*Edit dans le log blea_local :
Code : Tout sélectionner
Traceback (most recent call last):
File "/var/www/html/plugins/blea/resources/blead/blead.py", line 491, in <module>
globals.IFACE_DEVICE = int(globals.device[-1:])
ValueError: invalid literal for int() with base 10: 'y'
Traceback (most recent call last):
File "/var/www/html/plugins/blea/resources/blead/blead.py", line 491, in <module>
globals.IFACE_DEVICE = int(globals.device[-1:])
ValueError: invalid literal for int() with base 10: 'y'
Traceback (most recent call last):
File "/var/www/html/plugins/blea/resources/blead/blead.py", line 491, in <module>
globals.IFACE_DEVICE = int(globals.device[-1:])
ValueError: invalid literal for int() with base 10: 'y'
Traceback (most recent call last):
File "/var/www/html/plugins/blea/resources/blead/blead.py", line 491, in <module>
globals.IFACE_DEVICE = int(globals.device[-1:])
ValueError: invalid literal for int() with base 10: 'y'
Traceback (most recent call last):
File "/var/www/html/plugins/blea/resources/blead/blead.py", line 491, in <module>
globals.IFACE_DEVICE = int(globals.device[-1:])
ValueError: invalid literal for int() with base 10: 'y'
Traceback (most recent call last):
File "/var/www/html/plugins/blea/resources/blead/blead.py", line 491, in <module>
globals.IFACE_DEVICE = int(globals.device[-1:])
ValueError: invalid literal for int() with base 10: 'y'
Traceback (most recent call last):
File "/var/www/html/plugins/blea/resources/blead/blead.py", line 491, in <module>
globals.IFACE_DEVICE = int(globals.device[-1:])
ValueError: invalid literal for int() with base 10: 'y'
Traceback (most recent call last):
File "/var/www/html/plugins/blea/resources/blead/blead.py", line 491, in <module>
globals.IFACE_DEVICE = int(globals.device[-1:])
ValueError: invalid literal for int() with base 10: 'y'
Traceback (most recent call last):
File "/var/www/html/plugins/blea/resources/blead/blead.py", line 491, in <module>
globals.IFACE_DEVICE = int(globals.device[-1:])
ValueError: invalid literal for int() with base 10: 'y'
Traceback (most recent call last):
File "/var/www/html/plugins/blea/resources/blead/blead.py", line 491, in <module>
globals.IFACE_DEVICE = int(globals.device[-1:])
ValueError: invalid literal for int() with base 10: 'y'
Bon bah on dirait que mon debian ne trouve pas mon bt alors qu'au début de mon post je croyais que c'était le cas avec le dmesg
viewtopic.php?f=157&t=27797&p=572492&hi ... 27#p572492
Vu la désactivation du bt que j'ai fait au début et la réactivation, ca pourrait bien expliquer des choses, et a mon avis un petit : apt-get update && apt-get upgrade réglera le problème, je vous tiens au jus (je laisse le post car ca pourra servir...)
Vu les installations des packages ca sent bon
Code : Tout sélectionner
bluez-firmware bsdutils cron dbus dbus-x11 firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek isc-dhcp-client
isc-dhcp-common libapparmor1 libblkid1 libc-bin libc-dev-bin libc-l10n libc6 libc6-dbg libc6-dev libdbus-1-3 libdbus-1-dev libdirectfb-1.2-9 libfdisk1
libmount1 libncurses5 libncursesw5 libpam-systemd libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 libsmartcols1 libsystemd0
libtinfo5 libudev-dev libudev1 libuuid1 locales mount multiarch-support ncurses-base ncurses-bin ncurses-term ntp ntpdate openssh-client openssh-server
openssh-sftp-server raspberrypi-bootloader raspberrypi-kernel raspi-config ssh systemd systemd-sysv tzdata udev util-linux
Bon bah j'ai trouvé la solution sur un autre topic et cela a fonctionné pour moi donc je post
Code : Tout sélectionner
Pignonduclan a écrit :
AlexD a écrit :
Bonjour,
J'aurais besoin de votre aide pour ceci svp :
J'ai un souci avec le demon du plugin Blea qui est bloqué sur NOK "Le port n'est pas configuré".( J'ai fait une capture plus bas)
Lorsque j'essaye de configurer le port clef bluetooth plus bas : je n'ai comme option que "Aucun" et pas d'autre choix.
et je ne vois pas comment régler ce problème.
Je précise que j'ai un RPi3 qui possède donc le Bluetooth. J'ai aussi déjà essayé de re-installer les dépendances mais ça ne change rien au problème.
Pour info le plugin fonctionnait très bien avant.
Le problème est apparu depuis que j'ai redémarré mon Rpi3 car j'ai eu à faire une sauvegarde de la Carte SD. (on est jamais trop prudent avec ça)
Est ce que du fait que j'ai relancé mon jeedom/rspi3 le bluetooth ce serait désactivé ? et je devrait le réactiver ?
Je ne sais pas quoi faire.
Quelqu'un aurait une idée svp ?
Merci !
Lance en SSH
• sudo systemctl enable hciuart
• sudo systemctl start hciuart
et ça va résoudre ton problème. J'ai eu la même chose. Normalement, il ne faut pas relancer ces commandes même après un reboot... Mais j'ai quand-même dû le faire 1x sur environ 10 reboot.
Cedric
Roooh, ça fait des mois que j'ai ce problème sur mon Pi3 et impossible de trouver la solution et je viens de tester tes 2 commandes et... mon Bluetooth remarche !!! Merci infiniment !
Tout simplement :
Lance en SSH
• sudo systemctl enable hciuart
• sudo systemctl start hciuart