1 .\" $NetBSD: sdpquery.1,v 1.8 2007/02/17 09:39:11 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) 2003 Maksim Yevmenkin <m_evmenkin@yahoo.com>
31 .\" All rights reserved.
33 .\" Redistribution and use in source and binary forms, with or without
34 .\" modification, are permitted provided that the following conditions
36 .\" 1. Redistributions of source code must retain the above copyright
37 .\" notice, this list of conditions and the following disclaimer.
38 .\" 2. Redistributions in binary form must reproduce the above copyright
39 .\" notice, this list of conditions and the following disclaimer in the
40 .\" documentation and/or other materials provided with the distribution.
42 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
43 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
44 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
45 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
46 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
47 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
48 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
49 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
50 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
51 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54 .\" $Id: sdpquery.1,v 1.8 2007/02/17 09:39:11 wiz Exp $
55 .\" $FreeBSD: src/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.8,v 1.6 2005/07/09 19:04:43 markus Exp $
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 uses Service Search Attribute Requests and prints results to
86 standard output and error messages to standard error.
88 The options are as follows:
89 .Bl -tag -width ".Fl a Ar address"
91 Connect to the remote device with the specified address.
92 The address can be specified as BD_ADDR or a name.
93 If a name was specified, the
95 utility attempts to resolve the name via
96 .Xr bt_gethostbyname 3 .
97 If no remote address is given,
99 attempts to contact a local SDP server via the control socket.
101 Specify path to the control socket.
105 Connect from the local device with the specifed address.
106 The device can be specified by BD_ADDR or device name.
109 for a list of devices available.
110 If no device is specified, the
112 utility will use the best available.
114 Query the local SDP server via the control socket.
116 Display usage message and exit.
119 The currently supported commands in
123 .Bl -tag -width ".Cm search Ar service" -compact
124 .It Cm Browse Op Ar group
128 parameter is a 16-bit UUID of the group to browse.
129 If omitted, the Public Browse Group. is used.
131 .It Cm Search Ar service
136 parameter is a 16-bit UUID of the service to search for.
137 For the following services it is possible to use service name
138 instead of service UUID:
140 .Bl -tag -compact -width "OPUSH"
154 Human Interface Device
166 Personal Area Networking User
181 command first appeared in
187 under its present name by
189 under the sponsorship of Itronix, Inc and imported into
192 .An Maksim Yevmenkin Aq m_evmenkin@yahoo.com
198 utility only requests the following attributes from the SDP server:
200 .Bl -enum -offset indent -compact
202 Service Record Handle
204 Service Class ID List
206 Protocol Descriptor List
208 Bluetooth Profile Descriptor List