We have moved to a new Sailfish OS Forum. Please start new discussions there.
3

Bluetooth (bluez5) connect HFT profile [answered]

asked 2017-11-12 00:07:10 +0200

deloptes gravatar image

updated 2017-11-12 00:08:31 +0200

Hi Sailors and Sailor fans, I have a big trouble connecting Sailfish X with my cars audio system. It is rather old but it worked well with Nokia N9 and Intex AquaFish, so I was expecting no issues with this process when I bought the Xperia X. Now unfortunately it is not possible to connect and I'm getting desperate, because without this functionality the phone is not usable - rather expensive toy.

I tried a lot of tricks, but nothing works. The HFT system returns following profiles

000011105-0000-1000-8000-00805f9b34fb   OBEX_OPP_UUID
000011106-0000-1000-8000-00805f9b34fb   OBEX_FTP_UUID
00001111e-0000-1000-8000-00805f9b34fb   HFP_HS_UUID
000011201-0000-1000-8000-00805f9b34fb   NaN

but pairing is not possible.

I now found very detailed article, which seems to cover this subject and explains that bluez5 dropped HSP and HFP The article is from 2014.

It states that it is not possible to connect bluez5 to HFT and that there is partial support in ophono, but that it works with bluez4.

My question is if someone knows the status in the SailfishOS implementation and what can be done. Can be bluez5 downgraded to bluez4 as I see packages available?

Thanks and regards

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by deloptes
close date 2017-12-06 21:33:12.820823

Comments

I tried downgrade to bluez4 (packages are available - did not have a look in which repo) but I hit the wall again:

  1. hci0 was not available - solved via hciattach - info taken out of journalctl
  2. rfkillswitch functionality is not available for bluez4
  3. manager is unavailable for bluez4
  4. nothing blue worked at the end

I stopped digging disappointed

deloptes ( 2017-11-12 09:35:24 +0200 )edit

patches were made to the bluez5 hciattach to get it working on the X, blues4 would probably need something similar.

r0kk3rz ( 2017-11-12 14:23:45 +0200 )edit

3 Answers

Sort by » oldest newest most voted
1

answered 2017-11-12 15:43:53 +0200

How2DetermineIfWitch gravatar image

Status from a good month ago, See here: Sailfish X program roll out starting, Oct. 4

James Noori, on October 5, 2017 at 12:37 pm:

Here is an elaboration: The Bluetooth module does work on the Xperia X. You can turn it on/off, find devices with it, share files, listen to music using various accessories and so on. There is however a chance that some accessories (maybe some car infotainment systems, or some accessories, we don’t know exactly since it is random!) may not work. That is why, since this is an open source component, and we have limited resources to work on it ourselves at the moment, we have given it to the community and they will surely take care of it. Official support is yet to be announced. It is not a priority at the moment.

So either the community gets something done, or Jolla, but it's not the priority of the latter right now. You wrote

Now unfortunately it is not possible to connect and I'm getting desperate, because without this functionality the phone is not usable - rather expensive toy.

What you mean, "not usable"? Does failing bluetooth connectivity foil the other functions on your SFOSX device?

edit flag offensive delete publish link more

Comments

It's the same for me.... I am not able to pair the Xperia X with the cars which I am using everyday (and they aren't old cars).

This fact (or missing mandatory feature) prevents to use the phone as my daily phone. Therefore currently the Xperia X is just laying on the desk and waiting for an update with functional Bluetooth.

vision ( 2017-11-12 16:05:43 +0200 )edit
1

@How2DetermineIfWitch: Sorry, I can not accept the answer as it neither confirms nor disapproves the statements.

First of all the PulseAudio document states explicitly that HFT was moved out of bluez5 - thus user with Sailfish X (which implements bluez5) gets downgraded with missing feature even compared to Aquafish (which implements bluez4 and thus works with HFT) What is the use of turning BT on/off when I miss the functionality?

Second if I can not get it working with my car - where I spent up to 4h per day - what is the use of this device? All other features are useless, because the device is not usable.

A great disappointment even more if Sailfish knew about it.

Also in their statement it might work or not, while it is stated explicitly that HFT is being removed from bluez5.

I hope that Jolla will pay attention and offer bluez4 as substitute for bluez5 until ophone or whatever else implements the BT HFT

@vision: please vote for it - I see this as major no go and knowing Jolla it will take ages to move it forward.

regards

deloptes ( 2017-11-12 18:10:05 +0200 )edit

@deloptes: Voted ;). For sure Jolla is already aware since it is discussed here already with a lot of answers: https://together.jolla.com/question/169519/sony-xperia-bluetooth/

And they even mention it as a known issue in the latest release notes.

vision ( 2017-11-12 18:21:46 +0200 )edit

believe me I subscribed this question time ago, it was saying may be or something, but no word of HFT dropped from bluez5 (at least the last time I went through the thread) - I'm really p*ssed. It is not may be but never and me fool spending time to try this or that

regards

deloptes ( 2017-11-12 18:38:12 +0200 )edit

Further elaboration on this question showed that HFT is supported in ofono > 1.16.

In Sailfish X ofono 1.19 is installed so it looks like that at least in theory it should be possible, however in mer cellular telephony architecture - Theseus [Poutiainen_Jarko] it states it is forked from original bluez code.

It is still to find out why it does not work.

deloptes ( 2017-11-16 22:59:38 +0200 )edit
1

answered 2017-12-01 14:42:26 +0200

harry gravatar image

The article you reference is misleading. The HFP/HSP implementation moved from bluez to ofono/pulseaudio with bluez5 and was not complete with the start of bluez5. Now it is.

edit flag offensive delete publish link more

Comments

What means now? Guys we are not talking about God, please be specific! For example 2.1.3.7 - which I have installed - still no HFP AG in Sailfish X. In your other post in the log it is visible HFP AG - which version do you have?

deloptes ( 2017-12-01 17:57:45 +0200 )edit
1

If you are interested you can check the exact date yourself. It is all open source ;)

See upstream ofono

See mer ofono

See upstream pulseaudio

See mer pulseaudio

But in my opinion you are completely wrong about HFP/HSP support in sailfishos. It is supported in 2.1.3 alias Kymijoki. It just has problems with some car kits.

On the ofono side you can check it by activating ofono debug output

and then query the log ( as root)

journalctl --unit=ofono | grep hfp

you can see that the hfpmodem is registered.

harry ( 2017-12-02 21:24:05 +0200 )edit

All i see is crap

[root@Sailfish nemo]# journalctl --unit=ofono
 -- Logs begin at Sat 2017-12-02 10:09:47 CET, end at Sun 2017-12-03 06:10:30 CET. --
 Dec 03 06:09:11 Sailfish ofonod[1487]: ConnectProfile() replied an error: org.bluez.Error.Failed, Host is down
deloptes ( 2017-12-03 07:11:57 +0200 )edit

After reboot I see

    -- Logs begin at Sun 1970-03-22 02:56:45 CET, end at Sun 2017-12-03 06:17:51 CET. --
    Dec 03 06:14:08 Sailfish systemd[1]: Starting Telephony service...
    Dec 03 06:14:08 Sailfish ofonod[1480]: oFono version 1.19
    Dec 03 06:14:08 Sailfish systemd[1]: Started Telephony service.
    Dec 03 06:14:08 Sailfish ofonod[1480]: Excluding udev hardware detection
    Dec 03 06:14:08 Sailfish ofonod[1480]: Excluding udev hardware detection
    Dec 03 06:14:08 Sailfish ofonod[1480]: Excluding Dialup modem driver
    Dec 03 06:14:08 Sailfish ofonod[1480]: Excluding SpeedUp modem driver
    Dec 03 06:14:08 Sailfish ofonod[1480]: Excluding Phone Simulator driver
    Dec 03 06:14:08 Sailfish ofonod[1480]: Excluding CDMA AT modem driver
    [...]
    Dec 03 06:14:08 Sailfish ofonod[1480]: Excluding External Hands-Free Profile Plugin
    [...]
    Dec 03 06:14:08 Sailfish ofonod[1480]: [grilio] ERROR! Can't connect to RILD: No such file or directory
    Dec 03 06:14:15 Sailfish ofonod[1480]: RIL1 version 11

Am I supposed to have a SIM card inside the phone, to be able to pair and connect with HFT?

deloptes ( 2017-12-03 07:19:22 +0200 )edit

Am I supposed to have a SIM card inside the phone ...?

So you this phone is "completely unusable" without HFP - but not having a SIM card in it is not a problem? Wow...

ossi1967 ( 2017-12-04 23:45:04 +0200 )edit
1

answered 2017-12-04 22:42:11 +0200

deloptes gravatar image

updated 2017-12-04 23:18:12 +0200

I was able to pair with my Car Kit with help from @harry and adam. I hope there will be update soon that will consolidate the patches and make it easier for the user to pair

By @harry merge request

By adam the instruction to make link for bluetooth.service here and here

SIM card must be in place before trying

[bluetooth]# show
Controller ................
        Name:
        Alias: Xperia X
        Class: 0x005c020c
        Powered: yes
        Discoverable: yes
        Pairable: yes
        UUID: Headset AG                (00001112-0000-1000-8000-00805f9b34fb)
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
        UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
        UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb)

I then used bluetoothctl (root user) to complete the pairing process.

edit flag offensive delete publish link more

Comments

Just an update: although I was able to pair and device seems connected, calls are not diverted to the car audio system and there is no option on the Sailfish gui to divert the call.

I'll post here updates, as I will either look for support in the community or may be will have to go through the code, which is rather new to me and unfortunately I do not have the time to do.

deloptes ( 2017-12-15 12:12:19 +0200 )edit

Some update on the topic:

I got hands on pulseaudio 11, but I was not able to compile it in the current SDK. I will debug when the next release comes out (which was announced yesterday), however I have reservation as there are quite some things in PA 11 that are still not OK (I compiled and installed PA11 on a linux desktop and see few things that need clarification, debugging or fixing). I then tested A2DP with PA11. With old N9 it works almost fine, but I could not achieve same flawless experience with Sailfish X. Of courase this is all the other way around. I'll wait for the next release and see how it will behave there.

From PA Release Notes it is clear that to achieve some tasks one needs to go to the command line, which is not nice, but still if it works, it will be sufficient for the beginning.

deloptes ( 2018-02-28 16:43:53 +0200 )edit

I just read this article once again after reading it couple of years ago http://www.lightofdawn.org/blog/?viewDetailed=00031

It is still worth reading. I found out that I had to manually set sink/source ( at least first time ) via dbus. Unfortunately gui is missing for such configurations.

deloptes ( 2018-05-30 00:17:52 +0200 )edit

I was able to pair my loudlink.eu carkit as A2DP to my JollaC and can listen to music from the phone. When connecting to the phone capabilities, the instructions of rejecting/taking a call will wreck the connection (no music anymore) but I will not get any audio from phone or micro. So it seems that PA is setting sink/source to audio and the switch does not work. I haven't tried with an Xperia, but will do soon. I don't think it is practical to set the switch between music/phone by hand in a shell while driving.

Flight406 ( 2018-07-20 21:59:16 +0200 )edit

FYI: Sailfish X 3.0.1.11 (Sipoonkorpi) no much change - I even do not try with the car anymore ... I gave up. BT is not working reliably even with my Linux PC in A2DP mode.

Let us hope this will change in future.

deloptes ( 2019-02-06 23:40:07 +0200 )edit

Question tools

Follow
4 followers

Stats

Asked: 2017-11-12 00:07:10 +0200

Seen: 1,249 times

Last updated: Dec 04 '17