The OpenNET Project / Index page

[ новости /+++ | форум | wiki | теги | ]

Подключение Bluetooth гарнитуры в Fedora Core Linux 4
Устанавливаем поддержку bluetooth (проект Bluez):
    yum install bluez-libs bluez-pin bluez-utils bluez-hcidump bluez-utils-cup

Устанавливаем утилиты звуковой подсистемы ALSA:
    yum install alsa-tools alsa-lib alsa-utils alsa-lib-devel

Устанавливаем automake (понадобится для сборки BTSCO)
   yum install automake

Проверяем на сайте http://bluetooth-alsa.sourceforge.net/ поддерживается ли
наша гарнитура (Jabra BT200 поддерживается).

Запускам hcitool и смотрим активна ли bluetooth подсистема.

Подключаем гарнитуру и запускаем "hcitool scan", смотрим MAC адрес в результатах вывода.
Далее, подключаем через:
   hcitool cc MAC

Все должно работать, но на случай проблем, пример некоторый файлов из /etc/bluetooth:

hcid.conf
        options {
           autoinit yes;
           security user;
           pairing multi;
           # PIN helper
           pin_helper /etc/bluetooth/feed-pin.sh;
           # D-Bus PIN helper
           #dbus_pin_helper;
        }
        device {
           name "%h-%d";
           # Local device class
           class 0x120104;
           # Inquiry and Page scan
           iscan enable; pscan enable;
           lm accept;
           lp rswitch,hold,sniff,park;
           # Authentication and Encryption (Security Mode 3)
           auth enable;
           encrypt enable;
        }

rfcomm.conf
     rfcomm0 {
         # Automatically bind the device at startup
         bind no;

         # Bluetooth address of the device
         device 11:11:11:11:11:11;

         # RFCOMM channel for the connection
         channel 1;

         # Description of the connection
         comment "Bluetooth Device
     }

/etc/bluetooth/feed-pin.sh
    #!/bin/sh
    echo "PIN:0000"


Установка BTSCO из исходных текстов.

Получаем исходные тексты из CVS:
   cvs -d:pserver:[email protected]:/cvsroot/bluetooth-alsa log
   cvs -d:pserver:[email protected]:/cvsroot/bluetooth-alsa co btsco

Собираем утилиты:
   ./bootstrap
   ./configure
   make
   make install
   make maintainer-clean

Собираем модуль ядра:
   cd kernel
   make
   make install
   depmod -e
   make clean

Подгружаем модуль ядра:
   modprobe snd-bt-sco

Подключаемся к гарнитуре:
   btsco -v MAC

Небольшой скрипт для автоматизации запуска skype:
    #!/bin/sh
    modprobe modprobe snd-bt-sco
    btsco MACofHeadset
    skype
 
25.01.2006 , Автор: John G. Moylan , Источник: http://www.linux.ie/articles/blueto...
Ключи: linux, kernel, sound, skype, module, bluetooth
Раздел:    Корень / Пользователю / Запись и обработка звука

Обсуждение [ RSS ]
  • 1, figador (?), 14:27, 02/05/2008 [ответить]  
  • +/
    См. также мой опыт в Debian (etch,lenny): http://theorie5.physik.unibas.ch/shalaev/my.linux/kernel.html
     

     Добавить комментарий
    Имя:
    E-Mail:
    Заголовок:
    Текст:




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру