Questions tagged [bluez]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
72 views

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 ...
1
vote
1answer
32 views

BlueZ with Raspberry Pi 3

I'm working on a project that involves interfacing a PC (windows based) with a raspberry pi 3 using Bluetooth with c++. I've done some research and found that the library BlueZ is one of the best ...
0
votes
1answer
34 views

Unable to broadcast string as beacon

this question is a continuation of the previous one on "How to read a string from a file and advertise as a beacon?". Link here: How to read a string from a file and advertise as a beacon? ...
0
votes
1answer
70 views

How to read a string from a file and advertise as a beacon?

I am using Raspberry Pi to advertise a string stored in a text file on Desktop. I am very new to the concepts of GATT services and characteristics and reading the BlueZ documentation caused me ...
1
vote
0answers
49 views

Using PyDBUS to read BLE battery service

I tried to read battery service (0x180F) using pydbus and also via term but unable to find, setNotify or read the value. I tried to register-service under Menu GATT in Terminal running Bluetoothctl ...
0
votes
0answers
31 views

Some Bluetooth devices are not detecting in raspberry PI 3

when I use "bluetoothctl scan on" command some mobile phone not detecting. ex - when I scan and turn on mobiles phone Bluetooth Huawei mobile phones can be detected and Oneplus 5T cannot be ...
0
votes
0answers
36 views

Reading, converting Object Array

I am trying to compile : new_value = int(1500).to_bytes(2, byteorder='little') but it throws error in Python 3.5 and 3.8. I am new in python and couldn't find an explanation on this. And also how to ...
0
votes
1answer
118 views

Raspberry pi 4 bluetooth file transfer rate [closed]

I am new to raspberry pi so please forgive me if I ask a silly question. What I am trying to do is send files from my windows 10 laptop to raspberry pi with raspbian OS, I was able to send some data (...
1
vote
2answers
254 views

BlueZ BTGATT-client.py WriteValue

I had a successful attempts with BlueZ-5.50 > test > example-gatt-client.py with ESP32 set as HeartRate Sensor Server.I am able to read from ESP32 which i modified to suit the BlueZ example. ...
1
vote
1answer
195 views

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 ...
1
vote
1answer
72 views

Not getting an “Enter Pin” prompt when pairing with BLE device

I have a custom board that uses BLE to get Wifi credentials. I'm trying to pair with the board using my Pi. I'm using bluetoothctl. Here's what I get when I try to pair: [bluetooth]# agent on Agent is ...
0
votes
0answers
11 views

Pi4, BlueZ Limit channels

(How) is it possible to limit the usable channels for bt connections? I.e I want to connect to a device with gatttool. As gatttool does not have any of this low-level setting., can I somehow limit the ...
0
votes
1answer
140 views

BLE data receive and send from arduino HC08 to raspberry pi

I have noticed that there are lots of topics about classic BT connect to arduino and send data to raspberry pi by creating virtual port (using rfcomm) I have tried this method for BLE Device. However ...
0
votes
1answer
108 views

Unable to locate package python3-bluez

I'm stuck at the installation process for openhabian , I realized I couldn't get package python3-bluez to install. script ran : needed_packages() { # Install apt-transport-https - update ...
1
vote
1answer
84 views

Raspberry Pi Bluetooth HCI Event Code Meaning

I am recently playing with Bluetooth on my Raspberry Pi. I understand the code such as: sudo hcitool -i hci0 cmd 0x08 0x0008 1e 02 01 1a 1a ff 4c 00 02 15 e2 c5 6d b5 df fb 48 d2 b0 60 d0 f5 a7 10 ...
0
votes
0answers
39 views

Connect nrf52 Board to Raspberry Pi(as gateway) and create mesh network using other raspberry pis(as nodes),nrf52 dk will be mediator between Pis

I am making mesh network using Raspberry pi and NRF52 DK. I install bluez 5 and meshctl on raspberry pi. I successfully connected nrf52 dk using bluetooth. I attached screen shot. Now, I want to ...
0
votes
1answer
224 views

How to restart/release rfcomm for bluetooth communication?

I am trying to connect raspberry pi to my galaxy note to use it for serial communication. I have somewhat succeeded at that. First I paired it and trusted through bluetoothctl. Then I run sudo rfcomm ...
0
votes
1answer
26 views

How to set up bluetooth broadcasting on a pi 3 b v1.2

um new to working with bluetooth on linux or on a raspberry pi but i have managed to set up the controllers. What i want to accomplish now is using python to connect or broadcast my raspberry pi as a ...
0
votes
0answers
60 views

Adding Flags to BLE HID Advertisement using bluez Raspberry Pi 3 Model B+

I'm trying to mock a BLE connection between and Android phone and a HID BLE mouse by using bluez 5.50 on a Raspberry Pi 3 Model B+ to create a mock HID BLE mouse. I've managed to advertise the device ...
0
votes
0answers
248 views

bluetoothd: Failed to obtain handles for “Service Changed” characteristic

I can't manage to make my Pi 3 bluetooth working. As you can see I updated the /etc/systemd/system/bluetooth.target.wants/bluetooth.service file. But it doesn't seem to make the service working. $ ...
1
vote
0answers
34 views

RPi3 Bluetooth Tethering Setup

I'm trying to setup automatic Bluetooth Tethering without a GUI, and I can't find anything that works online. A lot of forums just end at the mention of "Blueman." The only way I could even find to ...
0
votes
0answers
478 views

Bluetooth hci0 device suddenly missing on 4B

After a recent reboot of my 4B I noticed that my bluetooth connections had stopped working. I noticed that bluetoothctl reported no device, and further that sudo hciconfig hci0 up indicates Can't get ...
1
vote
0answers
28 views

What is this prompt saying about bluetooth?

I tried to fix some problems with the bluetooth and uninstall pi-bluetooth. Also installed it .But the problems are bigger now. What is this prompt saying.
1
vote
1answer
750 views

Can Raspberry Pi use ANT+ as well as Bluetooth?

Since ANT+ and Bluetooth/BLE all use 2.4 GHz radio-waves, and most Raspberry Pi models can use Bluetooth, is it possible to communicate through the ANT+ protocol from a Raspberry Pi without adding any ...
0
votes
0answers
46 views

MFRC522 and Bluetooth not work together

I have a program in which I use pyqt5, MFRC522 and bluetooth. I have 3 threads, one for the interface, one for the MFRC522 and one for the bluetooth. If I run the MFRC522 and the bluetooth separately ...
0
votes
1answer
76 views

obexd - Receive files error

I am facing the below error while trying to receive files via bluetooth. The pairing is successful and sending files from the board to the phone is also successful. But receiving files from phone to ...
3
votes
3answers
581 views

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 /...
1
vote
1answer
678 views

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 ...
1
vote
1answer
617 views

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 ...
-1
votes
1answer
3k views

Rpi Bluetooth Android Device Connection Pairing Problem

I'm trying to connect my rpi0 w to any android device via Bluetooth LE(low energy) , i can pair but i can't connect them ,an error always showed (Connection failed,No usable services on this device ) ...
2
votes
1answer
231 views

Rpi Zero W - How to automatically accept bluetooth pairing and log mac and info request?

I am using Raspbian Stretch 9.4 on a Zero W. The goal is to deploy it headless for long periods of time where it will broadcast a specified bluetooth signal. When someone tries to connect to it, it ...
2
votes
0answers
335 views

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 ...
4
votes
1answer
610 views

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 (...
0
votes
0answers
554 views

hcitool does not find devices despite GUI showing multiple

I'm trying to better understand C (and bluetooth) using a Raspberry Pi 3 b+ as the testing grounds. I started by writing a C program that uses BlueZ to scan for bluetooth devices (script pretty common ...
1
vote
1answer
469 views

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 ...
0
votes
0answers
1k views

Pi zero as bluetooth keyboard?

I am attempting to use a Pi as a bluetooth keyboard. There are several guides I have found for this, such as this on from impythonist. However, they seem to be outdated, and so far as I can tell ...
0
votes
0answers
35 views

RPi 3B+ won't discover PC on bluetooth

I am trying to connect my Windows 10 PC and RPi via Bluetooth, but my RPi doesn't show my PC as an available device. My PC also does not show my RPi as available. It is weird because my phone can ...
0
votes
1answer
358 views

Pulseaudio module-combine-sink always throws Failure

I am new to pulseaudio. As per my requirement, I need my audio output to be routed to either connected speaker, bluetooth speaker, or both. I am able to play the media file on speaker, or bluetooth ...
3
votes
2answers
12k views

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?