xref: /dflybsd-src/usr.sbin/btconfig/btconfig.8 (revision 86d7f5d305c6adaa56ff4582ece9859d73106103)
186d7f5d3SJohn Marino.\" $NetBSD: btconfig.8,v 1.7 2007/09/07 18:40:01 plunky Exp $
286d7f5d3SJohn Marino.\" $DragonFly: src/usr.sbin/btconfig/btconfig.8,v 1.2 2008/01/09 09:03:34 swildner Exp $
386d7f5d3SJohn Marino.\"
486d7f5d3SJohn Marino.\" Copyright (c) 2006 Itronix Inc.
586d7f5d3SJohn Marino.\" All rights reserved.
686d7f5d3SJohn Marino.\"
786d7f5d3SJohn Marino.\" Written by Iain Hibbert for Itronix Inc.
886d7f5d3SJohn Marino.\"
986d7f5d3SJohn Marino.\" Redistribution and use in source and binary forms, with or without
1086d7f5d3SJohn Marino.\" modification, are permitted provided that the following conditions
1186d7f5d3SJohn Marino.\" are met:
1286d7f5d3SJohn Marino.\" 1. Redistributions of source code must retain the above copyright
1386d7f5d3SJohn Marino.\"    notice, this list of conditions and the following disclaimer.
1486d7f5d3SJohn Marino.\" 2. Redistributions in binary form must reproduce the above copyright
1586d7f5d3SJohn Marino.\"    notice, this list of conditions and the following disclaimer in the
1686d7f5d3SJohn Marino.\"    documentation and/or other materials provided with the distribution.
1786d7f5d3SJohn Marino.\" 3. The name of Itronix Inc. may not be used to endorse
1886d7f5d3SJohn Marino.\"    or promote products derived from this software without specific
1986d7f5d3SJohn Marino.\"    prior written permission.
2086d7f5d3SJohn Marino.\"
2186d7f5d3SJohn Marino.\" THIS SOFTWARE IS PROVIDED BY ITRONIX INC. ``AS IS'' AND
2286d7f5d3SJohn Marino.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2386d7f5d3SJohn Marino.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2486d7f5d3SJohn Marino.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL ITRONIX INC. BE LIABLE FOR ANY
2586d7f5d3SJohn Marino.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
2686d7f5d3SJohn Marino.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
2786d7f5d3SJohn Marino.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
2886d7f5d3SJohn Marino.\" ON ANY THEORY OF LIABILITY, WHETHER IN
2986d7f5d3SJohn Marino.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
3086d7f5d3SJohn Marino.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3186d7f5d3SJohn Marino.\" POSSIBILITY OF SUCH DAMAGE.
3286d7f5d3SJohn Marino.\"
3386d7f5d3SJohn Marino.Dd September 7, 2007
3486d7f5d3SJohn Marino.Dt BTCONFIG 8
3586d7f5d3SJohn Marino.Os
3686d7f5d3SJohn Marino.Sh NAME
3786d7f5d3SJohn Marino.Nm btconfig
3886d7f5d3SJohn Marino.Nd configure bluetooth devices
3986d7f5d3SJohn Marino.Sh SYNOPSIS
4086d7f5d3SJohn Marino.Nm
4186d7f5d3SJohn Marino.Op Fl svz
4286d7f5d3SJohn Marino.Oo
4386d7f5d3SJohn Marino.Ar device
4486d7f5d3SJohn Marino.Op Ar parameters
4586d7f5d3SJohn Marino.Oc
4686d7f5d3SJohn Marino.Nm
4786d7f5d3SJohn Marino.Op Fl l
4886d7f5d3SJohn Marino.Sh DESCRIPTION
4986d7f5d3SJohn Marino.Nm
5086d7f5d3SJohn Marinois used to configure Bluetooth devices.
5186d7f5d3SJohn MarinoIf the
5286d7f5d3SJohn Marino.Ar device
5386d7f5d3SJohn Marinois given, but no parameters, then
5486d7f5d3SJohn Marino.Nm
5586d7f5d3SJohn Marinowill print information about the device.
5686d7f5d3SJohn MarinoIf no
5786d7f5d3SJohn Marino.Ar device
5886d7f5d3SJohn Marinois given, a basic list of devices will be printed.
5986d7f5d3SJohn Marino.Pp
6086d7f5d3SJohn MarinoWhen the
6186d7f5d3SJohn Marino.Fl l
6286d7f5d3SJohn Marinoflag is used, just the device names will be printed.
6386d7f5d3SJohn Marino.Sh COMMANDS
6486d7f5d3SJohn MarinoThe following parameters may be specified with
6586d7f5d3SJohn Marino.Nm :
6686d7f5d3SJohn Marino.Bl -tag -width xxxxxxxxxxx
6786d7f5d3SJohn Marino.It Cm up
6886d7f5d3SJohn MarinoEnable Bluetooth Device.
6986d7f5d3SJohn Marino.It Cm down
7086d7f5d3SJohn MarinoDisable Bluetooth Device.
7186d7f5d3SJohn Marino.It Cm pscan
7286d7f5d3SJohn MarinoEnable Page Scan.
7386d7f5d3SJohn MarinoThis enables incoming connections to the device.
7486d7f5d3SJohn Marino.It Cm -pscan
7586d7f5d3SJohn MarinoDisable Page Scan.
7686d7f5d3SJohn Marino.It Cm iscan
7786d7f5d3SJohn MarinoEnable Inquiry Scan.
7886d7f5d3SJohn MarinoThis puts the device in Discoverable mode.
7986d7f5d3SJohn Marino.It Cm -iscan
8086d7f5d3SJohn MarinoDisable Inquiry Scan.
8186d7f5d3SJohn Marino.It Cm encrypt
8286d7f5d3SJohn MarinoEnable encryption.
8386d7f5d3SJohn MarinoThis will cause the device to request encryption on all baseband
8486d7f5d3SJohn Marinoconnections, and will only work if authentication is also enabled.
8586d7f5d3SJohn Marino.It Cm -encrypt
8686d7f5d3SJohn MarinoDisable encryption.
8786d7f5d3SJohn Marino.It Cm auth
8886d7f5d3SJohn MarinoEnable authentication.
8986d7f5d3SJohn MarinoThis will cause the device to request authentication
9086d7f5d3SJohn Marinofor all baseband connections.
9186d7f5d3SJohn Marino.It Cm -auth
9286d7f5d3SJohn MarinoDisable authentication.
9386d7f5d3SJohn Marino.It Cm switch
9486d7f5d3SJohn MarinoEnable Role Switching.
9586d7f5d3SJohn Marino.It Cm -switch
9686d7f5d3SJohn MarinoDisable Role Switching.
9786d7f5d3SJohn Marino.It Cm hold
9886d7f5d3SJohn MarinoEnable Hold Mode.
9986d7f5d3SJohn Marino.It Cm -hold
10086d7f5d3SJohn MarinoDisable Hold Mode.
10186d7f5d3SJohn Marino.It Cm sniff
10286d7f5d3SJohn MarinoEnable Sniff Mode.
10386d7f5d3SJohn Marino.It Cm -sniff
10486d7f5d3SJohn MarinoDisable Sniff Mode.
10586d7f5d3SJohn Marino.It Cm park
10686d7f5d3SJohn MarinoEnable Park Mode.
10786d7f5d3SJohn Marino.It Cm -park
10886d7f5d3SJohn MarinoDisable Park Mode.
10986d7f5d3SJohn Marino.It Cm name Ar name
11086d7f5d3SJohn MarinoSet human readable name of device.
11186d7f5d3SJohn Marino.It Cm ptype Ar type
11286d7f5d3SJohn MarinoSet packet types.
11386d7f5d3SJohn Marino.Ar type
11486d7f5d3SJohn Marinois a 16 bit hex value specifying packet types that will be requested
11586d7f5d3SJohn Marinoby outgoing ACL connections.
11686d7f5d3SJohn MarinoBy default, all packet types that the device supports are enabled,
11786d7f5d3SJohn Marinosee bluetooth specifications for more information if you want to change this.
11886d7f5d3SJohn Marino.It Cm class Ar class
11986d7f5d3SJohn MarinoSet class of device.
12086d7f5d3SJohn Marino.Ar class
12186d7f5d3SJohn Marinois a 3 byte hex value the value of which declares the device capabilities.
12286d7f5d3SJohn MarinoSee Bluetooth Assigned Numbers documents at
12386d7f5d3SJohn Marino.Pa https://www.bluetooth.org/
12486d7f5d3SJohn Marinofor details
12586d7f5d3SJohn Marinoof constructing a "Class of Device" value.
12686d7f5d3SJohn MarinoAs a starter, 0x020104 means Desktop Computer, with Networking
12786d7f5d3SJohn Marinoavailable.
12886d7f5d3SJohn Marino.It Cm fixed
12986d7f5d3SJohn MarinoSet fixed pin type.
13086d7f5d3SJohn Marino.It Cm variable
13186d7f5d3SJohn MarinoSet variable pin type.
13286d7f5d3SJohn Marino.It Cm inquiry
13386d7f5d3SJohn MarinoPerform device Discovery from the specified device and print details.
13486d7f5d3SJohn Marino.It Cm rssi
13586d7f5d3SJohn MarinoEnable Remote Signal Strength Indicator (RSSI) in inquiry results.
13686d7f5d3SJohn MarinoThis will only work if the device features indicate
13786d7f5d3SJohn Marino.Aq RSSI with inquiry result .
13886d7f5d3SJohn Marino.It Cm -rssi
13986d7f5d3SJohn MarinoDisable Remote Signal Strength Indicator (RSSI) in inquiry results.
14086d7f5d3SJohn Marino.It Cm reset
14186d7f5d3SJohn MarinoPerform a hard reset on the device and re-initialise system state.
14286d7f5d3SJohn Marino.It Cm voice
14386d7f5d3SJohn MarinoSet Voice Setting.
14486d7f5d3SJohn Marino[This should be 0x0060 for now]
14586d7f5d3SJohn Marino.It Cm pto
14686d7f5d3SJohn MarinoSet Page Timeout value.
14786d7f5d3SJohn MarinoThis is a decimal value in milliseconds.
14886d7f5d3SJohn Marino.It Cm scomtu
14986d7f5d3SJohn MarinoChange SCO mtu value.
15086d7f5d3SJohn MarinoThis is a decimal value, see
15186d7f5d3SJohn Marino.Xr ubt 4
15286d7f5d3SJohn Marinofor reasons why you may need to do this.
15386d7f5d3SJohn Marino.El
15486d7f5d3SJohn Marino.Pp
15586d7f5d3SJohn MarinoAll parameters are parsed before any device operations take place.
15686d7f5d3SJohn MarinoEach time the
15786d7f5d3SJohn Marino.Fl v
15886d7f5d3SJohn Marinoflag is given, verbosity levels will be increased.
15986d7f5d3SJohn Marino.Pp
16086d7f5d3SJohn MarinoSuper-user privileges are required to change device configurations.
16186d7f5d3SJohn Marino.Sh DIAGNOSTICS
16286d7f5d3SJohn MarinoMessages indicating the specified device does not exist, the
16386d7f5d3SJohn Marinorequested address is unknown, or the user is not privileged and
16486d7f5d3SJohn Marinotried to alter an device's configuration.
16586d7f5d3SJohn Marino.Sh SEE ALSO
16686d7f5d3SJohn Marino.Xr bluetooth 4 ,
16786d7f5d3SJohn Marino.Xr ubt 4
16886d7f5d3SJohn Marino.Sh HISTORY
16986d7f5d3SJohn MarinoThe
17086d7f5d3SJohn Marino.Nm
17186d7f5d3SJohn Marinocommand was written for
17286d7f5d3SJohn Marino.Nx 4.0
17386d7f5d3SJohn Marinoby
17486d7f5d3SJohn Marino.An Iain Hibbert
17586d7f5d3SJohn Marinounder the sponsorship of Itronix, Inc and was imported into
17686d7f5d3SJohn Marino.Dx 1.11 .
17786d7f5d3SJohn Marino.Sh BUGS
17886d7f5d3SJohn MarinoThe output is very messy.
179