最終更新:2022-07-19 (火) 15:35:10 (648d)
sdptool browse local
Top / sdptool browse local
- list of default services
- このコマンドは動かない
$ sudo sdptool browse local Failed to connect to SDP server on FF:FF:FF:00:00:00: No such file or directory.
- BlueZ 5 deprecated the old C interface which communicates over the socket Linux/var/run/sdp, and this socket no longer exists.
互換モードにする
例
$ sudo sdptool browse local Browsing FF:FF:FF:00:00:00 ... Service RecHandle: 0x10000 Service Class ID List: "PnP Information" (0x1200) Profile Descriptor List: "PnP Information" (0x1200) Version: 0x0103 Browsing FF:FF:FF:00:00:00 ... Service Search failed: Invalid argument Service Name: Generic Access Profile Service Provider: BlueZ Service RecHandle: 0x10001 Service Class ID List: "Generic Access" (0x1800) Protocol Descriptor List: "L2CAP" (0x0100) PSM: 31 "ATT" (0x0007) uint16: 0x0001 uint16: 0x0007 Service Name: Generic Attribute Profile Service Provider: BlueZ Service RecHandle: 0x10002 Service Class ID List: "Generic Attribute" (0x1801) Protocol Descriptor List: "L2CAP" (0x0100) PSM: 31 "ATT" (0x0007) uint16: 0x0008 uint16: 0x0011 Service Name: Device Information Service Provider: BlueZ Service RecHandle: 0x10003 Service Class ID List: "" (0x180a) Protocol Descriptor List: "L2CAP" (0x0100) PSM: 31 "ATT" (0x0007) uint16: 0x0012 uint16: 0x0014 Service Name: AVRCP CT Service RecHandle: 0x10004 Service Class ID List: "AV Remote" (0x110e) "AV Remote Controller" (0x110f) Protocol Descriptor List: "L2CAP" (0x0100) PSM: 23 "AVCTP" (0x0017) uint16: 0x0103 Profile Descriptor List: "AV Remote" (0x110e) Version: 0x0106 Service Name: AVRCP TG Service RecHandle: 0x10005 Service Class ID List: "AV Remote Target" (0x110c) Protocol Descriptor List: "L2CAP" (0x0100) PSM: 23 "AVCTP" (0x0017) uint16: 0x0103 Profile Descriptor List: "AV Remote" (0x110e) Version: 0x0105 Service Name: Headset unit Service RecHandle: 0x10006 Service Class ID List: "Headset" (0x1108) "" (0x1131) "Generic Audio" (0x1203) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 3 Profile Descriptor List: "Headset" (0x1108) Version: 0x0102 Service Name: Hands-Free Voice gateway Service RecHandle: 0x10007 Service Class ID List: "Handsfree Audio Gateway" (0x111f) "Generic Audio" (0x1203) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 13 Profile Descriptor List: "Handsfree" (0x111e) Version: 0x0107 Service Name: Audio Sink Service RecHandle: 0x10008 Service Class ID List: "Audio Sink" (0x110b) Protocol Descriptor List: "L2CAP" (0x0100) PSM: 25 "AVDTP" (0x0019) uint16: 0x0103 Profile Descriptor List: "Advanced Audio" (0x110d) Version: 0x0103 Service Name: Audio Source Service RecHandle: 0x10009 Service Class ID List: "Audio Source" (0x110a) Protocol Descriptor List: "L2CAP" (0x0100) PSM: 25 "AVDTP" (0x0019) uint16: 0x0103 Profile Descriptor List: "Advanced Audio" (0x110d) Version: 0x0103
$ sudo sdptool browse --tree local Browsing FF:FF:FF:00:00:00 ... Attribute Identifier : 0x0 - ServiceRecordHandle Integer : 0x10000 Attribute Identifier : 0x1 - ServiceClassIDList Data Sequence UUID16 : 0x1200 - PnPInformation Attribute Identifier : 0x5 - BrowseGroupList Data Sequence UUID16 : 0x1002 - PublicBrowseGroup Attribute Identifier : 0x9 - BluetoothProfileDescriptorList Data Sequence Data Sequence UUID16 : 0x1200 - PnPInformation Version (Integer) : 0x103 Attribute Identifier : 0x200 - SpecificationID Integer : 0x103 Attribute Identifier : 0x201 - VendorID Integer : 0x1d6b Attribute Identifier : 0x202 - ProductID Integer : 0x246 Attribute Identifier : 0x203 - Version Integer : 0x540 Attribute Identifier : 0x204 - PrimaryRecord Integer : 0x1 Attribute Identifier : 0x205 - VendorIDSource Integer : 0x2 Browsing FF:FF:FF:00:00:00 ... Service Search failed: Invalid argument Attribute Identifier : 0x0 - ServiceRecordHandle Integer : 0x10001 Attribute Identifier : 0x1 - ServiceClassIDList Data Sequence UUID16 : 0x1800 Attribute Identifier : 0x4 - ProtocolDescriptorList Data Sequence Data Sequence UUID16 : 0x0100 - L2CAP Channel/Port (Integer) : 0x1f Data Sequence UUID16 : 0x0007 Channel/Port (Integer) : 0x1 Version (Integer) : 0x7 Attribute Identifier : 0x5 - BrowseGroupList Data Sequence UUID16 : 0x1002 - PublicBrowseGroup Attribute Identifier : 0xa - DocumentationURL URL : http://www.bluez.org/ Attribute Identifier : 0xb - ClientExecutableURL URL : http://www.bluez.org/ Attribute Identifier : 0xc - IconURL URL : http://www.bluez.org/ Attribute Identifier : 0x100 Data : 47 65 6e 65 72 69 63 20 41 63 63 65 73 73 20 50 72 6f 66 69 6c 65 00 Attribute Identifier : 0x102 Data : 42 6c 75 65 5a 00 Attribute Identifier : 0x0 - ServiceRecordHandle Integer : 0x10002 Attribute Identifier : 0x1 - ServiceClassIDList Data Sequence UUID16 : 0x1801 Attribute Identifier : 0x4 - ProtocolDescriptorList Data Sequence Data Sequence UUID16 : 0x0100 - L2CAP Channel/Port (Integer) : 0x1f Data Sequence UUID16 : 0x0007 Channel/Port (Integer) : 0x8 Version (Integer) : 0x11 Attribute Identifier : 0x5 - BrowseGroupList Data Sequence UUID16 : 0x1002 - PublicBrowseGroup Attribute Identifier : 0x100 Data : 47 65 6e 65 72 69 63 20 41 74 74 72 69 62 75 74 65 20 50 72 6f 66 69 6c 65 00 Attribute Identifier : 0x102 Data : 42 6c 75 65 5a 00 Attribute Identifier : 0x0 - ServiceRecordHandle Integer : 0x10003 Attribute Identifier : 0x1 - ServiceClassIDList Data Sequence UUID16 : 0x180a Attribute Identifier : 0x4 - ProtocolDescriptorList Data Sequence Data Sequence UUID16 : 0x0100 - L2CAP Channel/Port (Integer) : 0x1f Data Sequence UUID16 : 0x0007 Channel/Port (Integer) : 0x12 Version (Integer) : 0x14 Attribute Identifier : 0x5 - BrowseGroupList Data Sequence UUID16 : 0x1002 - PublicBrowseGroup Attribute Identifier : 0x100 Data : 44 65 76 69 63 65 20 49 6e 66 6f 72 6d 61 74 69 6f 6e 00 Attribute Identifier : 0x102 Data : 42 6c 75 65 5a 00 Attribute Identifier : 0x0 - ServiceRecordHandle Integer : 0x10004 Attribute Identifier : 0x1 - ServiceClassIDList Data Sequence UUID16 : 0x110e - RemoteControl UUID16 : 0x110f - RemoteControlController Attribute Identifier : 0x4 - ProtocolDescriptorList Data Sequence Data Sequence UUID16 : 0x0100 - L2CAP Channel/Port (Integer) : 0x17 Data Sequence UUID16 : 0x0017 - AVCTP Channel/Port (Integer) : 0x103 Attribute Identifier : 0x5 - BrowseGroupList Data Sequence UUID16 : 0x1002 - PublicBrowseGroup Attribute Identifier : 0x9 - BluetoothProfileDescriptorList Data Sequence Data Sequence UUID16 : 0x110e - RemoteControl Version (Integer) : 0x106 Attribute Identifier : 0xd - AdditionalProtocolDescriptorLists Data Sequence Data Sequence Data Sequence UUID16 : 0x0100 - L2CAP Integer : 0x1b Data Sequence UUID16 : 0x0017 - AVCTP Integer : 0x103 Attribute Identifier : 0x100 Data : 41 56 52 43 50 20 43 54 00 Attribute Identifier : 0x311 Integer : 0x4f Attribute Identifier : 0x0 - ServiceRecordHandle Integer : 0x10005 Attribute Identifier : 0x1 - ServiceClassIDList Data Sequence UUID16 : 0x110c - RemoteControlTarget Attribute Identifier : 0x4 - ProtocolDescriptorList Data Sequence Data Sequence UUID16 : 0x0100 - L2CAP Channel/Port (Integer) : 0x17 Data Sequence UUID16 : 0x0017 - AVCTP Channel/Port (Integer) : 0x103 Attribute Identifier : 0x5 - BrowseGroupList Data Sequence UUID16 : 0x1002 - PublicBrowseGroup Attribute Identifier : 0x9 - BluetoothProfileDescriptorList Data Sequence Data Sequence UUID16 : 0x110e - RemoteControl Version (Integer) : 0x105 Attribute Identifier : 0xd - AdditionalProtocolDescriptorLists Data Sequence Data Sequence Data Sequence UUID16 : 0x0100 - L2CAP Integer : 0x1b Data Sequence UUID16 : 0x0017 - AVCTP Integer : 0x103 Attribute Identifier : 0x100 Data : 41 56 52 43 50 20 54 47 00 Attribute Identifier : 0x311 Integer : 0x5f Attribute Identifier : 0x0 - ServiceRecordHandle Integer : 0x10006 Attribute Identifier : 0x1 - ServiceClassIDList Data Sequence UUID16 : 0x1108 - Headset UUID16 : 0x1131 - Headset (HSP) UUID16 : 0x1203 - GenericAudio Attribute Identifier : 0x4 - ProtocolDescriptorList Data Sequence Data Sequence UUID16 : 0x0100 - L2CAP Data Sequence UUID16 : 0x0003 - RFCOMM Channel/Port (Integer) : 0x3 Attribute Identifier : 0x5 - BrowseGroupList Data Sequence UUID16 : 0x1002 - PublicBrowseGroup Attribute Identifier : 0x9 - BluetoothProfileDescriptorList Data Sequence Data Sequence UUID16 : 0x1108 - Headset Version (Integer) : 0x102 Attribute Identifier : 0x100 Data : 48 65 61 64 73 65 74 20 75 6e 69 74 00 Attribute Identifier : 0x302 - Remote audio volume control Integer : 0x0 Attribute Identifier : 0x0 - ServiceRecordHandle Integer : 0x10007 Attribute Identifier : 0x1 - ServiceClassIDList Data Sequence UUID16 : 0x111f - HandsfreeAudioGateway UUID16 : 0x1203 - GenericAudio Attribute Identifier : 0x4 - ProtocolDescriptorList Data Sequence Data Sequence UUID16 : 0x0100 - L2CAP Data Sequence UUID16 : 0x0003 - RFCOMM Channel/Port (Integer) : 0xd Attribute Identifier : 0x5 - BrowseGroupList Data Sequence UUID16 : 0x1002 - PublicBrowseGroup Attribute Identifier : 0x9 - BluetoothProfileDescriptorList Data Sequence Data Sequence UUID16 : 0x111e - Handsfree Version (Integer) : 0x107 Attribute Identifier : 0x100 Data : 48 61 6e 64 73 2d 46 72 65 65 20 56 6f 69 63 65 20 67 61 74 65 77 61 79 00 Attribute Identifier : 0x301 Integer : 0x1 Attribute Identifier : 0x311 Integer : 0x9 Attribute Identifier : 0x0 - ServiceRecordHandle Integer : 0x10008 Attribute Identifier : 0x1 - ServiceClassIDList Data Sequence UUID16 : 0x110b - AudioSink Attribute Identifier : 0x4 - ProtocolDescriptorList Data Sequence Data Sequence UUID16 : 0x0100 - L2CAP Channel/Port (Integer) : 0x19 Data Sequence UUID16 : 0x0019 - AVDTP Channel/Port (Integer) : 0x103 Attribute Identifier : 0x5 - BrowseGroupList Data Sequence UUID16 : 0x1002 - PublicBrowseGroup Attribute Identifier : 0x9 - BluetoothProfileDescriptorList Data Sequence Data Sequence UUID16 : 0x110d - AdvancedAudio Version (Integer) : 0x103 Attribute Identifier : 0x100 Data : 41 75 64 69 6f 20 53 69 6e 6b 00 Attribute Identifier : 0x311 Integer : 0xf Attribute Identifier : 0x0 - ServiceRecordHandle Integer : 0x10009 Attribute Identifier : 0x1 - ServiceClassIDList Data Sequence UUID16 : 0x110a - AudioSource Attribute Identifier : 0x4 - ProtocolDescriptorList Data Sequence Data Sequence UUID16 : 0x0100 - L2CAP Channel/Port (Integer) : 0x19 Data Sequence UUID16 : 0x0019 - AVDTP Channel/Port (Integer) : 0x103 Attribute Identifier : 0x5 - BrowseGroupList Data Sequence UUID16 : 0x1002 - PublicBrowseGroup Attribute Identifier : 0x9 - BluetoothProfileDescriptorList Data Sequence Data Sequence UUID16 : 0x110d - AdvancedAudio Version (Integer) : 0x103 Attribute Identifier : 0x100 Data : 41 75 64 69 6f 20 53 6f 75 72 63 65 00 Attribute Identifier : 0x311 Integer : 0xf