Linux Commands Examples

A great documentation place for Linux commands

sdptool

control and interrogate SDP servers

Synopsis

sdptool [options] {command} [command parameters ...]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

1
source
            
hcitool scan
sdptool browse 00:1C:A4:C0:59:5A
rfcomm bind /dev/rfcomm0 00:1C:A4:C0:59:5A 9
mknod /dev/rfcomm0 c 216 0 && mknod /dev/rfcomm1 c 216 1
sudo ussp-push /dev/rfcomm0 message.txt message.txt
rfcomm release /dev/rfcomm0
hcitool scan
sdptool browse 00:1C:A4:C0:59:5A
ussp-push 00:1C:A4:C0:59:5A@3 message.txt message.txt
0

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

sdptool browse local

sdptool add DUN

sdptool del 0x10000


0
source
            
==================== $BD_ADDR ======================
"
sdptool browse $BD_ADDR
if [ `sdptool browse $BD_ADDR | wc -l` -lt 5 ]
if [ `sdptool browse $BD_ADDR | wc -l` -lt 5 ]
then
sdptool records $BD_ADDR &

description

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

options

--help

Displays help on using sdptool.

commands

The following commands are available. In all cases bdaddr specifies the device to search or browse. If local is used for bdaddr, then the local sdpd 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..

Known service names are 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 sdpd.

You can specify a handle for this record using the --handle option.

You can specify a channel to add the service on using the --channel option.

del record_handle

Remove a service from the local sdpd.

get [--tree] [--raw] [--xml] [--bdaddr bdaddr] record_handle

Retrieve a service from the local sdpd.

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.


bugs

Documentation needs improving.


see also

sdpd


author

Maxim Krasnyansky <maxk[:at:]qualcomm[:dot:]com>. Man page written by Edd Dumbill <ejad[:at:]debian[:dot:]org>.

How can this site be more helpful to YOU ?


give  feedback