1 |
.\" $MidnightBSD$ |
2 |
.\" Copyright (c) 2003 Maksim Yevmenkin <m_evmenkin@yahoo.com> |
3 |
.\" All rights reserved. |
4 |
.\" |
5 |
.\" Redistribution and use in source and binary forms, with or without |
6 |
.\" modification, are permitted provided that the following conditions |
7 |
.\" are met: |
8 |
.\" 1. Redistributions of source code must retain the above copyright |
9 |
.\" notice, this list of conditions and the following disclaimer. |
10 |
.\" 2. Redistributions in binary form must reproduce the above copyright |
11 |
.\" notice, this list of conditions and the following disclaimer in the |
12 |
.\" documentation and/or other materials provided with the distribution. |
13 |
.\" |
14 |
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND |
15 |
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
16 |
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
17 |
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE |
18 |
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
19 |
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
20 |
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
21 |
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
22 |
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
23 |
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
24 |
.\" SUCH DAMAGE. |
25 |
.\" |
26 |
.\" $Id: sdpcontrol.8,v 1.1 2003/09/08 02:27:27 max Exp $ |
27 |
.\" $FreeBSD: stable/10/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.8 282958 2015-05-15 10:56:22Z trasz $ |
28 |
.\" |
29 |
.Dd February 7, 2015 |
30 |
.Dt SDPCONTROL 8 |
31 |
.Os |
32 |
.Sh NAME |
33 |
.Nm sdpcontrol |
34 |
.Nd Bluetooth Service Discovery Protocol query utility |
35 |
.Sh SYNOPSIS |
36 |
.Nm |
37 |
.Fl h |
38 |
.Nm |
39 |
.Fl a Ar address |
40 |
.Ar command |
41 |
.Op Ar parameters ... |
42 |
.Nm |
43 |
.Fl l |
44 |
.Op Fl c Ar path |
45 |
.Ar command |
46 |
.Op Ar parameters ... |
47 |
.Sh DESCRIPTION |
48 |
The |
49 |
.Nm |
50 |
utility attempts to query the specified Service Discovery Protocol (SDP) server. |
51 |
Remote SDP servers are identified by their address. |
52 |
Connection to the local SDP server is made via the control socket. |
53 |
The |
54 |
.Nm |
55 |
utility uses Service Search Attribute Requests and prints results to |
56 |
standard output and error messages to standard error. |
57 |
.Pp |
58 |
The options are as follows: |
59 |
.Bl -tag -width indent |
60 |
.It Fl a Ar address |
61 |
Connect to the remote device with the specified address. |
62 |
The address can be specified as BD_ADDR or a name. |
63 |
If a name was specified, the |
64 |
.Nm |
65 |
utility attempts to resolve the name via |
66 |
.Xr bt_gethostbyname 3 . |
67 |
.It Fl c Ar path |
68 |
Specify path to the control socket. |
69 |
The default path is |
70 |
.Pa /var/run/sdp . |
71 |
.It Fl h |
72 |
Display usage message and exit. |
73 |
.It Fl l |
74 |
Query the local SDP server via the control socket. |
75 |
.It Ar command |
76 |
One of the supported commands (see below). |
77 |
The special command |
78 |
.Cm help |
79 |
can be used to obtain a list of all supported commands. |
80 |
To get more information about a specific command, use |
81 |
.Cm help Ar command . |
82 |
.It Ar parameters |
83 |
One or more optional space separated command parameters. |
84 |
.El |
85 |
.Sh COMMANDS |
86 |
The currently supported node commands in |
87 |
.Nm |
88 |
are: |
89 |
.Pp |
90 |
.Bl -tag -width "Browse" -offset indent -compact |
91 |
.It Cm Browse |
92 |
.It Cm Search |
93 |
.El |
94 |
.Sh EXIT STATUS |
95 |
.Ex -std |
96 |
.Sh SEE ALSO |
97 |
.Xr bluetooth 3 , |
98 |
.Xr sdp 3 |
99 |
.Sh AUTHORS |
100 |
.An Maksim Yevmenkin Aq m_evmenkin@yahoo.com |
101 |
.Sh CAVEATS |
102 |
The |
103 |
.Nm |
104 |
utility only implements client side functionality. |
105 |
.Pp |
106 |
The |
107 |
.Nm |
108 |
utility only requests the following attributes from the SDP server: |
109 |
.Pp |
110 |
.Bl -enum -offset indent -compact |
111 |
.It |
112 |
Service Record Handle |
113 |
.It |
114 |
Service Class ID List |
115 |
.It |
116 |
Protocol Descriptor List |
117 |
.It |
118 |
Bluetooth Profile Descriptor List |
119 |
.El |