Ir a contenido

GNU/Linux y Bluetooth + Nokia 6230


Estas son algunas notas recopiladas y que puede que carezcan de sentido (aunque de por si a muchos ya se lo parecerá ;)) de cuando intenté conectar por bluetooth mi teléfono móvil modemo nokia 6230 a una Debian. Llegó a funcionar, pero pasado un tiempo sin usarlo dejó de funcionar. Probé el mismo procedimiento con Ubuntu y funcionó, cosas que pasan.
Debido al descuido de algunos paquetes de GNOME bluetooth en Debian dejé apartado el tema. Desde entonces tenía esto sin publicar, y ya que lo tengo, lo dejo por si sirve de algo.

Se trata de un rápido howto para gestionar el bluetooth y conectar un ordenador con GNU/Linux a un nokia 6230. Tiene partes de gentoo y de vete tu a saber que más.
A parte, está en inglés.

  1. Check the (USB) bluetooth adapter :

    usuario@LOCAL:~$ hciconfig -a
    hci0: Type: USB
    BD Address: 00:A0:96:20:2B:A0 ACL MTU: 128:8 SCO MTU: 64:8
    UP RUNNING PSCAN ISCAN
    RX bytes:159590 acl:1544 sco:0 events:977 errors:0
    TX bytes:56114 acl:769 sco:0 commands:210 errors:0
    Features: 0xff 0xff 0×05 0×00 0×00 0×00 0×00 0×00
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
    Link policy: RSWITCH HOLD SNIFF PARK
    Link mode: SLAVE ACCEPT
    Name: ‘BlueZ (enki)’
    Class: 0×100100
    Service Classes: Object Transfer
    Device Class: Computer, Uncategorized
    HCI Ver: 1.1 (0×1) HCI Rev: 0×72 LMP Ver: 1.1 (0×1) LMP Subver: 0×72
    Manufacturer: Cambridge Silicon Radio (10)

  2. If that seems ok then start bluetooth. First I disabled hdidd in /etc/conf.d/bluetooth since I don’t need it. You can keep it if you need :

    HIDD_ENABLE=false
    HIDD_OPTIONS=”"
    HID2HCI_ENABLE=false
    root@LOCAL:~$ /etc/init.d/bluetooth start
    root@LOCAL:~$ rc-update add bluetooth default

  3. scan if bluetooth phone is here. if everything is ok then configure rfcomm in order to send/receive the file.

    usuario@LOCAL:~$ hcitool scan
    00:E0:03:36:90:2D Nokia 6230
    usuario@LOCAL:~$ sdptool browse 00:E0:03:36:90:2D
    Service Name: OBEX Object Push
    Service RecHandle: 0×1000e
    Service Class ID List:
    “OBEX Object Push” (0×1105)
    Protocol Descriptor List:
    “L2CAP” (0×0100)
    “RFCOMM” (0×0003)
    Channel: 9
    “OBEX” (0×0008)
    Language Base Attr List:
    code_ISO639: 0×656e
    encoding: 0×6a
    base_offset: 0×100
    Profile Descriptor List:
    “OBEX Object Push” (0×1105)
    Version: 0×0100
    Service Name: OBEX File Transfer
    Service RecHandle: 0×1000f
    Service Class ID List:
    “OBEX File Transfer” (0×1106)
    Protocol Descriptor List:
    “L2CAP” (0×0100)
    “RFCOMM” (0×0003)
    Channel: 10
    “OBEX” (0×0008)
    Language Base Attr List:
    code_ISO639: 0×656e
    encoding: 0×6a
    base_offset: 0×100
    Profile Descriptor List:
    “OBEX File Transfer” (0×1106)
    Version: 0×0100
    Service Name: Dial-up networking
    Service RecHandle: 0×10010
    Service Class ID List:
    “Dialup Networking” (0×1103)
    “Generic Networking” (0×1201)
    Protocol Descriptor List:
    “L2CAP” (0×0100)
    “RFCOMM” (0×0003)
    Channel: 1
    Language Base Attr List:
    code_ISO639: 0×656e
    encoding: 0×6a
    base_offset: 0×100
    Profile Descriptor List:
    “Dialup Networking” (0×1103)
    Version: 0×0100
    Service Name: Nokia PC Suite
    Service RecHandle: 0×10011
    Service Class ID List:
    “Serial Port” (0×1101)
    Protocol Descriptor List:
    “L2CAP” (0×0100)
    “RFCOMM” (0×0003)
    Channel: 15
    Language Base Attr List:
    code_ISO639: 0×656e
    encoding: 0×6a
    base_offset: 0×100
    Service Name: COM 1
    Service RecHandle: 0×10012
    Service Class ID List:
    “Serial Port” (0×1101)
    Protocol Descriptor List:
    “L2CAP” (0×0100)
    “RFCOMM” (0×0003)
    Channel: 3
    Language Base Attr List:
    code_ISO639: 0×656e
    encoding: 0×6a
    base_offset: 0×100
    Service Name: Voice Gateway
    Service RecHandle: 0×10013
    Service Class ID List:
    “Handsfree Audio Gateway” (0×111f)
    “Generic Audio” (0×1203)
    Protocol Descriptor List:
    “L2CAP” (0×0100)
    “RFCOMM” (0×0003)
    Channel: 13
    Language Base Attr List:
    code_ISO639: 0×656e
    encoding: 0×6a
    base_offset: 0×100
    Profile Descriptor List:
    “Handsfree” (0×111e)
    Version: 0×0101
    Service Name: Audio Gateway
    Service RecHandle: 0×10014
    Service Class ID List:
    “Headset Audio Gateway” (0×1112)
    “Generic Audio” (0×1203)
    Protocol Descriptor List:
    “L2CAP” (0×0100)
    “RFCOMM” (0×0003)
    Channel: 12
    Language Base Attr List:
    code_ISO639: 0×656e
    encoding: 0×6a
    base_offset: 0×100
    Profile Descriptor List:
    “Headset” (0×1108)
    Version: 0×0100
    Service Name: SIM ACCESS
    Service RecHandle: 0×1001a
    Service Class ID List:
    “” (0×112d)
    “Generic Telephony” (0×1204)
    Protocol Descriptor List:
    “L2CAP” (0×0100)
    “RFCOMM” (0×0003)
    Channel: 4
    Language Base Attr List:
    code_ISO639: 0×656e
    encoding: 0×6a
    base_offset: 0×100
    Profile Descriptor List:
    “” (0×112d)
    Version: 0×0100

  4. Only OBEX PUSH section interest, you have to check the channel. Here thi is 9. It should be the same for you. Then edit /etc/bluetooth/rfcomm.conf and add these lines. Then restart bluetooth.

    rfcomm0 {
    bind no;
    device 00:E0:03:36:90:2D;
    channel 9;
    comment “Nokia 6230 - benoitc”;
    }
    root@LOCAL:~$ /etc/init.d/bluetooth stop
    root@LOCAL:~$ /etc/init.d/bluetooth start

  5. Check if everything is ok :

    root@LOCAL:~$ rfcomm connect rfcomm0 00:E0:03:36:90:2D 9
    Connected /dev/rfcomm0 to 00:E0:03:36:90:2D on channel 9
    Press CTRL-C for hangup

    exit

  6. To enable fle sending/receiving I use GNOME-bluetooth. You can also use obexftp to do it in console mode.
    I use GNOME-blueooth 5.1 and openobex 1.0.1 (currently masked)
    Then launch Bluetooth File sharing in Application/System Tools menu (You could also use launch GNOME-obex-server in the terminal.

Note. I have to edit /etc/bluetooth/hcid.conf and change the value local device class from 0×100 to 0×100100 in order to allow my phone to find the computer.
class 0×100100;

Note 2: To change your PIN code edit /etc/bluetooth/pin.

Referencias:

Etiquetas: , , , , , ,

Entérate al instante

Lo más leído

Del archivo...


Comentarios

Hola. Has tenido exito instalando juegos desde LINUX a tu 6230 ?.  Yo aun no he encontrado alguna aplicacion que permita esta hazaña epica. Solo queda usar la PCSuite que solo corre en el Maligno M$.

No lo he intentado nunca.

Cuidado con el maligno.


Agregue un Comentario

Consejos

Escribe correctamente, esto es la Web, no un SMS. (No te vamos a cobrar por mas de 150 caracteres) ;-).
No insultes a los demás, respeta a las personas que hay al otro lado de la pantalla y que van a leer tu opinión.


Advertencia

Los comentarios de los usuarios no se corresponden necesariamente con la opinión de El Demonio Negro.
No está permitido verter comentarios contrarios a las leyes españolas o injuriantes. Por ello, nos reservamos el derecho a eliminar los comentarios que consideremos incumplen dichos preceptos.