2012-03-16 02:35:02 +04:00
|
|
|
.\" $NetBSD: btconfig.8,v 1.18 2012/03/15 22:35:03 njoly Exp $
|
2006-06-19 19:44:33 +04:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2006 Itronix Inc.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Written by Iain Hibbert for Itronix Inc.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. The name of Itronix Inc. may not be used to endorse
|
|
|
|
.\" or promote products derived from this software without specific
|
|
|
|
.\" prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY ITRONIX INC. ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ITRONIX INC. BE LIABLE FOR ANY
|
|
|
|
.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
|
.\" ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
2010-10-11 19:37:55 +04:00
|
|
|
.Dd October 11, 2010
|
2006-06-19 19:44:33 +04:00
|
|
|
.Dt BTCONFIG 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm btconfig
|
|
|
|
.Nd configure bluetooth devices
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2006-07-30 03:51:09 +04:00
|
|
|
.Op Fl svz
|
2006-06-19 19:44:33 +04:00
|
|
|
.Oo
|
|
|
|
.Ar device
|
|
|
|
.Op Ar parameters
|
|
|
|
.Oc
|
|
|
|
.Nm
|
|
|
|
.Op Fl l
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2006-07-30 03:51:09 +04:00
|
|
|
is used to configure Bluetooth devices.
|
|
|
|
If the
|
2006-06-19 19:44:33 +04:00
|
|
|
.Ar device
|
2006-07-30 03:51:09 +04:00
|
|
|
is given, but no parameters, then
|
2006-06-19 19:44:33 +04:00
|
|
|
.Nm
|
2006-07-30 03:51:09 +04:00
|
|
|
will print information about the device.
|
|
|
|
If no
|
2006-06-19 19:44:33 +04:00
|
|
|
.Ar device
|
|
|
|
is given, a basic list of devices will be printed.
|
|
|
|
.Pp
|
|
|
|
When the
|
|
|
|
.Fl l
|
|
|
|
flag is used, just the device names will be printed.
|
|
|
|
.Sh COMMANDS
|
|
|
|
The following parameters may be specified with
|
|
|
|
.Nm :
|
|
|
|
.Bl -tag -width xxxxxxxxxxx
|
|
|
|
.It Cm up
|
|
|
|
Enable Bluetooth Device.
|
|
|
|
.It Cm down
|
|
|
|
Disable Bluetooth Device.
|
|
|
|
.It Cm pscan
|
2006-07-30 03:51:09 +04:00
|
|
|
Enable Page Scan.
|
|
|
|
This enables incoming connections to the device.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm -pscan
|
2006-07-30 03:51:09 +04:00
|
|
|
Disable Page Scan.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm iscan
|
2006-07-30 03:51:09 +04:00
|
|
|
Enable Inquiry Scan.
|
|
|
|
This puts the device in Discoverable mode.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm -iscan
|
2006-07-30 03:51:09 +04:00
|
|
|
Disable Inquiry Scan.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm encrypt
|
2006-07-30 03:51:09 +04:00
|
|
|
Enable encryption.
|
|
|
|
This will cause the device to request encryption on all baseband
|
|
|
|
connections, and will only work if authentication is also enabled.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm -encrypt
|
2006-07-30 03:51:09 +04:00
|
|
|
Disable encryption.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm auth
|
2006-07-30 03:51:09 +04:00
|
|
|
Enable authentication.
|
|
|
|
This will cause the device to request authentication
|
2006-06-19 19:44:33 +04:00
|
|
|
for all baseband connections.
|
|
|
|
.It Cm -auth
|
2006-07-30 03:51:09 +04:00
|
|
|
Disable authentication.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm switch
|
|
|
|
Enable Role Switching.
|
2009-08-20 15:45:51 +04:00
|
|
|
In a Bluetooth piconet there is one Master and up to seven Slaves, and
|
|
|
|
normally the device that initiates a connection will take the Master role.
|
2009-08-21 01:40:59 +04:00
|
|
|
Enabling this option allows remote devices to switch connection roles.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm -switch
|
2006-07-30 03:51:09 +04:00
|
|
|
Disable Role Switching.
|
2009-08-21 01:40:59 +04:00
|
|
|
.It Cm master
|
|
|
|
Request the Master role when accepting connections.
|
|
|
|
.It Cm -master
|
|
|
|
Do not request Master role.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm hold
|
2006-07-30 03:51:09 +04:00
|
|
|
Enable Hold Mode.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm -hold
|
2006-07-30 03:51:09 +04:00
|
|
|
Disable Hold Mode.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm sniff
|
2006-07-30 03:51:09 +04:00
|
|
|
Enable Sniff Mode.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm -sniff
|
2006-07-30 03:51:09 +04:00
|
|
|
Disable Sniff Mode.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm park
|
2006-07-30 03:51:09 +04:00
|
|
|
Enable Park Mode.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm -park
|
2006-07-30 03:51:09 +04:00
|
|
|
Disable Park Mode.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm name Ar name
|
|
|
|
Set human readable name of device.
|
|
|
|
.It Cm ptype Ar type
|
|
|
|
Set packet types.
|
|
|
|
.Ar type
|
2006-07-30 03:51:09 +04:00
|
|
|
is a 16 bit hex value specifying packet types that will be requested
|
|
|
|
by outgoing ACL connections.
|
|
|
|
By default, all packet types that the device supports are enabled,
|
2006-06-19 19:44:33 +04:00
|
|
|
see bluetooth specifications for more information if you want to change this.
|
|
|
|
.It Cm class Ar class
|
|
|
|
Set class of device.
|
|
|
|
.Ar class
|
2009-08-18 21:40:31 +04:00
|
|
|
is a 6 digit hex value the value of which declares the device capabilities.
|
|
|
|
See the
|
|
|
|
.Qq Assigned Numbers - Baseband
|
|
|
|
document at
|
2012-03-16 02:35:02 +04:00
|
|
|
.Lk http://www.bluetooth.com/
|
2009-08-18 21:40:31 +04:00
|
|
|
for details of constructing a Class of Device value.
|
2006-07-30 03:51:09 +04:00
|
|
|
As a starter, 0x020104 means Desktop Computer, with Networking
|
|
|
|
available.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm fixed
|
2006-07-30 03:51:09 +04:00
|
|
|
Set fixed pin type.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm variable
|
2006-07-30 03:51:09 +04:00
|
|
|
Set variable pin type.
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm inquiry
|
2007-08-09 22:50:58 +04:00
|
|
|
Perform device Discovery from the specified device and print details.
|
2009-08-25 00:43:35 +04:00
|
|
|
.It Cm imode Ar type
|
|
|
|
Set inquiry mode type to control which event formats are generated during
|
|
|
|
a device inquiry.
|
|
|
|
The
|
|
|
|
.Ar type
|
|
|
|
can be:
|
|
|
|
.Bl -tag -width xxxxxx
|
|
|
|
.It std
|
|
|
|
Standard Inquiry Result Event format.
|
|
|
|
.It rssi
|
2007-09-07 22:40:01 +04:00
|
|
|
Enable Remote Signal Strength Indicator (RSSI) in inquiry results.
|
|
|
|
This will only work if the device features indicate
|
|
|
|
.Aq RSSI with inquiry result .
|
2009-08-25 00:43:35 +04:00
|
|
|
.It ext
|
|
|
|
Inquiry Result with RSSI format or Extended Inquiry Result fomat.
|
|
|
|
This will only work where the device features indicate
|
|
|
|
.Aq extended inquiry ,
|
|
|
|
and the Extended Inquiry Result will only occur when the remote device
|
|
|
|
provides the extended information.
|
|
|
|
.El
|
2006-06-19 19:44:33 +04:00
|
|
|
.It Cm reset
|
|
|
|
Perform a hard reset on the device and re-initialise system state.
|
|
|
|
.It Cm voice
|
2006-07-30 03:51:09 +04:00
|
|
|
Set Voice Setting.
|
|
|
|
[This should be 0x0060 for now]
|
2006-07-26 14:00:43 +04:00
|
|
|
.It Cm pto
|
2006-07-30 03:51:09 +04:00
|
|
|
Set Page Timeout value.
|
2010-10-11 19:37:55 +04:00
|
|
|
This is a decimal value in milliseconds, indicating how long the device
|
2010-10-17 16:45:28 +04:00
|
|
|
will attempt to page another device when opening baseband connections.
|
2006-08-27 15:41:58 +04:00
|
|
|
.It Cm scomtu
|
|
|
|
Change SCO mtu value.
|
|
|
|
This is a decimal value, see
|
|
|
|
.Xr ubt 4
|
|
|
|
for reasons why you may need to do this.
|
2006-06-19 19:44:33 +04:00
|
|
|
.El
|
|
|
|
.Pp
|
2006-07-30 03:51:09 +04:00
|
|
|
All parameters are parsed before any device operations take place.
|
|
|
|
Each time the
|
2006-06-19 19:44:33 +04:00
|
|
|
.Fl v
|
|
|
|
flag is given, verbosity levels will be increased.
|
|
|
|
.Pp
|
|
|
|
Super-user privileges are required to change device configurations.
|
|
|
|
.Sh DIAGNOSTICS
|
|
|
|
Messages indicating the specified device does not exist, the
|
|
|
|
requested address is unknown, or the user is not privileged and
|
|
|
|
tried to alter an device's configuration.
|
|
|
|
.Sh SEE ALSO
|
2009-09-01 22:19:08 +04:00
|
|
|
.Xr bcsp 4 ,
|
2006-06-19 19:44:33 +04:00
|
|
|
.Xr bluetooth 4 ,
|
2006-07-30 03:51:09 +04:00
|
|
|
.Xr bt3c 4 ,
|
2009-09-01 22:19:08 +04:00
|
|
|
.Xr btbc 4 ,
|
2007-04-22 14:07:43 +04:00
|
|
|
.Xr btuart 4 ,
|
2009-09-01 22:19:08 +04:00
|
|
|
.Xr sbt 4 ,
|
2006-07-30 03:51:09 +04:00
|
|
|
.Xr ubt 4
|
2006-06-19 19:44:33 +04:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command was written for
|
|
|
|
.Nx 4.0
|
|
|
|
by
|
2006-07-30 03:51:09 +04:00
|
|
|
.An Iain Hibbert
|
2006-06-19 19:44:33 +04:00
|
|
|
under the sponsorship of Itronix, Inc.
|
|
|
|
.Sh BUGS
|
2006-07-30 03:51:09 +04:00
|
|
|
The output is very messy.
|