Menu

#51 Bluetooth support

Started
nobody
None
Medium
Task
2014-09-15
2010-06-14
Anonymous
No

Originally created by: Djonas2...@gmail.com
Originally owned by: r3gis...@gmail.com

What steps will reproduce the problem?
1.Pair and connect headset
2.Initiate a call with cSipSimple ( cSip Simple )
3.Press bluetooth button

What is the expected output? What do you see instead?

My bluetooth headset should take over the audio for the call.

What version of the product are you using? On what operating system?

Latest version as of this issue submission.

Please provide any additional information below.

Not sure if this is an enhancement request or what, but bluetooth should work seamlessly.

Related

Tickets: #1008
Tickets: #1034
Tickets: #1156
Tickets: #1256
Tickets: #1376
Tickets: #1477
Tickets: #1526
Tickets: #1534
Tickets: #164
Tickets: #177
Tickets: #1836
Tickets: #220
Tickets: #239
Tickets: #435
Tickets: #445
Tickets: #750
Tickets: #940
Tickets: #96

Discussion

<< < 1 2 3 4 5 6 > >> (Page 3 of 6)
  • Anonymous

    Anonymous - 2011-05-07

    Originally posted by: casou...@gmail.com

    Thanks for your response, Regis. Ok, I'll wait for [r832], then. Hope there is some progress there. Nevertheless, I'd like to tell you that I always install the nightly build as soon as I notice it has been released, but, unfortunately, bluetooth mic handling has never worked. Why Android can correctly pick the bluetooth microphone during phone calls, but not CSipSimple? By the way, my audio mode has always been set to normal. I've just played with it a little bit, but CSipSimple simply rebooted my phone (after hanging my phone for some time, first) after trying the audio test. So, no joy there.

     

    Related

    Commit: [r832]

  • Anonymous

    Anonymous - 2011-05-07

    Originally posted by: r3gis...@gmail.com

    The phone calls has absolutely no problem with that because it IS the phone app that manage Bluetooth connection.
    Third party apps has to ask the telephony app to share its own connection with the bluetooth SCO headset... and some manufacturer did crappy things there.

    Keep in mind, a third party application is not a core application. There is much more abstracted layer between a third party application and the core Telephony app. The core telephony app directly talk with the headset and establish raw connection with it.
    A third party app has to ask using the API (that finally ask the Telephony application as far as I can tell after reading the android source code), to stream its own audio to the connection that was established between the Telephony app and the headset.

    The audio layer in android is really not done to perform voip (start to be after android 2.3 cause google was needing it to provide their stock SIP application). But users has to be aware about that.
    Streaming audio for input/output is something that is not well supported by the android system before 2.3. Latency is high, I have to do hacks for each manufacturers to have the correct routing (and even for standard routing - earpiece - mic - spearker...).
    And that's just about the way each manufacturer implement things.
    So just imagine ... Bluetooth SCO that is managed by another app which is highly dependent of the GSM chipset...
    If where Bluetooth AD2P would have been by far easier cause this is managed at android OS level... but problem ... no micro on Bluetooth AD2P :S.

    So try to be indulgent with this kind of problem. I really do my best to support as much device as possible, but keep in mind that just not plug and record... That's plenty of hacks.

     
  • Anonymous

    Anonymous - 2011-05-07

    Originally posted by: casou...@gmail.com

    Hi Regis, really sorry if I've sounded harsh or impatient in my previous posts. I really didn't mean it. I do understand your point. And thousand thanks to you. You've been spending too much time and hard work to make CSipSimple such a fantastic application. I like it very, very much, and regardless this BT headset's mic noise issue, will keep installing each and every nightly build you release.

     
  • Anonymous

    Anonymous - 2011-05-07

    Originally posted by: r3gis...@gmail.com

    No problem don't worry, that was just to explain why this issue is still open and running :).
    And your feedback is really welcome.
    I always try to explain why things are going bad cause I think that an opensource software also has to learn things to its users ;). Besides I think that it's always less frustrating to understand why something does not work.

     
  • Anonymous

    Anonymous - 2011-05-08

    Originally posted by: casou...@gmail.com

    Small feedback after running [r836] nightly build on my Defy (Froyo UK 3.4.3-11 ROM): unfortunately, mic distorted voice issue is still there. Thanks, anyway. Wainting for your next release...

     

    Related

    Commit: [r836]

  • Anonymous

    Anonymous - 2011-05-08

    Originally posted by: casou...@gmail.com

    Hi Regis, voice distortion through BT headset's mic is still present in [r839]. Thanks for your efforts, anyway.

     

    Related

    Commit: [r839]

  • Anonymous

    Anonymous - 2011-05-09

    Originally posted by: casou...@gmail.com

    Hi, Regis, a little bit off-topic here, but, for the first time ever, I'm being offered to upgrade the nightly build by the market version. Should I proceed? Or, rather, should I uninstall the nightly build beforehand? Or, othewise, keep the nightly build?

     
  • Anonymous

    Anonymous - 2011-05-09

    Originally posted by: r3gis...@gmail.com

    @casou : ok :(. Do you know what kind of headset you own? Is it ad2p or pure sco only?

    About update, nightly and market version are compatible with each other (I sign with the same key). I think that downloading from the market should be equivalent that downloading from the nightly repo (unless google market does things in the middle). So you can try to upgrade to market version, the only risk is that it refuse to install ;).

     
  • Anonymous

    Anonymous - 2011-05-09

    Originally posted by: casou...@gmail.com

    Most of the time, I use a SE HBH-IS800 model, which is A2DP compatible. However, I only activate its A2DP feature in my Defy's BT settings when I want to listen to music. At the moment I tested CSipSimple through it, it was handling HFP/HSP only. By the way, I also tested with a monaural Cardo S800, but the results are the same, i.e. microphone distorts my voice.

    Thanks for your reply on the update process. You see, the market version being offered to be updated is 0.02-01, whereas [r839] is still 0.02-00.

     

    Related

    Commit: [r839]

  • Anonymous

    Anonymous - 2011-05-09

    Originally posted by: casou...@gmail.com

    Update: market version 0.02-01 still has the same problem with BT mic handling: voice it highly distorted.

     
  • Anonymous

    Anonymous - 2011-05-13

    Originally posted by: casou...@gmail.com

    With [r855], pattern of distortion seems to be different. Maybe you get some clue with this information...

     

    Related

    Commit: [r855]

  • Anonymous

    Anonymous - 2011-05-13

    Originally posted by: r3gis...@gmail.com

    Ok, would mean you have the "use mode api" activated for the Defy?
    You did it by changing the configuration or that's was the default setting?

     
  • Anonymous

    Anonymous - 2011-05-13

    Originally posted by: casou...@gmail.com

    No, both 'Mode audio API' and 'Routing API' are unticked. And my 'Audio Mode for SIP calls' is set to 'normal', as always. It's hard to explain, but my voice is just distorted slightly differently. It's pretty subjective, though. It might be a false alarm...

     
  • Anonymous

    Anonymous - 2011-05-26

    Originally posted by: sgn...@gmail.com

    with csipsimple market version 0.02-01.apk sometimes bluetooth is working sometimes not, but the bluetooth behavior seems unpredictable.
    I'm using an HTC desire with gingerbread 2.3.4
    anyway, marvellous app :)

     
  • Anonymous

    Anonymous - 2011-05-27

    Originally posted by: casou...@gmail.com

    Hi Regis, do you have any plans to touch the bluetooth stack (actually, the microphone part for the headset and handsfree profiles) anytime soon?

    Thanks for your efforts, anyway. Have a nice weekend!

     
  • Anonymous

    Anonymous - 2011-05-27

    Originally posted by: Djoneslo...@gmail.com

    I was wondering that as well. I think the BT stack was recently updated in the latest versions of CM as of last month and the month before. Im just kinda upset that they have kicked D/S users to the curb.

     
  • Anonymous

    Anonymous - 2011-05-31

    Originally posted by: paulblac...@gmail.com

    I have kind of a 'half way' solution with using the Bria app on my moto Ddefy.  It isn't ideal but the bluetooth will route the audio to the bluetooth speaker and the regular microphone on the phone will work as normal.  You have to shout but at least you can answer a call while driving.

    I think this works because Bria (rymes with inferior :-) doesnt have bluetooth support and the audio is simply hijacked by the bluetooth.

    I tried the same trick with csipsimple by turning bluetooth option button off.  The audio still routes to the speakers but the Mic now has not connection.

     
  • Anonymous

    Anonymous - 2011-05-31

    Originally posted by: r3gis...@gmail.com

    You have an A2DP bluetooth device?

    If so it would explain, what you observe : in fact when you use an AD2P device, nothing has to be done to route the audio.

    Unfortunately, since CSipSimple tries to do things to activate the SCO mode of your BT device (and grab the micro that is not available on AD2P).
    On AD2P quality should be by far better (obviously AD2P is stereo and 16kHz ;)... but has no micro capture feature ;) ).

    I could try to add an option to "do nothing with BT" so that it would run the same way than apps that does not try to support BT. (It was what was previously done by CSipSimple before BT was added ;) ... )

     
  • Anonymous

    Anonymous - 2011-05-31

    Originally posted by: casou...@gmail.com

    Please, implement that option, Regis. I think it might work, somehow. Will let you know , then...

     
  • Anonymous

    Anonymous - 2011-05-31

    Originally posted by: paulblac...@gmail.com

    Yeah that would be better than it is now.
    Ultimately it would be good to get BT working, of course, but this is a good alternative for now.

    Just a wee note though...With this method, the call, be it incomming or outgoing, will not silence your music or radio. You have to manually switch the car stereo to BT audio (as if you were playing MP3 for example) and then you get the audio.  But hey it works.

     
  • Anonymous

    Anonymous - 2011-06-06

    Originally posted by: paulblac...@gmail.com

    Ahh folks this is a bit embarrassing but I have my defy working on Bluetooth now!!
    Basically I deleted the Bluetooth pairing and recreated it and now i get 2 way audio no problem. The old paring was leftover from an earlier firmware (stock rom) and now running CM7.1

    I still need to manually switch my car stereo to "AUX" but that is no biggie.  Regular cell calls will mute the car stereo and switch to Bluetooth audio automatically, which is nice, but you just have to remember to do this manually when receiving a call on csipsimple.

    Thank you for your help and I hope my solution will work for others also.

     
  • Anonymous

    Anonymous - 2011-06-07

    Originally posted by: casou...@gmail.com

    Glad that it worked for you. It might be due to a different kernel in CM7. I'm running Froyo (UK 3.4.3-11 ROM), and, for me, the bluetooth microphone is highly distorted. I don't upgrade my Defy to CM7 (or, better yet, the newer leaked 4.5.1-112 ROM) because it has a green camera, and theses ROMs are buggy whilst taking pictures or shooting videos.

     
<< < 1 2 3 4 5 6 > >> (Page 3 of 6)

Log in to post a comment.