SDPCONTROL(8)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… sdpcontrol(8) πŸ’…

okay so welcome to sdpcontrol, bestie β€” straight out of the System Manager's Manual, section 8, and it is literally the Bluetooth Service Discovery Protocol query utility ✨ no cap.


πŸŽ€ NAME πŸŽ€

sdpcontrol β€” Bluetooth Service Discovery Protocol query utility πŸ¦‹


✨ SYNOPSIS ✨

sdpcontrol -h
sdpcontrol -a address command [parameters ...]
sdpcontrol -l [-c path] command [parameters ...]

πŸ¦‹ DESCRIPTION πŸ¦‹

So the sdpcontrol utility attempts to query the specified Service Discovery Protocol (SDP) server. Remote SDP servers are identified by their address, and connection to the local SDP server is made via the control socket. The sdpcontrol utility uses Service Search Attribute Requests and prints results to standard output and error messages to standard error. it's giving "tiny utility, very focused" energy πŸ’…

The options are as follows β€” yes, all of them, we don't skip:

  • -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 sdpcontrol utility attempts to resolve the name via bt_gethostbyname(3). 🫢
  • -c path β€” specify path to the control socket. The default path is /var/run/sdp. iconic default, honestly.
  • -h β€” display usage message and exit. short and sweet, periodt.
  • -l β€” query the local SDP server via the control socket. staying home, vibe check passed πŸ’–
  • command β€” one of the supported commands (see below). The special command help can be used to obtain a list of all supported commands. To get more information about a specific command, use help command. iykyk πŸ”₯
  • parameters β€” one or more optional space separated command parameters.

πŸ”₯ COMMANDS πŸ”₯

The currently supported node commands in sdpcontrol are:

  • Browse
  • Search

that's the whole roster, and honestly? they ate. πŸ‘‘


🌈 EXIT STATUS 🌈

The sdpcontrol utility exits 0 on success, and >0 if an error occurs. simple as that, no dramatic plot twist πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

bluetooth(3), sdp(3) β€” go read those too, bestie, they're literally right there πŸ“š


πŸ’œ AUTHORS πŸ’œ

Maksim Yevmenkin <m_evmenkin@yahoo.com> β€” main character energy, we love to see it 🌟


πŸ’€ CAVEATS πŸ’€

The sdpcontrol utility only implements client side functionality. so don't come for it expecting server behavior, okay? πŸ™ˆ

The sdpcontrol 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

that's the list, that's the whole list, fr fr πŸ“


mwah πŸ’‹ this lil page is from Debian, dated February 7, 2015 β€” now go query something cute 🫢✨

πŸ“¦ where this page comes from