2004-05-07 16:30:41 +08:00
|
|
|
.TH HCICONFIG 8 "Nov 11 2002" BlueZ "Linux System Administration"
|
2002-11-16 09:44:53 +08:00
|
|
|
.SH NAME
|
|
|
|
hciconfig \- configure Bluetooth devices
|
|
|
|
.SH SYNOPSIS
|
2006-06-02 02:36:20 +08:00
|
|
|
.B hciconfig
|
|
|
|
.B \-h
|
2002-11-16 09:44:53 +08:00
|
|
|
.br
|
2006-06-02 02:36:20 +08:00
|
|
|
.B hciconfig
|
|
|
|
.RB [\| \-a \|]
|
2002-11-16 09:44:53 +08:00
|
|
|
.br
|
2006-06-02 02:36:20 +08:00
|
|
|
.B hciconfig
|
|
|
|
.RB [\| \-a \|]
|
|
|
|
.RI [\| command
|
|
|
|
.RI [\| "command parameters" \|]\|]
|
2002-11-16 09:44:53 +08:00
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.LP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B hciconfig
|
|
|
|
is used to configure Bluetooth devices.
|
|
|
|
.I hciX
|
|
|
|
is the name of a Bluetooth device installed in the system. If
|
|
|
|
.I hciX
|
|
|
|
is not given,
|
|
|
|
.B hciconfig
|
2002-11-16 09:44:53 +08:00
|
|
|
prints name and basic information about all the Bluetooth devices installed in
|
2006-06-02 02:36:20 +08:00
|
|
|
the system. If
|
|
|
|
.I hciX
|
|
|
|
is given but no command is given, it prints basic information on device
|
|
|
|
.I hciX
|
|
|
|
only. Basic information is
|
2002-11-16 09:44:53 +08:00
|
|
|
interface type, BD address, ACL MTU, SCO MTU, flags (up, init, running, raw,
|
|
|
|
page scan enabled, inquiry scan enabled, inquiry, authentication enabled,
|
|
|
|
encryption enabled).
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B \-h, \-\-help
|
2004-10-25 16:34:08 +08:00
|
|
|
Gives a list of possible commands.
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B \-a, \-\-all
|
2002-11-16 09:44:53 +08:00
|
|
|
Other than the basic info, print features, packet type, link policy, link mode,
|
|
|
|
name, class, version.
|
|
|
|
.SH COMMANDS
|
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B up
|
2004-10-25 16:34:08 +08:00
|
|
|
Open and initialize HCI device.
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B down
|
2004-10-25 16:34:08 +08:00
|
|
|
Close HCI device.
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B reset
|
2004-10-25 16:34:08 +08:00
|
|
|
Reset HCI device.
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B rstat
|
2004-10-25 16:34:08 +08:00
|
|
|
Reset statistic counters.
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B auth
|
2004-10-25 16:34:08 +08:00
|
|
|
Enable authentication (sets device to security mode 3).
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B noauth
|
2004-10-25 16:34:08 +08:00
|
|
|
Disable authentication.
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B encrypt
|
2004-10-25 16:34:08 +08:00
|
|
|
Enable encryption (sets device to security mode 3).
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B noencrypt
|
2004-10-25 16:34:08 +08:00
|
|
|
Disable encryption.
|
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B secmgr
|
2004-10-25 16:34:08 +08:00
|
|
|
Enable security manager (current kernel support is limited).
|
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B nosecmgr
|
2004-10-25 16:34:08 +08:00
|
|
|
Disable security manager.
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B piscan
|
2004-10-25 16:34:08 +08:00
|
|
|
Enable page and inquiry scan.
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B noscan
|
2004-10-25 16:34:08 +08:00
|
|
|
Disable page and inquiry scan.
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B iscan
|
2004-10-25 16:34:08 +08:00
|
|
|
Enable inquiry scan, disable page scan.
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
.B pscan
|
2004-10-25 16:34:08 +08:00
|
|
|
Enable page scan, disable inquiry scan.
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
\fBptype\fP [\fItype\fP]
|
2002-11-16 09:44:53 +08:00
|
|
|
With no
|
2006-06-02 02:36:20 +08:00
|
|
|
.I type
|
2002-11-16 09:44:53 +08:00
|
|
|
, displays the current packet types. Otherwise, all the packet types specified
|
|
|
|
by
|
2006-06-02 02:36:20 +08:00
|
|
|
.I type
|
2002-11-16 09:44:53 +08:00
|
|
|
are set.
|
2006-06-02 02:36:20 +08:00
|
|
|
.I type
|
2002-11-16 09:44:53 +08:00
|
|
|
is a comma-separated list of packet types, where the possible packet types are
|
|
|
|
.BR DM1 ,
|
|
|
|
.BR DM3 ,
|
|
|
|
.BR DM5 ,
|
|
|
|
.BR DH1 ,
|
|
|
|
.BR DH3 ,
|
|
|
|
.BR DH5 ,
|
|
|
|
.BR HV1 ,
|
|
|
|
.BR HV2 ,
|
|
|
|
.BR HV3 .
|
|
|
|
.TP
|
|
|
|
.BI name " [name]"
|
|
|
|
With no
|
|
|
|
.IR name ,
|
|
|
|
prints local name. Otherwise, sets local name to
|
|
|
|
.IR name .
|
|
|
|
.TP
|
|
|
|
.BI class " [class]"
|
|
|
|
With no
|
|
|
|
.IR class ,
|
|
|
|
prints class of device. Otherwise, sets class of device to
|
|
|
|
.IR class .
|
|
|
|
.I
|
|
|
|
class
|
|
|
|
is a 24-bit hex number describing the class of device, as specified in section
|
|
|
|
1.2 of the Bluetooth Assigned Numers document.
|
|
|
|
.TP
|
2002-12-15 22:18:03 +08:00
|
|
|
.BI voice " [voice]"
|
|
|
|
With no
|
|
|
|
.IR voice ,
|
|
|
|
prints voice setting. Otherwise, sets voice setting to
|
|
|
|
.IR voice .
|
2006-06-02 02:36:20 +08:00
|
|
|
.I voice
|
2002-12-15 22:18:03 +08:00
|
|
|
is a 16-bit hex number describing the voice setting.
|
|
|
|
.TP
|
2003-11-18 22:31:29 +08:00
|
|
|
.BI iac " [iac]"
|
|
|
|
With no
|
|
|
|
.IR iac ,
|
|
|
|
prints the current IAC setting. Otherwise, sets the IAC to
|
|
|
|
.IR iac .
|
|
|
|
.TP
|
2004-04-25 23:09:01 +08:00
|
|
|
.BI inqmode " [mode]"
|
|
|
|
With no
|
|
|
|
.IR mode ,
|
|
|
|
prints out the current inquiry mode. Otherwise, sets inquiry mode to
|
|
|
|
.IR mode .
|
|
|
|
.TP
|
2005-10-30 03:03:41 +08:00
|
|
|
.BI inqdata " [data]"
|
2005-09-29 19:12:26 +08:00
|
|
|
With no
|
|
|
|
.IR name ,
|
|
|
|
prints out the current inquiry data. Otherwise, sets inquiry data to
|
2005-10-30 03:03:41 +08:00
|
|
|
.IR data .
|
2005-09-29 19:12:26 +08:00
|
|
|
.TP
|
2005-06-16 22:02:56 +08:00
|
|
|
.BI inqtype " [type]"
|
|
|
|
With no
|
|
|
|
.IR type ,
|
|
|
|
prints out the current inquiry scan type. Otherwise, sets inquiry scan type to
|
|
|
|
.IR type .
|
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
\fBinqparams\fP [\fIwin\fP:\fIint\fP]
|
2002-11-16 09:44:53 +08:00
|
|
|
With no
|
2006-06-02 02:36:20 +08:00
|
|
|
.IR win : int ,
|
2002-11-16 09:44:53 +08:00
|
|
|
prints inquiry scan window and interval. Otherwise, sets inquiry scan window
|
|
|
|
to
|
|
|
|
.I win
|
|
|
|
slots and inquiry scan interval to
|
|
|
|
.I int
|
|
|
|
slots.
|
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
\fBpageparms\fP [\fIwin\fP:\fIint\fP]
|
2002-11-16 09:44:53 +08:00
|
|
|
With no
|
2006-06-02 02:36:20 +08:00
|
|
|
.IR win : int ,
|
2002-11-16 09:44:53 +08:00
|
|
|
prints page scan window and interval. Otherwise, sets page scan window to
|
2006-06-02 02:36:20 +08:00
|
|
|
.I win
|
2002-11-16 09:44:53 +08:00
|
|
|
slots and page scan interval to
|
2006-06-02 02:36:20 +08:00
|
|
|
.I int
|
2002-11-16 09:44:53 +08:00
|
|
|
slots.
|
|
|
|
.TP
|
|
|
|
.BI pageto " [to]"
|
|
|
|
With no
|
|
|
|
.IR to ,
|
|
|
|
prints page timeout. Otherwise, sets page timeout
|
2006-06-02 02:36:20 +08:00
|
|
|
to .I
|
2002-11-16 09:44:53 +08:00
|
|
|
to
|
|
|
|
slots.
|
|
|
|
.TP
|
2004-04-26 03:10:25 +08:00
|
|
|
.BI afhmode " [mode]"
|
|
|
|
With no
|
|
|
|
.IR mode ,
|
|
|
|
prints out the current AFH mode. Otherwise, sets AFH mode to
|
|
|
|
.IR mode .
|
|
|
|
.TP
|
2007-08-01 16:07:42 +08:00
|
|
|
.BI sspmode " [mode]"
|
|
|
|
With no
|
|
|
|
.IR mode ,
|
|
|
|
prints out the current Simple Pairing mode. Otherwise, sets Simple Pairing mode to
|
|
|
|
.IR mode .
|
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
\fBaclmtu\fP \fImtu\fP:\fIpkt\fP
|
2002-11-16 09:44:53 +08:00
|
|
|
Sets ACL MTU to
|
|
|
|
to
|
2006-06-02 02:36:20 +08:00
|
|
|
.I mtu
|
2002-11-16 09:44:53 +08:00
|
|
|
bytes and ACL buffer size to
|
2006-06-02 02:36:20 +08:00
|
|
|
.I pkt
|
2002-11-16 09:44:53 +08:00
|
|
|
packets.
|
|
|
|
.TP
|
2006-06-02 02:36:20 +08:00
|
|
|
\fBscomtu\fP \fImtu\fP:\fIpkt\fP
|
2002-11-16 09:44:53 +08:00
|
|
|
Sets SCO MTU to
|
|
|
|
.I mtu
|
|
|
|
bytes and SCO buffer size to
|
|
|
|
.I pkt
|
|
|
|
packets.
|
|
|
|
.TP
|
2005-09-07 04:57:54 +08:00
|
|
|
.BI putkey " <bdaddr>"
|
|
|
|
This command stores the link key for
|
|
|
|
.I bdaddr
|
|
|
|
on the device.
|
|
|
|
.TP
|
|
|
|
.BI delkey " <bdaddr>"
|
|
|
|
This command deletes the stored link key for
|
|
|
|
.I bdaddr
|
|
|
|
from the device.
|
|
|
|
.TP
|
2007-08-01 16:07:42 +08:00
|
|
|
.BI oobdata
|
|
|
|
Display local OOB data.
|
|
|
|
.TP
|
2005-04-18 07:20:31 +08:00
|
|
|
.BI commands
|
|
|
|
Display supported commands.
|
|
|
|
.TP
|
2002-11-16 09:44:53 +08:00
|
|
|
.BI features
|
2004-10-25 16:34:08 +08:00
|
|
|
Display device features.
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
|
|
|
.BI version
|
2004-10-25 16:34:08 +08:00
|
|
|
Display version information.
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
|
|
|
.BI revision
|
2004-10-25 16:34:08 +08:00
|
|
|
Display revision information.
|
2002-11-16 09:44:53 +08:00
|
|
|
.TP
|
|
|
|
.BI lm " [mode]"
|
|
|
|
With no
|
2006-06-02 02:36:20 +08:00
|
|
|
.I mode
|
2002-11-16 09:44:53 +08:00
|
|
|
, prints link mode.
|
2006-06-02 02:36:20 +08:00
|
|
|
.B MASTER
|
2002-11-16 09:44:53 +08:00
|
|
|
or
|
2006-06-02 02:36:20 +08:00
|
|
|
.B SLAVE
|
2002-11-16 09:44:53 +08:00
|
|
|
mean, respectively, to ask to become master or to remain slave when a
|
|
|
|
connection request comes in. The additional keyword
|
2006-06-02 02:36:20 +08:00
|
|
|
.B ACCEPT
|
2002-11-16 09:44:53 +08:00
|
|
|
means that baseband connections will be accepted even if there are no
|
|
|
|
listening
|
|
|
|
.I AF_BLUETOOTH
|
|
|
|
sockets.
|
|
|
|
.I mode
|
|
|
|
is
|
2006-06-02 02:36:20 +08:00
|
|
|
.B NONE
|
2002-11-16 09:44:53 +08:00
|
|
|
or a comma-separated list of keywords, where possible keywords are
|
2006-06-02 02:36:20 +08:00
|
|
|
.B MASTER
|
2002-11-16 09:44:53 +08:00
|
|
|
and
|
|
|
|
.B "ACCEPT" .
|
2006-06-02 02:36:20 +08:00
|
|
|
.B NONE
|
2002-11-16 09:44:53 +08:00
|
|
|
sets link policy to the default behaviour of remaining slave and not accepting
|
|
|
|
baseband connections when there are no listening
|
|
|
|
.I AF_BLUETOOTH
|
|
|
|
sockets. If
|
2006-06-02 02:36:20 +08:00
|
|
|
.B MASTER
|
2002-11-16 09:44:53 +08:00
|
|
|
is present, the device will ask to become master if a connection request comes
|
|
|
|
in. If
|
2006-06-02 02:36:20 +08:00
|
|
|
.B ACCEPT
|
2002-11-16 09:44:53 +08:00
|
|
|
is present, the device will accept baseband connections even when there are no
|
|
|
|
listening
|
|
|
|
.I AF_BLUETOOTH
|
2004-10-25 16:34:08 +08:00
|
|
|
sockets.
|
2002-11-16 09:44:53 +08:00
|
|
|
.SH AUTHORS
|
2004-10-25 16:34:08 +08:00
|
|
|
Written by Maxim Krasnyansky <maxk@qualcomm.com> and Marcel Holtmann <marcel@holtmann.org>
|
2002-11-16 09:44:53 +08:00
|
|
|
.PP
|
|
|
|
man page by Fabrizio Gennari <fabrizio.gennari@philips.com>
|