Slackware + bluetooth + sony ericsson c510

SLAX, Deep Style, ZenWalk

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

Аватара пользователя
include
Сообщения: 11
ОС: Slackware 13.0

Slackware + bluetooth + sony ericsson c510

Сообщение include »

Четвертый день уже пытаюсь настроить выход в интернет через bluetooth. Вот чего я уже добился:
bash-3.1# lsusb
Bus 005 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
bash-3.1# hciconfig -a
hci0: Type: USB
BD Address: 00:30:91:40:18:F9 ACL MTU: 384:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:1766 acl:8 sco:0 events:61 errors:0
TX bytes:541 acl:7 sco:0 commands:31 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'BlueZ (0)'
Class: 0x0a0100
Service Classes: Networking, Capturing
Device Class: Computer, Uncategorized
HCI Ver: 2.0 (0x3) HCI Rev: 0x7a6 LMP Ver: 2.0 (0x3) LMP Subver: 0x7a6
Manufacturer: Cambridge Silicon Radio (10)
bash-3.1# hcitool scan
Scanning ...
24:21:AB:43:B3:04 0x000000
bash-3.1# l2ping 24:21:AB:43:B3:04
Ping: 24:21:AB:43:B3:04 from 00:30:91:40:18:F9 (data size 44) ...
44 bytes from 24:21:AB:43:B3:04 id 0 time 15.96ms
44 bytes from 24:21:AB:43:B3:04 id 1 time 35.88ms
44 bytes from 24:21:AB:43:B3:04 id 2 time 27.03ms
44 bytes from 24:21:AB:43:B3:04 id 3 time 41.08ms
44 bytes from 24:21:AB:43:B3:04 id 4 time 41.19ms
44 bytes from 24:21:AB:43:B3:04 id 5 time 26.25ms
44 bytes from 24:21:AB:43:B3:04 id 6 time 44.34ms
44 bytes from 24:21:AB:43:B3:04 id 7 time 29.41ms
^C8 sent, 8 received, 0% loss

Код: Выделить всё

bash-3.1# sdptool browse 24:21:AB:43:B3:04
Browsing 24:21:AB:43:B3:04 ...
Service Description: Sony Ericsson C510
Service RecHandle: 0x10000
Service Class ID List:
  "PnP Information" (0x1200)

Service Name: OBEX SyncML Client
Service RecHandle: 0x2008002
Service Class ID List:
  UUID 128: 00000002-0000-1000-8000-0002ee000002
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 10
  "OBEX" (0x0008)

Service Name: Serial Port 1
Service RecHandle: 0x2008003
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 2

Service Name: Dial-up Networking
Service RecHandle: 0x2008004
Service Class ID List:
  "Dialup Networking" (0x1103)
  "Generic Networking" (0x1201)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0101

Service Name: Music Streaming Service
Service Provider: Sony Ericsson
Service RecHandle: 0x8000001
Service Class ID List:
  "Audio Source" (0x110a)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 25
  "AVDTP" (0x0019)
    uint16: 0x100
Profile Descriptor List:
  "Advanced Audio" (0x110d)
    Version: 0x0100

Service Name: Remote Control Target Service
Service Provider: Sony Ericsson
Service RecHandle: 0x10000001
Service Class ID List:
  "AV Remote Target" (0x110c)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 23
  "AVCTP" (0x0017)
    uint16: 0x102
Profile Descriptor List:
  "AV Remote" (0x110e)
    Version: 0x0103

Service Name: Remote Control Service
Service Provider: Sony Ericsson
Service RecHandle: 0x10000002
Service Class ID List:
  "AV Remote" (0x110e)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 23
  "AVCTP" (0x0017)
    uint16: 0x102
Profile Descriptor List:
  "AV Remote" (0x110e)
    Version: 0x0103

Service Name: SEMC Watch Phone
Service RecHandle: 0x40000000
Service Class ID List:
  "" (0x8e771401)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 61681
  "RFCOMM" (0x0003)
    Channel: 2

Service Name: PAN Network Access Point
Service Description: NAP provides access to internet for one connecting PANu
Service RecHandle: 0x1000003
Service Class ID List:
  "Network Access Point" (0x1116)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 15
  "BNEP" (0x000f)
    Version: 0x0100
    SEQ8: 0 6 dd
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Network Access Point" (0x1116)
    Version: 0x0100

Service Name: PAN user
Service Description: PANu can connect to a Network Access Point to gain access to internet
Service RecHandle: 0x1000004
Service Class ID List:
  "PAN User" (0x1115)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 15
  "BNEP" (0x000f)
    Version: 0x0100
    SEQ8: 0 6 dd
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "PAN User" (0x1115)
    Version: 0x0100

Service Name: Hands-Free Gateway
Service RecHandle: 0x2008005
Service Class ID List:
  "Handsfree Audio Gateway" (0x111f)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 5
Profile Descriptor List:
  "Handsfree" (0x111e)
    Version: 0x0105

Service Name: Headset Gateway
Service RecHandle: 0x2008006
Service Class ID List:
  "Headset Audio Gateway" (0x1112)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 4
Profile Descriptor List:
  "Headset" (0x1108)
    Version: 0x0101

Service Name: OBEX Object Push
Service RecHandle: 0x2008007
Service Class ID List:
  "OBEX Object Push" (0x1105)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 6
  "OBEX" (0x0008)
Profile Descriptor List:
  "OBEX Object Push" (0x1105)
    Version: 0x0101

Service Name: OBEX File Transfer
Service RecHandle: 0x2008008
Service Class ID List:
  "OBEX File Transfer" (0x1106)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 7
  "OBEX" (0x0008)
Profile Descriptor List:
  "OBEX File Transfer" (0x1106)
    Version: 0x0101

Service Name: OBEX IrMC Sync Server
Service RecHandle: 0x2008009
Service Class ID List:
  "IrMC Sync" (0x1104)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 8
  "OBEX" (0x0008)
Profile Descriptor List:
  "IrMC Sync" (0x1104)
    Version: 0x0101

Service Name: HID Mouse & Keyboard
Service Description: Remote Control of PC applications and other devices
Service Provider: Sony Ericsson
Service RecHandle: 0x4000001
Service Class ID List:
  "Human Interface Device" (0x1124)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 17
  "HIDP" (0x0011)
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Human Interface Device" (0x1124)
    Version: 0x0100

Service Name: SEMC HLA
Service RecHandle: 0x40000001
Service Class ID List:
  "" (0x8e771301)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 61689
  "" (0x8e770300)
Profile Descriptor List:
  "" (0x8e771303)
    Version: 0x0100

Service Name: Phonebook Access PSE
Service RecHandle: 0x200800a
Service Class ID List:
  "Phonebook Access - PSE" (0x112f)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 11
  "OBEX" (0x0008)
Profile Descriptor List:
  "Phonebook Access - PSE" (0x112f)
    Version: 0x0100

в телефоне bluetooth адаптер добавлен в список "Мои устройства"
интерфейс /dev/rfcomm0 создается автоматически
передача файлов работает (правда скорость подозрительно низкая 10-20 КБ/с)
А вот ни kppp ни панд не подключаются
при попытке подключения на телефоне появляется запрос (BlueZ (0) запрашивает доступ для модемного подключения. Разрешить?) естественно нажимаю да, но на этом все заканчивается
bash-3.1# pand --search -n
pand[7761]: Bluetooth PAN daemon version 3.36
pand[7761]: Inquiring
pand[7761]: Searching for NAP on 24:21:AB:43:B3:04
pand[7761]: Connecting to 24:21:AB:43:B3:04
pand[7761]: Connect to 24:21:AB:43:B3:04 failed. Connection timed out(110)

мои конфиги hcid.conf и rfcomm.conf

Код: Выделить всё

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 "0000";
}

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

    # Local device class
    class 0x000100;

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

    auth enable;
    encrypt enable;
}


rfcomm.conf
#
# RFCOMM configuration file.
#

rfcomm0 {
#    # Automatically bind the device at startup
    bind yes;
#
#    # Bluetooth address of the device
    device 24:21:AB:43:B3:04;
#
#    # RFCOMM channel for the connection
    channel    1;
#
#    # Description of the connection
#    comment "Example Bluetooth device";
}

В дополнение еще выкладываю вывод hcidump при попытке подключения командой pand --search -n

Код: Выделить всё

root@slackware:/home/x# hcidump
HCI sniffer - Bluetooth packet analyzer ver 1.42
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Inquiry (0x01|0x0001) plen 5
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Result with RSSI (0x22) plen 15
> HCI Event: Inquiry Complete (0x01) plen 1
< HCI Command: Create Connection (0x01|0x0005) plen 13
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Connect Complete (0x03) plen 11
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Max Slots Change (0x1b) plen 3
> HCI Event: Command Status (0x0f) plen 4
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Read Remote Supported Features (0x0b) plen 11
< ACL data: handle 42 flags 0x02 dlen 10
    L2CAP(s): Info req: type 2
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 42 flags 0x02 dlen 16
    L2CAP(s): Info rsp: type 2 result 0
      Extended feature mask 0x0000
< ACL data: handle 42 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 1 scid 0x0040
> ACL data: handle 42 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0040 result 1 status 2
      Connection pending - Authorization pending
> HCI Event: Remote Name Req Complete (0x07) plen 255
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 42 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0075 scid 0x0040 result 0 status 0
      Connection successful
< ACL data: handle 42 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0075 flags 0x00 clen 0
> ACL data: handle 42 flags 0x02 dlen 16
    L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
      MTU 1024
< ACL data: handle 42 flags 0x02 dlen 18
    L2CAP(s): Config rsp: scid 0x0075 flags 0x00 result 0 clen 4
      MTU 1024
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 42 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
      Success
< ACL data: handle 42 flags 0x02 dlen 17
    L2CAP(d): cid 0x0075 len 13 [psm 1]
        SDP SS Req: tid 0x0 len 0x8
          pat uuid-16 0x1116 (NAP)
          max 1
          cont 00
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 42 flags 0x02 dlen 18
    L2CAP(d): cid 0x0040 len 14 [psm 1]
        SDP SS Rsp: tid 0x0 len 0x9
          count 1
          handle 0x1000003
          cont 00
< ACL data: handle 42 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0075 scid 0x0040
< ACL data: handle 42 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 15 scid 0x0041
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 42 flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0075 scid 0x0040
> ACL data: handle 42 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0041 result 1 status 2
      Connection pending - Authorization pending
> HCI Event: Link Key Request (0x17) plen 6
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
> HCI Event: Command Complete (0x0e) plen 10
> HCI Event: Disconn Complete (0x05) plen 4

root@slackware:/home/x# pand  --search -n
pand[7844]: Bluetooth PAN daemon version 3.36
pand[7844]: Inquiring
pand[7844]: Searching for NAP on 24:21:AB:43:B3:04
pand[7844]: Connecting to 24:21:AB:43:B3:04
pand[7844]: Connect to 24:21:AB:43:B3:04 failed. Connection timed out(110)
Linux-2.6.32.7
Спасибо сказали:
Аватара пользователя
AlexYeCu
Сообщения: 1137
ОС: fedora

Re: Slackware + bluetooth + sony ericsson c510

Сообщение AlexYeCu »

1. Ставим blueman.
2. Спариваем bt-адаптер и телефон.
3. Дважды тыкаем по иконке blueman, в открывшемся браузере правый мышеклик по телефону --> последовательные_порты --> служба доступа к интернет по dial_up (если этих пунктов нет, то спервы выбираем «обновить службы»). В результате этого DUN-канал телефона биндится на /dev/rfcomm0 (можно сделать и из консоли, если есть желание, в гуле полно инфы на эту тему).

4. /etc/wvdial.conf

Код: Выделить всё

[Dialer ИМЯ_СОЕДИНЕНИЯ]

Init1=ATZ

Init2=ATQ0 V1 E1 S0=0 &C1 &D2+FCLASS=0

Init3=AT+CGDCONT=,,"internet.beeline.ru"

Modem=/dev/rfcomm0

Phone=*99#

Username=beeline

Password=none

New PPPD=yes

BAUD=460800

Stupid Mode=1


5. /etc/sudoers

Код: Выделить всё

%Ваш_пользователь ALL=NOPASSWD: /bin/mount /media/N73, /bin/umount /media/N73

Код: Выделить всё

sudo wvdial ИМЯ_СОЕДИНЕНИЯ


6. Из-под рута

Код: Выделить всё

/sbin/route add default ppp0
(предполагается, что поднялся именно интерфейс ppp0)
Спасибо сказали:
flank'er
Сообщения: 496
Статус: слаковщик
ОС: Slackware64

Re: Slackware + bluetooth + sony ericsson c510

Сообщение flank'er »

AlexYeCu писал(а):
06.02.2010 14:19
1. Ставим blueman.

Вы нашли способ поставить blueman на Slackware? поделитесь опытом!
Спасибо сказали:
Аватара пользователя
RocksLinux
Сообщения: 223
ОС: Slackware

Re: Slackware + bluetooth + sony ericsson c510

Сообщение RocksLinux »

flank'er писал(а):
06.02.2010 15:29
AlexYeCu писал(а):
06.02.2010 14:19
1. Ставим blueman.

Вы нашли способ поставить blueman на Slackware? поделитесь опытом!

Извините, может я чего не понимаю, я просто никогда не пользовался на Slackware blueman. Но в чём проблема? У rworkman'а к нему даже SlackBuild лежит http://connie.slackware.com/~rworkman/blueman/

To include,
Я этим на Slackware не занимался, под рукой адаптера нет, так что …
Единственное, вот руководство, http://slackwiki.org/Bluetooth Можно попробовать с нуля.
«Знать, что мы знаем то, что мы знаем, и что мы не знаем того, чего мы не знаем — это и есть истинное знание». //Конфуций\\
120 минут классики рока
Спасибо сказали:
flank'er
Сообщения: 496
Статус: слаковщик
ОС: Slackware64

Re: Slackware + bluetooth + sony ericsson c510

Сообщение flank'er »

у blueman зависимость в виде гнома ;)
Спасибо сказали:
Аватара пользователя
Archangel
Сообщения: 431
ОС: Slackware64-14.1

Re: Slackware + bluetooth + sony ericsson c510

Сообщение Archangel »

Там больше проблема в другом: Blueman свежий, как и Kbluetooth4 требуют bluez4. Ну взял я удалил bluez3, поставил bluez4, а при загрузке вижу, что-то типа "bluez не установлен".
Вот и тут запускаю blueman-manager, выдает:

Код: Выделить всё

Демон Bluez не запущен, менеджер Blueman не может продолжать работу.

Я так понимаю, демон в Slackware под bluez3 заточен и простой перестановкой на bluez4 ничего не работает, похоже надо что-то с демоном делать. А что именно - не знаю.
Спасибо сказали: