bluetooth woes

Le Forum Linux
Scanner Windows pour détecter les erreurs de registre

Ce que nous vous conseillons :

1. Lisez les réponses ci-dessous où vous trouverez des conseils et de l'aide de la part des autres utilisateurs.

2. Avant de faire des modifications sur votre système ou d'installer des logiciels, nous vous recommandons
    fortement de cliquer ici pour scanner Windows afin de détecter les erreurs de registre.

Messagepar Norton » 23 Jan 2008, 08:15

Hi everyone,

I want to make my linux PC emulate a handsfree kit, so that my phone will connect to it and I hear audio out of the car speakers. For some reason it's REALLY hard to find any information on doing this. Has anybody managed to do this yet? Here's what I have done so far:

- registered HF profile with sdptool
- set the device class to 0xff0408 with hciconfig
- dbus-send --system --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable (makes the PC discoverable)
- rfcomm listen hci0 6 (PC accepts connection on channel 6 (handsfree) and routes it to /dev/rfcomm0)

Now I can use my phone to search for handsfree devices, my PC shows up, I select it and try to connect, and it says "seeking PCNAME...." And after a few seconds rfcomm tells me it's connected. But the phone just sits there waiting. I'm sure I need to send some command over, but I can't find any specs anywhere.

I tried the ProjectBluezHandsfree (it's down now, gotta use the google cache) but that doesn't seem to help me. It makes the connection, but the phone still says seeking and never connects (it times out after a while).

Any thoughts? I can't run any of the kde stuff, this is a very minimal system with a stripped X server (no fonts, etc), so I want to do all this on the command line. I'm not afraid to code something up if I find some specs

Messagepar Mirey86 » 27 Mai 2008, 14:48

I've been trying to set up BlueZ for the HF profile as well and haven't succeeded yet. I don't use the dbus command, as I don't think I need it. Do you have a source that explains the need for that command? When I do 'Search for Bluetooth Devices' from my phone, I can find the computer, and it shows up as HF.

Are you sure you need rfcomm? I thought rfcomm was to setup file transfer and data transfer (DUN and FTP?).

So far, my phone will find the computer and successfully pair with it. But it will not 'connect'. Running 'hcitool cc [address of phone]' doesn't seem to work either. When I run 'hcitool con' its supposed to print out a list of currently connected devices, but my phone doesn't show up. If I run 'hcitool scan' it will print out my phone's Bluetooth address. Do either of you think I've misunderstood something here?

It also seems as Bluetooth development is very fluid on Linux, as I haven't been able to find any thorough documentation. Can you both list your resources? I've only used the manpages and random Google searches so far, but those may be incomplete as well. Maybe I should try to set up DUN and then go from there...

Messagepar Sevrossi » 27 Mai 2008, 20:10


We are on a french forum so use the French.

"L'expérience, c'est le nom que chacun donne à ses erreurs." O. Wilde
"if at first you don't succeed, call it version 1.0"
Avatar de l’utilisateur
Messages: 5594
Inscrit le: 08 Aoû 2002, 15:13

Retour vers Linux

Qui est en ligne ?

Utilisateurs parcourant actuellement ce forum : Aucun utilisateur inscrit et 1 invité

  •  Liens commerciaux