Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 20/03/2021, à 17:26

Sandro11

Son (via bluetooth) haché

Bonjour,
Je travaille sur un robot basé sur une Jetson Xavier Agx (un ordinateur compact, tournant sur une version légèrement modifiée (Jetpack 4.5) d'ubuntu 18.04).

Le robot est sensé jouer des fichiers sons à certain moment (ie prononcer des phrases pré-enregistrées).
Hors, depuis quelques jours, le son ne fonctionne plus correctement : au démarrage du robot tout vas bien, puis au bout d'un moment il commande à y avoir des problèmes : petites coupures, bégaiements, débuts ou fin de phrases manquant (mais c'est mélangé a des phrases jouées complètement sans problème). Parfois il n'y a même plus de son du tout (et là, j'ai l'impression que seul le reboot permet de récupérer du son).
A noter que le problème est apparu pendant une semaine de tests terrains, donc sans la moindre modification du logiciel par un utilisateur (on ne s'est connecté au robot via SSH ni le jour d'apparition du problème, ni la veille).

Est-ce que vous avez une idée d'où le problème peut venir?



La config :
Matérielle :
Ordinateur : kit de développement Jetson Xavier AGX
Module blutooth externe (format M2) : https://www.amazon.fr/Carte-r%C3%A9seau … B07YCL3HKQ (avec antennes : https://www.amazon.fr/WayinTop-Antenne- … 07PG8RWDQ)
Ampli bluetooth : https://www.audiophonics.fr/fr/modules- … 14223.html
Haut parleur : https://www.reichelt.com/fr/fr/haut-par … 66831.html

La config logicielle :
- OS : Jetpack 4.5 (basé sur Ubuntu 18.04)
- installation :
sudo apt -y install pulseaudio-module-bluetooth
sudo sed -i 's+ExecStart=/usr/lib/bluetooth/bluetoothd -d --noplugin=audio,a2dp,avrcp+ExecStart=/usr/lib/bluetooth/bluetoothd -d+g' /lib/systemd/system/bluetooth.service.d/nv-bluetooth-service.conf

scripts de lancement :
extrait de rc.local:
(sleep 30 && su xavier0 -c "/home/xavier0/bluetooth_startup_script.sh" )&

fichier bluetooth_startup_script.sh:
bluetoothctl < /home/xavier0/bluetooth_connexion_input_file.txt &>/home/xavier0/bluetooth.log &

fichier bluetooth_connexion_input_file.txt
connect 00:12:01:68:83:9F


Pour les fichiers de config, j'ai aucune idée lesquels peuvent être utiles, donc n'hésitez pas à demander si vous en voulez certains
NB : la ligne sudo sed ..., je ne sais plus où j'avais trouvé qu'il fallait faire ça, et je n'ai pas les raisons pour lesquels il faut faire ces modifs


Merci d'avance
Sandro

Hors ligne

#2 Le 20/03/2021, à 17:49

xubu1957

Re : Son (via bluetooth) haché

Bonjour,

Avais-tu installé : pavucontrol ?

Montre, en te servant du Retour utilisable de commande :

uname -a; lspci -nnk | grep -iA3 net; lsusb; dmesg | grep -i bluetooth; dmesg | grep -i firmware; lsmod | grep bluetooth
dpkg -l | grep blue
rfkill list all

et avec un terminal dont au préalable la fenêtre est élargie, afin de ne pas tronquer les lignes :

sudo service bluetooth status

et d'éventuels paquets cassés :

dpkg -l | grep -v ^ii
cqfd93 a écrit :

Astuce pour copier / coller sans erreur :

  • triple clic gauche pour sélectionner et copier une ligne entière

  • clic molette pour coller dans le terminal


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#3 Le 21/03/2021, à 21:08

Sandro11

Re : Son (via bluetooth) haché

Bonsoir, et merci.

Pour les commandes, je teste ça demain (le robot est au travail).

En tout cas, j'ai pas installé pavucontrol (je pourrais vérifier si par hasard c'est installé par défaut). A noter que même si de base il y a un environnement graphique, une fois le robot configuré, on ne s'en sert plus (tout passe soit par démarage automatique via rc.local, soit pour les modifications/tests par ssh/sftp)

Hors ligne

#4 Le 22/03/2021, à 10:22

Sandro11

Re : Son (via bluetooth) haché

Bonjour,
voici les sorties des commandes demandées :

xavier3@xavier3:~$ uname -a; lspci -nnk | grep -iA3 net; lsusb; dmesg | grep -i bluetooth; dmesg | grep -i firmware; lsmod | grep bluetooth
Linux xavier3 4.9.201-tegra #1 SMP PREEMPT Fri Feb 19 08:42:04 PST 2021 aarch64 aarch64 aarch64 GNU/Linux
0003:01:00.0 Network controller [0280]: Intel Corporation Wireless 8265 / 8275 [8086:24fd] (rev 78)
	Subsystem: Intel Corporation Dual Band Wireless-AC 8265 [8086:0010]
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
Bus 002 Device 002: ID 05e3:0612 Genesys Logic, Inc. 
Bus 002 Device 003: ID 2b03:f780  
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 010: ID 8087:0a2b Intel Corp. 
Bus 001 Device 009: ID 2b03:f781  
Bus 001 Device 003: ID 0424:2512 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 011: ID 12d1:14dc Huawei Technologies Co., Ltd. 
Bus 001 Device 006: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 005: ID 06c2:003b Phidgets Inc. (formerly GLAB) 
Bus 001 Device 004: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
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
[    1.055944] Bluetooth: Core ver 2.22
[    1.055988] Bluetooth: HCI device and connection manager initialized
[    1.055998] Bluetooth: HCI socket layer initialized
[    1.056007] Bluetooth: L2CAP socket layer initialized
[    1.056031] Bluetooth: SCO socket layer initialized
[    4.153149] Bluetooth: RFCOMM socket layer initialized
[    4.153164] Bluetooth: RFCOMM ver 1.11
[    4.153169] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    4.153179] Bluetooth: HIDP socket layer initialized
[    9.038410] Bluetooth: hci0: Bootloader revision 0.0 build 26 week 38 2015
[    9.039408] Bluetooth: hci0: Device revision is 16
[    9.039413] Bluetooth: hci0: Secure boot is enabled
[    9.039417] Bluetooth: hci0: OTP lock is enabled
[    9.039420] Bluetooth: hci0: API lock is enabled
[    9.039422] Bluetooth: hci0: Debug lock is disabled
[    9.039426] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[    9.047148] Bluetooth: hci0: Found device firmware: intel/ibt-12-16.sfi
[    9.196524] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    9.196542] Bluetooth: BNEP socket layer initialized
[   11.000968] Bluetooth: hci0: Waiting for firmware download to complete
[   11.001394] Bluetooth: hci0: Firmware loaded in 1917653 usecs
[   11.001549] Bluetooth: hci0: Waiting for device to boot
[   11.014424] Bluetooth: hci0: Device booted in 12637 usecs
[   11.015713] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-12-16.ddc
[   11.018416] Bluetooth: hci0: Applying Intel DDC parameters completed
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.871155] bpmp d000000.bpmp: firmware tag is e73a758761f0c6d24a1e69a2ac6b5035
[    5.484456] tegra-xusb 3610000.xhci: Firmware timestamp: 2019-07-24 05:47:34 UTC, Version: 60.06 release
[    5.619498] tegra186-cam-rtcpu bc00000.rtcpu: firmware version cpu=rce cmd=5 sha1=cf2bef3ad10e437272857b76308abef8ffb80bda
[    7.396228] iwlwifi 0003:01:00.0: Direct firmware load for iwlwifi-8265-26.ucode failed with error -2
[    8.607774] iwlwifi 0003:01:00.0: Direct firmware load for iwlwifi-8265-25.ucode failed with error -2
[    8.949133] iwlwifi 0003:01:00.0: Direct firmware load for iwlwifi-8265-24.ucode failed with error -2
[    9.014305] iwlwifi 0003:01:00.0: Direct firmware load for iwlwifi-8265-23.ucode failed with error -2
[    9.025848] iwlwifi 0003:01:00.0: loaded firmware version 22.391740.0 op_mode iwlmvm
[    9.039426] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[    9.047148] Bluetooth: hci0: Found device firmware: intel/ibt-12-16.sfi
[   11.000968] Bluetooth: hci0: Waiting for firmware download to complete
[   11.001394] Bluetooth: hci0: Firmware loaded in 1917653 usecs
xavier3@xavier3:~$ 
xavier3@xavier3:~$ dpkg -l | grep blue
ii  blueman                                       2.0.5-1ubuntu1.1                                 arm64        Graphical bluetooth manager
ii  bluetooth                                     5.48-0ubuntu3.4                                  all          Bluetooth support
ii  bluez                                         5.48-0ubuntu3.4                                  arm64        Bluetooth tools and daemons
ii  bluez-obexd                                   5.48-0ubuntu3.4                                  arm64        bluez obex daemon
ii  gir1.2-gnomebluetooth-1.0:arm64               3.28.0-2ubuntu0.2                                arm64        Introspection data for GnomeBluetooth
ii  gnome-bluetooth                               3.28.0-2ubuntu0.2                                arm64        GNOME Bluetooth tools
ii  indicator-bluetooth                           0.0.6+17.10.20170605-0ubuntu3                    arm64        System bluetooth indicator.
ii  libbluetooth3:arm64                           5.48-0ubuntu3.4                                  arm64        Library to use the BlueZ Linux Bluetooth stack
ii  libgnome-bluetooth13:arm64                    3.28.0-2ubuntu0.2                                arm64        GNOME Bluetooth tools - support library
ii  pulseaudio-module-bluetooth                   1:11.1-1ubuntu7.11                               arm64        Bluetooth module for PulseAudio sound server
xavier3@xavier3:~$ 
xavier3@xavier3:~$ rfkill list all
0: bluedroid_pm: Bluetooth
	Soft blocked: no
	Hard blocked: no
1: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
2: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
xavier3@xavier3:~$ 
xavier3@xavier3:~$ sudo service bluetooth status
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/bluetooth.service.d
           └─nv-bluetooth-service.conf
   Active: active (running) since Fri 2021-03-19 20:46:34 CET; 2 days ago
     Docs: man:bluetoothd(8)
 Main PID: 6641 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bluetooth.service
           └─6641 /usr/lib/bluetooth/bluetoothd -d

mars 22 09:03:08 xavier3 bluetoothd[6641]: profiles/audio/a2dp.c:suspend_cfm() Source 0x559b4803f0: Suspend_Cfm
mars 22 09:03:08 xavier3 bluetoothd[6641]: profiles/audio/transport.c:media_request_reply() Request Release Reply Success
mars 22 09:03:08 xavier3 bluetoothd[6641]: profiles/audio/transport.c:media_owner_remove() Owner :1.44 Request Release
mars 22 09:03:08 xavier3 bluetoothd[6641]: profiles/audio/a2dp.c:a2dp_sep_unlock() SEP 0x559b4803f0 unlocked
mars 22 09:03:08 xavier3 bluetoothd[6641]: profiles/audio/transport.c:transport_set_state() State changed /org/bluez/hci0/dev_00_12_01_68_83_9F/fd0: TRANSPORT_STATE_SUSPENDING -> TRANSPORT_STATE_IDLE
mars 22 09:03:08 xavier3 bluetoothd[6641]: profiles/audio/transport.c:media_transport_remove_owner() Transport /org/bluez/hci0/dev_00_12_01_68_83_9F/fd0 Owner :1.44
mars 22 09:03:08 xavier3 bluetoothd[6641]: profiles/audio/transport.c:media_owner_free() Owner :1.44
mars 22 09:03:08 xavier3 bluetoothd[6641]: profiles/audio/a2dp.c:setup_unref() 0x559b48b8b0: ref=0
mars 22 09:03:08 xavier3 bluetoothd[6641]: profiles/audio/a2dp.c:setup_free() 0x559b48b8b0
mars 22 09:03:08 xavier3 bluetoothd[6641]: profiles/audio/avdtp.c:avdtp_unref() 0x559b48d780: ref=2
xavier3@xavier3:~$ 
xavier3@xavier3:~$ dpkg -l | grep -v ^ii
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                          Version                                          Architecture Description
+++-=============================================-================================================-============-=========================================================================================================================================================================================
rc  dc                                            1.07.1-2                                         arm64        GNU dc arbitrary precision reverse-polish calculator
rc  libsane-hpaio:arm64                           3.17.10+repack0-5                                arm64        HP SANE backend for multi-function peripherals
rc  oem-config                                    18.04.14.15                                      all          Perform end-user configuration after initial OEM installation
rc  oem-config-gtk                                18.04.14.15                                      all          GTK+ frontend for end-user post-OEM-install configuration
rc  ssl-cert                                      1.0.39                                           all          simple debconf wrapper for OpenSSL
xavier3@xavier3:~$ 

Est-ce que celà évoque quelque chose pour vous?
Y a-t-il d'autres tests à faire?

Merci d'avance
Sandro

EDIT : j'ai lancé ces commandes quelques minutes après le démarage du robot, à un moment où le son semble fonctionner correctement. Est-ce utile de relancer les mêmes commandes lors du prochain épisode de problèmes de son?

Dernière modification par Sandro11 (Le 22/03/2021, à 10:24)

Hors ligne

#5 Le 22/03/2021, à 10:38

xubu1957

Re : Son (via bluetooth) haché

Bonjour,

Je vois :

profiles/audio/a2dp.c:suspend_cfm() Source  Suspend_Cfm
profiles/audio/transport.c:transport_set_state() State changed /org/bluez/hci0/dev_00_12_01_68_83_9F/fd0: TRANSPORT_STATE_SUSPENDING -> TRANSPORT_STATE_IDLE

Je n'ai pas souvenir d'avoir recherché pour ce type de messages.

_ _ _

Je trouve ce fil > [SOLVED] Bluetooth HSP profile stopped working recently

Dernière modification par xubu1957 (Le 22/03/2021, à 10:49)


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#6 Le 22/03/2021, à 15:13

Sandro11

Re : Son (via bluetooth) haché

Rebonjour,
et merci beaucoup.

Tout comptes fait, il semblerait que ce ne soit pas un problème de soft (ce que je pensais, vu qu'un redémarrage avait permis de résoudre le problème), mais un problème de hardware, vu que j'ai le même problème si je me connecte à l'ampli Bluetooth depuis le téléphone portable.

Hors ligne