Skip to content

bluetoothctl info command doesn't show device name #10

@janvda

Description

@janvda

Within bluetoothctl session (running in a balena terminal window for the pulseaudio-server service): using the command info <mac address> gives information on the bluetooth device, but it doesn't show the device name - instead it shows again its MAC address.

Strange enough when successfully connecting/pairing/trusting the device, from then onwards (also after reboot of balena device) the info command is always correctly showing the device name.

The below log file shows both an example of a device for which info didn't return a name and one for which info did return a name.

root@ba7c427:/# bluetoothctl
Agent registered
[NEW] Device 7F:36:E3:B5:C6:A6 7F-36-E3-B5-C6-A6
[bluetooth]# scan off
Failed to stop discovery: org.bluez.Error.Failed
[CHG] Device 00:1A:22:0F:07:67 RSSI: -86
[bluetooth]# devices
Device 71:6F:23:53:51:43 71-6F-23-53-51-43
Device 58:FF:EB:97:37:C8 58-FF-EB-97-37-C8
Device 43:3F:2B:61:1E:38 43-3F-2B-61-1E-38
Device D0:58:C7:3A:D3:41 D0-58-C7-3A-D3-41
Device 64:D7:5F:A1:F1:82 64-D7-5F-A1-F1-82
Device 70:C6:D0:A7:67:50 70-C6-D0-A7-67-50
Device 62:5D:CD:CB:AA:1B 62-5D-CD-CB-AA-1B
Device 4C:3E:7D:97:41:9C 4C-3E-7D-97-41-9C
Device 77:33:9E:DA:D4:76 77-33-9E-DA-D4-76
Device 42:11:53:8F:EB:3A 42-11-53-8F-EB-3A
Device 57:92:5E:A4:9F:B3 57-92-5E-A4-9F-B3
Device 7F:96:F1:2C:65:0A 7F-96-F1-2C-65-0A
Device 6B:9A:59:6C:F7:7B 6B-9A-59-6C-F7-7B
Device 5D:B1:7E:24:24:6F 5D-B1-7E-24-24-6F
Device 75:C8:98:AE:DD:D9 75-C8-98-AE-DD-D9
Device 7B:DE:E0:D4:F7:EE 7B-DE-E0-D4-F7-EE
Device 40:B2:B9:B2:0D:1B 40-B2-B9-B2-0D-1B
Device 56:C5:83:2C:F9:93 56-C5-83-2C-F9-93
Device 72:5E:21:EF:4E:19 72-5E-21-EF-4E-19
Device 00:80:25:C9:33:53 ASG_BLE 33
Device 71:1F:71:78:CB:B4 71-1F-71-78-CB-B4
Device 42:86:C7:E5:FA:0F 42-86-C7-E5-FA-0F
Device 60:BA:E0:7E:DA:51 60-BA-E0-7E-DA-51
Device 63:9A:A5:01:AA:3D 63-9A-A5-01-AA-3D
Device 7A:FF:F6:B3:6F:8D 7A-FF-F6-B3-6F-8D
Device 7F:25:91:0F:8D:50 7F-25-91-0F-8D-50
Device 5A:E7:A9:C0:18:80 5A-E7-A9-C0-18-80
Device 4E:EB:71:C6:2D:A1 4E-EB-71-C6-2D-A1
Device 60:23:E6:CD:AF:1B 60-23-E6-CD-AF-1B
Device 76:9C:51:B2:24:FF 76-9C-51-B2-24-FF
Device 4B:5C:93:FF:82:7C 4B-5C-93-FF-82-7C
Device 7C:7A:53:88:59:A5 7C-7A-53-88-59-A5
Device 6D:78:40:A8:CE:94 6D-78-40-A8-CE-94
Device 44:1D:51:95:86:B6 44-1D-51-95-86-B6
Device 62:9B:0C:1A:48:8C 62-9B-0C-1A-48-8C
Device 71:41:AB:0D:E8:E0 71-41-AB-0D-E8-E0
Device 5A:DD:F9:55:D9:7D 5A-DD-F9-55-D9-7D
Device 7D:84:11:D9:06:7F 7D-84-11-D9-06-7F
Device 62:B1:34:57:A3:27 62-B1-34-57-A3-27
Device 64:4B:AF:B7:67:53 64-4B-AF-B7-67-53
Device 4C:CD:F6:F5:1F:8E 4C-CD-F6-F5-1F-8E
Device 45:1C:64:67:02:F1 45-1C-64-67-02-F1
Device 00:80:25:1C:43:12 SMA001d SN: 2100453275 SN2100453275
Device 4B:E0:81:32:C7:86 4B-E0-81-32-C7-86
Device 00:1A:22:0F:07:67 CC-RT-BLE
Device A0:E9:DB:09:CF:FF GEAR4 SPW
Device F0:18:98:39:D5:C4 Jan’s MacBook Pro
Device 8C:DE:52:B4:EA:40 SRS-X11
Device 7F:36:E3:B5:C6:A6 7F-36-E3-B5-C6-A6
[bluetooth]# info  4B:E0:81:32:C7:86
Device 4B:E0:81:32:C7:86 (random)
        Alias: 4B-E0-81-32-C7-86
        Paired: no
        Trusted: no
        Blocked: no
        Connected: no
        LegacyPairing: no
        RSSI: -85
        AdvertisingFlags:
  02                                               .               
[CHG] Device 00:1A:22:0F:07:67 RSSI: -69
[NEW] Device 7F:09:35:97:89:00 7F-09-35-97-89-00
[NEW] Device 5A:B5:D2:54:40:9D 5A-B5-D2-54-40-9D
[CHG] Device 00:1A:22:0F:07:67 RSSI: -85
[bluetooth]# info 8C:DE:52:B4:EA:40
Device 8C:DE:52:B4:EA:40 (public)
        Name: SRS-X11
        Alias: SRS-X11
        Class: 0x00240414
        Icon: audio-card
        Paired: yes
        Trusted: no
        Blocked: no
        Connected: no
        LegacyPairing: no
        UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
        UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        Modalias: bluetooth:v0039p13BFd2103
[NEW] Device 79:D0:BD:29:05:A9 79-D0-BD-29-05-A9
[bluetooth]# 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions