Bluetooth в SuSe 10.1 (Failed to open /dev/rfcomm0: Connection refused)

openSUSE, SUSE Linux Enterprise

Модератор: Модераторы разделов

Аватара пользователя
-=Genius Of Evil=-
Сообщения: 3
ОС: SuSe 10.1 x86-64

Bluetooth в SuSe 10.1

Сообщение -=Genius Of Evil=- »

Установлены bluez-libs 3.2 и blues-utils 3.2.
/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 "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;
}

/etc/bluetooth/rfcomm.conf:
#
# 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";
}

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

/etc/ppp/pap-secrets:
# 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:~ # rfcomm bind 0 00:13:70:6A:B3:2A 1

linux-q2hg:~ # gprs
Failed to open /dev/rfcomm0: Connection refused



/sbin/gprs:

MODEM=rfcomm0 (изменено после # rfcomm bind 0 00:13:70:6A:B3:2A 1)
...
Спасибо сказали:
Аватара пользователя
Dron2004
Сообщения: 75
ОС: ASP Linux 11 Express

Re: Bluetooth в SuSe 10.1

Сообщение Dron2004 »

Не претендую на грамотность, но:

1. Попробуй удалить файл /etc/bluetooth/pin
2. Затем удали <Bluetooth-имя компа> из "Связанный устройств" или чего-то подобного в телефоне (на самсунге Меню > Настройки > Bluetooth > Мои устройства).

Мне помогло. Произошёл повторный запрос пин-кода и связывание.
Честно признаться...
Спасибо сказали:
Аватара пользователя
-=Genius Of Evil=-
Сообщения: 3
ОС: SuSe 10.1 x86-64

Re: Bluetooth в SuSe 10.1

Сообщение -=Genius Of Evil=- »

бесполезно...
Спасибо сказали:
Topper
Бывший модератор
Сообщения: 2088
Статус: Насильник бабушек-педофилок
ОС: Windows 10

Re: Bluetooth в SuSe 10.1

Сообщение Topper »

смени passkey "BlueZ" на passkey "000"
и при дозвоне, соответственно, вбей в телефон три нуля, когда спросит
а еще лучше - спарь телефон с компом и установи комп в список разрешенных устройств, чтобы он каждый раз не спрашивал, принять ли запрос на соединение
Хрю.
Спасибо сказали:
Аватара пользователя
-=Genius Of Evil=-
Сообщения: 3
ОС: SuSe 10.1 x86-64

Re: Bluetooth в SuSe 10.1

Сообщение -=Genius Of Evil=- »

смени passkey "BlueZ" на passkey "000"

После этого работает:
Connect: ppp0 <--> /dev/rfcomm0
...
а еще лучше - спарь телефон с компом и установи комп в список разрешенных устройств, чтобы он каждый раз не спрашивал, принять ли запрос на соединение

Тоже работает, но только после смены passkey.
Спасибо сказали: