sdptool

control and interrogate SDP servers

sdptool [options] command [command parameters …]

provides the interface for performing SDP queries on Bluetooth devices, and administering a local SDP database.

COMMANDS

bdaddr specifies the device to search or browse. If local is used for then the local SDP database is searched.

Services are identified and manipulated with a 4-byte record_handle (NOT the service name). To find a service's record_handle, look for the "Service RecHandle" line in the search or browse results

search [--bdaddr bdaddr] [--tree] [--raw] [--xml] service_name
         Search for services.. service names: DID, SP, DUN, LAN, FAX, OPUSH, FTP, HS, HF, HFAG, SAP, NAP, GN, PANU, HCRP, HID, CIP, A2SRC, A2SNK, AVRCT, AVRTG, UDIUE, UDITE and SYNCML.
browse [--tree] [--raw] [--xml] [bdaddr]
Browse all available services on the device specified by a Bluetooth address as a parameter.
records [--tree] [--raw] [--xml] bdaddr
Retrieve all possible service records.
add [ --handle=N --channel=N ]
Add a service to the local SDP database.
Local adapters configuration will not be updated. This command should be used only for SDP testing.
del record_handle
Remove a service from the local SDP database.
Local adapters configuration will not be updated and this command should be used only for SDP testing.
get [--tree] [--raw] [--xml] [--bdaddr bdaddr] record_handle
Retrieve a service from the local SDP database.
setattr record_handle attrib_id attrib_value
Set or add an attribute to an SDP record.
setseq record_handle attrib_id attrib_values
Set or add an attribute sequence to an SDP record.
OPTIONS --help Displays help on using sdptool.

Examples

       sdptool browse 00:80:98:24:15:6D

       sdptool browse local
                    Failed to connect to SDP server on FF:FF:FF:00:00:00: No such file or directory


       sdptool add DUN

       sdptool del 0x10000