LINUX.ORG.RU

Bluetooth в SuSE 10.1


0

0

Установлены bluez-libs 3.2 и blues-utils 3.2. [B]/etc/bluetooth/hcid.conf:[/B] # # 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 "BlueZ"; }

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

# Local device class class 0x3e0100;

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

# Inquiry and Page scan iscan enable; pscan enable;

# 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; }

[B]/etc/bluetooth/rfcomm.conf:[/B] # # RFCOMM configuration file. #

rfcomm0 { # Automatically bind the device at startup bind no;

# Bluetooth address of the device device 00:13:70:6A:B3:2A ;

# RFCOMM channel for the connection channel 1;

# Description of the connection comment " Nokia 7610"; } rfcomm0 { bind no; device 00:13:70:6A:B3:2A; channel 1; comment "Nokia 7610"; }

[B]/etc/bluetooth/pin[/B]- pin-код для доступа.

[B]/etc/ppp/pap-secrets:[/B] # Secrets for authentication using PAP # client server secret IP addresses beeline * beeline *

linux-q2hg:~ # hcid linux-q2hg:~ # sdpd linux-q2hg:~ # hcitool scan Scanning ... 00:13:70:6A:B3:2A Nokia 7610 linux-q2hg:~ # mknod -m 666 /dev/rfcomm0 c 216 0 linux-q2hg:~ # mknod -m 664 /dev/vhci c 10 250 linux-q2hg:~ # rfcomm bind 0 00:13:70:6A:B3:2A 1

linux-q2hg:~ # gprs [COLOR=red]Failed to open /dev/rfcomm0: Connection refused [/COLOR]

[B]/sbin/gprs:[/B] … MODEM=rfcomm0 (изменено после # rfcomm bind 0 00:13:70:6A:B3:2A 1) ...

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