1 .\" $NetBSD: sdpquery.1,v 1.13 2009/10/06 21:39:58 wiz 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.
30 .\" Copyright (c) 2009 The NetBSD Foundation, Inc.
31 .\" Copyright (c) 2003 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 .\" $FreeBSD: src/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.8,v 1.6 2005/07/09 19:04:43 markus Exp $
62 .Nd Service Discovery Protocol query utility
79 utility attempts to query the specified Service Discovery Protocol
81 Remote SDP servers are identified by their address.
82 Connection to the local SDP server is made via the control socket.
85 utility retrieves complete Service Records as directed and prints
86 each record's attribute ID/value list to standard output and error
87 messages to standard error.
89 The options are as follows:
90 .Bl -tag -width ".Fl a Ar address"
92 Connect to the remote device with the specified address.
93 The address can be specified as BD_ADDR or a name.
94 If a name was specified, the
96 utility attempts to resolve the name via
97 .Xr bt_gethostbyname 3 .
98 If no remote address is given,
100 attempts to contact a local SDP server via the control socket.
102 Specify path to the control socket.
106 Connect from the local device with the specifed address.
107 The device can be specified by BD_ADDR or device name.
110 for a list of devices available.
111 If no device is specified, the
113 utility will use the best available.
115 Query the local SDP server via the control socket.
117 Additionally display numerical values.
119 Display service attributes in raw (uninterpreted) format.
121 Display service attribute values in hex.
124 The currently supported commands in
128 .Bl -tag -width Browse -compact
129 .It Cm Browse Op Ar group
133 parameter is the UUID of the group to browse.
134 If omitted, the "Public Browse Group" is used.
136 .It Cm Record Ar handle Op Ar handle...
137 Retrieve the Service Record with the given
139 Multiple handles can be given.
141 .It Cm Search Ar uuid Op Ar uuid...
142 Search for records matching the list of
143 UUIDs which can be given in numerical form, or the
144 following aliases are known:
146 .Bl -tag -offset indent -compact -width RFCOMMxxx
148 Advanced Audio Distribution Profile
150 Bluetooth Network Encapsulation Protocol
152 Common ISDN Access Service
154 Cordless Telephony Service
156 Dialup Networking Service
160 File Transfer Service
162 Group ad-hoc Network Service
164 Human Interface Device Service
170 Logical Link Control and Adaptation Protocol
172 LAN Access Using PPP Service
174 Network Access Point Service
176 Object Exchange Protocol
180 Personal Area Networking User Service
182 Plug'n'Play Information Service
186 Service Discovery Protocol
190 IrMC Sync Client Service
193 Note that in order for a record to match, it must contain all the
194 UUIDs in the ServiceSearchPattern and the maximum number is 12.
206 command first appeared in
212 under its present name by
214 under the sponsorship of Itronix, Inc.
216 .An Maksim Yevmenkin Aq m_evmenkin@yahoo.com