Questions tagged [bluetooth]
For questions pertaining to Bluetooth setup, usage and troubleshooting on the Raspberry Pi, whether onboard or via a USB dongle.
812
questions
0
votes
0
answers
7
views
Smooth change from headset_head_unit to and from a2dp_sink with a script
I want to use my bluetooth bathroom speaker. That is connected to a pi zero 2 snapcast client. to pickup phone calls when im there.
I'm stuck at the point that i cant make a sollid cli script to ...
0
votes
0
answers
17
views
OBD Raspberry Pi bluetooth and serial connections issues
So I've been trying to get my digital dashboard code working and I have to connect to the OBD plug to the Pi but ive run into a plethora of issues since then. The first time I did it, the OBD device ...
1
vote
0
answers
42
views
Process/Flow/steps for speeding of the booting time in raspberry pi for the cluster
I am using Raspberry pi for the cluster, that would display the basic data like the CAN data and one wire data.
For can I used the Can-Socket and for one wire I am just reading a gpio pin of raspberry ...
0
votes
0
answers
33
views
RPi 4 Bluetooth not functioning
I reset my raspberry pi 4 and now the bluetooth isn't working. I have tried different devices to connect to but all of them will connect and then disconnect immediately after which in the bluetooth ...
0
votes
0
answers
94
views
How to enable serial communication on Pi 4 using BookWorm OS?
Raspberry Pi 4 and Latest Raspbian Bookworm OS.
I want to have Pi 4 communicate over serial connection using GPIO14 (BCM) and GPIO15 (BCM) or UART TX and UART RX.
I have followed the same setups that ...
0
votes
0
answers
109
views
i want RPi will give internet to my desktop
I'm struggling to get internet in Desktop from Raspberry Pi.
Same steps as from mobile Bluetooth to Desktop try to access internet worked. Any solution tell me.
0
votes
0
answers
16
views
Cannot use USB presenter (Logitech, Flirc) when running Jack audio on a USB audio interface
I want to use a USB keyboard'ish device on a Pi 4 running Raspbian Buster. I tried both a Logitech R400 (radio based) device, and a Flirc programmble USB receiver for Infrared. Both work fine on a ...
0
votes
0
answers
153
views
Bleak/Python: BLE filtered scan with timeout, and getting AD data
My task is to scan for x seconds for a BLE device with a specific name or service UUID, then get the RSSI value for returned device(s).
Bleak seems to be the best option as far as I can see. I've been ...
0
votes
0
answers
46
views
Is it possible to enable an HSP/HFP profile in Raspian Bullseye?
I am running Raspian Bullseye (Debian 11) on a RaspberryPi 4b and would like to use my Apple AirPods as a 2-way headset. I've done lots of digging, followed this tutorial by Youness (https://youness....
0
votes
0
answers
17
views
Bluetooth device headset_audio_gateway profile change from available to not available during connection on a Raspberry Pi
I'm working on a Raspberry Pi 4, with a Bluetooth USB Dongle. I'm trying to use the RPi as a headset connected in bluetooth to an Android device.
I followed this tutorial: https://scribles.net/hfp-on-...
0
votes
0
answers
41
views
Troubles connecting raspberry and OBD2 through bluetooth
I try to connect my pi zero W to OBD2 module through bluetoooth. My pi is connected to my 4G iphone wifi and I communicate with it through ssh.
I used bluetoothctl and can't connect when running ...
0
votes
0
answers
34
views
BIAS attack on Raspberry Pi
I am trying to recreate the BIAS Bluetooth attack on my Raspberry Pi 3. I have successfully configured it as an audio sink (to give the connection a purpose and to impersonate my bluetooth speaker) ...
1
vote
0
answers
67
views
Use Raspberry Pi Zero WH as keyboard HID driver at boot
Background
My keyboard, a Majestouch Convertible 2, has Bluetooth capabilities such that it can connect up to 4 devices. My primary driver and the 1st device the keyboard is connected to is my desktop,...
0
votes
0
answers
27
views
HCIUART not working after Kernel Upgrade
For some experiments with BLE I did manually a kernel upgrade of a Raspberry Pi 3B+ by using (example; I tried a few versions of the official GitHub repository):
https://github.com/raspberrypi/linux/...
0
votes
0
answers
44
views
How can I use my Raspberry Pi as a Bluetooth sink with AVRCP protocol?
I've been searching the internet for two days now and have made several attempts to use my Raspberry Pi (Computemodule 4) as a Bluetooth sink with AVRCP protocol. Unfortunately, I have come to no real ...
0
votes
0
answers
14
views
Bluetooth audio does not work under ssh (but works on the GUI)
I would like to play audio from my Raspberry Pi to an external bluetooth speaker.
I have successfully connected to the device and, from within the graphical desktop (which I connect with VNC), I can ...
0
votes
0
answers
37
views
How to check if bluetooth packets are being recieved by BlueZ daemon
I'm connecting to BLE devices on a Raspberry Pi (running Raspberry PI OS (bullseye)) running BlueZ 5.68. I call BlueZ's AcquireNotify method to read incoming packets. However I'm not receiving all the ...
0
votes
1
answer
200
views
Can a Raspberry Pi Zero work with a bluetooth adapter?
Is it possible to use a bluetooth adapter (usually BLE) with a Raspberry Pi Zero? I don't mean the one that comes with built in wireless and bluetooth, I mean the one without wireless.
0
votes
1
answer
218
views
Issues when Using a Pi Zero 2W as a Bluetooth Headset
I'd like to use my Raspberry Pi Zero 2W as a Bluetooth headset to connect with my Android phone with an HSP profile. The speaker and microphone are connected via an external USB soundcard.
After ...
1
vote
1
answer
125
views
Can't play song on startup using Python and rc.local
I have a python app called main.py, that runs upon startup using rc.local.
During this app's runtime, it runs an external bash script 'play.sh' that runs vlc to play a song.
The code in the 'play.sh' ...
0
votes
1
answer
266
views
Bluetooth and UART raspberry pi zero w
My objective is to get both data from VN200 GNSS/INS sensor (using GPIO14/15) and heart rate monitor strap Polar H10 (using Bluetooth) at the same time for synchronization.
Bluetooth on pi zero w by ...
1
vote
0
answers
93
views
Can I connect to bluetooth audio and send audio OUT while using an external sound card for audio IN?
Sometime ago I used this helpful tutorial: How can I use an external USB sound-card and set it as default?
to set my external USB sound card as my default. This has been great for me as I use external ...
1
vote
2
answers
123
views
Can't play audio via BT from systemd service
I have a Pi0 which I am using to play radio or local music files via a BT speaker (see https://github.com/WhyNine/pi-radio-music for the full source code). The code is written in perl and I am using a ...
1
vote
0
answers
78
views
Issue with connecting ELM327 bluetooth adapter to raspberry pi, Bullseye latest OS
I am trying to read OBD data from ELM327 BT Adapter. I have paired it successfully, and bind using rfcomm is also OK. However, while running the obd python module I am getting the following error:
>...
1
vote
0
answers
71
views
Stadia gamepads & pi4b bullseye bluetooth disconnects
All right,
My setup consist of a RPi 4b 4gb, 4 stadia controllers, Raspberry Pi OS Bullseye.
OS on SSD connected through powered USB3 hub, also a Coral USB connected. Power should be ok.
The ...
1
vote
0
answers
48
views
How to turn PI4 into a IOT device , discoverable and configurable via mobile app (Wifi P2P or BLE) [closed]
I've created a simple camera system on the PI 4 which I want to be discoverable with a custom android app.
The should find the PI device, then automatically connect, then mobile app will share the ...
1
vote
0
answers
129
views
Bluetooth wont start at Raspberry Pi zero 2
When I run
sudo systemctl status bluetooth.service
it shows loaded but not started.
start command wont work. I have to use btusb first.
>>> sudo modprobe btusb
>>> sudo systemctl ...
2
votes
1
answer
654
views
Can't use Bluetooth COM ports from Windows 10
I have a Raspberry PI 3 model B, with built-in Bluetooth hardware, and I'm running the latest Debian distro on it (Linux raspberry 5.15.61-v7+).
I successfully paired and connected from Raspberry (...
2
votes
1
answer
273
views
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 ...
0
votes
0
answers
62
views
Fire Tv audio out put to Raspberry PI Speaker
I am currently looking to connect my Fire TV Stick and Echo Show 5 to my Soundbar that has only optical port, Line in Aux and no HDMI ! It also has inbuilt Bluetooth 5.0 !
Mostly I am looking for help ...
1
vote
0
answers
209
views
Bluetooth on my Raspberry Pi 2B does not work
My Pi is 2B Rev1.1
I connected HC-08 Bluetooth module on pin8,10.
I use Raspberry Pi OS.
In /boot/configuration.txt
enable_uart=1
In /boot/cmdline.txt
console=tty1 root=PATUUID=e77fdc5c-02 ...
3
votes
1
answer
508
views
Raspberry Pi incorrectly detected as a Bluetooth AUDIO device by Windows
The problem I have is the following: when setting my Raspberry Pi Bluetooth as discoverable, then pairing from a Windows laptop, the Raspberry is incorrectly identified as an audio device, as can be ...
1
vote
0
answers
344
views
Why does a Bluetooth LE Scan include unknown duplicates?
When I perform a Bluetooth LE Scan on my Raspberry Pi 4B (Debian Bullseye) with hcitool why does it include (unknown) entries with the same MAC address as an already listed named item?
pi@raspberrypi:~...
0
votes
0
answers
898
views
Bluealsa on Pi Zero can not be installed
I am trying to install bluealsa package but getting this error :
pi@raspberrypi:/usr/libexec/bluetooth $ sudo apt-get install bluealsa
Reading package lists... Done
Building dependency tree... Done
...
1
vote
0
answers
488
views
Bluetooth stopped working on Raspberry Pi 4
Bluetooth was working fine on my Bluetooth stopped working on Raspberry Pi 4 and then just it stopped turning on even on the GUI.
The rfkill list shows the following results:
0: phy0: Wireless LAN
...
2
votes
0
answers
219
views
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. ...
0
votes
0
answers
59
views
How to get board game pawns position
I am building a semi-digital version of the famous Monopoly game.
For this, I'm using a screen with a Bubble.io app for the interface:
Now, I would ideally like to detect the physical position of the ...
1
vote
0
answers
96
views
Car bluetooth receiver with CANBUS for speed sensitive volume and steering wheel controls?
After reading on some canbus control packages, I'm confident that a raspberry pi based bluetooth receiver can be made so that it understands vehicle speed and increases volume as the vehicle speeds up ...
0
votes
0
answers
127
views
Bluetooth 1200ms delay on Raspberry Pi using bluez (GATT Server)
I have set up GATT server on Raspberry Pi, and I am experiencing huge delay of about, 1200ms. To check delay, I am using nRF Connect on iPhone. I am using Raspberry Pi zero w and bluez bindings for ...
1
vote
1
answer
451
views
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 ...
2
votes
0
answers
104
views
Headless Pi auto-pairs to tablet, but if the tablet drops the pair then the controller won't re-pair
tl;dr
...how do Bluetooth speakers with only an On button rebuild a broken pair?
background
If you want to build a robot with no user interface that connects to a tablet, you build the Pi to enable ...
1
vote
0
answers
184
views
Raspberry Pi Zero 2 Bluetooth connection issues
I managed to succesfully pair my Raspberry Pi Zero 2W with my android phone via bluetoothctl but I cannot get it to connect on startup.
*@raspberrypi:~ $ uname -a Linux raspberrypi 5.15.74-v7+ #1595 ...
1
vote
0
answers
175
views
Auto accept bluetooth pairings
I want to automatically accept Bluetooth pairings with any device that wants to connect, I tried all answers (without python ones) from this question:
Automatically accept bluetooth pairings
But they ...
0
votes
1
answer
211
views
How to send data between two already configured HC-05 modules
I'm new to electronics and microcontrollers, and I'm building an small project in which I'd like to send information from a master HC-05 bluetooth module to an slave one, I've already synced them ...
2
votes
2
answers
153
views
Launch a Bluetooth Low Energy command after raspberry startup
I wrote a command in swift that uses the internal bluetooth low energy module of my Raspberry PI 4. This command must be launched as superuser.
Everything works perfectly if I launch the executable ...
1
vote
1
answer
126
views
If I install bluetooth on raspberry pi, will this mean I won't need a bluetooth wifi dongle etc
I just discovered you can install bluetooth on the pi.
Does this mean that when pairing devices I wouldn't need dongles and such?
I have the pi2 and 4.
0
votes
1
answer
676
views
Can't install PyBluez2 on Raspbian
Title - I can't install pybluez2:
bluetooth/linux/bluez/btmodule.c:20:10: fatal error: btmodule.h: No such file or directory
20 | #include "btmodule.h"
| ^~~~~~~~~~~~
...
1
vote
0
answers
3k
views
Failed to pair: org.bluez.Error.ConnectionAttemptFailed
Failed to pair: org.bluez.Error.ConnectionAttemptFailed.
I am trying to connect my Bluetooth joystick controller '8bitdo Pro 2' to my RPi4. Below is the error I get. This appears to be the same error ...
1
vote
1
answer
95
views
bluetoothd CPU usage constant at 100 %
I've had this problem for a few months where the Pi 4 gets very hot to the touch, and it invariably turns out that bluetoothd is stuck at 100 % CPU usage, saturating one core. Currently htop tells me ...
0
votes
1
answer
474
views
Can I use an HM10 connected to a Raspberry Pi Pico to read from a BLE notification?
I have a Raspberry Pi Pico and would like to read BLE notify data from an external sensor should using an HM10. I've seen the HM-10 datasheet and don't see anything there that would be of help. Is it ...