LINUX.ORG.RU

GPS BT-359 + Toshiba U200-181 (проблема с подключением gps receiverа по bluetooth )


0

0

исходные данные: GPS Globalsat BT-359 и ноут Toshiba Satellite U200-181
(Kubuntu 7.04, ядро -2.6.20)
С bluetooth до этого не приходилось иметь дела.
marinus@ekto:~$ dmesg | grep Blue
[   36.896000] Bluetooth: Core ver 2.11
[   36.896000] Bluetooth: HCI device and connection manager initialized
[   36.896000] Bluetooth: HCI socket layer initialized
[   36.984000] Bluetooth: L2CAP ver 2.8
[   36.984000] Bluetooth: L2CAP socket layer initialized
[   37.044000] Bluetooth: RFCOMM socket layer initialized
[   37.044000] Bluetooth: RFCOMM TTY layer initialized
[   37.044000] Bluetooth: RFCOMM ver 1.8
[  368.096000] Bluetooth: HCI USB driver ver 2.9
[ 1024.088000] Bluetooth: HIDP (Human Interface Emulation) ver 1.2


cat /etc/bluetooth/hcid.conf
#
# HCI daemon configuration file.
#

# HCId options
options {
        # Automatically initialize new devices
        autoinit yes;

        # Security Manager mode
        #   none - Security manager disabled
        #   auto - Use local PIN for incoming connections
        #   user - Always ask user for a PIN
        #
        security auto;

        # Pairing mode
        #   none  - Pairing disabled
        #   multi - Allow pairing with already paired devices
        #   once  - Pair once and deny successive attempts
        pairing multi;

        # Default PIN code for incoming connections
        passkey "1234";
}

# Default settings for HCI devices
device {
        # Local device name
        #   %d - device id
        #   %h - host name
        name "%h-%d";

        # Local device class
        class 0x3e0100;

        # Default packet type
        #pkt_type DH1,DM1,HV1;

        # Inquiry and Page scan
        iscan enable; pscan enable;
        discovto 0;

        # Default link mode
        #   none   - no specific policy
        #   accept - always accept incoming connections
        #   master - become master on incoming connections,
        #            deny role switch on outgoing connections
        lm accept;
        
# Default link policy
        #   none    - no specific policy
        #   rswitch - allow role switch
        #   hold    - allow hold mode
        #   sniff   - allow sniff mode
        #   park    - allow park mode
        lp rswitch,hold,sniff,park;
}
Устройство находит:
marinus@ekto:~$ sudo hcitool scan
Scanning ...
        00:0D:B5:37:7A:68       BT-GPS-377A68
А вот дальше - все пусто
marinus@ekto:~$sudo sdptool browse 00:0D:B5:37:7A:68
Browsing 00:0D:B5:37:7A:68 ...
Пишу 
marinus@ekto:~$ sudo hcitool cc 00:0D:B5:37:7A:68

На пару секунд появляется в трее значок блутуза и пропадает 
Соответсвенно, соединений нет =(
marinus@ekto:~$ sudo hcitool con
Connections:
(Правда, если успеть посмотреть сразу после сс , то оно есть, но ненадолго)

Подскажите, куда смотреть? 

сделать inquiry, узнать номер канала rfcomm и забиндить его к tty

rfcomm bind rfcomm0 <BD-ADDR> <CHANNEL>

или connect вместо bind

sergej ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.