Ask / Submit

Dual-Sim, choose SIM for bluetooth HFP connection

asked 2017-10-08 10:58:24 +0200

pmelas gravatar image

updated 2017-10-17 14:35:31 +0200

DaveRo gravatar image

Is there anyway on a dual sim device, e.g. JollaC, to choose which SIM will be used over a bluetooth hands free connection, e.g. car?

edit retag flag offensive close delete

3 Answers

Sort by » oldest newest most voted

answered 2018-10-28 23:33:47 +0200

DaveRo gravatar image

Workaround here:

BT will connect to first-activated SIM. Require a PIN on SIM2 only, which should ensure that PIN1 connects first.

edit flag offensive delete publish link more



With the help of my auto-enter-pin script, you can automate the activation of SIMs in the order you wish at boot. This means you can use DaveRo's workaround while keeping a pin lock on SIM 1.

slowcyclist ( 2018-12-01 22:13:49 +0200 )edit

This workround does not, in fact, work - or not reliably, or not any more on my Jolla C Yesterday the car connected to SIM2 despite SIM1 having been activated first. On the previous occasion I had connected SIM2 to the car by disabling SIM1. Maybe it 'remembered' that.

DaveRo ( 2019-02-12 09:56:28 +0200 )edit

answered 2017-10-08 11:34:59 +0200

Dreej gravatar image

My car always uses SIM 1 as main SIM. But there is no way to select. you only can deactivate the SIM you dont want to use for the connection process. In that case SIM 2 is the main card for this ride.

edit flag offensive delete publish link more



In my case I use SIM1 for calls and texts, and SIM2 is for data, so I cannot disable second sim.

pmelas ( 2017-10-08 11:56:16 +0200 )edit

you can reactivate your data sim after the car is connected. connected sim will remain the activated one during the pairing process

Dreej ( 2017-10-11 02:54:57 +0200 )edit

For the first time ever the car connected to SIM2 - they're set to 'always ask' and people always ring me on SIM1. I think this might have been because I'd last used SIM2, which was unusual - I sent a service message.

I had to stop the car, deactivate SIM2, reconnect to the car, and reactivate SIM1.

An option - which SIM to pair - would be useful.

How do other phones do this?

DaveRo ( 2017-10-17 14:34:13 +0200 )edit

answered 2018-05-25 00:51:08 +0200

DaveRo gravatar image

updated 2018-05-25 09:48:37 +0200

I came accross this:
which suggests that Sony/Android has or had a similar problem - but at least you can choose. Any other experience?

An option in SFOS to select which SIM to use for HFP would be best, or just connect to SIM 1 always.

My VW seems to connect randomly to SIM 1 or 2 - at least I can't see a pattern. It should NOT use the one with the best signal - my main SIM (3UK) has the worst signal.

BTW - although this question is 'answered' the underlying feature request is not.

edit flag offensive delete publish link more


I use Sailfish X with bluez5. If you have bluez4 it might be different issue but if first is the case, perhaps look into bluetoothctl (if you are familiar with command line tools) there is more flexibility.

I don't have this same problem (single sim here), but I looked a lot into the HFT stuff and sometimes it helps to delete the .pulse or .config/pulse directory and reboot, so that it may recreate properly.

I then would tell pulse audio which is the source to connect to - I did it for A2DP, but should be similar for HFT. It looks like PA is picking whatever source available. It sounds like you have bluez5

good luck

deloptes ( 2018-05-25 01:09:04 +0200 )edit

Thanks. I'm very familiar with BT CLI tools (unfortunately - having struggled to get A2DP working on a BananaPi!). There's more to it than fiddling with pulseaudio, though. The sound might go through PA but the operator/signal/contacts obviously don't. But maybe it's possible to disable HFP on SIM 2. BT and pairing applies to the whole phone, though, not each SIM AFAIK.

Ideally the UI should be in the car, when you connect - or perhaps pair; it should ask which SIM to use. I wondered if anyone has a car that does that?

DaveRo ( 2018-05-25 09:41:56 +0200 )edit

On further investigation, SIM selection (as described in my link above) is probably part of Sim Access Profile (SAP). initial support for SIM Access Profile was added in BlueZ 4.91.

DaveRo ( 2018-05-25 11:56:12 +0200 )edit

Still not clear what bluez version you have. If it is bluez5 the HFT is in ofono. So those 3 must play together. It looks like ofono is offering HFT for second sim, because perhaps 2nd sim is discovered later.

Try disable/enable sim1 and see if it gets connected.

I don't know exactly how it works - you need to look into the code to get it right or track the behavior and ask for bug resolution.

I had to always do following on my PC to be able to get A2DP working from phone to pc

pactl list short
pactl load-module module-loopback source=bluez_source.xx_xx_xx_xx_xx_xx.a2dp_source sink=alsa_output.pci-0000_00_1b.0.analog-stereo


deloptes ( 2018-05-25 19:39:53 +0200 )edit
Login/Signup to Answer

Question tools



Asked: 2017-10-08 10:58:24 +0200

Seen: 627 times

Last updated: Oct 28 '18