📄 bluetooth_on_usb.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head> <title></title> <link rel="stylesheet" media="screen" type="text/css" href="./style.css" /> <link rel="stylesheet" media="screen" type="text/css" href="./design.css" /> <link rel="stylesheet" media="print" type="text/css" href="./print.css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="level1"><div class="li"><span class="li"><a href="#bluetooth_on_usb" class="toc">Bluetooth on USB</a></span></div><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#kernel_support" class="toc">Kernel Support</a></span></div></li></ul></li><li class="level1"><div class="li"><span class="li"><a href="#testing_the_bluetooth_device" class="toc">Testing the Bluetooth Device</a></span></div></li></ul></div></div><h1><a name="bluetooth_on_usb" id="bluetooth_on_usb">Bluetooth on USB</a></h1><div class="level1"><p> Almost any Bluetooth USB dongle is supported. </p><p>To operate Bluetooth Devices/Interfaces <a href="bluez.html" class="wikilink1" title="bluez.html">BlueZ</a> tools are required</p></div><!-- SECTION [1-150] --><h2><a name="kernel_support" id="kernel_support">Kernel Support</a></h2><div class="level2"><p> Enable Bluetooth Support and HCI USB driver </p><pre class="code">[*] Networking support Networking options --->[ ] Amateur Radio support --->< > IrDA (infrared) subsystem support ---><*> Bluetooth subsystem support --->< > Generic IEEE 802.11 Networking Stack--- Bluetooth subsystem support<*> L2CAP protocol support<*> SCO links support<*> RFCOMM protocol support[*] RFCOMM TTY support<*> BNEP protocol support[*] Multicast filter support[*] Protocol filter support<*> HIDP protocol support Bluetooth device drivers ---><*> HCI USB driver[*] SCO (voice) support< > HCI UART driver (NEW)< > HCI BCM203x USB driver (NEW)< > HCI BPA10x USB driver (NEW)< > HCI BlueFRITZ! USB driver (NEW)< > HCI VHCI (Virtual HCI device) driver (NEW)</pre></div><!-- SECTION [151-980] --><h1><a name="testing_the_bluetooth_device" id="testing_the_bluetooth_device">Testing the Bluetooth Device</a></h1><div class="level1"><p> Plug in USB dongle:</p><pre class="code">usb 1-1: new full speed USB device using sl811-hcd and address 4usb 1-1: Product: Sitecom USB bluetooth2.0 class 2 dongle CN-512</pre><p>Bring up the interface:</p><pre class="code">root:/utils/exec/sbin> ./hciconfig hci0 uproot:/utils/exec/sbin> ./hciconfighci0: Type: USB BD Address: 00:10:60:D0:8C:41 ACL MTU: 384:8 SCO MTU: 64:8 UP RUNNING PSCAN ISCAN RX bytes:77 acl:0 sco:0 events:9 errors:0 TX bytes:31 acl:0 sco:0 commands:8 errors:0</pre><p>Configure the interface:</p><pre class="code">root:/utils/exec/bin> ./hcitoolhcitool - HCI Tool ver 2.25Usage: hcitool [options] <command> [command parameters]Options: --help Display help -i dev HCI deviceCommands: dev Display local devices inq Inquire remote devices scan Scan for remote devices name Get name from remote device info Get information from remote device cmd Submit arbitrary HCI commands con Display active connections cc Create connection to remote device dc Disconnect from remote device sr Switch master/slave role cpt Change connection packet type rssi Display connection RSSI lq Display link quality tpl Display transmit power level afh Display AFH channel map lst Set/display link supervision timeout auth Request authentication enc Set connection encryption key Change connection link key clkoff Read clock offset clock Read local or remote clock</pre><p>For more information on the usage of each command use:</p><pre class="code">hcitool <command> --help</pre><p>Show HCI devices</p><pre class="code">root:/utils/exec/bin> ./hcitool -i hci0 devDevices: hci0 00:10:60:D0:8C:41</pre><p>Scan for Bluetooth devices in the area</p><pre class="code">root:/utils/exec/bin> ./hcitool -i hci0 scanScanning ... 00:0C:78:50:4F:77 ANYCOM BT (MHENNER-L01) 00:0F:DE:32:FB:C3 T610 00:10:C6:62:C0:25 JKOHLSC-L02root:/utils/exec/biroot:/utils/exec/bin> ./hcitool -i hci0 inqInquiring ... 00:0F:DE:32:FB:C3 clock offset: 0x6b37 class: 0x520204 00:0C:78:50:4F:77 clock offset: 0x48a5 class: 0x10010c 00:10:C6:62:C0:25 clock offset: 0x4df9 class: 0x1c010croot:/utils/exec/bin> ./hcitool -i hci0 inqInquiring ... 00:0F:DE:32:FB:C3 clock offset: 0x6b37 class: 0x520204 00:0C:78:50:4F:77 clock offset: 0x48a5 class: 0x10010c 00:10:C6:62:C0:25 clock offset: 0x4df9 class: 0x1c010c</pre><p>Get some information from these devices: </p><pre class="code">root:/utils/exec/bin> ./hcitool -i hci0 info 00:0F:DE:32:FB:C3Requesting information ... BD Address: 00:0F:DE:32:FB:C3 Device Name: T610 LMP Version: 1.1 (0x1) LMP Subversion: 0x503 Manufacturer: Ericsson Technology Licensing (0) Features: 0x04 0xca 0x31 0x00 0x00 0x00 0x00 0x00 <encryption> <RSSI> <SCO link> <u-law log> <A-law log> <CVSD>root:/utils/exec/bin> ./hcitool -i hci0 info 00:0C:78:50:4F:77Requesting information ... BD Address: 00:0C:78:50:4F:77root:/utils/exec/bin> ./hcitool -i hci0 info 00:10:C6:62:C0:25Requesting information ... BD Address: 00:10:C6:62:C0:25 Device Name: JKOHLSC-L02 LMP Version: 1.2 (0x2) LMP Subversion: 0x679 Manufacturer: Cambridge Silicon Radio (10) Features: 0xff 0xff 0x9f 0xfe 0x9b 0xf9 0x00 0x80 <3-slot packets> <5-slot packets> <encryption> <slot offset> <timing accuracy> <role switch> <hold mode> <sniff mode> <park state> <RSSI> <channel quality> <SCO link> <HV2 packets> <HV3 packets> <u-law log> <A-law log> <CVSD> <paging scheme> <power control> <transparent SCO> <broadcast encrypt> <EDR ACL 2 Mbps> <EDR ACL 3 Mbps> <enhanced iscan> <interlaced iscan> <interlaced pscan> <inquiry with RSSI> <extended SCO> <EV4 packets> <EV5 packets> <AFH cap. slave> <AFH class. slave> <3-slot EDR ACL> <5-slot EDR ACL> <AFH cap. master> <AFH class. master> <EDR eSCO 2 Mbps> <EDR eSCO 3 Mbps> <3-slot EDR eSCO> <extended features>root:/utils/exec/bin></pre><p>Ping a device:</p><pre class="code">root:/utils/exec/bin> ./l2ping -i hci0 -f 00:0C:78:50:4F:77Ping: 00:0C:78:50:4F:77 from 00:10:60:D0:8C:41 (data size 44) ...44 bytes from 00:0C:78:50:4F:77 id 0 time 17.79ms</pre></div><!-- SECTION [981-] --></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -