Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sdpquery(1) [netbsd man page]

SDPQUERY(1)						    BSD General Commands Manual 					       SDPQUERY(1)

NAME
sdpquery -- Service Discovery Protocol query utility SYNOPSIS
sdpquery [-NRX] [-d device] -a address command [parameters ...] sdpquery [-NRX] [-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 retrieves complete Service Records as directed and prints each record's attribute ID/value list 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 spec- ified, 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 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. -l Query the local SDP server via the control socket. -N Additionally display numerical values. -R Display service attributes in raw (uninterpreted) format. -X Display service attribute values in hex. The currently supported commands in sdpquery are: Browse [group] Browse for services. The group parameter is the UUID of the group to browse. If omitted, the "Public Browse Group" is used. Record handle [handle...] Retrieve the Service Record with the given handle. Multiple handles can be given. Search uuid [uuid...] Search for records matching the list of UUIDs which can be given in numerical form, or the following aliases are known: A2DP Advanced Audio Distribution Profile BNEP Bluetooth Network Encapsulation Protocol CIP Common ISDN Access Service CTP Cordless Telephony Service DUN Dialup Networking Service FAX Fax Service FTRN File Transfer Service GN Group ad-hoc Network Service HID Human Interface Device Service HF Handsfree Service HSET Headset Service L2CAP Logical Link Control and Adaptation Protocol LAN LAN Access Using PPP Service NAP Network Access Point Service OBEX Object Exchange Protocol OPUSH Object Push Service PANU Personal Area Networking User Service PNP Plug'n'Play Information Service RFCOMM RFCOMM Protocol SDP Service Discovery Protocol SP Serial Port Service SYNC IrMC Sync Client Service Note that in order for a record to match, it must contain all the UUIDs in the ServiceSearchPattern and the maximum number is 12. EXIT STATUS
The sdpquery utility exits 0 on success, and >0 if an error occurs. SEE ALSO
bluetooth(3), sdp(3), btconfig(8), sdpd(8) HISTORY
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. AUTHORS
Maksim Yevmenkin <m_evmenkin@yahoo.com> Iain Hibbert for Itronix, Inc. BSD
October 6, 2009 BSD

Check Out this Related Man Page

BTDEVCTL(8)						    BSD System Manager's Manual 					       BTDEVCTL(8)

NAME
btdevctl -- Bluetooth remote device control utility SYNOPSIS
btdevctl [-A | -D] [-qv] [-m mode] -a address -d device -s service DESCRIPTION
The btdevctl utility is used to configure bluetooth devices in the system. Normally, btdevctl will perform an SDP query to the remote device as needed, and cache the results in the /var/db/btdevctl.plist file for later use. If neither Attach nor Detach is specified, btdevctl will display the configuration. The options are: -A Attach device -a address Remote device address. The address may be given as BDADDR or a name. If a name was specified, btdevctl attempts to resolve the name via bt_gethostbyname(3). -D Detach device -d device Local device address. May be given as BDADDR or device name. -m mode Connection link mode. The following modes are supported: none clear previously set mode. auth require devices be paired, see btpin(1). encrypt auth, plus enable encryption. secure encryption, plus change of link key. When configuring the HID service, btdevctl will set 'auth' by default, or 'encrypt' for keyboard devices. If the device cannot handle authentication, then the mode will need to be cleared manually. -q Ignore any cached data and perform a SDP query for the given service. -s service Service to configure. Known services are: HID Human Interface Device. HF Handsfree. HSET Headset. -v Be verbose. For device configurations to persist across boots, add entries to the /etc/bluetooth/btdevctl.conf file and set the rc.conf(5) variable btdevctl to YES. FILES
/etc/bluetooth/btdevctl.conf /dev/bthub /var/db/btdevctl.plist EXIT STATUS
The btdevctl utility exits 0 on success, and >0 if an error occurs. SEE ALSO
btpin(1), bthidev(4), bthub(4), btsco(4), rc.conf(5) See the Bluetooth chapter of "The NetBSD Guide" for detailed examples of configuring keyboards, mice, and audio headsets. HISTORY
Parts of the btdevctl program originated in the FreeBSD bthidcontrol program. AUTHORS
Iain Hibbert for Itronix, Inc. Maksim Yevmenkin <m_evmenkin@yahoo.com> BSD
December 26, 2012 BSD
Man Page