特殊:Badtitle/NS100:NokiaEvolutionSyncing/Bluetooth

来自Ubuntu中文
Wikibot留言 | 贡献2008年12月16日 (二) 19:42的版本 (新页面: {{From|https://help.ubuntu.com/community/NokiaEvolutionSyncing/Bluetooth}} {{Languages|UbuntuHelp:NokiaEvolutionSyncing/Bluetooth}} === Bluetooth configuration === First step is to instal...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索

{{#ifexist: :NokiaEvolutionSyncing/Bluetooth/zh | | {{#ifexist: NokiaEvolutionSyncing/Bluetooth/zh | | {{#ifeq: {{#titleparts:NokiaEvolutionSyncing/Bluetooth|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:NokiaEvolutionSyncing/Bluetooth|1|-1|}} | zh | | }}

Bluetooth configuration

First step is to install bluez-utils package if it is not already installed in your system.

apt-get install bluez-utils

This packages unfortunately isn't working correctly out of the box and some additional steps are required. First you need to create your own pinwrapper script instead of the one supplied by the package. This file is needed to have PIN based verification between phone an computer working. Create /usr/bin/mypinwrapper file with following content:

#!/bin/sh
echo "PIN:1234"

The actual PIN can and obviously should be changed. Second step is to change /etc/bluetooth/hcid.conf file:

options {
      autoinit    yes;
      security    auto;
      pairing     multi;
      pin_helper  /usr/bin/mypinwrapper;
}

device {
      name "%h-%d";
      class 0x3e0100;
      iscan enable;
      pscan enable;
      lm accept;
      lp rswitch,hold,sniff,park;
}

At this point you should be able to detect your phone with following command:

hcitool scan

It should return your phone MAC address and its name.