xref: /netbsd-src/usr.bin/sdpquery/sdpquery.1 (revision 6cb10275d08f045e872662c371fe2f2724f2f6e6)
1*6cb10275Sriastradh.\"	$NetBSD: sdpquery.1,v 1.17 2014/03/18 18:20:45 riastradh Exp $
2a5c89047Sgdamore.\"
3a5c89047Sgdamore.\" Copyright (c) 2006 Itronix Inc.
4a5c89047Sgdamore.\" All rights reserved.
5a5c89047Sgdamore.\"
6a5c89047Sgdamore.\" Redistribution and use in source and binary forms, with or without
7a5c89047Sgdamore.\" modification, are permitted provided that the following conditions
8a5c89047Sgdamore.\" are met:
9a5c89047Sgdamore.\" 1. Redistributions of source code must retain the above copyright
10a5c89047Sgdamore.\"    notice, this list of conditions and the following disclaimer.
11a5c89047Sgdamore.\" 2. Redistributions in binary form must reproduce the above copyright
12a5c89047Sgdamore.\"    notice, this list of conditions and the following disclaimer in the
13a5c89047Sgdamore.\"    documentation and/or other materials provided with the distribution.
14a5c89047Sgdamore.\" 3. The name of Itronix Inc. may not be used to endorse
15a5c89047Sgdamore.\"    or promote products derived from this software without specific
16a5c89047Sgdamore.\"    prior written permission.
17a5c89047Sgdamore.\"
18a5c89047Sgdamore.\" THIS SOFTWARE IS PROVIDED BY ITRONIX INC. ``AS IS'' AND
19a5c89047Sgdamore.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20a5c89047Sgdamore.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21a5c89047Sgdamore.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL ITRONIX INC. BE LIABLE FOR ANY
22a5c89047Sgdamore.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23a5c89047Sgdamore.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24a5c89047Sgdamore.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25a5c89047Sgdamore.\" ON ANY THEORY OF LIABILITY, WHETHER IN
26a5c89047Sgdamore.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27a5c89047Sgdamore.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28a5c89047Sgdamore.\" POSSIBILITY OF SUCH DAMAGE.
29a5c89047Sgdamore.\"
30384153c1Splunky.\" Copyright (c) 2009 The NetBSD Foundation, Inc.
31a5c89047Sgdamore.\" Copyright (c) 2003 Maksim Yevmenkin <m_evmenkin@yahoo.com>
32a5c89047Sgdamore.\" All rights reserved.
33a5c89047Sgdamore.\"
34a5c89047Sgdamore.\" Redistribution and use in source and binary forms, with or without
35a5c89047Sgdamore.\" modification, are permitted provided that the following conditions
36a5c89047Sgdamore.\" are met:
37a5c89047Sgdamore.\" 1. Redistributions of source code must retain the above copyright
38a5c89047Sgdamore.\"    notice, this list of conditions and the following disclaimer.
39a5c89047Sgdamore.\" 2. Redistributions in binary form must reproduce the above copyright
40a5c89047Sgdamore.\"    notice, this list of conditions and the following disclaimer in the
41a5c89047Sgdamore.\"    documentation and/or other materials provided with the distribution.
42a5c89047Sgdamore.\"
43a5c89047Sgdamore.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
44a5c89047Sgdamore.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
45a5c89047Sgdamore.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
46a5c89047Sgdamore.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
47a5c89047Sgdamore.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
48a5c89047Sgdamore.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
49a5c89047Sgdamore.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
50a5c89047Sgdamore.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
51a5c89047Sgdamore.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
52a5c89047Sgdamore.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
53a5c89047Sgdamore.\" SUCH DAMAGE.
54a5c89047Sgdamore.\"
55a5c89047Sgdamore.\" $FreeBSD: src/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.8,v 1.6 2005/07/09 19:04:43 markus Exp $
56a5c89047Sgdamore.\"
57ddecca9bSwiz.Dd October 6, 2009
58a5c89047Sgdamore.Dt SDPQUERY 1
59a5c89047Sgdamore.Os
60a5c89047Sgdamore.Sh NAME
61a5c89047Sgdamore.Nm sdpquery
62384153c1Splunky.Nd Service Discovery Protocol query utility
63a5c89047Sgdamore.Sh SYNOPSIS
64a5c89047Sgdamore.Nm
65384153c1Splunky.Op Fl NRX
66a5c89047Sgdamore.Op Fl d Ar device
67a5c89047Sgdamore.Fl a Ar address
68a5c89047Sgdamore.Ar command
69a5c89047Sgdamore.Op Ar parameters ...
70a5c89047Sgdamore.Nm
71384153c1Splunky.Op Fl NRX
72a5c89047Sgdamore.Op Fl c Ar path
73a5c89047Sgdamore.Fl l
74a5c89047Sgdamore.Ar command
75a5c89047Sgdamore.Op Ar parameters ...
76a5c89047Sgdamore.Sh DESCRIPTION
77a5c89047SgdamoreThe
78a5c89047Sgdamore.Nm
79d8488cf5Swizutility attempts to query the specified Service Discovery Protocol
80d8488cf5Swiz(SDP) server.
81a5c89047SgdamoreRemote SDP servers are identified by their address.
82a5c89047SgdamoreConnection to the local SDP server is made via the control socket.
83a5c89047SgdamoreThe
84a5c89047Sgdamore.Nm
85384153c1Splunkyutility retrieves complete Service Records as directed and prints
86b0f5ac96Swizeach record's attribute ID/value list to standard output and error
87384153c1Splunkymessages to standard error.
88a5c89047Sgdamore.Pp
89a5c89047SgdamoreThe options are as follows:
90315d0953Splunky.Bl -tag -width ".Fl a Ar address"
91a5c89047Sgdamore.It Fl a Ar address
92a5c89047SgdamoreConnect to the remote device with the specified address.
93a5c89047SgdamoreThe address can be specified as BD_ADDR or a name.
94a5c89047SgdamoreIf a name was specified, the
95a5c89047Sgdamore.Nm
96a5c89047Sgdamoreutility attempts to resolve the name via
97a5c89047Sgdamore.Xr bt_gethostbyname 3 .
98a5c89047SgdamoreIf no remote address is given,
99a5c89047Sgdamore.Nm
100a5c89047Sgdamoreattempts to contact a local SDP server via the control socket.
101a5c89047Sgdamore.It Fl c Ar path
102a5c89047SgdamoreSpecify path to the control socket.
103a5c89047SgdamoreThe default path is
104a5c89047Sgdamore.Pa /var/run/sdp .
105a5c89047Sgdamore.It Fl d Ar device
1068f657e21SwizConnect from the local device with the specified address.
107d8488cf5SwizThe device can be specified by BD_ADDR or device name.
108d8488cf5SwizSee
109a5c89047Sgdamore.Xr btconfig 8
110d8488cf5Swizfor a list of devices available.
111d8488cf5SwizIf no device is specified, the
112a5c89047Sgdamore.Nm
113a5c89047Sgdamoreutility will use the best available.
114a5c89047Sgdamore.It Fl l
115a5c89047SgdamoreQuery the local SDP server via the control socket.
116384153c1Splunky.It Fl N
117384153c1SplunkyAdditionally display numerical values.
118384153c1Splunky.It Fl R
119384153c1SplunkyDisplay service attributes in raw (uninterpreted) format.
120384153c1Splunky.It Fl X
121384153c1SplunkyDisplay service attribute values in hex.
122a5c89047Sgdamore.El
123315d0953Splunky.Pp
124a5c89047SgdamoreThe currently supported commands in
125a5c89047Sgdamore.Nm
126a5c89047Sgdamoreare:
127a5c89047Sgdamore.Pp
128384153c1Splunky.Bl -tag -width Browse -compact
129a5c89047Sgdamore.It Cm Browse Op Ar group
130d8488cf5SwizBrowse for services.
131d8488cf5SwizThe
132a5c89047Sgdamore.Ar group
1330fbc382dSplunkyparameter is the UUID of the group to browse.
134384153c1SplunkyIf omitted, the "Public Browse Group" is used.
135a5c89047Sgdamore.Pp
136384153c1Splunky.It Cm Record Ar handle Op Ar handle...
137384153c1SplunkyRetrieve the Service Record with the given
138384153c1Splunky.Ar handle .
139384153c1SplunkyMultiple handles can be given.
140a5c89047Sgdamore.Pp
141384153c1Splunky.It Cm Search Ar uuid Op Ar uuid...
142384153c1SplunkySearch for records matching the list of
143384153c1SplunkyUUIDs which can be given in numerical form, or the
144384153c1Splunkyfollowing aliases are known:
145384153c1Splunky.Pp
146384153c1Splunky.Bl -tag -offset indent -compact -width RFCOMMxxx
147384153c1Splunky.It A2DP
148384153c1SplunkyAdvanced Audio Distribution Profile
149384153c1Splunky.It BNEP
150384153c1SplunkyBluetooth Network Encapsulation Protocol
151315d0953Splunky.It CIP
152384153c1SplunkyCommon ISDN Access Service
153315d0953Splunky.It CTP
154384153c1SplunkyCordless Telephony Service
155315d0953Splunky.It DUN
156384153c1SplunkyDialup Networking Service
157315d0953Splunky.It FAX
158384153c1SplunkyFax Service
159315d0953Splunky.It FTRN
160384153c1SplunkyFile Transfer Service
161315d0953Splunky.It GN
162384153c1SplunkyGroup ad-hoc Network Service
163315d0953Splunky.It HID
164384153c1SplunkyHuman Interface Device Service
165315d0953Splunky.It HF
166384153c1SplunkyHandsfree Service
167315d0953Splunky.It HSET
168384153c1SplunkyHeadset Service
169384153c1Splunky.It L2CAP
170384153c1SplunkyLogical Link Control and Adaptation Protocol
171315d0953Splunky.It LAN
172384153c1SplunkyLAN Access Using PPP Service
173315d0953Splunky.It NAP
174384153c1SplunkyNetwork Access Point Service
175384153c1Splunky.It OBEX
176384153c1SplunkyObject Exchange Protocol
177315d0953Splunky.It OPUSH
178384153c1SplunkyObject Push Service
179d00be208Splunky.It PANU
180384153c1SplunkyPersonal Area Networking User Service
181e16149e2Splunky.It PNP
182e16149e2SplunkyPlug'n'Play Information Service
183384153c1Splunky.It RFCOMM
184384153c1SplunkyRFCOMM Protocol
185384153c1Splunky.It SDP
186384153c1SplunkyService Discovery Protocol
187315d0953Splunky.It SP
188384153c1SplunkySerial Port Service
189384153c1Splunky.It SYNC
190384153c1SplunkyIrMC Sync Client Service
191a5c89047Sgdamore.El
192384153c1Splunky.Pp
193384153c1SplunkyNote that in order for a record to match, it must contain all the
194384153c1SplunkyUUIDs in the ServiceSearchPattern and the maximum number is 12.
195a5c89047Sgdamore.El
196d8488cf5Swiz.Sh EXIT STATUS
197d8488cf5Swiz.Ex -std
198d8488cf5Swiz.Sh SEE ALSO
199d8488cf5Swiz.Xr bluetooth 3 ,
200d8488cf5Swiz.Xr sdp 3 ,
201d8488cf5Swiz.Xr btconfig 8 ,
202d8488cf5Swiz.Xr sdpd 8
203d8488cf5Swiz.Sh HISTORY
204d8488cf5SwizThe
205d8488cf5Swiz.Nm
206d8488cf5Swizcommand first appeared in
207d8488cf5Swiz.Fx 5.3
208d8488cf5Swizas
209d8488cf5Swiz.Nm sdpcontrol .
210d8488cf5SwizIt was ported to
211d8488cf5Swiz.Nx 4.0
212d8488cf5Swizunder its present name by
213d8488cf5Swiz.An Iain Hibbert
214d8488cf5Swizunder the sponsorship of Itronix, Inc.
215d8488cf5Swiz.Sh AUTHORS
216a5684d07Swiz.An Maksim Yevmenkin Aq Mt m_evmenkin@yahoo.com
217d8488cf5Swiz.An Iain Hibbert
218d8488cf5Swizfor Itronix, Inc.
219