bluetooth.rst
changeset 145 2a14e47c75b3
parent 129 fc03b0f58a94
child 471 eeb9adcb4667
equal deleted inserted replaced
144:761a47cf5400 145:2a14e47c75b3
    14   $ hcitool dev
    14   $ hcitool dev
    15 Devices:
    15 Devices:
    16     hci0    00:03:C9:05:65:98
    16     hci0    00:03:C9:05:65:98
    17     hci1    00:1F:81:00:02:5A
    17     hci1    00:1F:81:00:02:5A
    18 
    18 
    19 or
    19 or (hciconfig placed in /usr/sbin, so see you PATH!)
    20 
    20 
    21   $ sudo hciconfig -a
    21   $ hciconfig -a
    22 hci0:   Type: USB
    22 hci0:   Type: USB
    23     BD Address: 00:03:C9:05:65:98 ACL MTU: 1017:8 SCO MTU: 64:0
    23     BD Address: 00:03:C9:05:65:98 ACL MTU: 1017:8 SCO MTU: 64:0
    24     UP RUNNING PSCAN
    24     UP RUNNING PSCAN
    25     RX bytes:2517 acl:12 sco:0 events:64 errors:0
    25     RX bytes:2517 acl:12 sco:0 events:64 errors:0
    26     TX bytes:756 acl:12 sco:0 commands:33 errors:0
    26     TX bytes:756 acl:12 sco:0 commands:33 errors:0
    54 ** How find remote bluetooth device?
    54 ** How find remote bluetooth device?
    55 
    55 
    56   $ hcitool scan
    56   $ hcitool scan
    57 Scanning ...
    57 Scanning ...
    58         00:22:66:D1:B7:20       Nokia 5320
    58         00:22:66:D1:B7:20       Nokia 5320
       
    59 
       
    60 In order to do this remote device must be set "visible".
       
    61 
       
    62 ** How to set bluetooth dongle "visible"?
       
    63 
       
    64   $ hciconfig -a | grep hci.:
       
    65 hci0: Type: USB
       
    66   $ sudo hciconfig hci0 piscan
       
    67 
       
    68 ** How to determine bluetooth dongle is "visible"?
       
    69 
       
    70 Run hciconfig -a and see for PSCAN and ISCAN keyword:
       
    71 
       
    72   $ hciconfig -a
       
    73 hci0: Type: USB
       
    74 ...
       
    75     UP RUNNING PSCAN ISCAN
       
    76 ...
       
    77 
       
    78 then try from another host:
       
    79 
       
    80   $ hcitool scan
       
    81 
       
    82 or use another device such as phone to search.
    59 
    83 
    60 ** What version of Bluetooth support local device?
    84 ** What version of Bluetooth support local device?
    61 
    85 
    62   $ sudo hciconfig -a
    86   $ sudo hciconfig -a
    63 hci0:   Type: USB
    87 hci0:   Type: USB
    96 See
   120 See
    97 
   121 
    98   http://www.bluez.org/
   122   http://www.bluez.org/
    99     bluez home page
   123     bluez home page
   100 
   124 
       
   125 * Remote control throw mobile.
       
   126 
       
   127   http://anyremote.sourceforge.net/docs.html
       
   128 
   101 * Spec.
   129 * Spec.
   102 
   130 
   103 See
   131 See
   104 
   132 
   105   http://www.bluetooth.com/Bluetooth/Technology/Building/Specifications/
   133   http://www.bluetooth.com/Bluetooth/Technology/Building/Specifications/