Wie kann ich das gatttool installieren?

Begonnen von PsychoD, 25 September 2016, 22:18:44

Vorheriges Thema - Nächstes Thema

PsychoD

Hallo,

ich versuche die Batterieüberwachung meines G-Tags einzurichten (wie hier beschrieben http://www.fhemwiki.de/wiki/Anwesenheitserkennung#Batterie.C3.BCberwachung_.28aktuell_nur_G-Tags.29) - leider ohne Erfolg. System ist ein RPI2 mit OSMC als System (Jessie). Ich habe bluez installiert, aber gatttool findet sich nicht. Im Netz werd ich auch nicht so richtig schlau :( Was kann ich tun?

Danke & Gruß
Psy

CoolTux

apt-cache search gatttool

Oder vielleicht gattool?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

P.A.Trick

Cubietruck,RPI,QNAP Ts-419p+, FS20, FRITZ!DECT200, 7 MAX! Thermostate, 3 MAX! Fensterkontakte, Kodi, CUL V3.3, EM1000S, LW12, LD382, HUE, HM-CFG-USB-2, 1x HM-LC-SW1-FM, 2x HM-LC-SW2-FM, 2x HM-LC-Sw1PBU-FM, 3xHM-LC-Bl1PBU-FM,HM-SEC-RHS, 2xHM-SEC-SD,HM-WDS30-T-O, 3x HM-LC-Dim1TPBU-FM, RPI+AddOn

PsychoD

Danke euch beiden und entschuldigt bitte die späte Antwort.

Genau das ist ja mein Problem, es sollte Teil von bluez sein, aber ist es nicht. apt-get update hab ich natürlich gemacht.

osmc@osmc:~$ sudo apt-get install bluez
Reading package lists... Done
Building dependency tree
Reading state information... Done
bluez is already the newest version.
The following packages were automatically installed and are no longer required:
  libgssapi3-heimdal libheimntlm0-heimdal libkdc2-heimdal rbp2-image-4.4.13-5-osmc
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
osmc@osmc:~$ gatttool
-bash: gatttool: command not found
osmc@osmc:~$ apt-cache search gatttool
osmc@osmc:~$

P.A.Trick

Welche Distribution ist es denn?

PS: Versuche nochmal das hier!

sudo apt-get install bluetooth
Cubietruck,RPI,QNAP Ts-419p+, FS20, FRITZ!DECT200, 7 MAX! Thermostate, 3 MAX! Fensterkontakte, Kodi, CUL V3.3, EM1000S, LW12, LD382, HUE, HM-CFG-USB-2, 1x HM-LC-SW1-FM, 2x HM-LC-SW2-FM, 2x HM-LC-Sw1PBU-FM, 3xHM-LC-Bl1PBU-FM,HM-SEC-RHS, 2xHM-SEC-SD,HM-WDS30-T-O, 3x HM-LC-Dim1TPBU-FM, RPI+AddOn

PsychoD

bluetooth ist auch installiert.

Es ist OSMC, das basiert auf Jessie:

osmc@osmc:~$ uname -a
Linux osmc 4.4.16-4-osmc #1 SMP PREEMPT Fri Aug 26 00:22:10 UTC 2016 armv7l GNU/Linux
osmc@osmc:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 8.6 (jessie)
Release:        8.6
Codename:       jessie
osmc@osmc:~$ cat /etc/*release
PRETTY_NAME="Open Source Media Center"
NAME="OSMC"
VERSION="August 2016"
VERSION_ID="2016.08-1"
ID=osmc
ID_LIKE=debian

ANSI_COLOR="1;31"
HOME_URL="http://www.osmc.tv"
SUPPORT_URL="http://www.osmc.tv"
BUG_REPORT_URL="http://www.osmc.tv"

P.A.Trick

Cubietruck,RPI,QNAP Ts-419p+, FS20, FRITZ!DECT200, 7 MAX! Thermostate, 3 MAX! Fensterkontakte, Kodi, CUL V3.3, EM1000S, LW12, LD382, HUE, HM-CFG-USB-2, 1x HM-LC-SW1-FM, 2x HM-LC-SW2-FM, 2x HM-LC-Sw1PBU-FM, 3xHM-LC-Bl1PBU-FM,HM-SEC-RHS, 2xHM-SEC-SD,HM-WDS30-T-O, 3x HM-LC-Dim1TPBU-FM, RPI+AddOn

Ellert

Hast Du schon mit locate oder find gesucht, ob gatttool auf osmc existiert und nicht verlinkt ist? Dann nach /bin kopieren.

PsychoD

Gesucht habe ich es, aber es wurde nicht gefunden.

Manuell installiert habe ich noch nie etwas - kommt das dann nicht mit dem installierten Bluez in die Queere? Wie würde ich das anstellen?

P.A.Trick

Cubietruck,RPI,QNAP Ts-419p+, FS20, FRITZ!DECT200, 7 MAX! Thermostate, 3 MAX! Fensterkontakte, Kodi, CUL V3.3, EM1000S, LW12, LD382, HUE, HM-CFG-USB-2, 1x HM-LC-SW1-FM, 2x HM-LC-SW2-FM, 2x HM-LC-Sw1PBU-FM, 3xHM-LC-Bl1PBU-FM,HM-SEC-RHS, 2xHM-SEC-SD,HM-WDS30-T-O, 3x HM-LC-Dim1TPBU-FM, RPI+AddOn

Ellert

ZitatWie würde ich das anstellen?

Ich habe bluez mit gatttool nach dieser Anleitung installiert, allerdings auf Pi mit wheezy.

http://stackoverflow.com/questions/24853597/ble-gatttool-cannot-connect-even-though-device-is-discoverable-with-hcitool-lesc

PsychoD

Nachdem ich es nach der Anleitung versucht hatte, ging leider gar nichts mehr :-) Dazu muss ich sagen, dass ich auch einen Bluetooth Speaker verbunden habe, über den ich Sprachmeldungen ausgebe.

Manchmal sieht man den Wald vor lauter Bäumen nicht - ich habe nun das Paket runtergeladen und mit make kompiliert, und dann daraus einfach das gatttool geklaut.  :-)

Danke nochmal für eure Hilfe!

Viele Grüße

Grinsekatze

#12
Der Thread ist zwar schon sehr alt, aber bei mir gerade wieder aktuell.

gatttool ist nicht Bestandteil von OSMC. Es muss daher händisch nachgereicht werden.
1. xz-utils installieren: sudo apt-get install xz-utils build-essential
2. Download BlueZ: https://www.kernel.org/pub/linux/bluetooth/bluez-5.43.tar.xz
wget https://www.kernel.org/pub/linux/bluetooth/bluez-5.43.tar.xz
3. Untar das Archiv: tar xvf bluez-5.43.tar.xz
4. Ins neue Verzeichnis wechseln: cd bluez-5.43
5. Abhängigkeiten installieren: sudo apt-get update && sudo apt-get install -y libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev
6. ./configure ausführen
7. make ausführen
8. gatttool ist nun im attrib Verzeichnis.
9. gatttool kopieren: sudo cp attrib/gatttool /usr/local/bin/

Vielleicht benötigt ja Jemand noch mal diese Information.