• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
KaliTut

KaliTut

Kali Linux tutorial and Linux system tips

  • Home
  • Raspberry Pi
  • Privacy Policy
  • About us

Raspberry Pi Bluetooth

Last Updated on May 19, 2020 by Kalitut 1 Comment

Raspberry Pi with Bluetooth is available in two variants:

  • Raspberry Pi 3 & 4 with integrated Bluetooth module
  • Raspberry Pi with external Bluetooth adapter via USB 
  •  raspberry pi Bluetooth receiver
Raspberry Pi Bluetooth

The integrated Bluetooth module is Bluetooth Classic and Low Energy (Bluetooth 4.1, BLE).

Since Raspbian Jessie from 2016-05-10, the software-side support for Bluetooth exists by default. For this purpose, the desktop environment LXDE in the taskbar has a graphical tool for managing the internal and external Bluetooth components. This allows you to select the desired device and establish a Bluetooth connection.

Install Bluetooth support for Raspberry Pi 
If you have an older image, then you have to install the support.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install pi-bluetooth

Then check if Bluetooth support is running:

sudo systemctl status bluetooth

Continue if “Active: active (running)”.

Display Bluetooth interfaces:

 hciconfig

The interface “hci0” should exist.
Install Bluetooth Connection Manager
If not already available, you can install a Bluetooth connection manager for the graphical desktop interface:

sudo apt-get install blueman

This makes it easy to establish and manage Bluetooth connections to other devices.

Disable Bluetooth and WiFi on the Raspberry Pi 3
The Raspberry Pi 3 has Bluetooth and WLAN integrated. But for some applications, one or both is superfluous. For example, because you want to use an external adapter. In that case you can switch off both.

Solution 1: Turn off Bluetooth in the boot configuration
Bluetooth can be switched off in the boot configuration (from kernel 4.1.19).

sudo nano /boot/config.txt

Here you enter the following line:

dtoverlay = pi3-disable-bt

Save, close and restart.

Solution 2: Turn off Bluetooth and or WLAN
Bluetooth can also be switched off by preventing the driver from being charged.
To do this, open a configuration file:

sudo nano /etc/modprobe.d/raspi-blacklist.conf

Add the following lines:

# Switch off WLAN
blacklist brcmfmac
blacklist brcmutil

#blacklist cfg80211
#blacklist rfkill
# Turn off Bluetooth
blacklist btbcm
blacklist hci_uart

Save and close.
As a test, the modules can also be unloaded with the command

sudo modprobe -r {MODULE}

In addition, you have to turn off a service that otherwise tries to use Bluetooth.

sudo systemctl disable hciuart

After that a restart is necessary.
Note: Measurements have shown that the radio chip still buzzes despite being deactivated by the software.

Filed Under: Raspberry Pi

Comments

  1. Folii says

    August 16, 2020 at 6:31 am

    Very descriptive article, I enjoyed that bit.
    Will there be a part 2?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Follow us

  • Facebook
  • Twitter
  • YouTube

Categories

  • Android pentesting tools
  • Arduino
  • Books
  • Darknet
  • database
  • General
  • Github Tools
  • Hacking
  • Kali Linux
  • Linux
  • Linux Commands
  • Network Administrator
  • Penetration Testing
  • Penetration Testing Tools
  • PowerShell
  • Raspberry Pi
  • resources
  • Review
  • Termux
  • Tutorials
  • Ubuntu
  • Uncategorized
  • Video Tutorials
  • vmware
  • WiFi Adapter
  • WiFi Pentesting
  • Wireless Router
  • Wireshark

Recent Posts

  • Hijacked Wi-Fi? Thorough explanation of hacking techniques
  • Windows PowerShell tutorial for beginners
  • Learn to Hack Steps from Beginner to Hacker
  • PowerShell Tutorial – GUIDE introduction with basics
  • Top Hacking Tools
  • Home
  • About us
  • Privacy Policy
  • Affiliate disclaimer

Copyright © 2023