The
sdpd daemon keeps a database of Bluetooth Service Records registered on the host and responds to Service Discovery inquiries from remote Bluetooth devices.
In order to discover services, remote Bluetooth devices send Service Search and Service Attribute or Service Search Attribute requests over Bluetooth L2CAP connections on the SDP PSM (0x0001). The
sdpd daemon will try to find matching Service Records in its Service Database and will return the requested record extracts for the remote device to interpret. The remote device will then make a separate connection in order to access the service.
Bluetooth applications, running on the host, are able to insert, remove and update Service Records with the
sdpd daemon via the control socket. It is possible to query entire contents of the Service Database locally with
sdpquery(1) using the
-l option.
The command line options are as follows:
-c path
Specify path to the control socket. The default path is /var/run/sdp.
-d
Do not detach from the controlling terminal.
-G group
Grant permission to members of the group to modify the sdpd Service Database.
-g group
Specifies the group the sdpd should run as after it initializes. The value specified may be either a group name or a numeric group ID. This only works if sdpd was started as root. The default group name is “_sdpd”.
-h
Display usage message and exit.
-u user
Specifies the user the sdpd should run as after it initializes. The value specified may be either a user name or a numeric user ID. This only works if sdpd was started as root. The default user name is “_sdpd”.