Hi,
I first tried the Leonid's patch with BlueZ 4.27. I've now applied your
patches to the BlueZ 4.29. In both cases, the behaviour is the same when I
attempt to connect my platform with a mobile (Nokia 6810) :
1?/ No "Headset" service is exported.
2?/ As soon as the mobile is paired and the "Handsfree" service is
connected, the mobiledirectly disconnects. I cannot see in the logs what's
wrong.
Something is wrong in my configuration. For comparison, could you provide
the configuration files you used with your patches ?
As info, here are the logs :
- bt_hfp.log : the full log of the bluetoothd daemon before the mobile
attempts to connect the platform handsfree.
- bt-hfp2.log : the only message the bluetoothd daemon displays when the
mobile attempt to connect.
- bt-hfp-dump.log : a HCI dump log of the connection
Thanks for your help.
Regards.
Thierry
Many thanks for this.
But it did not work either (same behaviour).
I only performed a quick test since currently I don't get the time to.
Here is what I noticed that I did not notice before :
New messages appear :
bluetoothd[1815]: headset_probe: path
/org/bluez/1815/hci0/dev_00_0E_ED_01_DA_55
bluetoothd[1815]: probe failed with driver input-headset for
device /org/bluez/1815/hci0/dev_00_0E_ED_01_DA_55
And after a while (a few seconds after the test ends), other messages
appear :
bluetoothd[1815]: Agent replied with an error:
org.freedesktop.DBus.Error.NoReply, Did not receive a reply. Possible
causes include: the remote application did not send a reply, the message
bus security policy blocked the reply, the reply timeout expired, or the
network connection was broken.
bluetoothd[1815]: Access denied: Did not receive a reply. Possible
causes include: the remote application did not send a reply, the message
bus security policy blocked the reply, the reply timeout expired, or the
network connection was broken.
And a "Cancel" message has been received by the Agent. I don't know if
this has an impact or if it is a consequence of the disconnection.
I will dive into this issue in a few days.
As I do not catch all the points in the way the HFP profile works, I'm
quite sure that I'm doing something wrong.
Will keep you informed.
Regards.
Thierry
> 1?/ No "Headset" service is exported.
Yes, this patch only provides the support for "Handsfree", so no
"Headset" service is exported.
> 2?/ As soon as the mobile is paired and the "Handsfree" service is
> connected, the mobiledirectly disconnects. I cannot see in the logs what's
> wrong.
>
Please apply the attached patch against my posted patch set and try
again. It works for me
to connect with Nokia N95.
Thanks,
Forrest
Il giorno 13/feb/09, alle ore 09:48, Thierry Pierret ha scritto:
> 2?/ As soon as the mobile is paired and the "Handsfree" service is
> connected, the mobiledirectly disconnects. I cannot see in the logs
> what's
> wrong.
I experienced this issue myself when I tried to implement the same
functionality. I didn't get so far as to address it, but in my case
the issue could be work-arounded (only for tests of course, a proper
fix would be needed before a release anyway) by having the device
receive a phone call during (or immadiately after) connection. In this
case, it will stay connected at least for the duration of the call.
Regards,
Michele Noberasco