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 380986ab12SMaksim Yevmenkin.Fl a Ar BD_ADDR 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. 50a4b187faSMaksim YevmenkinRemote SDP servers are identified by their BD_ADDRs. 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 590986ab12SMaksim Yevmenkin.It Fl a Ar BD_ADDR 600986ab12SMaksim YevmenkinConnect to the remote device with the specified BD_ADDR. 610986ab12SMaksim YevmenkinExample: 620986ab12SMaksim Yevmenkin.Fl a Li 00:01:02:03:04:05 . 63a4b187faSMaksim Yevmenkin.It Fl c Ar path 64a4b187faSMaksim YevmenkinSpecify path to the control socket. 65a4b187faSMaksim YevmenkinThe default path is 66a4b187faSMaksim Yevmenkin.Pa /var/run/sdp . 670986ab12SMaksim Yevmenkin.It Fl h 680986ab12SMaksim YevmenkinDisplay usage message and exit. 69a4b187faSMaksim Yevmenkin.It Fl l 70a4b187faSMaksim YevmenkinQuery the local SDP server via the control socket. 710986ab12SMaksim Yevmenkin.It Ar command 720986ab12SMaksim YevmenkinOne of the supported commands (see below). 730986ab12SMaksim YevmenkinSpecial command 740986ab12SMaksim Yevmenkin.Cm help 750986ab12SMaksim Yevmenkincan be used to obtain the list of all supported commands. 760986ab12SMaksim YevmenkinTo get more information about specific command use 770986ab12SMaksim Yevmenkin.Cm help Ar command . 780986ab12SMaksim Yevmenkin.It Ar parameters 790986ab12SMaksim YevmenkinOne or more optional space separated command parameters. 800986ab12SMaksim Yevmenkin.El 810986ab12SMaksim Yevmenkin.Sh COMMANDS 820986ab12SMaksim YevmenkinThe currently supported node commands in 830986ab12SMaksim Yevmenkin.Nm 840986ab12SMaksim Yevmenkinare: 850986ab12SMaksim Yevmenkin.Pp 860986ab12SMaksim Yevmenkin.Bl -tag -offset indent -compact 870986ab12SMaksim Yevmenkin.It Cm Browse 880986ab12SMaksim Yevmenkin.It Cm Search 890986ab12SMaksim Yevmenkin.El 900986ab12SMaksim Yevmenkin.Sh CAVEAT 91a4b187faSMaksim YevmenkinThe 920986ab12SMaksim Yevmenkin.Nm 930986ab12SMaksim Yevmenkinutility only implements client side functionality. 940986ab12SMaksim Yevmenkin.Pp 950986ab12SMaksim YevmenkinThe 960986ab12SMaksim Yevmenkin.Nm 97a4b187faSMaksim Yevmenkinutility only requests the following attributes from the SDP server: 980986ab12SMaksim Yevmenkin.Bl -enum -offset indent -compact 990986ab12SMaksim Yevmenkin.It 1000986ab12SMaksim YevmenkinService Record Handle 1010986ab12SMaksim Yevmenkin.It 1020986ab12SMaksim YevmenkinService Class ID List 1030986ab12SMaksim Yevmenkin.It 1040986ab12SMaksim YevmenkinProtocol Descriptor List 1050986ab12SMaksim Yevmenkin.It 1060986ab12SMaksim YevmenkinBluetooth Profile Descriptor List 1070986ab12SMaksim Yevmenkin.El 1080986ab12SMaksim Yevmenkin.Sh DIAGNOSTICS 1090986ab12SMaksim Yevmenkin.Ex -std 1100986ab12SMaksim Yevmenkin.Sh SEE ALSO 1110986ab12SMaksim Yevmenkin.Xr sdp 3 1120986ab12SMaksim Yevmenkin.Sh AUTHORS 1130986ab12SMaksim Yevmenkin.An Maksim Yevmenkin Aq m_evmenkin@yahoo.com 114