Pagina 1 di 1

Bluetooth e dbus

Inviato: lun 28 mag 2007, 20:38
da alex.franci
Ciao a tutti!
Sto diventando s*****o a cercare di configurare il bluetooth. Ho installato bluez da slacky. Infatti il cellulare vede il pc, il pc vede il cellulare, riesco a inviare files e tutti sono felici e contenti. Però vorrei collegarmi via GPRS in internet, usando rfcomm.
Vi faccio vedere tutti i passaggi:

Codice: Seleziona tutto

root@darksatar:~# /etc/rc.d/rc.messagebus start
Starting system message bus:  /usr/bin/dbus-uuidgen --ensure ; /usr/bin/dbus-daemon --system
root@darksatar:~# /etc/rc.d/rc.bluetooth start
Starting Bluetooth subsystem: hcid sdpd rfcomm.
Enabling d-bus discovery
root@darksatar:~# tail /var/log/messages  -n 12
May 28 19:35:38 darksatar hcid[2825]: Bluetooth HCI daemon
May 28 19:35:38 darksatar sdpd[2829]: Bluetooth SDP daemon
May 28 19:35:38 darksatar sdpd[2829]: Starting SDP server
May 28 19:35:38 darksatar kernel: Bluetooth: Core ver 2.7
May 28 19:35:38 darksatar kernel: NET: Registered protocol family 31
May 28 19:35:38 darksatar kernel: Bluetooth: HCI device and connection manager initialized
May 28 19:35:38 darksatar kernel: Bluetooth: HCI socket layer initialized
May 28 19:35:39 darksatar kernel: Bluetooth: L2CAP ver 2.7
May 28 19:35:39 darksatar kernel: Bluetooth: L2CAP socket layer initialized
May 28 19:35:39 darksatar kernel: Bluetooth: RFCOMM ver 1.5
May 28 19:35:39 darksatar kernel: Bluetooth: RFCOMM socket layer initialized
May 28 19:35:39 darksatar kernel: Bluetooth: RFCOMM TTY layer initialized
ora attacco la chiavetta bluetooth:

Codice: Seleziona tutto

root@darksatar:~# tail /var/log/messages  -n 8
May 28 19:37:17 darksatar kernel: usb 1-1: new full speed USB device using uhci_hcd and address 3
May 28 19:37:28 darksatar kernel: Bluetooth: HCI USB driver ver 2.8
May 28 19:37:28 darksatar hcid[2825]: HCI dev 0 registered
May 28 19:37:28 darksatar kernel: usbcore: registered new driver hci_usb
May 28 19:37:29 darksatar hcid[2825]: HCI dev 0 up
May 28 19:37:29 darksatar hcid[2825]: Device hci0 has been added
May 28 19:37:29 darksatar hcid[2825]: Starting security manager 0
May 28 19:37:29 darksatar hcid[2825]: Device hci0 has been activated
e

Codice: Seleziona tutto

root@darksatar:~# hcitool scanning
Scanning ...
        00:12:56:4F:8E:89       Alex the #
faccio lo scan sul cell, inserisco il PIN (1234) e lo accetta:

Codice: Seleziona tutto

root@darksatar:~# tail /var/log/messages  -n 2
May 28 19:39:58 darksatar hcid[2825]: pin_code_request (sba=11:11:11:11:11:11, dba=00:12:56:4F:8E:89)
May 28 19:39:58 darksatar hcid[2825]: link_key_notify (sba=11:11:11:11:11:11, dba=00:12:56:4F:8E:89)
anche sdptool browse funziona. non sto a mettere l'output. ma se provo con rfcomm:

Codice: Seleziona tutto

root@darksatar:~# rfcomm connect 0 00:12:56:4F:8E:89 6
Can't open RFCOMM device: No such file or directory

Codice: Seleziona tutto

signal sender=:1.0 -> dest=(null destination) path=/org/bluez/hci0; interface=org.bluez.Adapter; member=RemoteDeviceConnected
   string "00:12:56:4F:8E:89"
signal sender=:1.0 -> dest=(null destination) path=/org/bluez/hci0; interface=org.bluez.Adapter; member=RemoteNameUpdated
   string "00:12:56:4F:8E:89"
   string "Alex the #"
signal sender=:1.0 -> dest=(null destination) path=/org/bluez/hci0; interface=org.bluez.Adapter; member=RemoteDeviceDisconnected
   string "00:12:56:4F:8E:89"
eppure il cell lo vede perchè vi è la richiesta di connessione. poi cade. in /dev non vi è nessuna rfcomm*, questo anche se lo bindo (sempre con rfcomm).
la versione di dbus è dbus-1.0.2-i486-3sl. se volete la lista dei files basta chiederlo.

c'è qualcuno che può darmi una mano? grazie mille. non so più che pesci pigliare.

Inviato: lun 28 mag 2007, 22:37
da mangus
ma /etc/bluetooth/rfcomm.conf è a posto?

Codice: Seleziona tutto


#
# RFCOMM configuration file.
#

rfcomm0 {
	# Automatically bind the device at startup
	bind yes;

	# Bluetooth address of the device
	device 00:11:9F:C5:03:54;

	# RFCOMM channel for the connection
	channel	1;

	# Description of the connection
	comment "Nokia 6630";
}
edita alla bisogna e riavvia il bluetooth..ciaooooo

Inviato: mar 29 mag 2007, 19:24
da alex.franci
ho risolto... non partono dbus e udev, quindi non riusciva a creare il device. ora è tutto okay (anche se non so perchè non partano, comunque okay).
grazie mille

Inviato: sab 9 giu 2007, 17:08
da luk_slackwalker
Ciao a tutti, è da un mesetto ormai (:banghead: ) che cerco di configurare il bluetooth sulla slack11 seguendo le indicazioni del wiki

http://www.slacky.eu/wikislack/index.ph ... =Bluetooth

ma tutto quello che ottengo al momento di lanciare

Codice: Seleziona tutto

/etc/rc.d/rc.bluetooth start


è questo serie di errore:

Codice: Seleziona tutto

Starting Bluetooth subsystem: hcid sdpd.
Enabling d-bus discovery
Failed to open connection to system message bus: Failed to connect to socket /usr/var/run/dbus/system_bus_socket: No such file or directory
HELP ME PLEASE ! ! !

:mille: