NAME

sdpquery - SDP query utility

SYNOPSIS

sdpquery -h sdpquery [-d device] -a address command [parameters ...] sdpquery [-c path] -l command [parameters ...]

DESCRIPTION

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:

-a 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.

-c path
Specify path to the control socket. The default path is /var/run/sdp.

-d device
Connect from the local device with the specifed 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.

-l
Query the local SDP server via the control socket.

-h
Display usage message and exit.

The currently supported commands in sdpquery are:

Browse[ 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 service
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

EXIT STATUS

SEE ALSO

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

HISTORY

The sdpquery command first appeared in FreeBSD5.3 as sdpcontrol. It was ported to NetBSD4.0 under its present name by Iain Hibbert
under the sponsorship of Itronix, Inc.

AUTHORS

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

CAVEATS

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