Questions tagged [bluez]

61 questions
9
votes
2 answers

How to stream sound to a bluetooth device from a raspberry pi zero

I have a raspberry pi zero W and I would like to stream sound over bluetooth to a bluetooth-enabled speaker / headphone. So how to achieve this with alsa?
Besi
  • 1,004
  • 4
  • 14
  • 26
6
votes
3 answers

Bluetooth status: inactive (dead)

I have uninstalled BlueZ from my raspberry pi. sudo apt-get --purge remove bluez Then, I reinstalled it using this tutorial: wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.47.tar.xz tar -xvf bluez-5.47.tar.xz cd bluez-5.47/ ./configure…
vvvvv
  • 299
  • 1
  • 2
  • 12
5
votes
1 answer

Bluetooth Blues

I've discovered again that cursing and swearing at inanimate objects doesn't actually improve things, so I'll try posting a question. A couple of months ago I attempted a fairly ambitious project (Sonos Bluetooth Bridge) with my RPi that didn't…
Seamus
  • 23,558
  • 5
  • 42
  • 83
4
votes
0 answers

BLE Connect fails with page timeout

I've got a custom BLE 4.1 device and I'm trying to connect it to Raspberry PI 3 B+ using hcitool, gatttool, bluetoothctl, ..., without success. The device is an NRF BLE chip with the Nordic UART Service. So far what I got is: The device shows up in…
PirklW
  • 141
  • 3
3
votes
1 answer

Bluetooth disconnects when SSH connection closes (RPi Zero 2)

I am trying to use a headless Rpi Zero 2 (Raspian 11) for bluetooth audio streaming. I can establish a connection to a bluetooth speaker using bluetoothctl connect XX:XX:XX:XX:XX:XX from an SSH connection and then stream audio through a pulseaudio…
Tim
  • 161
  • 1
  • 5
3
votes
0 answers

How to make sure BlueZ NoInputNoOutput agent does not ask for user authorization?

I am trying to pair my custom made BLE device with a Raspberry Pi 4, using the bluepy library, programmatically. I do not want to press "accept" or type "yes" whenever I try to pair. I want it to accept pairing automatically. However, whenever I try…
robino16
  • 131
  • 1
  • 3
3
votes
4 answers

Raspberry Pi 3B+ BLE peripheral : Android can't retrieve services list, OK with iPhone and Win10

I try to make a Raspberry Pi 3B+ act as a BLE peripheral. I downloaded latest version (5.50) of bluez stack here : https://git.kernel.org/pub/scm/bluetooth/bluez.git. I execute provided examples in /test/ directory. When I run…
fdamien12
  • 49
  • 4
2
votes
0 answers

Problem with the import bluetooth!

I have tried a lot of this lines programs but the terminal it keep's complaint. Error message: Import Error:No module named bluetooth._bluetooth I have install some lib but again the problem it shows. The code is not mine, I have take from here:…
Lilfio
  • 21
  • 3
2
votes
1 answer

Raspberry PI fails to connect to BLE Device but a Linux Laptop connects successfully

Problem: A python based BLE central program, when run on a Raspberry Pi, failed to connect to BLE peripheral device (a custom board based on Nordic processor). The same python program successfully connected to the BLE peripheral device when run on…
ugmurthy
  • 21
  • 3
2
votes
1 answer

BlueZ receive Bluetooth sensor information

Good afternoon, First of all I apologize for asking questions in this thread but this is my first time writing on StackExchange. I am doing a university work where it is necessary through a Raspberry Pi to access information that is reported by a…
jf_PT
  • 21
  • 3
2
votes
1 answer

Scripting bluetoothctl causes it to fail after connection

I'm connecting to a custom BLE enabled board. Running bluetoothctl, I can pair and connect no problem from the command line. I've been attempting to script it using Python and pexpect. Pexpect spawns a bluetoothctl instance, and then sends commands…
1
vote
1 answer

bluez - failure to pair bluetooth remote

I'm trying to pair my PS3 remote with my RPi 3, through bluetoothctl. The steps I'm attempting: place the remote in pair mode run bluetoothctl [bluetooth]# devices Device 00:19:C1:5A:24:7B BD Remote Control [bluetooth]# pair…
1
vote
1 answer

Develop a communicattion between a Raspberry with BLE server and a Raspberry with BLE client

I have been developing an small project which requieres a communication between two Raspberries, the first one acts as a Beacon and the second one tries to connect to that beacon and obtain the RSSI and the small data that had been written into the…
1
vote
1 answer

Connecting a new Bluetooth device without monitor?

We are trying to connect a Bluetooth device without a passkey and trusting default yes in Python. I am running a headless Raspberry PI 3, and I want it to automatically accept pairings from any device. I saw this answer in an identical…
ViGoRa
  • 17
  • 7
1
vote
1 answer

Raspberry Pi 4B Ubuntu 22.10 Bluetooth scan successful but fail to pair

My mouse stopped working a few days ago and is unable to work since then. I tried but fail to pair it again through either Terminal or Settings > Bluetooth. The Bluetooth right now is able to discover other blue devices but is just unable to pair…
yts61
  • 119
  • 3
1
2 3 4 5