2002-11-20 23:01:59 +00:00
|
|
|
.\" Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
|
|
|
|
.\" All rights reserved.
|
2003-05-20 21:01:21 +00:00
|
|
|
.\"
|
2002-11-20 23:01:59 +00:00
|
|
|
.\" 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.
|
2003-05-20 21:01:21 +00:00
|
|
|
.\"
|
2002-11-20 23:01:59 +00:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``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 THE AUTHOR OR CONTRIBUTORS 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.
|
2003-05-20 21:01:21 +00:00
|
|
|
.\"
|
2003-05-10 21:44:42 +00:00
|
|
|
.\" $Id: ng_bluetooth.4,v 1.2 2003/04/26 22:38:25 max Exp $
|
2002-11-20 23:01:59 +00:00
|
|
|
.\" $FreeBSD$
|
2003-05-20 21:01:21 +00:00
|
|
|
.\"
|
2002-11-20 23:01:59 +00:00
|
|
|
.Dd November 9, 2002
|
|
|
|
.Dt NG_BLUETOOTH 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
2003-05-20 21:01:21 +00:00
|
|
|
.Nm ng_bluetooth
|
2002-11-20 23:01:59 +00:00
|
|
|
.Nd placeholder for global Bluetooth variables
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.In sys/types.h
|
|
|
|
.In ng_bluetooth.h
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
2003-05-20 21:01:21 +00:00
|
|
|
.Nm
|
|
|
|
module is a placeholder for global Bluetooth variables.
|
|
|
|
All Bluetooth variables can be examined and changed via
|
2002-11-20 23:01:59 +00:00
|
|
|
.Xr sysctl 8 .
|
2003-05-20 21:01:21 +00:00
|
|
|
.Ss Bluetooth Variables
|
|
|
|
Below is the description of default variables.
|
|
|
|
Each Bluetooth module might add its own variables to the tree.
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Va net.bluetooth.version
|
|
|
|
A read-only integer variable that shows the current version of the
|
2002-11-20 23:01:59 +00:00
|
|
|
Bluetooth stack.
|
2003-05-20 21:01:21 +00:00
|
|
|
.It Va net.bluetooth.hci.command_timeout
|
2002-11-20 23:01:59 +00:00
|
|
|
A read-write interger variable that controls the Host Controller Interface
|
2003-05-20 21:01:21 +00:00
|
|
|
(HCI) command timeout (in seconds), i.e. how long the HCI layer will wait
|
2002-11-20 23:01:59 +00:00
|
|
|
for the
|
|
|
|
.Dv Command_Complete
|
|
|
|
or
|
|
|
|
.Dv Command_Status
|
|
|
|
event from a Bluetooth device.
|
2003-05-20 21:01:21 +00:00
|
|
|
.It Va net.bluetooth.hci.connection_timeout
|
|
|
|
A read-write integer variable that controls the HCI connection timeout, i.e.\&
|
|
|
|
how long the HCI layer will wait for the
|
2002-11-20 23:01:59 +00:00
|
|
|
.Dv Connection_Complete
|
2003-05-20 21:01:21 +00:00
|
|
|
event.
|
|
|
|
Normally this should not be required as Bluetooth devices have
|
|
|
|
connection timeout of their own and will send event back.
|
|
|
|
This timeout
|
|
|
|
is required to ensure that no connection will stall in case when the HCI
|
|
|
|
transport layer is broken.
|
|
|
|
Be careful when changing this variable.
|
2002-11-20 23:01:59 +00:00
|
|
|
Make sure you understand what you are doing.
|
2003-05-20 21:01:21 +00:00
|
|
|
.It Va net.bluetooth.hci.max_neighbor_age
|
2002-11-20 23:01:59 +00:00
|
|
|
A read-write integer variable that controls time-to-live (in seconds) for
|
2003-05-20 21:01:21 +00:00
|
|
|
entries in the HCI neighbor cache.
|
|
|
|
Every time a Bluetooth device performs an
|
2002-11-20 23:01:59 +00:00
|
|
|
.Dv Inquiry
|
2003-05-20 21:01:21 +00:00
|
|
|
operation, the results will be put in cache.
|
|
|
|
Later when a Bluetooth device
|
|
|
|
establishes a baseband connection, it will try to find the matching entry in
|
|
|
|
the cache and use it.
|
|
|
|
This might speed up establishment of the baseband
|
2002-11-20 23:01:59 +00:00
|
|
|
connection.
|
2003-05-20 21:01:21 +00:00
|
|
|
.It Va net.bluetooth.l2cap.rtx_timeout
|
|
|
|
A read-write integer variable that controls the Link Layer Control and
|
|
|
|
Adaptation Protocol (L2CAP) Retransmission Timeout (RTX) (in seconds).
|
|
|
|
Every time the L2CAP layer submits a control command, the RTX timeout is set.
|
|
|
|
The value of the RTX timeout should be greater or equal to the value of
|
|
|
|
the HCI connection timeout.
|
|
|
|
Be careful when changing this variable.
|
|
|
|
Make sure you understand what you are doing.
|
|
|
|
.It Va net.bluetooth.l2cap.ertx_timeout
|
|
|
|
A read-write integer variable that controls the L2CAP Extended Retransmission
|
|
|
|
Timeout (ERTX) (in seconds).
|
|
|
|
In some cases remote peer may respond with
|
2002-11-20 23:01:59 +00:00
|
|
|
.Dv PENDING
|
2003-05-20 21:01:21 +00:00
|
|
|
status to the L2CAP control command.
|
|
|
|
In this case the L2CAP command timeout is reset to the ERTX timeout value.
|
|
|
|
The value of the ERTX timeout should be
|
|
|
|
greater or equal to the value of the RTX timeout.
|
|
|
|
Be careful when changing this variable.
|
|
|
|
Make sure you understand what you are doing.
|
2002-11-20 23:01:59 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2003-05-20 21:01:21 +00:00
|
|
|
.Xr ng_btsocket 4 ,
|
2002-11-20 23:01:59 +00:00
|
|
|
.Xr ng_hci 4 ,
|
|
|
|
.Xr ng_l2cap 4 ,
|
2003-05-20 21:01:21 +00:00
|
|
|
.Xr sysctl 8
|
2002-11-20 23:01:59 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
2003-05-20 21:01:21 +00:00
|
|
|
.Nm
|
2002-11-20 23:01:59 +00:00
|
|
|
module was implemented in
|
|
|
|
.Fx 5.0 .
|
|
|
|
.Sh AUTHORS
|
|
|
|
.An Maksim Yevmenkin Aq m_evmenkin@yahoo.com
|