Questions tagged [bluetooth]

For questions pertaining to Bluetooth setup, usage and troubleshooting on the Raspberry Pi, whether onboard or via a USB dongle.

Filter by
Sorted by
Tagged with
2
votes
1answer
116 views

Access Denied when scanning for BLE (Bluetooth Low Energy) devices

I'm running an up to date version of Buster on a Pi 3B+ (v1.3) and my Python program dies with txdbus.error.remoteerror: org.freedesktop.DBus.Error.AccessDenied: Rejected send message errors unless I ...
0
votes
2answers
808 views

Send data to pc over bluetooth or wifi

I am working on a project where i have a motion sensor connected to a arduino connected to a raspberry pi and when the motion sensor detects movement i turn of my Windows pc. I want to connect the ...
4
votes
2answers
745 views

Where to get Bluetooth/Bluetooth.h for Raspberry Pi?

This is a stupid question. But I cannot find a solution to it. I am trying to build a BLE application with reference to this tutorial https://people.csail.mit.edu/albert/bluez-intro/c404.html. I am ...
1
vote
0answers
35 views

Bluetooth retransmission

I'm doing a project of automation, and I would like to implement a bluetooth "retransmitter" for sound. I'm currently using Raspberry PI 4 (4gb ram) with ubuntu desktop client 20.10 This is ...
1
vote
1answer
173 views

How to open a window with the output of a sensor connected via Bluetooth serial port with Python? [closed]

I connected 3 sensors via Bluetooth serial port to a Raspberry Pi 4 with the following Python program: import socket serverMACAddress1 = 'XX:XX:XX:XX:XX:XX' serverMACAddress2 = 'XX:XX:XX:XX:XX:XX' ...
0
votes
1answer
1k views

Connecting Various Devices Using Bluetooth as Serial Port

I managed to connect a sensor via Bluetooth to a serial port on the Raspberry Pi 4 by doing the following: First, I added the SP profile to the Raspberry by opening and editing the following file: ...
0
votes
1answer
182 views

headless blind remote unattended Bluetooth pairing

I need a Pi to pair promiscuously with anything with a Bluetooth antenna, because we need to use it headless, in the field, with no desktop, to pair to a Brand X tablet. Here's the existing literature ...
1
vote
1answer
301 views

Bluetooth Audio not working with Chromium

I am having a problem using Chromium with bluetooth. I have a new Raspberry Pi 4 with Raspbian Buster. Using VLC, or aplay at command prompt, I can hear audio through bluetooth headset. However, I ...
1
vote
0answers
47 views

Sound output unpredictable

I'm a bit at a loss to describe the issues I have because they don't really seem consistent to me. I use a raspberry pi 4 running raspbian. When I boot I have sound through 3,5 jack I can change ...
1
vote
0answers
44 views

Connecting a phone to a Pi 3A+ using Bluetooth fails

I want to connect my phone using BLE to a Pi 3A+. For testing I have set up a Bluetooth server using this code. I have tried connecting with nRF Connect on both a Motorola Moto e5 (Android 8.0) and a ...
3
votes
3answers
6k 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 ...
0
votes
1answer
29 views

Why does my Bluetooth adapters only allow connection to 5 BLE sensors?

I am trying to connect 7 BLE sensors to my Raspberry Pi using an external bluetooth adapter. However, I can only connect 5 units simoustanely. I have tried with three different bluetooth adapters. Two ...
0
votes
1answer
147 views

How to connect raspberry pi zero v1.3 with arduino over bluetooth (HC-06)

I have raspberry pi zero v1.3 which have no build in bluetooth, i want to use hc-06 bluetooth module with raspberry pi and arduino for serial communication, just for receiving data from arduino to ...
1
vote
1answer
92 views

How do you stream audio from one RPi to another?

I have a RPi Zero W running Stretch and equipped with an Adafruit speaker bonnet. I have followed these instructions including points 1 and 2 mentioned in the comments. The result is a functioning ...
0
votes
1answer
395 views

Is it possible to connect a Raspberry Pi with multiple inertial sensors simultaneously via Bluetooth?

I'm working on a project in which I have to connect 3 (or more) inertial sensors to a virtual reality headset (OculusQuest) via Bluetooth, but the problem is that it only accepts one connection, so I ...
0
votes
0answers
53 views

Temperature/PH/Humidity sensors Wireless?

I am designing an irrigation system. I have already put in place the pump piece, piloted by the Raspberry through a relay. Please note that this is an outdoor system, so the less wires are there the ...
1
vote
1answer
323 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
99 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
224 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 ...
2
votes
1answer
229 views

Bluetooth connection between Android smartphone and Raspberry Pi fails

A Bluetooth connection with a fresh flashed Raspberry Pi OS should work out of the box, at least with a Media audio profile. I can pair the smartphone and the RasPi but I cannot connect using ...
1
vote
1answer
233 views

How to broadcast a message with EddyStone beacon?

I am using a pi as a beacon and I have implemented EddyStone beacon URL. I can broadcast short URLs with no issue but now I want to broadcast a simple message which is stored as a string in a text ...
1
vote
0answers
152 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
1answer
63 views

How can I copy Bluetooth pairings from a working Raspbian to a fresh installation

How can I copy Bluetooth pairings from a working Raspbian to a fresh installation. Setting up on each new installation destroys existing pairings.
3
votes
1answer
998 views

Bluetooth Blues, Redux

NOTE: All questions here pertain to Raspberry Pi OS, Lite version I have asked a similar question here, without getting an answer. Eighteen months have passed, new information has come to light and I ...
1
vote
0answers
67 views

How can I make Raspberry Pi's Bluetooth discoverable to iPhone or iOS? [duplicate]

I've got a Raspberry Pi 4B, when I use an Android phone to connect to the Pi with Bluetooth, it works normally, both pairing and connection. But when I use an iPhone to do the same thing, the phone ...
2
votes
1answer
1k views

BLE connection timeout on Pi3 B+

With a Pi 3B and a Pi Zero I'm able to connect to a BLE device without problem, but if I try to connect to the same BLE device with a Pi 3B+ it connect and disconnect after 1s with a timeout error : ...
0
votes
1answer
676 views

Pi 4 - How do I auto-connect to the bluetooth device with the strongest signal and send a file over bluetooth?

I am trying to connect to a bluetooth device with my Pi 4 via Bluetooth. Upon boot, I want the Pi 4 to automatically turn on its bluetooth and select the device with the strongest signal and then ...
2
votes
1answer
1k views

Running the Pi as a bluetooth host device rather than a client in python

I'm trying to find some example code for using the pi as a bluetooth device so that other devices can search for it and pair with it. Specifically I want to make it behave like a bicycle power meter ...
1
vote
0answers
139 views

Share raspberry pi ethernet connection via bluetooth

So, basically I'm moving into a new flat for university and the only possibility to get internet access currently is through ethernet ports. I know you can do bluetooth tethering to get your ...
0
votes
1answer
279 views

Connecting from an NRF52480 to a Raspberry Pi Zero

I too am trying to connect the NRF52840 (ItsyBitsy) to a Raspberry Pi Zero via bluetooth. As I am very new at this, I am having trouble where to start. What I do have running is the ItsyBitsy board ...
1
vote
1answer
201 views

I want to allow two instances of mPlayer to play music over a single bluetooth link to a speaker

I have an application which makes two uses of playing two files at the same time. The first is where it plays a white-noise file very quietly and continuously so that the sound-card does not go to ...
2
votes
1answer
2k views

How PowerOff Bluetooth on Pi4?

There's some information around disabling Bluetooth interface on boot for Raspberry Pi3 and previous, as described on this page: Disable power on Wifi and Bluetooth interfaces during boot? The same ...
1
vote
1answer
379 views

Pi Zero W Bluetooth Connection Getting Dropped

I have a Rpi Zero W with headless setup and I am trying to connect my bluetooth speaker into my Raspberry Pi W. I followed this Setup Bluetooth on Raspberry Pi I followed these steps to be exact 1. ...
4
votes
1answer
5k views

RPI 4B - Bluetooth unavailable on Ubuntu 20.04

I want to use Bluetooth on a Raspberry Pi 4B which has Bluetooth included. I used an Ubuntu 20.04 64-bit server image (using the Imager) mostly because I already know this OS. After a fresh install, ...
-1
votes
1answer
122 views

What's the best solution to detect the coming of a person [closed]

I have a robot which should detect an approaching person and identify them in a range of about 1-3 meters. For that, the person should have something on their key ring, ideally without battery life ...
1
vote
0answers
64 views

Receive and send bluetooth audio to bluetooth device from Raspberry Pi 3

I have the Raspberry Pi 3 with the latest version of Raspbian Buster and I am looking for a way to have the RPi to receive Bluetooth Audio from a phone or laptop and output the audio to a bluetooth ...
0
votes
0answers
38 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
182 views

No audio from HDMI, Bluetooth, or Jack port (Raspberry Pi 4B)

new user here. Finally got around to using my raspberry pi 4B this week and I'm having troubles getting audio from all 3 methods mentioned in the title. I've researched here and there for hours about ...
0
votes
1answer
530 views

Trouble Connecting Raspberry Pi 4 to Android Phone Via Bluetooth

I've been trying to connect my Raspberry Pi 4 to an Android phone via Bluetooth by following these tutorials first tutorial, needs translation, second tutorial, and last tutorial. Since I currently ...
0
votes
1answer
723 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
1k 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
6k views

Bluetooth library for Raspberry Pi

Based on this update of the author of bluepy https://github.com/IanHarvey/bluepy/issues/403 it looks like it will take some time before it is updated or might be abandoned if there is no further ...
2
votes
1answer
719 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
364 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
1answer
269 views

Best way to expose a web interface without connecting to a Wifi

I've multiple small projects on raspberry pi zero w in mind. They are all some 3D printed part that will have some led, sensors, ... Usually, they will work independently, and some of them will be ...
0
votes
2answers
476 views

Installing Gattlib error

Like many others, I've had problems installing gattlib using pip. I've followed the steps outline in this question to no avail: Pybluez and Gattlib error The steps that give me the error: hg clone ...
1
vote
1answer
43 views

Disallow multiple bluetooth connections

I recently created a Raspberry Bluetooth music player with MQTT control, and discovered that, Raspberry allows multiple users to connect at the same time, and plays up to 3 people's music (which is ...
1
vote
0answers
22 views

How do I fix my crashed bluetooth? [duplicate]

After an apt update today, my bluetooth menu disappeared from the menu bar. Even the services are not running anymore. Whenever I am trying to fix something(with systemctl and apt), this message ...
0
votes
1answer
648 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 ...
1
vote
0answers
364 views

RPi Zero W as bluetooth keyboard / mouse "passthrough"

I'm looking for a solution to allow me to use the RPi Zero W as a gadget that will connect to my bluetooth keyboard and then present itself to my PC as a regular USB keyboard. This is workaround to ...

1 2
3
4 5
16