sdptool(1)

πŸ’… sdptool(1) β€” control and interrogate SDP servers ✨

Okay so this is sdptool(1), hanging out in the Linux System Administration section of the manual-verse, and she is here to help you talk to SDP servers and wrangle your local SDP database. Bestie, let’s get into it. 🫢

🌸 Name

sdptool β€” control and interrogate SDP servers πŸ’–

✨ SYNOPSIS ✨

sdptool [OPTIONS] [COMMAND [PARAMETERS]]

πŸ¦‹ DESCRIPTION

sdptool(1) is literally the interface for performing SDP queries on Bluetooth devices and administering a local SDP database. That’s the vibe. Slay. πŸ’…

πŸ‘‘ COMMANDS

The following commands are available. In every case, bdaddr specifies the device to search or browse. If local is used for bdaddr, 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. This is important, bestie β€” do not come for the service name when the manual said record_handle. 🫠

  • 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 SDP database. βž•
    • 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.
⚠️ NOTE: Local adapters configuration will not be updated and this command should be used only for SDP testing.
  • del record_handle β€” Remove a service from the local SDP database. πŸ—‘οΈ
⚠️ NOTE: 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
$ sdptool add DUN
$ sdptool del 0x10000

🌟 RESOURCES

<http://www.bluez.org> β€” the BlueZ website, iconic. πŸ‘‘

πŸ› REPORTING BUGS

<linux-bluetooth@vger.kernel.org> β€” that’s the bug-reporting email, bestie. πŸ“¬

✍️ Author

Maxim Krasnyansky <maxk@qualcomm.com>, Edd Dumbill <ejad@debian.org> 🫢

Free use of this software is granted under the terms of the GNU Lesser General Public Licenses (LGPL). πŸ“œ


πŸ’– And that’s the whole page, bestie! Source/version: BlueZ Β· page: sdptool(1) Β· date: the original footer didn’t list one, so no invented timestamp β€” just vibes. 🫢

πŸ“¦ where this page comes from