2007-09-07 22:40:01 +04:00
|
|
|
.\" $NetBSD: btconfig.8,v 1.7 2007/09/07 18:40:01 plunky 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.
|
|
|
|
.\"
|
2007-09-07 22:40:01 +04:00
|
|
|
.Dd September 7, 2007
|
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.
|
|
|
|
.It Cm -switch
|
2006-07-30 03:51:09 +04:00
|
|
|
Disable Role Switching.
|
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
|
|
|
|
is a 3 byte hex value the value of which declares the device capabilities.
|
|
|
|
See Bluetooth Assigned Numbers documents at
|
|
|
|
.Dv https://www.bluetooth.org/
|
|
|
|
for details
|
2006-07-30 03:51:09 +04:00
|
|
|
of constructing a "Class of Device" value.
|
|
|
|
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.
|
2007-09-07 22:40:01 +04:00
|
|
|
.It Cm rssi
|
|
|
|
Enable Remote Signal Strength Indicator (RSSI) in inquiry results.
|
|
|
|
This will only work if the device features indicate
|
|
|
|
.Aq RSSI with inquiry result .
|
|
|
|
.It Cm -rssi
|
|
|
|
Disable Remote Signal Strength Indicator (RSSI) in inquiry results.
|
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.
|
|
|
|
This is a decimal value in milliseconds.
|
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
|
|
|
|
.Xr bluetooth 4 ,
|
2006-07-30 03:51:09 +04:00
|
|
|
.Xr bt3c 4 ,
|
2007-04-22 14:07:43 +04:00
|
|
|
.Xr btuart 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.
|