[fee14fb] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY bluez-download-http "http://www.kernel.org/pub/linux/bluetooth/bluez-&bluez-version;.tar.xz">
|
---|
| 8 | <!ENTITY bluez-download-ftp "ftp://ftp.kernel.org/pub/linux/bluetooth/bluez-&bluez-version;.tar.xz">
|
---|
[142f958b] | 9 | <!ENTITY bluez-md5sum "9c71404f86287cd9441e86783be3aae1">
|
---|
[ef84ea0] | 10 | <!ENTITY bluez-size "1.3 MB">
|
---|
[142f958b] | 11 | <!ENTITY bluez-buildsize "52 MB">
|
---|
[ef84ea0] | 12 | <!ENTITY bluez-time "0.6 SBU">
|
---|
[fee14fb] | 13 | ]>
|
---|
| 14 |
|
---|
[880c568] | 15 | <sect1 id="bluez" xreflabel="BlueZ-&bluez-version;">
|
---|
[fee14fb] | 16 | <?dbhtml filename="bluez.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[880c568] | 23 | <title>BlueZ-&bluez-version;</title>
|
---|
[fee14fb] | 24 |
|
---|
| 25 | <indexterm zone="bluez">
|
---|
[880c568] | 26 | <primary sortas="a-BlueZ">BlueZ</primary>
|
---|
[fee14fb] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to BlueZ</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | The <application>BlueZ</application> package contains the
|
---|
| 34 | Bluetooth protocol stack for Linux.
|
---|
| 35 | </para>
|
---|
| 36 |
|
---|
[142f958b] | 37 | &lfs75_built;
|
---|
[fee14fb] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&bluez-download-http;"/>
|
---|
| 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&bluez-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download MD5 sum: &bluez-md5sum;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Download size: &bluez-size;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated disk space required: &bluez-buildsize;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>
|
---|
| 68 | Estimated build time: &bluez-time;
|
---|
| 69 | </para>
|
---|
| 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
[9ceb07f] | 73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 74 | <itemizedlist spacing="compact">
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>
|
---|
| 77 | Optional patch (required to work properly with gnome-bluetooth
|
---|
| 78 | and/or kde bluedevil):
|
---|
| 79 | <ulink url="&patch-root;/bluez-&bluez-version;-obexd_without_systemd-1.patch"/>
|
---|
| 80 | </para>
|
---|
| 81 | </listitem>
|
---|
| 82 | </itemizedlist>
|
---|
| 83 |
|
---|
[fee14fb] | 84 | <bridgehead renderas="sect3">BlueZ Dependencies</bridgehead>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 87 | <para role="required">
|
---|
[ef84ea0] | 88 | <xref linkend="dbus"/>,
|
---|
[fd1493f] | 89 | <xref linkend="glib2"/>, and
|
---|
[ef84ea0] | 90 | <xref linkend="libical"/>
|
---|
[fee14fb] | 91 | </para>
|
---|
| 92 |
|
---|
| 93 | <para condition="html" role="usernotes">
|
---|
| 94 | User Notes: <ulink url="&blfs-wiki;/bluez"/>
|
---|
| 95 | </para>
|
---|
| 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 |
|
---|
| 99 | <sect2 role="kernel" id="bluez-kernel">
|
---|
| 100 | <title>Kernel Configuration</title>
|
---|
| 101 |
|
---|
| 102 | <para>
|
---|
| 103 | Enable the following options in the kernel configuration and recompile the
|
---|
| 104 | kernel if necessary:
|
---|
| 105 | </para>
|
---|
| 106 |
|
---|
| 107 | <screen><literal>[*] Networking support --->
|
---|
| 108 | <*> or <M> Bluetooth subsystem support --->
|
---|
| 109 | <*> or <M> RFCOMM protocol support
|
---|
| 110 | [*] RFCOMM TTY support
|
---|
| 111 | <*> or <M> BNEP protocol support
|
---|
| 112 | [*] Multicast filter support
|
---|
| 113 | [*] Protocol filter support
|
---|
| 114 | <*> or <M> HIDP protocol support
|
---|
| 115 |
|
---|
| 116 | Bluetooth device drivers ---></literal></screen>
|
---|
| 117 |
|
---|
| 118 | <para>
|
---|
| 119 | Select the appropriate drivers for your Bluetooth hardware.
|
---|
| 120 | </para>
|
---|
| 121 |
|
---|
| 122 | <indexterm zone="bluez bluez-kernel">
|
---|
| 123 | <primary sortas="d-bluez">bluez</primary>
|
---|
| 124 | </indexterm>
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2 role="installation">
|
---|
| 128 | <title>Installation of BlueZ</title>
|
---|
| 129 |
|
---|
[9ceb07f] | 130 | <para>
|
---|
| 131 | If you are going to use <application>BlueZ</application> with
|
---|
| 132 | gnome-bluetooth and/or kde bluedevil, apply the following patch:
|
---|
| 133 | </para>
|
---|
| 134 |
|
---|
[fd1493f] | 135 | <screen><userinput>patch -Np1 -i ../bluez-&bluez-version;-obexd_without_systemd-1.patch</userinput></screen>
|
---|
[9ceb07f] | 136 |
|
---|
[fee14fb] | 137 | <para>
|
---|
| 138 | Install <application>BlueZ</application> by running the following
|
---|
| 139 | commands:
|
---|
| 140 | </para>
|
---|
| 141 |
|
---|
[ef84ea0] | 142 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 143 | --sysconfdir=/etc \
|
---|
| 144 | --localstatedir=/var \
|
---|
| 145 | --enable-library \
|
---|
| 146 | --disable-systemd &&
|
---|
[fee14fb] | 147 | make</userinput></screen>
|
---|
| 148 |
|
---|
| 149 | <para>
|
---|
| 150 | This package does not come with a test suite.
|
---|
| 151 | </para>
|
---|
| 152 |
|
---|
| 153 | <para>
|
---|
| 154 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 155 | </para>
|
---|
| 156 |
|
---|
| 157 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 158 |
|
---|
| 159 | <para>
|
---|
[ef84ea0] | 160 | Install the main configuration file as the
|
---|
[fee14fb] | 161 | <systemitem class="username">root</systemitem> user:
|
---|
| 162 | </para>
|
---|
| 163 |
|
---|
[ef84ea0] | 164 | <screen role="root"><userinput>install -v -dm755 /etc/bluetooth &&
|
---|
| 165 | install -v -m644 src/main.conf /etc/bluetooth/main.conf</userinput></screen>
|
---|
[fee14fb] | 166 |
|
---|
| 167 | <para>
|
---|
| 168 | If desired, install the API documentation as the
|
---|
| 169 | <systemitem class="username">root</systemitem> user:
|
---|
| 170 | </para>
|
---|
| 171 |
|
---|
[ef84ea0] | 172 | <screen role="root"><userinput>install -v -dm755 /usr/share/doc/bluez-&bluez-version; &&
|
---|
[fee14fb] | 173 | install -v -m644 doc/*.txt /usr/share/doc/bluez-&bluez-version;</userinput></screen>
|
---|
[ef84ea0] | 174 |
|
---|
[fee14fb] | 175 | </sect2>
|
---|
| 176 |
|
---|
| 177 |
|
---|
| 178 | <sect2 role="commands">
|
---|
| 179 | <title>Command Explanations</title>
|
---|
| 180 |
|
---|
| 181 | <para>
|
---|
[ef84ea0] | 182 | <parameter>--enable-library</parameter>: This switch enables building of the
|
---|
| 183 | <application>BlueZ</application> 4 compatibility library which is required by
|
---|
| 184 | some applications.
|
---|
[fee14fb] | 185 | </para>
|
---|
| 186 |
|
---|
| 187 | <para>
|
---|
[fd1493f] | 188 | <parameter>--disable-systemd</parameter>: This switch is needed because
|
---|
[ef84ea0] | 189 | <application>systemd</application> is not part of LFS/BLFS. If you are
|
---|
| 190 | using systemd, remove this switch.
|
---|
[fee14fb] | 191 | </para>
|
---|
| 192 |
|
---|
| 193 | </sect2>
|
---|
| 194 |
|
---|
| 195 | <sect2 role="configuration">
|
---|
| 196 | <title>Configuring BlueZ</title>
|
---|
| 197 |
|
---|
| 198 | <sect3 id="bluez-config">
|
---|
| 199 | <title>Config Files</title>
|
---|
| 200 | <para>
|
---|
[ef84ea0] | 201 | <filename>/etc/bluetooth/main.conf</filename>
|
---|
[fee14fb] | 202 | </para>
|
---|
| 203 |
|
---|
| 204 | <indexterm zone="bluez bluez-config">
|
---|
| 205 | <primary
|
---|
| 206 | sortas="e-etc-bluetooth-main.conf">/etc/bluetooth/main.conf</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 |
|
---|
| 209 | </sect3>
|
---|
| 210 |
|
---|
| 211 | <sect3 id="bluez-init">
|
---|
| 212 | <title>Boot Script</title>
|
---|
| 213 |
|
---|
| 214 | <para>
|
---|
| 215 | To automatically start the <command>bluetoothd</command> daemon when the
|
---|
| 216 | system is rebooted, install the
|
---|
| 217 | <filename>/etc/rc.d/init.d/bluetooth</filename> bootscript from the
|
---|
| 218 | <xref linkend="bootscripts"/> package.
|
---|
| 219 | </para>
|
---|
| 220 |
|
---|
| 221 | <indexterm zone="bluez bluez-init">
|
---|
| 222 | <primary sortas="f-bluetooth">bluetooth</primary>
|
---|
| 223 | </indexterm>
|
---|
| 224 |
|
---|
| 225 | <screen role="root"><userinput>make install-bluetooth</userinput></screen>
|
---|
[ef84ea0] | 226 |
|
---|
[fee14fb] | 227 | </sect3>
|
---|
[ef84ea0] | 228 |
|
---|
[fee14fb] | 229 | </sect2>
|
---|
| 230 |
|
---|
| 231 | <sect2 role="content">
|
---|
| 232 | <title>Contents</title>
|
---|
| 233 |
|
---|
| 234 | <segmentedlist>
|
---|
| 235 | <segtitle>Installed Programs</segtitle>
|
---|
| 236 | <segtitle>Installed Library</segtitle>
|
---|
| 237 | <segtitle>Installed Directories</segtitle>
|
---|
| 238 |
|
---|
| 239 | <seglistitem>
|
---|
| 240 | <seg>
|
---|
[ef84ea0] | 241 | bccmd, bluemoon, bluetoothctl, bluetoothd, btmon, ciptool,
|
---|
| 242 | hciattach, hciconfig, hcidump, hcitool, hid2hci, l2ping,
|
---|
| 243 | l2test, obexd, rctest, rfcomm, and sdptool
|
---|
[fee14fb] | 244 | </seg>
|
---|
| 245 | <seg>
|
---|
| 246 | libbluetooth.so
|
---|
| 247 | </seg>
|
---|
| 248 | <seg>
|
---|
| 249 | /etc/bluetooth,
|
---|
| 250 | /usr/include/bluetooth,
|
---|
[ef84ea0] | 251 | /usr/libexec/bluetooth, and
|
---|
| 252 | /usr/share/doc/bluez-&bluez-version;
|
---|
[fee14fb] | 253 | </seg>
|
---|
| 254 | </seglistitem>
|
---|
| 255 | </segmentedlist>
|
---|
| 256 |
|
---|
| 257 | <variablelist>
|
---|
| 258 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 259 | <?dbfo list-presentation="list"?>
|
---|
| 260 | <?dbhtml list-presentation="table"?>
|
---|
| 261 |
|
---|
| 262 | <varlistentry id="bccmd">
|
---|
| 263 | <term><command>bccmd</command></term>
|
---|
| 264 | <listitem>
|
---|
| 265 | <para>
|
---|
| 266 | is used to issue BlueCore commands to Cambridge Silicon
|
---|
| 267 | Radio devices.
|
---|
| 268 | </para>
|
---|
| 269 | <indexterm zone="bluez bccmd">
|
---|
| 270 | <primary sortas="b-bccmd">bccmd</primary>
|
---|
| 271 | </indexterm>
|
---|
| 272 | </listitem>
|
---|
| 273 | </varlistentry>
|
---|
| 274 |
|
---|
| 275 | <varlistentry id="bluetoothd">
|
---|
| 276 | <term><command>bluetoothd</command></term>
|
---|
| 277 | <listitem>
|
---|
| 278 | <para>
|
---|
| 279 | is the Bluetooth daemon.
|
---|
| 280 | </para>
|
---|
| 281 | <indexterm zone="bluez bluetoothd">
|
---|
| 282 | <primary sortas="b-bluetoothd">bluetoothd</primary>
|
---|
| 283 | </indexterm>
|
---|
| 284 | </listitem>
|
---|
| 285 | </varlistentry>
|
---|
| 286 |
|
---|
| 287 | <varlistentry id="ciptool">
|
---|
| 288 | <term><command>ciptool</command></term>
|
---|
| 289 | <listitem>
|
---|
| 290 | <para>
|
---|
| 291 | is used to set up, maintain, and inspect the CIP configuration
|
---|
| 292 | of the Bluetooth subsystem in the Linux kernel.
|
---|
| 293 | </para>
|
---|
| 294 | <indexterm zone="bluez ciptool">
|
---|
| 295 | <primary sortas="b-ciptool">ciptool</primary>
|
---|
| 296 | </indexterm>
|
---|
| 297 | </listitem>
|
---|
| 298 | </varlistentry>
|
---|
| 299 |
|
---|
| 300 | <varlistentry id="hciattach">
|
---|
| 301 | <term><command>hciattach</command></term>
|
---|
| 302 | <listitem>
|
---|
| 303 | <para>
|
---|
| 304 | is used to attach a serial UART to the Bluetooth stack
|
---|
| 305 | as HCI transport interface.
|
---|
| 306 | </para>
|
---|
| 307 | <indexterm zone="bluez hciattach">
|
---|
| 308 | <primary sortas="b-hciattach">hciattach</primary>
|
---|
| 309 | </indexterm>
|
---|
| 310 | </listitem>
|
---|
| 311 | </varlistentry>
|
---|
| 312 |
|
---|
| 313 | <varlistentry id="hciconfig">
|
---|
| 314 | <term><command>hciconfig</command></term>
|
---|
| 315 | <listitem>
|
---|
| 316 | <para>
|
---|
| 317 | is used to configure Bluetooth devices.
|
---|
| 318 | </para>
|
---|
| 319 | <indexterm zone="bluez hciconfig">
|
---|
| 320 | <primary sortas="b-hciconfig">hciconfig</primary>
|
---|
| 321 | </indexterm>
|
---|
| 322 | </listitem>
|
---|
| 323 | </varlistentry>
|
---|
| 324 |
|
---|
| 325 | <varlistentry id="hcitool">
|
---|
| 326 | <term><command>hcitool</command></term>
|
---|
| 327 | <listitem>
|
---|
| 328 | <para>
|
---|
| 329 | is used to configure Bluetooth connections and send some
|
---|
| 330 | special command to Bluetooth devices.
|
---|
| 331 | </para>
|
---|
| 332 | <indexterm zone="bluez hcitool">
|
---|
| 333 | <primary sortas="b-hcitool">hcitool</primary>
|
---|
| 334 | </indexterm>
|
---|
| 335 | </listitem>
|
---|
| 336 | </varlistentry>
|
---|
| 337 |
|
---|
| 338 | <varlistentry id="hid2hci">
|
---|
| 339 | <term><command>hid2hci</command></term>
|
---|
| 340 | <listitem>
|
---|
| 341 | <para>
|
---|
| 342 | is used to set up switch supported Bluetooth devices into
|
---|
| 343 | the HCI mode and back.
|
---|
| 344 | </para>
|
---|
| 345 | <indexterm zone="bluez hid2hci">
|
---|
| 346 | <primary sortas="b-hid2hci">hid2hci</primary>
|
---|
| 347 | </indexterm>
|
---|
| 348 | </listitem>
|
---|
| 349 | </varlistentry>
|
---|
| 350 |
|
---|
| 351 | <varlistentry id="l2ping">
|
---|
| 352 | <term><command>l2ping</command></term>
|
---|
| 353 | <listitem>
|
---|
| 354 | <para>
|
---|
| 355 | is used to send a L2CAP echo request to the Bluetooth MAC
|
---|
| 356 | address given in dotted hex notation.
|
---|
| 357 | </para>
|
---|
| 358 | <indexterm zone="bluez l2ping">
|
---|
| 359 | <primary sortas="b-l2ping">l2ping</primary>
|
---|
| 360 | </indexterm>
|
---|
| 361 | </listitem>
|
---|
| 362 | </varlistentry>
|
---|
| 363 |
|
---|
[ef84ea0] | 364 | <varlistentry id="rctest">
|
---|
| 365 | <term><command>rctest</command></term>
|
---|
[fee14fb] | 366 | <listitem>
|
---|
| 367 | <para>
|
---|
[ef84ea0] | 368 | is used to test RFCOMM communications on the
|
---|
| 369 | Bluetooth stack.
|
---|
[fee14fb] | 370 | </para>
|
---|
[ef84ea0] | 371 | <indexterm zone="bluez rctest">
|
---|
| 372 | <primary sortas="b-rctest">rctest</primary>
|
---|
[fee14fb] | 373 | </indexterm>
|
---|
| 374 | </listitem>
|
---|
| 375 | </varlistentry>
|
---|
| 376 |
|
---|
| 377 | <varlistentry id="rfcomm">
|
---|
| 378 | <term><command>rfcomm</command></term>
|
---|
| 379 | <listitem>
|
---|
| 380 | <para>
|
---|
| 381 | is used to set up, maintain, and inspect the RFCOMM
|
---|
| 382 | configuration of the Bluetooth subsystem in the
|
---|
| 383 | Linux kernel.
|
---|
| 384 | </para>
|
---|
| 385 | <indexterm zone="bluez rfcomm">
|
---|
| 386 | <primary sortas="b-rfcomm">rfcomm</primary>
|
---|
| 387 | </indexterm>
|
---|
| 388 | </listitem>
|
---|
| 389 | </varlistentry>
|
---|
| 390 |
|
---|
| 391 | <varlistentry id="sdptool">
|
---|
| 392 | <term><command>sdptool</command></term>
|
---|
| 393 | <listitem>
|
---|
| 394 | <para>
|
---|
| 395 | is used to perform SDP queries on Bluetooth devices.
|
---|
| 396 | </para>
|
---|
| 397 | <indexterm zone="bluez sdptool">
|
---|
| 398 | <primary sortas="b-sdptool">sdptool</primary>
|
---|
| 399 | </indexterm>
|
---|
| 400 | </listitem>
|
---|
| 401 | </varlistentry>
|
---|
| 402 |
|
---|
| 403 | <varlistentry id="libbluetooth">
|
---|
| 404 | <term><filename class="libraryfile">libbluetooth.so</filename></term>
|
---|
| 405 | <listitem>
|
---|
| 406 | <para>
|
---|
[ef84ea0] | 407 | contains the <application>BlueZ</application> 4 API functions.
|
---|
[fee14fb] | 408 | </para>
|
---|
| 409 | <indexterm zone="bluez libbluetooth">
|
---|
| 410 | <primary sortas="c-libbluetooth">libbluetooth.so</primary>
|
---|
| 411 | </indexterm>
|
---|
| 412 | </listitem>
|
---|
| 413 | </varlistentry>
|
---|
| 414 | </variablelist>
|
---|
| 415 |
|
---|
| 416 | </sect2>
|
---|
| 417 |
|
---|
| 418 | </sect1>
|
---|