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.\" 27*2a0ed076SEdward Tomasz Napierala.Dd February 7, 2015 280986ab12SMaksim Yevmenkin.Dt SDPCONTROL 8 290986ab12SMaksim Yevmenkin.Os 300986ab12SMaksim Yevmenkin.Sh NAME 3149490a17SMarkus Brueffer.Nm sdpcontrol 32*2a0ed076SEdward Tomasz Napierala.Nd Bluetooth Service Discovery Protocol query utility 330986ab12SMaksim Yevmenkin.Sh SYNOPSIS 340986ab12SMaksim Yevmenkin.Nm 35a4b187faSMaksim Yevmenkin.Fl h 36a4b187faSMaksim Yevmenkin.Nm 372aa65cf7SMaksim Yevmenkin.Fl a Ar address 380986ab12SMaksim Yevmenkin.Ar command 390986ab12SMaksim Yevmenkin.Op Ar parameters ... 40a4b187faSMaksim Yevmenkin.Nm 41a4b187faSMaksim Yevmenkin.Fl l 42a4b187faSMaksim Yevmenkin.Op Fl c Ar path 43a4b187faSMaksim Yevmenkin.Ar command 44a4b187faSMaksim Yevmenkin.Op Ar parameters ... 450986ab12SMaksim Yevmenkin.Sh DESCRIPTION 460986ab12SMaksim YevmenkinThe 470986ab12SMaksim Yevmenkin.Nm 4849490a17SMarkus Bruefferutility attempts to query the specified Service Discovery Protocol (SDP) server. 492aa65cf7SMaksim YevmenkinRemote SDP servers are identified by their address. 5049490a17SMarkus BruefferConnection to the local SDP server is made via the control socket. 510986ab12SMaksim YevmenkinThe 520986ab12SMaksim Yevmenkin.Nm 5349490a17SMarkus Bruefferutility uses Service Search Attribute Requests and prints results to 5449490a17SMarkus Bruefferstandard output and error messages to standard error. 550986ab12SMaksim Yevmenkin.Pp 560986ab12SMaksim YevmenkinThe options are as follows: 570986ab12SMaksim Yevmenkin.Bl -tag -width indent 582aa65cf7SMaksim Yevmenkin.It Fl a Ar address 592aa65cf7SMaksim YevmenkinConnect to the remote device with the specified address. 6049490a17SMarkus BruefferThe address can be specified as BD_ADDR or a name. 6149490a17SMarkus BruefferIf a name was specified, the 622aa65cf7SMaksim Yevmenkin.Nm 6349490a17SMarkus Bruefferutility attempts to resolve the name via 642aa65cf7SMaksim Yevmenkin.Xr bt_gethostbyname 3 . 65a4b187faSMaksim Yevmenkin.It Fl c Ar path 66a4b187faSMaksim YevmenkinSpecify path to the control socket. 67a4b187faSMaksim YevmenkinThe default path is 68a4b187faSMaksim Yevmenkin.Pa /var/run/sdp . 690986ab12SMaksim Yevmenkin.It Fl h 700986ab12SMaksim YevmenkinDisplay usage message and exit. 71a4b187faSMaksim Yevmenkin.It Fl l 72a4b187faSMaksim YevmenkinQuery the local SDP server via the control socket. 730986ab12SMaksim Yevmenkin.It Ar command 740986ab12SMaksim YevmenkinOne of the supported commands (see below). 7549490a17SMarkus BruefferThe special command 760986ab12SMaksim Yevmenkin.Cm help 7749490a17SMarkus Brueffercan be used to obtain a list of all supported commands. 7849490a17SMarkus BruefferTo get more information about a specific command, use 790986ab12SMaksim Yevmenkin.Cm help Ar command . 800986ab12SMaksim Yevmenkin.It Ar parameters 810986ab12SMaksim YevmenkinOne or more optional space separated command parameters. 820986ab12SMaksim Yevmenkin.El 830986ab12SMaksim Yevmenkin.Sh COMMANDS 840986ab12SMaksim YevmenkinThe currently supported node commands in 850986ab12SMaksim Yevmenkin.Nm 860986ab12SMaksim Yevmenkinare: 870986ab12SMaksim Yevmenkin.Pp 88e1656a88SJoel Dahl.Bl -tag -width "Browse" -offset indent -compact 890986ab12SMaksim Yevmenkin.It Cm Browse 900986ab12SMaksim Yevmenkin.It Cm Search 910986ab12SMaksim Yevmenkin.El 920b31f1f7SUlrich Spörlein.Sh EXIT STATUS 930b31f1f7SUlrich Spörlein.Ex -std 940b31f1f7SUlrich Spörlein.Sh SEE ALSO 950b31f1f7SUlrich Spörlein.Xr bluetooth 3 , 960b31f1f7SUlrich Spörlein.Xr sdp 3 970b31f1f7SUlrich Spörlein.Sh AUTHORS 9801c2b8acSBaptiste Daroussin.An Maksim Yevmenkin Aq Mt m_evmenkin@yahoo.com 9949490a17SMarkus Brueffer.Sh CAVEATS 100a4b187faSMaksim YevmenkinThe 1010986ab12SMaksim Yevmenkin.Nm 1020986ab12SMaksim Yevmenkinutility only implements client side functionality. 1030986ab12SMaksim Yevmenkin.Pp 1040986ab12SMaksim YevmenkinThe 1050986ab12SMaksim Yevmenkin.Nm 106a4b187faSMaksim Yevmenkinutility only requests the following attributes from the SDP server: 1079cdb6ee1SRuslan Ermilov.Pp 1080986ab12SMaksim Yevmenkin.Bl -enum -offset indent -compact 1090986ab12SMaksim Yevmenkin.It 1100986ab12SMaksim YevmenkinService Record Handle 1110986ab12SMaksim Yevmenkin.It 1120986ab12SMaksim YevmenkinService Class ID List 1130986ab12SMaksim Yevmenkin.It 1140986ab12SMaksim YevmenkinProtocol Descriptor List 1150986ab12SMaksim Yevmenkin.It 1160986ab12SMaksim YevmenkinBluetooth Profile Descriptor List 1170986ab12SMaksim Yevmenkin.El 118