sdptool.rst 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. =======
  2. sdptool
  3. =======
  4. -----------------------------------
  5. control and interrogate SDP servers
  6. -----------------------------------
  7. :Authors: - Maxim Krasnyansky <maxk@qualcomm.com>
  8. - Edd Dumbill <ejad@debian.org>
  9. :Version: BlueZ
  10. :Copyright: Free use of this software is granted under ther terms of the GNU
  11. Lesser General Public Licenses (LGPL).
  12. :Manual section: 1
  13. :Manual group: Linux System Administration
  14. SYNOPSIS
  15. ========
  16. **sdptool** [*OPTIONS*] [*COMMAND* [*PARAMETERS*]]
  17. DESCRIPTION
  18. ===========
  19. **sdptool(1)** provides the interface for performing SDP queries on Bluetooth
  20. devices, and administering a local SDP database.
  21. COMMANDS
  22. ========
  23. The following commands are available. In all cases **bdaddr** specifies the
  24. device to search or browse. If *local* is used for **bdaddr**, then the local
  25. SDP database is searched.
  26. Services are identified and manipulated with a 4-byte **record_handle** (NOT
  27. the service name). To find a service's **record_handle**, look for the
  28. "Service RecHandle" line in the **search** or **browse** results
  29. search [--bdaddr bdaddr] [--tree] [--raw] [--xml] service_name
  30. Search for services..
  31. Known service names are **DID**, **SP**, **DUN**, **LAN**, **FAX**,
  32. **OPUSH**, **FTP**, **HS**, **HF**, **HFAG**, **SAP**, **NAP**, **GN**,
  33. **PANU**, **HCRP**, **HID**, **CIP**, **A2SRC**, **A2SNK**, **AVRCT**,
  34. **AVRTG**, **UDIUE**, **UDITE** and **SYNCML**.
  35. browse [--tree] [--raw] [--xml] [bdaddr]
  36. Browse all available services on the device specified by a Bluetooth
  37. address as a parameter.
  38. records [--tree] [--raw] [--xml] bdaddr
  39. Retrieve all possible service records.
  40. add [ --handle=N --channel=N ]
  41. Add a service to the local SDP database.
  42. You can specify a handle for this record using the **--handle** option.
  43. You can specify a channel to add the service on using the **--channel**
  44. option.
  45. NOTE: Local adapters configuration will not be updated and this command
  46. should be used only for SDP testing.
  47. del record_handle
  48. Remove a service from the local SDP database.
  49. NOTE: Local adapters configuration will not be updated and this command
  50. should be used only for SDP testing.
  51. get [--tree] [--raw] [--xml] [--bdaddr bdaddr] record_handle
  52. Retrieve a service from the local SDP database.
  53. setattr record_handle attrib_id attrib_value
  54. Set or add an attribute to an SDP record.
  55. setseq record_handle attrib_id attrib_values
  56. Set or add an attribute sequence to an SDP record.
  57. OPTIONS
  58. =======
  59. --help Displays help on using sdptool.
  60. EXAMPLES
  61. ========
  62. .. code-block::
  63. $ sdptool browse 00:80:98:24:15:6D
  64. $ sdptool browse local
  65. $ sdptool add DUN
  66. $ sdptool del 0x10000
  67. RESOURCES
  68. =========
  69. http://www.bluez.org
  70. REPORTING BUGS
  71. ==============
  72. linux-bluetooth@vger.kernel.org