author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Wed, 14 Jul 2010 10:07:09 +0300 | |
changeset 439 | 712355562584 |
parent 129 | fc03b0f58a94 |
child 471 | eeb9adcb4667 |
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 |
|
127
54418eba8bc7
How to set bluetooth dongle "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
81
diff
changeset
|
19 |
or (hciconfig placed in /usr/sbin, so see you PATH!) |
71
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
20 |
|
127
54418eba8bc7
How to set bluetooth dongle "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
81
diff
changeset
|
21 |
$ hciconfig -a |
71
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 |
|
127
54418eba8bc7
How to set bluetooth dongle "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
81
diff
changeset
|
60 |
In order to do this remote device must be set "visible". |
54418eba8bc7
How to set bluetooth dongle "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
81
diff
changeset
|
61 |
|
54418eba8bc7
How to set bluetooth dongle "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
81
diff
changeset
|
62 |
** How to set bluetooth dongle "visible"? |
54418eba8bc7
How to set bluetooth dongle "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
81
diff
changeset
|
63 |
|
54418eba8bc7
How to set bluetooth dongle "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
81
diff
changeset
|
64 |
$ hciconfig -a | grep hci.: |
128
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
65 |
hci0: Type: USB |
127
54418eba8bc7
How to set bluetooth dongle "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
81
diff
changeset
|
66 |
$ sudo hciconfig hci0 piscan |
54418eba8bc7
How to set bluetooth dongle "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
81
diff
changeset
|
67 |
|
128
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
68 |
** How to determine bluetooth dongle is "visible"? |
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
69 |
|
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
70 |
Run hciconfig -a and see for PSCAN and ISCAN keyword: |
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
71 |
|
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
72 |
$ hciconfig -a |
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
73 |
hci0: Type: USB |
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
74 |
... |
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
75 |
UP RUNNING PSCAN ISCAN |
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
76 |
... |
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
77 |
|
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
78 |
then try from another host: |
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
79 |
|
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
80 |
$ hcitool scan |
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
81 |
|
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
82 |
or use another device such as phone to search. |
227c1986d643
How to determine bluetooth dongle is "visible".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
83 |
|
71
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
84 |
** What version of Bluetooth support local device? |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
85 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
86 |
$ sudo hciconfig -a |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
87 |
hci0: Type: USB |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
88 |
... |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
89 |
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
|
90 |
... |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
91 |
hci1: Type: USB |
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 |
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
|
94 |
... |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
95 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
96 |
** What support remote device? |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
97 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
98 |
$ sudo sdptool browse 00:22:66:D1:B7:20 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
99 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
100 |
Browsing 00:22:66:D1:B7:20 ... |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
101 |
Service Name: AVRCP Target |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
102 |
Service Description: Audio Video Remote Control |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
103 |
Service Provider: Symbian Software Ltd. |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
104 |
Service RecHandle: 0x10000 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
105 |
Service Class ID List: |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
106 |
"AV Remote Target" (0x110c) |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
107 |
Protocol Descriptor List: |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
108 |
"L2CAP" (0x0100) |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
109 |
PSM: 23 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
110 |
"AVCTP" (0x0017) |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
111 |
uint16: 0x100 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
112 |
Profile Descriptor List: |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
113 |
"AV Remote" (0x110e) |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
114 |
Version: 0x0100 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
115 |
... |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
116 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
117 |
00:1b:52:a8:f6:96 |
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
118 |
|
38902bb40d47
Explain bluetooth description.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
60
diff
changeset
|
119 |
|
60 | 120 |
See |
121 |
||
122 |
http://www.bluez.org/ |
|
123 |
bluez home page |
|
81 | 124 |
|
129
fc03b0f58a94
Remote control throw mobile.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
125 |
* Remote control throw mobile. |
fc03b0f58a94
Remote control throw mobile.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
126 |
|
fc03b0f58a94
Remote control throw mobile.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
127 |
http://anyremote.sourceforge.net/docs.html |
fc03b0f58a94
Remote control throw mobile.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
128 |
|
81 | 129 |
* Spec. |
130 |
||
131 |
See |
|
132 |
||
133 |
http://www.bluetooth.com/Bluetooth/Technology/Building/Specifications/ |
|
134 |