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
1 vote
1 answer
142 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 ...
bobthechemist's user avatar
2 votes
1 answer
1k 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 ...
blt's user avatar
  • 37
0 votes
0 answers
64 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 ...
Edge7's user avatar
  • 123
1 vote
1 answer
650 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 ...
dmta24's user avatar
  • 31
0 votes
1 answer
172 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? ...
snow's user avatar
  • 141
0 votes
1 answer
432 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 ...
snow's user avatar
  • 141
2 votes
1 answer
454 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 ...
Ingo's user avatar
  • 41.4k
1 vote
1 answer
408 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 ...
snow's user avatar
  • 141
1 vote
0 answers
269 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 ...
R.M.S.Sundram's user avatar
0 votes
1 answer
142 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.
Milliways's user avatar
  • 57.2k
3 votes
1 answer
2k 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 ...
Seamus's user avatar
  • 20.3k
1 vote
0 answers
70 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 ...
ning's user avatar
  • 21
2 votes
1 answer
2k 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 : ...
buildog's user avatar
  • 161
0 votes
1 answer
1k 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 ...
snow's user avatar
  • 141
3 votes
1 answer
2k 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 ...
John Hunt's user avatar
  • 141
1 vote
0 answers
212 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 ...
user124218's user avatar
0 votes
1 answer
490 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 ...
Brian's user avatar
  • 1
1 vote
1 answer
357 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 ...
David Goddard's user avatar
2 votes
1 answer
4k 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 ...
Vinícius Valente's user avatar
3 votes
1 answer
703 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. ...
Mark Estrada's user avatar
5 votes
3 answers
6k 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, ...
AymDev's user avatar
  • 263
-1 votes
1 answer
127 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 ...
Dark Patate's user avatar
1 vote
0 answers
99 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 ...
Chris's user avatar
  • 11
0 votes
0 answers
43 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 ...
R.M.S.Sundram's user avatar
0 votes
1 answer
338 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 ...
wattawtashi's user avatar
0 votes
1 answer
988 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 ...
user avatar
0 votes
1 answer
1k 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 (...
Aayush Lakkad's user avatar
1 vote
2 answers
2k 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. ...
R.M.S.Sundram's user avatar
2 votes
1 answer
12k 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 ...
Rawrier's user avatar
  • 23
2 votes
1 answer
1k 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 ...
Peter Kapteyn's user avatar
1 vote
1 answer
848 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 ...
Peter Kapteyn's user avatar
1 vote
1 answer
583 views

Best way to expose a web interface without connecting to a Wi-Fi

I've multiple small projects on Raspberry Pi Zero W in mind. They are all some 3D printed parts that will have some led, sensors. Usually, they will work independently, and some of them will be moved ...
J4N's user avatar
  • 293
0 votes
2 answers
853 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 ...
Peter Kapteyn's user avatar
2 votes
1 answer
93 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 ...
Attila Nagy's user avatar
1 vote
0 answers
28 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 ...
Sohan Arafat's user avatar
  • 1,808
0 votes
1 answer
971 views

BLE data receive and send from Arduino HC08 to Paspberry Pi

I have noticed that there are lots of topics about classic Bluetooth connect to Arduino and send data to Raspberry Pi by creating virtual port (using rfcomm) I have tried this method for BLE Device. ...
Vincent Yu's user avatar
1 vote
0 answers
471 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 ...
Jens Hembach's user avatar
2 votes
1 answer
1k views

BluetoothError: (111, 'Connection refused')

I'm trying to connect raspberry pi 4 to my ubuntu laptop. I setup a rfcomm server on my laptop, the code is given below: import bluetooth server_sock = bluetooth.BluetoothSocket(bluetooth.RFCOMM) ...
null's user avatar
  • 21
1 vote
1 answer
215 views

dbus and qdbus not working suddenly

I am using dbus and qdbus to control my phone from a pi using Bluetooth to pause play etc. songs and all of a sudden dbus and qdbus dont work anymore All other functions work i can head music from he ...
Kyle M's user avatar
  • 11
3 votes
1 answer
832 views

Chopping audio over bluetooth with PulseAudio

I have an issue with a Raspberry Pi 3B+ and audio over bluetooth, it is configured with PulseAudio and BlueZ to connect my phone on the Pi, it works great but there is minor audio cuts (less than 0.5s)...
Bertrand C.'s user avatar
2 votes
1 answer
2k views

Read Incoming Bluetooth Audio On Pi With Python

this is my first post on here! I am trying to make my raspberry pi 3 a bluetooth speaker which synchronizes beat of the music being played from a phone to an LED light strip. For the LED light ...
ballin's user avatar
  • 21
0 votes
1 answer
721 views

Serial communication with arduino over bluetooth

I am using rfcomm to connect to an Arduino nano (HC-06 bluetooth module) from my RPI 4B+. It works flawlessly and the two devices are able to communicate with no issues. I need to be able to connect ...
marc.soda's user avatar
  • 111
1 vote
1 answer
4k views

RPI4 bluetooth device paired and connected and set to audio sink but wont play a sound

I saw one post with a similar title but the solution program featured did not really answer the question nor work for my case. I am paired and I have my output set to the blue tooth speaker and ...
maxsieg's user avatar
  • 70
0 votes
1 answer
929 views

Wifi, BT on RPi4

Question is very straightforward: Who is the manufacturer of the onboard Wifi of RPi4? All datasheet and specs only shows: 2.4 GHz and 5.0 GHz IEEE 802.11ac wireless, Bluetooth 5.0, BLE I'm ...
Daniel's user avatar
  • 259
3 votes
0 answers
282 views

How to stream audio via bluetooth to an airplay speaker?

I am trying to send audio using bluetooth to my raspberry pi which then should forward the music to an airplay speaker (in my case a HomePod). The first step of sending music to the pi is ...
Patrick Balada's user avatar
1 vote
1 answer
1k 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 ...
Chang's user avatar
  • 111
1 vote
0 answers
488 views

System doesn't discover bluetooth adapter

I have custom buildroot image built for Raspberry Pi Zero W. My primary goal is to be able to activate on-board blueetoth, however I seem to have immense problems achieving it. My main problem is that ...
Surcouf's user avatar
  • 33
0 votes
2 answers
267 views

Bluetooth audio not working from webserver

I created my local website for a magic mirror project. This project includes my google calendar, weather ifo, timers, internet radio, ... For the timers and internet radio I would like to hear the ...
Kristof Boeykens's user avatar
0 votes
1 answer
966 views

Connecting bluetooth keyboard automatically at boot

I made a raspberry pi robot that you can control with the keyboard and I want to use my bluetooth keyboard with it. The python program automaticley starts. I used /etc/rc.local to do this. #!/bin/sh ...
Stefan's user avatar
  • 3
1 vote
1 answer
663 views

Connecting a phone microphone to Raspberry Pi using Bluetooth

I own a Raspberry Pi 4B model and I want to record my voice with the Raspberry Pi. Since I don’t have a Bluetooth microphone or headset (with microphone incorporated), I want to connect my Samsung ...
Stefan Denis's user avatar

1 2 3
4
5
17