SliTaz SliTaz Forum

You are not logged in.

#1 2022-09-09 09:51:05

colip
Member
Registered: 2015-10-26
Posts: 18

Bluetooth gatttool requested by voltcraft-sem-6000 expect script

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

#2 2022-09-09 10:23:02

Rantanplan
Member
Registered: 2022-06-06
Posts: 187

Re: Bluetooth gatttool requested by voltcraft-sem-6000 expect script

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

#3 2022-09-09 10:31:08

Rantanplan
Member
Registered: 2022-06-06
Posts: 187

Re: Bluetooth gatttool requested by voltcraft-sem-6000 expect script

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

#4 2022-09-09 11:54:40

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: Bluetooth gatttool requested by voltcraft-sem-6000 expect script

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

#5 2022-09-14 18:08:10

colip
Member
Registered: 2015-10-26
Posts: 18

Re: Bluetooth gatttool requested by voltcraft-sem-6000 expect script

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

#6 2022-09-15 07:53:25

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: Bluetooth gatttool requested by voltcraft-sem-6000 expect script

Hi Pierre,

Nice to read this wink.

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]