03-21-2022, 02:17 PM
(This post was last modified: 03-21-2022, 02:32 PM by Tim Curtis.
Edit Reason: Remove unneeded quote
)
(03-21-2022, 12:31 PM)TheOldPresbyope Wrote:(03-21-2022, 01:47 AM)hui13 Wrote: Anyone tried Bluetooth functionality. Running 8.01 on RPI3B+ and getting following screen after scan. Same behaviour from terminal. Not the same behaviour that I had with 7.6.1 which worked as expected.
I can confirm.
@Tim Curtis
The information returned by bluetoothctl scan on seem to have changed between buster and bullseye. Sigh.
Regards,
Kent
I get this which seems pretty normal. IIRC sometimes the scan has to be run multiple times before names start appearing in the list.
I also ran bluetoothctl in SSH feeding it the commands from moOde bt.sh script and got similar results.
Code:
pi@moode:~ $ sudo bluetoothctl
Agent registered
[CHG] Controller B8:27:EB:46:EC:18 Pairable: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller B8:27:EB:46:EC:18 Discovering: yes
[NEW] Device 21:4C:AF:7E:C5:D0 21-4C-AF-7E-C5-D0
[NEW] Device 53:C1:EA:94:62:29 Google Display
[NEW] Device 11:E0:BA:4E:5D:00 11-E0-BA-4E-5D-00
[CHG] Device D8:1C:79:A8:55:24 RSSI: -54
[CHG] Device D8:1C:79:A8:55:24 TxPower: 12
[NEW] Device 28:FF:3C:8B:E8:59 28-FF-3C-8B-E8-59
[NEW] Device 48:69:18:19:BE:8A 48-69-18-19-BE-8A
[NEW] Device F0:B3:EC:0A:F7:B1 F0-B3-EC-0A-F7-B1
[NEW] Device 76:E0:F1:5B:83:27 76-E0-F1-5B-83-27
[NEW] Device 17:2E:6F:0B:2C:74 17-2E-6F-0B-2C-74
[NEW] Device 77:CF:83:AE:F6:3C 77-CF-83-AE-F6-3C
[NEW] Device C8:69:CD:15:1F:EE C8-69-CD-15-1F-EE
[NEW] Device 67:AA:6B:06:2F:3C Jabra Evolve2 85
[NEW] Device A4:77:58:09:EE:C8 Anker SoundCore
[CHG] Device 11:E0:BA:4E:5D:00 RSSI: -82
[NEW] Device 79:C9:8B:D1:01:7A 79-C9-8B-D1-01-7A
[NEW] Device 47:A9:E5:F1:2C:96 47-A9-E5-F1-2C-96
[NEW] Device 63:27:B8:5E:BC:DD 63-27-B8-5E-BC-DD
[bluetooth]# scan off
Discovery stopped
[CHG] Device 63:27:B8:5E:BC:DD TxPower is nil
[CHG] Device 63:27:B8:5E:BC:DD RSSI is nil
[CHG] Device 47:A9:E5:F1:2C:96 TxPower is nil
[CHG] Device 47:A9:E5:F1:2C:96 RSSI is nil
[CHG] Device 79:C9:8B:D1:01:7A TxPower is nil
[CHG] Device 79:C9:8B:D1:01:7A RSSI is nil
[CHG] Device A4:77:58:09:EE:C8 TxPower is nil
[CHG] Device A4:77:58:09:EE:C8 RSSI is nil
[CHG] Device 67:AA:6B:06:2F:3C RSSI is nil
[CHG] Device C8:69:CD:15:1F:EE TxPower is nil
[CHG] Device C8:69:CD:15:1F:EE RSSI is nil
[CHG] Device 77:CF:83:AE:F6:3C TxPower is nil
[CHG] Device 77:CF:83:AE:F6:3C RSSI is nil
[CHG] Device 17:2E:6F:0B:2C:74 RSSI is nil
[CHG] Device 76:E0:F1:5B:83:27 RSSI is nil
[CHG] Device F0:B3:EC:0A:F7:B1 TxPower is nil
[CHG] Device F0:B3:EC:0A:F7:B1 RSSI is nil
[CHG] Device 48:69:18:19:BE:8A TxPower is nil
[CHG] Device 48:69:18:19:BE:8A RSSI is nil
[CHG] Device 28:FF:3C:8B:E8:59 TxPower is nil
[CHG] Device 28:FF:3C:8B:E8:59 RSSI is nil
[CHG] Device D8:1C:79:A8:55:24 TxPower is nil
[CHG] Device D8:1C:79:A8:55:24 RSSI is nil
[CHG] Device 11:E0:BA:4E:5D:00 RSSI is nil
[CHG] Device 53:C1:EA:94:62:29 RSSI is nil
[CHG] Device 21:4C:AF:7E:C5:D0 RSSI is nil
[CHG] Controller B8:27:EB:46:EC:18 Discovering: no
[bluetooth]# quit
pi@moode:~ $ sudo bluetoothctl
Agent registered
[CHG] Controller B8:27:EB:46:EC:18 Pairable: yes
[bluetooth]# devices
Device 63:27:B8:5E:BC:DD 63-27-B8-5E-BC-DD
Device 47:A9:E5:F1:2C:96 47-A9-E5-F1-2C-96
Device 79:C9:8B:D1:01:7A 79-C9-8B-D1-01-7A
Device A4:77:58:09:EE:C8 Anker SoundCore
Device 67:AA:6B:06:2F:3C Jabra Evolve2 85
Device C8:69:CD:15:1F:EE C8-69-CD-15-1F-EE
Device 77:CF:83:AE:F6:3C 77-CF-83-AE-F6-3C
Device 17:2E:6F:0B:2C:74 17-2E-6F-0B-2C-74
Device 76:E0:F1:5B:83:27 76-E0-F1-5B-83-27
Device F0:B3:EC:0A:F7:B1 F0-B3-EC-0A-F7-B1
Device 48:69:18:19:BE:8A 48-69-18-19-BE-8A
Device 28:FF:3C:8B:E8:59 28-FF-3C-8B-E8-59
Device 11:E0:BA:4E:5D:00 11-E0-BA-4E-5D-00
Device 53:C1:EA:94:62:29 Google Display
Device 21:4C:AF:7E:C5:D0 21-4C-AF-7E-C5-D0
Device D8:1C:79:A8:55:24 Tim’s iPhone
[bluetooth]# quit
pi@moode:~ $
I did notice in the bt.sh script the SCAN() function which uses expect is looking for the wrong responses from the "scan on" and "scan off" commands. It won't affect the scan results but I'll fix it for upcoming 8.0.2 bug fix release.
Code:
pi@moode:~ $ sudo /var/www/command/bt.sh -s
** Scanning for devices (20 secs)
**
** Trusted devices
** A4:77:58:09:EE:C8 Anker SoundCore
** 47:A9:E5:F1:2C:96 47-A9-E5-F1-2C-96
** C8:69:CD:15:1F:EE C8-69-CD-15-1F-EE
** 19:E4:84:03:62:C6 19-E4-84-03-62-C6
** F0:B3:EC:0A:F7:B1 F0-B3-EC-0A-F7-B1
** 11:E0:BA:4E:5D:00 11-E0-BA-4E-5D-00
** 46:21:85:41:25:7F Echo Dot-4WH
** 53:C1:EA:94:62:29 53-C1-EA-94-62-29
** 76:94:DF:8F:BD:CD 76-94-DF-8F-BD-CD
** 28:FF:3C:8B:E8:59 28-FF-3C-8B-E8-59
** 2E:AE:40:0C:24:FF 2E-AE-40-0C-24-FF
** 60:F0:E0:A6:A4:F3 Jabra Evolve2 85
** D8:1C:79:A8:55:24 Tim’s iPhone
**
** Scan complete
pi@moode:~ $