2012-07-02 06:57:04 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
|
|
|
<!ENTITY bluez-download-http "http://www.kernel.org/pub/linux/bluetooth/bluez-&bluez-version;.tar.xz">
|
|
|
|
<!ENTITY bluez-download-ftp "ftp://ftp.kernel.org/pub/linux/bluetooth/bluez-&bluez-version;.tar.xz">
|
2014-03-30 01:22:42 +08:00
|
|
|
<!ENTITY bluez-md5sum "5e6e41f0a275092ace303e813cd6f33b">
|
|
|
|
<!ENTITY bluez-size "1.3 MB">
|
|
|
|
<!ENTITY bluez-buildsize "51 MB">
|
|
|
|
<!ENTITY bluez-time "0.6 SBU">
|
2012-07-02 06:57:04 +08:00
|
|
|
]>
|
|
|
|
|
2013-07-16 07:27:18 +08:00
|
|
|
<sect1 id="bluez" xreflabel="BlueZ-&bluez-version;">
|
2012-07-02 06:57:04 +08:00
|
|
|
<?dbhtml filename="bluez.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
2013-07-16 07:27:18 +08:00
|
|
|
<title>BlueZ-&bluez-version;</title>
|
2012-07-02 06:57:04 +08:00
|
|
|
|
|
|
|
<indexterm zone="bluez">
|
2013-07-16 07:27:18 +08:00
|
|
|
<primary sortas="a-BlueZ">BlueZ</primary>
|
2012-07-02 06:57:04 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to BlueZ</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The <application>BlueZ</application> package contains the
|
|
|
|
Bluetooth protocol stack for Linux.
|
|
|
|
</para>
|
|
|
|
|
2014-02-20 19:30:41 +08:00
|
|
|
&lfs75_checked;
|
2012-07-02 06:57:04 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&bluez-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&bluez-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &bluez-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &bluez-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &bluez-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &bluez-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">BlueZ Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
2014-03-30 01:22:42 +08:00
|
|
|
<xref linkend="dbus"/>,
|
|
|
|
<xref linkend="glib2"/>,
|
|
|
|
<xref linkend="libical"/>
|
2012-07-02 06:57:04 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/bluez"/>
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
|
|
|
<sect2 role="kernel" id="bluez-kernel">
|
|
|
|
<title>Kernel Configuration</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Enable the following options in the kernel configuration and recompile the
|
|
|
|
kernel if necessary:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><literal>[*] Networking support --->
|
|
|
|
<*> or <M> Bluetooth subsystem support --->
|
|
|
|
<*> or <M> RFCOMM protocol support
|
|
|
|
[*] RFCOMM TTY support
|
|
|
|
<*> or <M> BNEP protocol support
|
|
|
|
[*] Multicast filter support
|
|
|
|
[*] Protocol filter support
|
|
|
|
<*> or <M> HIDP protocol support
|
|
|
|
|
|
|
|
Bluetooth device drivers ---></literal></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Select the appropriate drivers for your Bluetooth hardware.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<indexterm zone="bluez bluez-kernel">
|
|
|
|
<primary sortas="d-bluez">bluez</primary>
|
|
|
|
</indexterm>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of BlueZ</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Install <application>BlueZ</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
2014-03-30 01:22:42 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--enable-library \
|
|
|
|
--disable-systemd &&
|
2012-07-02 06:57:04 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
This package does not come with a test suite.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
2014-03-30 01:22:42 +08:00
|
|
|
Install the main configuration file as the
|
2012-07-02 06:57:04 +08:00
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2014-03-30 01:22:42 +08:00
|
|
|
<screen role="root"><userinput>install -v -dm755 /etc/bluetooth &&
|
|
|
|
install -v -m644 src/main.conf /etc/bluetooth/main.conf</userinput></screen>
|
2012-07-02 06:57:04 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
If desired, install the API documentation as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2014-03-30 01:22:42 +08:00
|
|
|
<screen role="root"><userinput>install -v -dm755 /usr/share/doc/bluez-&bluez-version; &&
|
2012-07-02 06:57:04 +08:00
|
|
|
install -v -m644 doc/*.txt /usr/share/doc/bluez-&bluez-version;</userinput></screen>
|
2014-03-30 01:22:42 +08:00
|
|
|
|
2012-07-02 06:57:04 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para>
|
2014-03-30 01:22:42 +08:00
|
|
|
<parameter>--enable-library</parameter>: This switch enables building of the
|
|
|
|
<application>BlueZ</application> 4 compatibility library which is required by
|
|
|
|
some applications.
|
2012-07-02 06:57:04 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2014-03-30 01:22:42 +08:00
|
|
|
<parameter>--disable-systemd</parameter>: This switch is needed for
|
|
|
|
<application>systemd</application> is not part of LFS/BLFS. If you are
|
|
|
|
using systemd, remove this switch.
|
2012-07-02 06:57:04 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring BlueZ</title>
|
|
|
|
|
|
|
|
<sect3 id="bluez-config">
|
|
|
|
<title>Config Files</title>
|
|
|
|
<para>
|
2014-03-30 01:22:42 +08:00
|
|
|
<filename>/etc/bluetooth/main.conf</filename>
|
2012-07-02 06:57:04 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<indexterm zone="bluez bluez-config">
|
|
|
|
<primary
|
|
|
|
sortas="e-etc-bluetooth-main.conf">/etc/bluetooth/main.conf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3 id="bluez-init">
|
|
|
|
<title>Boot Script</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
To automatically start the <command>bluetoothd</command> daemon when the
|
|
|
|
system is rebooted, install the
|
|
|
|
<filename>/etc/rc.d/init.d/bluetooth</filename> bootscript from the
|
|
|
|
<xref linkend="bootscripts"/> package.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<indexterm zone="bluez bluez-init">
|
|
|
|
<primary sortas="f-bluetooth">bluetooth</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install-bluetooth</userinput></screen>
|
2014-03-30 01:22:42 +08:00
|
|
|
|
2012-07-02 06:57:04 +08:00
|
|
|
</sect3>
|
2014-03-30 01:22:42 +08:00
|
|
|
|
2012-07-02 06:57:04 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
2014-03-30 01:22:42 +08:00
|
|
|
bccmd, bluemoon, bluetoothctl, bluetoothd, btmon, ciptool,
|
|
|
|
hciattach, hciconfig, hcidump, hcitool, hid2hci, l2ping,
|
|
|
|
l2test, obexd, rctest, rfcomm, and sdptool
|
2012-07-02 06:57:04 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libbluetooth.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/etc/bluetooth,
|
|
|
|
/usr/include/bluetooth,
|
2014-03-30 01:22:42 +08:00
|
|
|
/usr/libexec/bluetooth, and
|
|
|
|
/usr/share/doc/bluez-&bluez-version;
|
2012-07-02 06:57:04 +08:00
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="bccmd">
|
|
|
|
<term><command>bccmd</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to issue BlueCore commands to Cambridge Silicon
|
|
|
|
Radio devices.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="bluez bccmd">
|
|
|
|
<primary sortas="b-bccmd">bccmd</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="bluetoothd">
|
|
|
|
<term><command>bluetoothd</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is the Bluetooth daemon.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="bluez bluetoothd">
|
|
|
|
<primary sortas="b-bluetoothd">bluetoothd</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ciptool">
|
|
|
|
<term><command>ciptool</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to set up, maintain, and inspect the CIP configuration
|
|
|
|
of the Bluetooth subsystem in the Linux kernel.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="bluez ciptool">
|
|
|
|
<primary sortas="b-ciptool">ciptool</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="hciattach">
|
|
|
|
<term><command>hciattach</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to attach a serial UART to the Bluetooth stack
|
|
|
|
as HCI transport interface.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="bluez hciattach">
|
|
|
|
<primary sortas="b-hciattach">hciattach</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="hciconfig">
|
|
|
|
<term><command>hciconfig</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to configure Bluetooth devices.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="bluez hciconfig">
|
|
|
|
<primary sortas="b-hciconfig">hciconfig</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="hcitool">
|
|
|
|
<term><command>hcitool</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to configure Bluetooth connections and send some
|
|
|
|
special command to Bluetooth devices.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="bluez hcitool">
|
|
|
|
<primary sortas="b-hcitool">hcitool</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="hid2hci">
|
|
|
|
<term><command>hid2hci</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to set up switch supported Bluetooth devices into
|
|
|
|
the HCI mode and back.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="bluez hid2hci">
|
|
|
|
<primary sortas="b-hid2hci">hid2hci</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="l2ping">
|
|
|
|
<term><command>l2ping</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to send a L2CAP echo request to the Bluetooth MAC
|
|
|
|
address given in dotted hex notation.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="bluez l2ping">
|
|
|
|
<primary sortas="b-l2ping">l2ping</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2014-03-30 01:22:42 +08:00
|
|
|
<varlistentry id="rctest">
|
|
|
|
<term><command>rctest</command></term>
|
2012-07-02 06:57:04 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2014-03-30 01:22:42 +08:00
|
|
|
is used to test RFCOMM communications on the
|
|
|
|
Bluetooth stack.
|
2012-07-02 06:57:04 +08:00
|
|
|
</para>
|
2014-03-30 01:22:42 +08:00
|
|
|
<indexterm zone="bluez rctest">
|
|
|
|
<primary sortas="b-rctest">rctest</primary>
|
2012-07-02 06:57:04 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="rfcomm">
|
|
|
|
<term><command>rfcomm</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to set up, maintain, and inspect the RFCOMM
|
|
|
|
configuration of the Bluetooth subsystem in the
|
|
|
|
Linux kernel.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="bluez rfcomm">
|
|
|
|
<primary sortas="b-rfcomm">rfcomm</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="sdptool">
|
|
|
|
<term><command>sdptool</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to perform SDP queries on Bluetooth devices.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="bluez sdptool">
|
|
|
|
<primary sortas="b-sdptool">sdptool</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libbluetooth">
|
|
|
|
<term><filename class="libraryfile">libbluetooth.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2014-03-30 01:22:42 +08:00
|
|
|
contains the <application>BlueZ</application> 4 API functions.
|
2012-07-02 06:57:04 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="bluez libbluetooth">
|
|
|
|
<primary sortas="c-libbluetooth">libbluetooth.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|