Conectar movil Sony Ericson Z520i con bluetooh al pc

Por Paco Aldarias Raya

Impreso: 19 de agosto 2006

Email: pacolinux arroba inicia punto es

Web: http://aldarias.es/pacodebian

Con Linux Debian. En Valencia (España)

El documento tiene version .html, y .pdf, cambiando en el navegador la parte final podrás acceder a ambos.

Este documento es de libre reproducción siempre que se cite su fuente.

Realizado con: LATEX

Índice General

1 Introducción

Sony Ericson Z520i

http://www.sonyericsson.com/spg.jsp?cc=es&lc=es&ver=4000&template=pp1_loader&php=PHP1_10298&zone=pp&lm=pp1&pid=10298

2 Mi bluetooth

CONTACT

Adaptador USB 1.1 CLASE 2

Bluetooth Cambridge Silicon Radio, Ltd Bluetooth Dongle

http://www.bluetooth.com/products/prods.details.asp?CPID=1694&CAT=9

http://www.windigosys.com/app_usbdongle.htm

3 El Kernel

Mi kernel:

uname -a

Linux aldarias.dyndns.org 2.6.13.2 7 SMP Sat Sep 24 17:49:28 CEST 2005 i686 GNU/Linux

Networking  --->  
<M>   Bluetooth subsystem support  ---> 
Device Drivers  --->
USB support  ---
<M>   EHCI HCD (USB 2.0) support
     [*]     Full speed ISO transactions (EXPERIMENTAL)
     [*]     Root Hub Transaction Translators (EXPERIMENTAL)
     <M>   ISP116X HCD support
     <M>   OHCI HCD support
     <M>   UHCI HCD (most Intel and VIA) support
     <M>   SL811HS HCD support

4 Drivers

http://coffelius.bloggear.net/archivos/2005/09/24/instalar-dispositivos-bluetooth-que-no-los-reconoce-el-kernel/

Fichero:

/usr/src/linux/drivers/bluetooth/hci_usb.c

Añadir:

/* Bluetooth Cambridge Silicon Radio, Ltd Bluetooth Dongle*/
        { USB_DEVICE(0x0a12,0x0001) },

lsusb dice que tengo este aparato:

Bus 001 Device 004: ID 0a12:001 Cambridge Silicon Radio, 
Ltd Bluetooth Dongle (HCI mode)

Para hacer que el kernel lo detecte es tan simple como seguir estos pasos:

5 El adaptador bluetooth

Adapatador Bluetooth para puerto usb 1.1 class2 Contact

lsusb

Bus 003 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

6 Modulos cargadosModulos cargados

lsmod | grep hci
hci_usb                17416  2
bluetooth              54532  7 hci_usb,rfcomm,l2cap
ohci_hcd               23428  0

7 El log

cat /var/log/kern.log

Dec 18 14:29:59 aldarias kernel: Bluetooth: HCI device and connection manager initialized
Dec 18 14:29:59 aldarias kernel: Bluetooth: HCI socket layer initialized
Dec 18 14:30:18 aldarias kernel: ohci_hcd 0000:00:02.1: wakeup
Dec 18 14:30:19 aldarias kernel: usb 3-1: new full speed USB device using ohci_hcd and address 2
Dec 18 14:30:30 aldarias kernel: kobject_register failed for uhci_hcd (-17)
Dec 18 14:30:30 aldarias kernel:  [<c0230d3b>] kobject_register+0x6b/0x80
Dec 18 14:30:30 aldarias kernel:  [<c01400c2>] mod_sysfs_setup+0x62/0xd0
Dec 18 14:30:30 aldarias kernel:  [<c01416c8>] load_module+0xaf8/0xcd0
Dec 18 14:30:30 aldarias kernel:  [<c0141943>] sys_init_module+0x73/0x240
Dec 18 14:30:30 aldarias kernel:  [<c01034d1>] syscall_call+0x7/0xb
Dec 18 14:30:30 aldarias kernel: kobject_register failed for ehci_hcd (-17)
Dec 18 14:30:30 aldarias kernel:  [<c0230d3b>] kobject_register+0x6b/0x80
Dec 18 14:30:30 aldarias kernel:  [<c01400c2>] mod_sysfs_setup+0x62/0xd0
Dec 18 14:30:30 aldarias kernel:  [<c01416c8>] load_module+0xaf8/0xcd0
Dec 18 14:30:30 aldarias kernel:  [<c0141943>] sys_init_module+0x73/0x240
Dec 18 14:30:30 aldarias kernel:  [<c01034d1>] syscall_call+0x7/0xb
Dec 18 14:38:48 aldarias kernel: kobject_register failed for uhci_hcd (-17)
Dec 18 14:38:48 aldarias kernel:  [<c0230d3b>] kobject_register+0x6b/0x80
Dec 18 14:38:48 aldarias kernel:  [<c01400c2>] mod_sysfs_setup+0x62/0xd0
Dec 18 14:38:48 aldarias kernel:  [<c01416c8>] load_module+0xaf8/0xcd0
Dec 18 14:38:48 aldarias kernel:  [<c0141943>] sys_init_module+0x73/0x240
Dec 18 14:38:48 aldarias kernel:  [<c01034d1>] syscall_call+0x7/0xb
Dec 18 14:38:48 aldarias kernel: kobject_register failed for ehci_hcd (-17)
Dec 18 14:38:48 aldarias kernel:  [<c0230d3b>] kobject_register+0x6b/0x80
Dec 18 14:38:48 aldarias kernel:  [<c01400c2>] mod_sysfs_setup+0x62/0xd0
Dec 18 14:38:48 aldarias kernel:  [<c01416c8>] load_module+0xaf8/0xcd0
Dec 18 14:38:48 aldarias kernel:  [<c0141943>] sys_init_module+0x73/0x240
Dec 18 14:38:48 aldarias kernel:  [<c01034d1>] syscall_call+0x7/0xb

8 Escaneando

listado de los dispositivos y su direccion

hcitool scan

Scanning ...
        00:13:70:E7:95:AD       Ponce

Ponce es el nombre del bluetooth en el movil

hciconfig -a
hci0:   Type: USB
        BD Address: 00:0A:84:AA:4A:7F ACL MTU: 192:8 SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:426 acl:0 sco:0 events:22 errors:0
        TX bytes:339 acl:0 sco:0 commands:17 errors:0
        Features: 0xff 0xff 0x8f 0xf8 0x18 0x18 0x00 0x80
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'aldarias.dyndns.org-0'
        Class: 0x3e0100
        Service Classes: Networking, Rendering, Capturing
        Device Class: Computer, Uncategorized
        HCI Ver: 1.2 (0x2) HCI Rev: 0x639 LMP Ver: 1.2 (0x2) LMP Subver: 0x639
        Manufacturer: Cambridge Silicon Radio (10)

9 Para ver los servicios

sdptool browse 00:13:70:E7:95:AD

Service Name: OBEX File Transfer
Service RecHandle: 0x10001
Service Class ID List:
  "OBEX File Transfer" (0x1106)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 10
  "OBEX" (0x0008)
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "OBEX File Transfer" (0x1106)
    Version: 0x0100

Permite ver el canal es el 10.

10 Crear el nodo

mknod /dev/ttyUB0 c 216 0

11 Configuración

hciconfig
hci0:   Type: USB
        BD Address: 00:0A:84:AA:4A:7F ACL MTU: 192:8 SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:426 acl:0 sco:0 events:22 errors:0
        TX bytes:339 acl:0 sco:0 commands:17 errors:0

12 El proceso

ps -ae | grep hcid
 5114 ?        00:00:00 hcid

13 obexftp

hcitool scan

Scanning ...
        00:16:20:45:95:32       Z520i

Listado:

obexftp -b 00:16:20:45:95:32 -B 7 -l
Browsing 00:16:20:45:95:32 ...
Channel: 6
No custom transport
Connecting...done
Receiving "(null)"... <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE folder-listing SYSTEM "obex-folder-listing.dtd">
<!--
 XML Coder, Sep  6 2005, 17:35:19, (C) 2001 Sony Ericsson Mobile Communications AB
-->
<folder-listing version="1.0"><folder name="Imágenes"/>
<folder name="Sonidos"/>
<folder name="Temas"/>
<folder name="Vídeos"/>
<folder name="Otros"/>
</folder-listing>
done

Enviar un archivo al movil:

obexftp -b Z520i -B 7 -p farm.mp3

Coger un archivo del movil

obexftp -b Z520i -c Imágenes/camera_semc/100MSDCF -g DSC00006.JPG

14 Direcciones de interes


Índice de Materias

Sobre este documento...

Conectar movil Sony Ericson Z520i con bluetooh al pc

This document was generated using the LaTeX2HTML translator Version 2002-2-1 (1.71)

Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999, Ross Moore, Mathematics Department, Macquarie University, Sydney.

The command line arguments were:
latex2html bluez -split 0 -local_icons 1 -show_section_numbers -no_auto_link -no_navigation

The translation was initiated by on 2006-08-19


2006-08-19