1 .\" $NetBSD: bthcid.8,v 1.6 2007/11/09 21:18:24 plunky Exp $
3 .\" Copyright (c) 2006 Itronix Inc.
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. The name of Itronix Inc. may not be used to endorse
15 .\" or promote products derived from this software without specific
16 .\" prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY ITRONIX INC. ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ITRONIX INC. BE LIABLE FOR ANY
22 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 .\" ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
31 .\" Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
32 .\" All rights reserved.
34 .\" Redistribution and use in source and binary forms, with or without
35 .\" modification, are permitted provided that the following conditions
37 .\" 1. Redistributions of source code must retain the above copyright
38 .\" notice, this list of conditions and the following disclaimer.
39 .\" 2. Redistributions in binary form must reproduce the above copyright
40 .\" notice, this list of conditions and the following disclaimer in the
41 .\" documentation and/or other materials provided with the distribution.
43 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
44 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
45 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
46 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
47 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
48 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
49 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
50 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
51 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
52 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
55 .\" $Id: bthcid.8,v 1.7 2009/05/18 12:03:56 wiz Exp $
56 .\" $FreeBSD: src/usr.sbin/bluetooth/hcsecd/hcsecd.8,v 1.6 2006/02/11 15:36:37 markus Exp $
58 .Dd September 29, 2006
63 .Nd Bluetooth Link Key/PIN Code Manager
69 .Op Fl s Ar socket_name
75 daemon handles Link Key and PIN code requests for Bluetooth devices.
76 It opens a raw HCI socket and listens for the following HCI events.
78 .Bl -tag -width XXXX -compact
79 .It Dv Link_Key_Request
82 .Pa /var/db/bthcid.keys
83 file for a cached link key matching the remote device BD_ADDR and, if
85 .Dv Link_Key_Request_Reply
86 will be sent back to the device, otherwise the
87 .Dv Link_Key_Request_Negative_Reply
90 .It Dv Link_Key_Notification
91 When a new link key is created by the device, it will be cached for future
93 .Pa /var/db/bthcid.keys
94 link keys file, which will be created if it does not already exist.
96 .It Dv PIN_Code_Request
99 daemon checks its PIN cache for a matching remote device entry.
100 If no PIN is found, the
102 daemon will send a message to any PIN clients that have
103 registered, with the device details and a timeout value.
104 When no clients are available or the timeout has expired,
107 .Dv PIN_Code_Request_Negative_Reply
109 When a PIN is found, or if a client responds within the timeout period, a
110 .Dv PIN_Code_Request_Reply
111 will be sent back to the device.
113 PINs received from clients will be cached for 5 minutes until used, and may be added
114 to the cache prior to pairing with the
119 Some of the functionality of
121 can be handled by the Bluetooth controller directly, and cached Link
122 Keys may be examined, deleted or moved to device storage using the
126 The command line options are as follows:
129 Specify the local Bluetooth device address.
130 The default is BDADDR_ANY.
132 Run in foreground (do not detach).
134 Display usage message and exit.
136 Specify the file mode access bits for the PIN client socket.
137 The default is to allow readwrite access to user and group (0660).
139 Do not listen for PIN clients.
140 .It Fl s Ar socket_name
141 Specify the socket name to listen on for PIN clients.
143 .Pa /var/run/bthcid .
147 .It Pa /var/db/bthcid.keys
148 .It Pa /var/run/bthcid
149 .It Pa /var/run/bthcid.pid
159 daemon first appeared in
165 with its present name and extended to support PIN clients by
167 under the sponsorship of Itronix, Inc.
169 .An Maksim Yevmenkin Aq m_evmenkin@yahoo.com