User Tools

Site Tools


bluetooth_on_raspberry_pi_3

How to install bluetooth on raspberry pi 3


Files if needed :

99-com.rules bluez_5.23-2_rpi2_armhf.deb pi-bluetooth_0.1.1_armhf.deb re4son_kali-pi-tft_kernel_current.tar.xz bcm43430a1.hcd.zip


Install the re4son-kernel if you come from stock kali:

$mount /dev/mmcblk0p1 /boot
$cd /usr/local/src
$wget  -O re4son_kali-pi-tft_kernel_current.tar.xz https://whitedome.com.au/re4son/downloads/10452/
$tar -xJf re4son_kali-pi-tft_kernel_current.tar.xz
$cd re4son_kali-pi-tft_kernel_4*
$./install.sh

Login as root and install the necessary Bluetooth packages, firmware and rules:

$wget -O /lib/firmware/brcm/BCM43430A1.hcd http://whitedome.com.au/download/Kali-Pi-Kernels/BCM43430A1.hcd
$wget -O /etc/udev/rules.d/99-com.rules http://whitedome.com.au/download/Kali-Pi-Kernels/99-com.rules

$cd ~
$apt install bluez-firmware

$wget https://archive.raspberrypi.org/debian/pool/main/b/bluez/bluez_5.23-2+rpi2_armhf.deb
$dpkg -i bluez_5.23-2+rpi2_armhf.deb
$apt-mark hold bluez

$wget https://archive.raspberrypi.org/debian/pool/main/p/pi-bluetooth/pi-bluetooth_0.1.1_armhf.deb
$dpkg -i pi-bluetooth_0.1.1_armhf.deb
$apt-mark hold pi-bluetooth

$reboot

Log back in as root and continue :

$systemctl enable bluetooth
$service bluetooth start
$systemctl enable hciuart
$systemctl start hciuart.service

You are now ready to pair your device :

$bluetoothctl

Example of pair device :

[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# scan on
Discovery started
[bluetooth]# pair 00:1F:xx:xx:xx:xx
Attempting to pair with 00:1F:xx:xx:xx:xx
…snip…
Pairing successful
[bluetooth]# trust 00:1F:xx:xx:xx:xx
[CHG] Device 00:1F:xx:xx:xx:xx Trusted: yes
[bluetooth]# connect 00:1F:xx:xx:xx:xx
Attempting to connect to 00:1F:xx:xx:xx:xx
Connection successful

Source : kali forum


- created date : 2017.02.21 -

bluetooth_on_raspberry_pi_3.txt · Last modified: 2017/02/21 13:51 (external edit)