xref: /freebsd/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.8 (revision 2aa65cf739bae6d8e2fbd167d97ef3c6f744766c)
10986ab12SMaksim Yevmenkin.\" Copyright (c) 2003 Maksim Yevmenkin <m_evmenkin@yahoo.com>
20986ab12SMaksim Yevmenkin.\" All rights reserved.
30986ab12SMaksim Yevmenkin.\"
40986ab12SMaksim Yevmenkin.\" Redistribution and use in source and binary forms, with or without
50986ab12SMaksim Yevmenkin.\" modification, are permitted provided that the following conditions
60986ab12SMaksim Yevmenkin.\" are met:
70986ab12SMaksim Yevmenkin.\" 1. Redistributions of source code must retain the above copyright
80986ab12SMaksim Yevmenkin.\"    notice, this list of conditions and the following disclaimer.
90986ab12SMaksim Yevmenkin.\" 2. Redistributions in binary form must reproduce the above copyright
100986ab12SMaksim Yevmenkin.\"    notice, this list of conditions and the following disclaimer in the
110986ab12SMaksim Yevmenkin.\"    documentation and/or other materials provided with the distribution.
120986ab12SMaksim Yevmenkin.\"
130986ab12SMaksim Yevmenkin.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
140986ab12SMaksim Yevmenkin.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
150986ab12SMaksim Yevmenkin.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
160986ab12SMaksim Yevmenkin.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
170986ab12SMaksim Yevmenkin.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
180986ab12SMaksim Yevmenkin.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
190986ab12SMaksim Yevmenkin.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
200986ab12SMaksim Yevmenkin.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
210986ab12SMaksim Yevmenkin.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
220986ab12SMaksim Yevmenkin.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
230986ab12SMaksim Yevmenkin.\" SUCH DAMAGE.
240986ab12SMaksim Yevmenkin.\"
250986ab12SMaksim Yevmenkin.\" $Id: sdpcontrol.8,v 1.1 2003/09/08 02:27:27 max Exp $
260986ab12SMaksim Yevmenkin.\" $FreeBSD$
270986ab12SMaksim Yevmenkin.\"
280986ab12SMaksim Yevmenkin.Dd September 7, 2003
290986ab12SMaksim Yevmenkin.Dt SDPCONTROL 8
300986ab12SMaksim Yevmenkin.Os
310986ab12SMaksim Yevmenkin.Sh NAME
320986ab12SMaksim Yevmenkin.Nm spdcontrol
33a4b187faSMaksim Yevmenkin.Nd SDP query utility
340986ab12SMaksim Yevmenkin.Sh SYNOPSIS
350986ab12SMaksim Yevmenkin.Nm
36a4b187faSMaksim Yevmenkin.Fl h
37a4b187faSMaksim Yevmenkin.Nm
382aa65cf7SMaksim Yevmenkin.Fl a Ar address
390986ab12SMaksim Yevmenkin.Ar command
400986ab12SMaksim Yevmenkin.Op Ar parameters ...
41a4b187faSMaksim Yevmenkin.Nm
42a4b187faSMaksim Yevmenkin.Fl l
43a4b187faSMaksim Yevmenkin.Op Fl c Ar path
44a4b187faSMaksim Yevmenkin.Ar command
45a4b187faSMaksim Yevmenkin.Op Ar parameters ...
460986ab12SMaksim Yevmenkin.Sh DESCRIPTION
470986ab12SMaksim YevmenkinThe
480986ab12SMaksim Yevmenkin.Nm
49a4b187faSMaksim Yevmenkinutility attempts to query specified Service Discovery Protocol (SDP) server.
502aa65cf7SMaksim YevmenkinRemote SDP servers are identified by their address.
51a4b187faSMaksim YevmenkinConnection to the local SDP server is made via control socket.
520986ab12SMaksim YevmenkinThe
530986ab12SMaksim Yevmenkin.Nm
540986ab12SMaksim Yevmenkinutility will use Service Search Attribute Request and will print results to
550986ab12SMaksim Yevmenkinthe standard output and error messages to the standard error.
560986ab12SMaksim Yevmenkin.Pp
570986ab12SMaksim YevmenkinThe options are as follows:
580986ab12SMaksim Yevmenkin.Bl -tag -width indent
592aa65cf7SMaksim Yevmenkin.It Fl a Ar address
602aa65cf7SMaksim YevmenkinConnect to the remote device with the specified address.
612aa65cf7SMaksim YevmenkinThe address can be specified as BD_ADDR or name.
622aa65cf7SMaksim YevmenkinIf name was specified then the
632aa65cf7SMaksim Yevmenkin.Nm
642aa65cf7SMaksim Yevmenkinutility will attempt to resolve the name via
652aa65cf7SMaksim Yevmenkin.Xr bt_gethostbyname 3 .
66a4b187faSMaksim Yevmenkin.It Fl c Ar path
67a4b187faSMaksim YevmenkinSpecify path to the control socket.
68a4b187faSMaksim YevmenkinThe default path is
69a4b187faSMaksim Yevmenkin.Pa /var/run/sdp .
700986ab12SMaksim Yevmenkin.It Fl h
710986ab12SMaksim YevmenkinDisplay usage message and exit.
72a4b187faSMaksim Yevmenkin.It Fl l
73a4b187faSMaksim YevmenkinQuery the local SDP server via the control socket.
740986ab12SMaksim Yevmenkin.It Ar command
750986ab12SMaksim YevmenkinOne of the supported commands (see below).
760986ab12SMaksim YevmenkinSpecial command
770986ab12SMaksim Yevmenkin.Cm help
780986ab12SMaksim Yevmenkincan be used to obtain the list of all supported commands.
790986ab12SMaksim YevmenkinTo get more information about specific command use
800986ab12SMaksim Yevmenkin.Cm help Ar command .
810986ab12SMaksim Yevmenkin.It Ar parameters
820986ab12SMaksim YevmenkinOne or more optional space separated command parameters.
830986ab12SMaksim Yevmenkin.El
840986ab12SMaksim Yevmenkin.Sh COMMANDS
850986ab12SMaksim YevmenkinThe currently supported node commands in
860986ab12SMaksim Yevmenkin.Nm
870986ab12SMaksim Yevmenkinare:
880986ab12SMaksim Yevmenkin.Pp
890986ab12SMaksim Yevmenkin.Bl -tag -offset indent -compact
900986ab12SMaksim Yevmenkin.It Cm Browse
910986ab12SMaksim Yevmenkin.It Cm Search
920986ab12SMaksim Yevmenkin.El
930986ab12SMaksim Yevmenkin.Sh CAVEAT
94a4b187faSMaksim YevmenkinThe
950986ab12SMaksim Yevmenkin.Nm
960986ab12SMaksim Yevmenkinutility only implements client side functionality.
970986ab12SMaksim Yevmenkin.Pp
980986ab12SMaksim YevmenkinThe
990986ab12SMaksim Yevmenkin.Nm
100a4b187faSMaksim Yevmenkinutility only requests the following attributes from the SDP server:
1019cdb6ee1SRuslan Ermilov.Pp
1020986ab12SMaksim Yevmenkin.Bl -enum -offset indent -compact
1030986ab12SMaksim Yevmenkin.It
1040986ab12SMaksim YevmenkinService Record Handle
1050986ab12SMaksim Yevmenkin.It
1060986ab12SMaksim YevmenkinService Class ID List
1070986ab12SMaksim Yevmenkin.It
1080986ab12SMaksim YevmenkinProtocol Descriptor List
1090986ab12SMaksim Yevmenkin.It
1100986ab12SMaksim YevmenkinBluetooth Profile Descriptor List
1110986ab12SMaksim Yevmenkin.El
1120986ab12SMaksim Yevmenkin.Sh DIAGNOSTICS
1130986ab12SMaksim Yevmenkin.Ex -std
1140986ab12SMaksim Yevmenkin.Sh SEE ALSO
1152aa65cf7SMaksim Yevmenkin.Xr bluetooth 3 ,
1160986ab12SMaksim Yevmenkin.Xr sdp 3
1170986ab12SMaksim Yevmenkin.Sh AUTHORS
1180986ab12SMaksim Yevmenkin.An Maksim Yevmenkin Aq m_evmenkin@yahoo.com
119