Quote:Update: I tried upgrading the pi-bluetooth package to 0.1.18 ("apt-get update; apt-get install pi-bluetooth". That changed things. The MAC address appears stable now. But I still could not connect from the phone initially. I *could* however connect from bluethoothctl using the "connect xx:xx:xx:xx:xx" command though... and after I did that the first time, I could subsequently connect and reconnect from the phone even after Pi reboots... so it's better.
Not sure if the upgrade will cause me other problems though. Will report back.
I started again from a new image... appears to have the same problem. Initial controller MAC address changes after a bluetooth restart.
Slightly abridged transcript below starting from an initial boot...
I suppose I could trigger an additional bluetooth restart at the end of the boot process but that seems a bit hacky.
Code:
$ ssh pi@192.168.178.42
pi@192.168.178.42's password:
RaspiOS 10.6 | 5.4.77-v7l+ #1371 | armv7l (32-bit)
Hardware: Pi-4B 1.4 2GB
____ __ ____
__ _ ___ / __ \___/ /__ /_ /
/ ' \/ _ \/ /_/ / _ / -_) / /
/_/_/_/\___/\____/\_,_/\__/ /_/
moOde audio player
Release 7.4.1 2021-10-02
(C) 2014 Tim Curtis
The programs included with moOde are free software; the
exact distribution terms for each program are described
in the individual files in /usr/share/doc/*/copyright.
Moode comes with absolutely no warranties expressed or
implied, or any other guarantees.
Last login: Sun Oct 10 11:49:50 2021 from 192.168.178.31
pi@moode:~ $ sudo bluetoothctl
Agent registered
[CHG] Controller E4:5F:01:16:C7:B3 Powered: yes
[CHG] Controller E4:5F:01:16:C7:B3 Alias: Moode Bluetooth
[CHG] Controller E4:5F:01:16:C7:B3 Pairable: yes
[CHG] Controller E4:5F:01:16:C7:B3 Discoverable: yes
[CHG] Controller E4:5F:01:16:C7:B3 Powered: no
[CHG] Controller E4:5F:01:16:C7:B3 Discovering: no
[CHG] Controller E4:5F:01:16:C7:B3 Powered: yes
[CHG] Controller E4:5F:01:16:C7:B3 Powered: no
[CHG] Controller E4:5F:01:16:C7:B3 Discovering: no
[CHG] Controller E4:5F:01:16:C7:B3 Powered: yes
[bluetooth]# show
Controller E4:5F:01:16:C7:B3 (public)
Name: Moode Bluetooth
Alias: Moode Bluetooth
Class: 0x000c041c
Powered: yes
Discoverable: yes
Pairable: yes
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0532
Discovering: no
[CHG] Device 48:2C:A0:1C:67:3A Connected: yes
[CHG] Device 48:2C:A0:1C:67:3A Connected: no
<<<<attempted to pair from phone and failed at this point>>>>
[bluetooth]# exit
pi@moode:~ $ sudo systemctl restart bluetooth
pi@moode:~ $ sudo bluetoothctl
Agent registered
[bluetooth]# show
Controller B8:27:EB:D6:E3:FA (public)
Name: Moode Bluetooth
Alias: Moode Bluetooth
Class: 0x000c041c
Powered: yes
Discoverable: yes
Pairable: yes
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0532
Discovering: no
[CHG] Device 48:2C:A0:1C:67:3A Connected: yes
<<<<Connected successfully from phone here>>>>