lunes, octubre 19, 2009

Cómo activo el bluetooth en mi distribución de linux?

Hola, como ya deban saber, la recepción de datos en linux funciona con políticas que pueden apreciar en:

[maximi89@gateway ~]$ gconftool-2 -a /desktop/gnome/file_sharing
bluetooth_obexpush_enabled = true
bluetooth_accept_files = bonded_and_trusted
bluetooth_enabled = false
bluetooth_notify = true
enabled = false
require_password = never
bluetooth_require_pairing = true
bluetooth_allow_write = false


o simplemente revisando gnome-user-share

Vayan a:

Sistema > Preferencias > Compartición de Archivos Personales



Como podrán apreciar en la imagen, con tan solo tener activado en la parte:

Recibir archivos por Bluetooth
-Recibir los archivos por bluetooth en la carpeta Descargas
Aceptar archivos: Sólo para dispositivos vinculados y de confianza

-Notificar acerca de los archivos recibidos


Deberían poder recibir todo lo que envíen desde sus teléfonos o aparatos con transferencia de archivos o más llamado tecnicamente "object exchange".
--------------------------------------------------------------------------------------------------

Si tienes problemas sólo en la recepción de archivos, pero puedes enviar correctamente, revisa si el programa gnome-user-share está corriendo.

[maximi89@gateway ~]$ ps -e| grep gnome-user-shar
21071 ? 00:00:00 gnome-user-shar
[maximi89@gateway ~]$ ps -e |grep obex-data-ser
10568 pts/1 00:00:00 obex-data-serve



Si es así y aún no puedes recibir archivos, hace lo siguiente:

[maximi89@gateway ~]$ sdptool browse local
Browsing FF:FF:FF:00:00:00 ...
Service Name: BlueZ PANU service
Service Description: BlueZ PAN service
Service RecHandle: 0x10000
Service Class ID List:
"PAN User" (0x1115)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 15
"BNEP" (0x000f)
Version: 0x0100
SEQ16: 800 806
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"PAN User" (0x1115)
Version: 0x0100

Service Name: BlueZ GN service
Service Description: BlueZ PAN service
Service RecHandle: 0x10001
Service Class ID List:
"PAN Group Network" (0x1117)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 15
"BNEP" (0x000f)
Version: 0x0100
SEQ16: 800 806
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"PAN Group Network" (0x1117)
Version: 0x0100

Service Name: BlueZ NAP service
Service Description: BlueZ PAN service
Service RecHandle: 0x10002
Service Class ID List:
"Network Access Point" (0x1116)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 15
"BNEP" (0x000f)
Version: 0x0100
SEQ16: 800 806
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Network Access Point" (0x1116)
Version: 0x0100

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

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

Service Name: Audio Source
Service RecHandle: 0x10005
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: AVRCP TG
Service RecHandle: 0x10006
Service Class ID List:
"AV Remote Target" (0x110c)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 23
"AVCTP" (0x0017)
uint16: 0x100
Profile Descriptor List:
"AV Remote" (0x110e)
Version: 0x0100

Service Name: AVRCP CT
Service RecHandle: 0x10007
Service Class ID List:
"AV Remote" (0x110e)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 23
"AVCTP" (0x0017)
uint16: 0x100
Profile Descriptor List:
"AV Remote" (0x110e)
Version: 0x0100

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



Donde lo más importante, o de hecho lo que se refiere a la recepción de archivos es:

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


Si no tienes eso, trata de activar otras opciones en la ventana que mostré antes en la imagen.
"Compartir archivos públicos en bluetooth".

Destilda "Recibir archivos por bluetooth en la arpeta descargas" y lo vuelves a tildar, esto permitirá que puedas recibir datos desde bluetooth nuevamente, esto se debe a un problema al parecer con las políticas que aplica "gnome-user-share".

Bugtrack: https://bugzilla.redhat.com/show_bug.cgi?id=529131

No hay comentarios.: