You are not logged in.
Hi,
I'm trying to run voltcraft-sem-6000 as explained in https://github.com/Heckie75/voltcraft-sem-6000. That needs gatttool - tool for Bluetooth Low Energy device.
Why Slitaz on eeePC 701 machine does not find gatttool, while it's found with Debian on a Dell XPS M1330 machine ?
I use the same tp-link Bluetooth 4.0 Nano USB Adapter on both machines.
See below some infos for each machine. Thanks in advance for answer and regards.
Pierre alias colip
_____________
eeePC machine
root@slitaz:~# hcitool lescan
LE Scan ...
78:DB:2F:DD:21:D6 (unknown)
78:DB:2F:DD:21:D6 Voltcraft
root@slitaz:~# gatttool
sh: gatttool: not found
tux@slitaz:~$ ./sem-6000.exp 78:DB:2F:DD:21:D6 0000 --sync
couldn't execute "/usr/bin/gatttool": no such file or directory
while executing
"spawn -noecho /usr/bin/gatttool -I"
(file "./sem-6000.exp" line 3576)
========================================================================================
Paquets installés
----------------------------------------------------------------------------------------
bluez 5.54 outils système
bluez-alsa 2.0.0 multimédia
bluez-dev 5.54 développement
python-pybluez 0.23 développement
========================================================================================
expect 5.45.4 utilitaires
perl-expect 1.35 développement
================================================================================
tux@slitaz:~$ uname -r
3.16.55-slitaz
_______________
dell-xps machine
pierre@dell-xps:~$ sudo bluetoothd --version
5.50
pierre@dell-xps:~$ apt-cache policy expect
expect:
Installé : 5.45.4-2
Candidat : 5.45.4-2
Table de version :
*** 5.45.4-2 500
500 http://ftp.ch.debian.org/debian buster/main amd64 Packages
100 /var/lib/dpkg/status
pierre@dell-xps:~$ gatttool
Usage:
gatttool [OPTION?]
... is available.
pierre@dell-xps:~$ ./sem-6000.exp 78:DB:2F:DD:21:D6 0000 --sync
pierre@dell-xps:~$
The script is running very well.
Offline
Bonjour Pierre,
as-tu vérifié que gatttool est bien exécutable ?
Je suppose que tu as commencé par là, mais comme ce n'est pas dit...
Pas d'autre idée de mon côté.
Amicalement.
Offline
Pierre,
comment as-tu installé gatttool sur SliTaz (quelle version ?) ?
Je ne l'ai pas vu dans les dépôts de la distribution.
a+
Offline
Hi Pierre,
I check receipt of bluez, gatttool present in attrib folder source but seem deprecated.
Prepare to build package bluez-gatttool for you test them.
Package available here : https://people.slitaz.org/~shann/packages/bluez-gatttool-5.54.tazpkg
If work for you i put receipt in wok.
Regards
Offline
Hi shann,
YES, now Slitaz can command Voltcraft unit. Here are my steps.
SliTaz hebdo 32 bits freshly installed on eeePC 701 machine, with bluez-gatttool-5.54.tazpkg installed and sem-6000.exp script copied to tux@slitaz.
# tazpkg get-install expect
$ gatttool
Usage:
gatttool [OPTION...]
... is available.
# hciconfig
# hciconfig hci0 up
# hcitool lescan
LE Scan ...
78:DB:2F:DD:21:D6 (unknown)
78:DB:2F:DD:21:D6 Voltcraft
... Ctrl+C to abort
$ ./sem-6000.exp 78:DB:2F:DD:21:D6 0000 --sync
$ ./sem-6000.exp 78:DB:2F:DD:21:D6 0000 off
$ ./sem-6000.exp 78:DB:2F:DD:21:D6 0000 on
All three above commands are working fine.
Thank you very much indeed.
Regards, Pierre
Offline
Hi Pierre,
Nice to read this
.
I push receipt to wok, cooker build sucessfully, wait mirror sync for available for all.
https://cook.slitaz.org/cooker.cgi?pkg=bluez-gatttool
Regards
Offline
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]