man.bsd.lv manual page server

Manual Page Search Parameters

SDPQUERY(1) General Commands Manual SDPQUERY(1)

sdpquerySDP query utility

sdpquery -h

sdpquery [-d device] -a address command [parameters ...]

sdpquery [-c path] -l command [parameters ...]

The sdpquery utility attempts to query the specified Service Discovery Protocol (SDP) server. Remote SDP servers are identified by their address. Connection to the local SDP server is made via the control socket. The sdpquery utility uses Service Search Attribute Requests and prints results to standard output and error messages to standard error.

The options are as follows:

address
Connect to the remote device with the specified address. The address can be specified as BD_ADDR or a name. If a name was specified, the sdpquery utility attempts to resolve the name via bt_gethostbyname(3). If no remote address is given, sdpquery attempts to contact a local SDP server via the control socket.
path
Specify path to the control socket. The default path is /var/run/sdp.
device
Connect from the local device with the specified address. The device can be specified by BD_ADDR or device name. See btconfig(8) for a list of devices available. If no device is specified, the sdpquery utility will use the best available.
Query the local SDP server via the control socket.
Display usage message and exit.

The currently supported commands in sdpquery are:

[group]
Browse for services. The group parameter is a 16-bit UUID of the group to browse. If omitted, the Public Browse Group. is used.

Search for the service. The service parameter is a 16-bit UUID of the service to search for. For the following services it is possible to use service name instead of service UUID:

CIP
Common ISDN Access
CTP
Cordless Telephony
DUN
DialUp Networking
FAX
Fax
FTRN
OBEX File Transfer
GN
Group ad-hoc Network
HID
Human Interface Device
HF
Handsfree
HSET
Headset
LAN
LAN Access Using PPP
NAP
Network Access Point
OPUSH
OBEX Object Push
PANU
Personal Area Networking User
SP
Serial Port

The sdpquery utility exits 0 on success, and >0 if an error occurs.

bluetooth(3), sdp(3), btconfig(8), sdpd(8)

The sdpquery command first appeared in FreeBSD 5.3 as sdpcontrol. It was ported to NetBSD 4.0 under its present name by Iain Hibbert under the sponsorship of Itronix, Inc and imported into DragonFly 1.11.

Maksim Yevmenkin <m_evmenkin@yahoo.com> and Iain Hibbert for Itronix, Inc.

The sdpquery utility only requests the following attributes from the SDP server:

  1. Service Record Handle
  2. Service Class ID List
  3. Protocol Descriptor List
  4. Bluetooth Profile Descriptor List
February 17, 2007 DragonFly-5.6.1