author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Wed, 13 May 2009 16:47:28 +0300 | |
changeset 116 | 703b527d0279 |
parent 81 | c136e60b0958 |
child 127 | 54418eba8bc7 |
permissions | -rw-r--r-- |
58 | 1 |
-*- outline -*- |
2 |
||
3 |
* Debian. |
|
4 |
||
5 |
$ sudo apt-get install bluetooth |
|
71
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
6 |
$ sudo apt-get install bluez-utils |
58 | 7 |
|
60 | 8 |
* BlueZ. |
58 | 9 |
|
60 | 10 |
BlueZ is official Linux Bluetooth protocol stack. |
11 |
||
71
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
12 |
** How find local bluetooth device? |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
13 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
14 |
$ hcitool dev |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
15 |
Devices: |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
16 |
hci0 00:03:C9:05:65:98 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
17 |
hci1 00:1F:81:00:02:5A |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
18 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
19 |
or |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
20 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
21 |
$ sudo hciconfig -a |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
22 |
hci0: Type: USB |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
23 |
BD Address: 00:03:C9:05:65:98 ACL MTU: 1017:8 SCO MTU: 64:0 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
24 |
UP RUNNING PSCAN |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
25 |
RX bytes:2517 acl:12 sco:0 events:64 errors:0 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
26 |
TX bytes:756 acl:12 sco:0 commands:33 errors:0 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
27 |
Features: 0xff 0xff 0x8d 0xfe 0x9b 0xfd 0x00 0x80 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
28 |
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
29 |
Link policy: RSWITCH HOLD SNIFF PARK |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
30 |
Link mode: SLAVE ACCEPT |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
31 |
Name: 'desktop-0' |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
32 |
Class: 0x3e0100 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
33 |
Service Classes: Networking, Rendering, Capturing, Object Transfer, Audio |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
34 |
Device Class: Computer, Uncategorized |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
35 |
HCI Ver: 2.0 (0x3) HCI Rev: 0x2000 LMP Ver: 2.0 (0x3) LMP Subver: 0x415c |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
36 |
Manufacturer: Broadcom Corporation (15) |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
37 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
38 |
hci1: Type: USB |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
39 |
BD Address: 00:1F:81:00:02:5A ACL MTU: 339:6 SCO MTU: 180:1 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
40 |
UP RUNNING PSCAN |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
41 |
RX bytes:398 acl:0 sco:0 events:18 errors:0 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
42 |
TX bytes:317 acl:0 sco:0 commands:17 errors:0 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
43 |
Features: 0xef 0x3e 0x09 0xf0 0x0b 0x08 0x00 0x00 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
44 |
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
45 |
Link policy: RSWITCH HOLD SNIFF PARK |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
46 |
Link mode: SLAVE ACCEPT |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
47 |
Name: 'desktop-1' |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
48 |
Class: 0x3e0100 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
49 |
Service Classes: Networking, Rendering, Capturing, Object Transfer, Audio |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
50 |
Device Class: Computer, Uncategorized |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
51 |
HCI Ver: 1.2 (0x2) HCI Rev: 0x2 LMP Ver: 1.2 (0x2) LMP Subver: 0x2 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
52 |
Manufacturer: not assigned (74) |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
53 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
54 |
** How find remote bluetooth device? |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
55 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
56 |
$ hcitool scan |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
57 |
Scanning ... |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
58 |
00:22:66:D1:B7:20 Nokia 5320 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
59 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
60 |
** What version of Bluetooth support local device? |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
61 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
62 |
$ sudo hciconfig -a |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
63 |
hci0: Type: USB |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
64 |
... |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
65 |
HCI Ver: 2.0 (0x3) HCI Rev: 0x2000 LMP Ver: 2.0 (0x3) LMP Subver: 0x415c |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
66 |
... |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
67 |
hci1: Type: USB |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
68 |
... |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
69 |
HCI Ver: 1.2 (0x2) HCI Rev: 0x2 LMP Ver: 1.2 (0x2) LMP Subver: 0x2 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
70 |
... |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
71 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
72 |
** What support remote device? |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
73 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
74 |
$ sudo sdptool browse 00:22:66:D1:B7:20 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
75 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
76 |
Browsing 00:22:66:D1:B7:20 ... |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
77 |
Service Name: AVRCP Target |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
78 |
Service Description: Audio Video Remote Control |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
79 |
Service Provider: Symbian Software Ltd. |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
80 |
Service RecHandle: 0x10000 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
81 |
Service Class ID List: |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
82 |
"AV Remote Target" (0x110c) |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
83 |
Protocol Descriptor List: |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
84 |
"L2CAP" (0x0100) |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
85 |
PSM: 23 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
86 |
"AVCTP" (0x0017) |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
87 |
uint16: 0x100 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
88 |
Profile Descriptor List: |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
89 |
"AV Remote" (0x110e) |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
90 |
Version: 0x0100 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
91 |
... |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
92 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
93 |
00:1b:52:a8:f6:96 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
94 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
95 |
|
60 | 96 |
See |
97 |
||
98 |
http://www.bluez.org/ |
|
99 |
bluez home page |
|
81 | 100 |
|
101 |
* Spec. |
|
102 |
||
103 |
See |
|
104 |
||
105 |
http://www.bluetooth.com/Bluetooth/Technology/Building/Specifications/ |
|
106 |