<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Joneskoo</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Joneskoo"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Joneskoo"/>
	<updated>2026-05-04T10:42:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Raspberry_Pi_3_-_Setting_Up_Bluetooth&amp;diff=16235</id>
		<title>Raspberry Pi 3 - Setting Up Bluetooth</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Raspberry_Pi_3_-_Setting_Up_Bluetooth&amp;diff=16235"/>
		<updated>2019-08-20T19:13:10Z</updated>

		<summary type="html">&lt;p&gt;Joneskoo: Update Bluetooth instructions to use btattach and to reference Zero W model too.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Raspberry Pi Bluetooth chip varies by model.&lt;br /&gt;
&lt;br /&gt;
* Raspberry Pi 3 has BCM2837 connected to the hardware UART&lt;br /&gt;
* Raspberry Pi 3B+ has BCM4345C0 connected to the hardware UART&lt;br /&gt;
* Raspberry Pi Zero W has BCM43430A1 connected to the hardware UART&lt;br /&gt;
&lt;br /&gt;
You can get Bluetooth to work only if you are not using the UART (ttyAMA0) for anything else, for example serial console.&lt;br /&gt;
Recent versions of Alpine Linux for Raspberry Pi come with the required Broadcom firmware files.&lt;br /&gt;
If you need the UART for something else, you can use an USB Bluetooth adapter instead.&lt;br /&gt;
&lt;br /&gt;
You&#039;ll need the bluez package&lt;br /&gt;
&lt;br /&gt;
{{cmd|apk add bluez}}&lt;br /&gt;
&lt;br /&gt;
The Bluetooth controller is not automatically discovered on the UART. Test attaching it and check that the controller is found&lt;br /&gt;
&lt;br /&gt;
{{cmd|btattach -B /dev/ttyAMA0 -P bcm -S 115200 -N &amp;amp;}}&lt;br /&gt;
&lt;br /&gt;
{{cmd|/etc/init.d/bluetooth start}}&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;bluetoothctl list&lt;br /&gt;
Controller B8:27:EB:01:02:03 BlueZ 5.50 [default]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
If the interface is discovered after the attach, you can make attaching persistent by uncommenting&lt;br /&gt;
the line next to &amp;quot;rpi bluetooth&amp;quot; in &#039;&#039;/etc/mdev.conf&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Start the bluetooth deamon at boot. This should load the right modules when you next reboot.&lt;br /&gt;
&lt;br /&gt;
{{cmd|rc-update add bluetooth}}&lt;br /&gt;
&lt;br /&gt;
{{cmd|lbu commit &amp;amp;&amp;amp; reboot}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output from the btattach above should be&lt;br /&gt;
&lt;br /&gt;
{{cmd|Attaching Primary controller to /dev/ttyAMA0&lt;br /&gt;
Switched line discipline from 0 to 15&lt;br /&gt;
Device index 0 attached&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Then it&#039;s a matter of doing what you normally do with your Bluetooth stack.&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Joneskoo</name></author>
	</entry>
</feed>