Bluez and Bluetooth controller

1 post / 0 new
#1 Wed, 2018-04-04 16:51
Manuel
  • Manuel's picture
  • Offline
  • Last seen: 2 weeks 6 days ago
  • Joined: 2018-04-04

Hello,

I have a problem with Bluez. If I start my raspberry pi 3 with Alpine 3.6.2 my Bluetooth dongle is not visible in the list of devices in Bluetoothctl.
To make it visible, I have to launch Bluetoothctl then remove the dongle and put it back. It is then visible.
I do not understand why he is not in the list of controllers.
I do not understand why I have to remove and put back the dongle to make the controller visible in Bluetoothctl.
For information, the Raspberry Pi 3 default bluetooth controller is disable because I need to use UART.

Please see:

-- First I boot my rpi3 and execute bluetoothctl:
 
$ bluetoothctl
[bluetooth]# nnect to bluetoothd...
 
--- I ask to have the controler list:
 
[bluetooth]# list
[bluetooth]# 
 
Nothing...
 
-- I remove the dongle and put it back
 
[bluetooth]# list
[NEW] Controller 00:1A:7D:DA:71:13 BlueZ 5.44 [default]
[CHG] Controller 00:1A:7D:DA:71:13 Powered: yes
[CHG] Controller 00:1A:7D:DA:71:13 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Controller 00:1A:7D:DA:71:13 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Controller 00:1A:7D:DA:71:13 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Controller 00:1A:7D:DA:71:13 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Controller 00:1A:7D:DA:71:13 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Controller 00:1A:7D:DA:71:13 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Controller 00:1A:7D:DA:71:13 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Controller 00:1A:7D:DA:71:13 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Controller 00:1A:7D:DA:71:13 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Controller 00:1A:7D:DA:71:13 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Controller 00:1A:7D:DA:71:13 Alias: BlueZ 5.44
[CHG] Controller 00:1A:7D:DA:71:13 Pairable: yes
[bluetooth]# 
 
--- After that, I  have the controller:
 
[bluetooth]# list
Controller 00:1A:7D:DA:71:13 BlueZ 5.44 [default]
[bluetooth]# 

Informations:

$ cat /etc/alpine-release 
3.6.2
 
$ sudo rc-status
Runlevel: default
 acpid                                                                                                                                                                                           [  crashed  ]
 iptables                                                                                                                                                                                        [  started  ]
 ip6tables                                                                                                                                                                                       [  started  ]
 ntpd                                                                                                                                                                                            [  started  ]
 docker                                                                                                                                                                                          [  started  ]
 sshd                                                                                                                                                                                            [  started  ]
 testrig                                                                                                                                                                                         [  started  ]
 dbus                                                                                                                                                                                            [  started  ]
 rfcomm                                                                                                                                                                                          [  started  ]
 crond                                                                                                                                                                                           [  started  ]
 bluetooth                                                                                                                                                                                       [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 sysfs                                                                                                                                                                                           [  started  ]
 fsck                                                                                                                                                                                            [  started  ]
 root                                                                                                                                                                                            [  started  ]
 localmount                                                                                                                                                                                      [  started  ]
 klogd                                                                                                                                                                                           [  started  ]
Dynamic Runlevel: manual