Bluetooth question for Devs - Nexus One Android Development

Is it possible to put the old android 1.6 bluetooth control into a nexus ROM?
My G1 worked great with my car's built in bluetooth system, but my N1 wants to be a PITA. It refuses to stay connected, it is constantly disconnecting and reconnecting, disconnects after about 30 seconds and reconnects a couple minutes later and then repeats this cycle. (I know this because my car tells me audibly every time this happens) It also will not transfer audio to the system, or the system voice controls will not answer or start calls even when the phone and system show connected (the brief times that it does show connected). That fact makes me wonder if the bluetooth audio problems others complain about is the same issue I am having, and that their phones are not connecting properly as well. I think the issue may be caused by how the N1 treats phonebook access. With the G1 I would get a "connection complete" message when the bluetooth connects and a "transfer complete" message when the phonebook access completes. I never receive the transfer complete message for the N1
The real crazy thing is that I can get it to work if:
I do not have the phones bluetooth turned on
I then get into the car and start the car (its bluetooth then turns on)
I then turn on the phones bluetooth (if the phone does not connect to the system immediately I click connect manually)
I then must make a phone call within just a few seconds after the phone connects
After that everything works as expected. I have found no other combination of turning on or off bluetooth on the phone or car system that also works.

I was having problems with my car audio as well, until I updated to Cyanogen's latest. Everything seems to be working quite well now. What ROM are you using???

Stock ATM. The N1 is good enough stock (as opposed to the G1) but for the lack of free tethering. I'm sure it can be even better though. Staying connected to my cars system seems to be my biggest issue, audio works great when I get it to connect properly.

if got the same issue on my parrot.
but the problem still persists on the latest cyanogen mod

Yeah, I don't know what it is that is different in 2.1, but 1.6 works great with bluetooth.

I don't guess its possable to do, I hope an official fix comes soon.

Related

BT GPS feature on a BT HEADSET.

i have a BT-Q818 and one cool feature it has is that it goes on stand by mode once there is no connection. this is the case when i step out of the car. and whenever i start driving again, i seem to have had no pairing issue.
question is, is this FEATURE available on any BLUETOOTH HEADSET? reason being is that i only use my BT HEADSET when i drive and im getting tired with my current HS810 where its a hit and miss. sometimes it would pair and sometimes it would not.
thanks for any input guys.
Upon disconnection, the Nokia HS12-w displays "disconnected". Pressing the play button for a couple of seconds causes it to reconnect (I suspect to the last device it was connected with, but am not sure about that - I can test it if you like).
But even if you switch it off and back on, there is no need to pair again: it just starts searching for paired devices and connects with one of them (alas, no choice regarding what device it connects with, but it does seem to prefer Nokia devices over HTC ones).
The first connection it makes is as a headset (only calls are routed throught it, other sounds still come from the HTC). After pressing another button it also connect as an A2DP device and all sounds from the HTC are routed to it.
Jörg

bluetooth not auto pairing

I have managed to pair my phone with my parrot hands free unit in the car. How ever it will not remember the pairing, and each time I step into the car I must manually pair, any ideas?
hmm... from past experiences from SGS1 and SNS
they are bound to automatically re-connect to my car for BT audio streaming, i use it practically everyday
that being said, the experience is the same with past old phones like Treo and Windows phones, although those had some minor annoyances. similar to what you have just described specially the windows phones.
so, it might be possible the SGS2 BT audio profile might not be fully compatible with your car BT receiver.
does it automatically pickup phone calls using the BT headset (handsfree) profile ?
Same here too! Sometimes with my Motorola S7HD or my Sony car stereo x.x
I'd have to go to Settings -> Wireless network -> Bluetooth and manually pair them myself. Ugh.
Any fix for this guys?
I know it sounds silly but after pairing are you accepting the notification to always allow it to pair?
krabman said:
I know it sounds silly but after pairing are you accepting the notification to always allow it to pair?
Click to expand...
Click to collapse
I have this problem with my landrover bluetooth, (I have to pair each time I use the car) However I have never seen a notification to 'always allow it to pair' am I doing something wrong? or is there a setting somewhere that I have missed.
Tom
In my case the problem is not actual pairing. I have a Pioneer bluetooth car stereo. It has been paired but for it to see the S2, the phone must be made visible each time. Despite being paired it still needs to be made visible.
Despite extensive searches, I have never found a way to make it permanently visible. There is a silly timer which turns off visibility after 120 seconds.
Previously, with my old Windows 6 and even Windows 5 phone, I used to just go into my car and go - no fiddling with phones - never even took it out of my pocket. Now I need to make it visible each time and this really bugs me.
Don't tell me it is more secure - that's my choice and should not be Android's choice.
Mahniex said:
In my case the problem is not actual pairing. I have a Pioneer bluetooth car stereo. It has been paired but for it to see the S2, the phone must be made visible each time. Despite being paired it still needs to be made visible.
Despite extensive searches, I have never found a way to make it permanently visible. There is a silly timer which turns off visibility after 120 seconds.
Previously, with my old Windows 6 and even Windows 5 phone, I used to just go into my car and go - no fiddling with phones - never even took it out of my pocket. Now I need to make it visible each time and this really bugs me.
Don't tell me it is more secure - that's my choice and should not be Android's choice.
Click to expand...
Click to collapse
have you tried editing the /system/etc/bluetooth/main.conf file
there is a line
#how long to stay discoverable mode before going back to non-discoverable
#The value is in seconds, (0=stay pairable forever)
DiscoverableTimeout =120
Needless to say try it at your own risk, you will probably need a rooted phone and something like root explorer to edit the file.
Hope this helps
Tom
I too have the same problem. My Philips SHB1400 does not get auto paired. I have manually pair it when ever I want to make a call. Never had this problem with same BT Headset and Nokia 5800
frogfoot said:
have you tried editing the /system/etc/bluetooth/main.conf file
there is a line
#how long to stay discoverable mode before going back to non-discoverable
#The value is in seconds, (0=stay pairable forever)
DiscoverableTimeout =120
Hope this helps
Tom
Click to expand...
Click to collapse
I tried that but I am afraid it doesn't work. I think other people have also tried it in other threads and it does not work either. The timer stays at 120 secs
has anyone tried playing with the blacklist file in the above directory? I tried renaming it and rebooting but it made no difference for me, but my Landrover is not specificaly blacklisted.
Pairing bluetooth with Caddy SRX.... NOT....
I downloaded the Bluetooth File Transfer app and that worked for awhile ... off and on ...... but hasn't worked for two weeks now. I've been to Cadillac - I've been to ATT store - everything is checked correctly that needs to be. This has been ongoing issue for a year now. Any other new updates about this problem ?
Thanks.
I do not get the 'notification to always allow it to pair' on some devices but do on others.
Anyone know why?
I am trying to pair a Uniden cordless phone and keep getting the pin request every time I connect.
While on my car I do get the always allow pair request and everything is fine.

[Q] Bluetooth auto connect

I can't see any option anywhere in my SGS2 to set a BT paired device as "authorized". Every time I enter in my car I've to manually select the BT device and start manually the connection.
I searched in the forum but didn't find answers.
I also tried to look at the filesystem and I found auto_pairing.conf file in which there are a lot of BT manufacturer brands listed in sections like "black list", "white list", .... Is it possible I need to manually modify this file to include my BT manufacturer in the white list section? It sounds really strange!
Is there any other way?
I'd love to know that as well.
I atlculay lvoe my sumnasg glxaay s2 wtih VliaRionlm mroe tahn my xobx
Update
I manually modified auto_pairing.conf file adding my car BT manufacturer without any success (I added it in white list with the name already mentioned in the file, so I think that's not a problem of brand name).
My SGS2 continue to ask me to manually select the device to connect to, even if only one BT device is available (car handsfree).
I have the same problem, which i didn't have with my Nexus One running Cynogenmod ROM. I keep my Bluetooth on all the time or most of the time and i would like (like i had in nexus one) when i turn on my car (with Sony MEX-BT3700U car stereo with Bluetooth) that the phone auto-connects with the stereo in a minute or less (or with my plantronics headset when i turn it on), but no, every time i have to go into bluetooth settings and connect on the paired device and then it's connected.
I heard about few application that could help but it would be nice to have it as native function on the phone. I haven't tried these apps yet but if anyone want's to try they can be downloaded from the market, firs is free, the second is not.
https://market.android.com/details?id=a2dp.Vol&feature=search_result
https://market.android.com/details?id=com.btautoconnect&feature=search_result
If anyone can help it would be greatly appreciated
I don't have this problem at all, on any ROM I've tried stock or not. Is your stereo also set up to auto-connect? And is it your phone or your stereo that's refusing the auto connection?
mudferret said:
I don't have this problem at all, on any ROM I've tried stock or not. Is your stereo also set up to auto-connect? And is it your phone or your stereo that's refusing the auto connection?
Click to expand...
Click to collapse
Stereo doesn't have any options, same as Plantronics headset (only ON or OFF), that means that with my old nexus one running CM (or Nokia n95 8GB) when the bluetooth is switched ON and i come near stereo or headset they connect automatically in about 30 seconds max, with my SGS 2 that doesn't happen, i tried everything but it wont auto-connect until i initiate the connection from phone manually.
I have to resolve this because it's killing me !
jartukovic said:
Stereo doesn't have any options
Click to expand...
Click to collapse
I wonder if that's the issue; IIRC it's my stereo that I've told to connect automatically rather than my phone. I'll verify on my commute home today.
Mine auto connects to my JVC car head unit, but doesn't to my Belkin Tunestage. No idea why. As it happens, this suits me but it'd be nice to be able to control it.
And the commute begins. The auto connection is an option on my JVC deck, no such option on the phone.
Sent from my GT-I9100 using XDA App
mudferret said:
I wonder if that's the issue; IIRC it's my stereo that I've told to connect automatically rather than my phone. I'll verify on my commute home today.
Click to expand...
Click to collapse
The stereo is recognized same as Plantronics and that is as a head set, but it doesn't want to automatically connect to either of them, every time i have to initiate the connection. There is one way to connect it (partially automatically ) but that's not the solution - i have to turn on the bluetooth on my phone before starting my car, then when phone is in searching mode if the car is started (stereo turned on) then it will connect automatically, if the search mode (that is active for a short time after turning the bluetooth) ended before i start the car (for instance if i keep my bluetooth on all the time on my phone) then it wont connect automatically.
Am i any clearer about my problem ?
I hear what you're saying but it appears that auto connection is initiated by my stereo. If I turn auto connect off on my stereo there is no connection until I tell my phone to connect. I don't see anything on the gsii settings to have the phone auto initiate the connection. I have a recent JVC deck fwiw.
Sent from my GT-I9100 using XDA App
I will check one more time is there any bluetooth settings on my car stereo, but i'm 90% sure that it doesn't have, because this is the first phone that doesn't connect automatically.
I have had similar issues with mine, it will pair with my Kenwood DNX520VBT but wont auto connect.
however i now have a workaround
Turn bluetooth on your GS2 first, then turn on you Radio. once my Radio boots up it initiates the connection and auto connect works.
if i turn on the bluetooth on my GS2 after my radio it never works.
ive got a sony bt3700 stereo, it connected perfectly with my samsung wave, i just upgraded to a galaxy s and i have to do it manually every time so its not the stereo.
Same thing happened to me, old nexus one with CM7 is connecting ok but i have to connect SGS2 manually or make sure that my bluetooth is ON on my phone before i start the car.
I may have the answer......
Hi,
I have a sort of work around.
My Pioneer head unit refuses to auto connect to my SGS2 and I have to do it manually (I connect from the radio in 4 clicks but thats not the point). This was driving me nuts as previous handsets I owned connected within 5 seconds of being in the car.
I then discovered ROMS and went for the Criskelo ROM and it put me on Android Version 2.3.6 (Not sure if that made a difference or its actually the ROM).
Now with that sorted I found that I have an extra function in my bluetooth settings. When I make the device visible I can then choose the visible time-out length. If I set this to NEVER then I have no problems connecting to the headunit everytime I get in my car.
The only problem I have with this is that I pop my phone into Airplane Mode each night and because that disables the bluetooth it loses the time-out setting so I have to put the time-out back to never each morning.
With setting the time-out to never I'm not sure what battery drain is like because I'm constantly on my phone and my battery depletes rapidly anyway but it seems like a fix for now.
I hope this makes sense and helps people out until a proper fix becomes available.
Cheers,
DJ Sploits
Hi All,
Sorry for bumping an old-ish thread, but it seemed the most appropriate thread, and better than creating a new one of the same topic!
This is what I believe to be true:
*IF* Bluetooth is enabled on the GS2 (and the phone has previously been paired with the car headunit) then when the car is turned on, it will auto-connect to the GS2
*IF* Bluetooth is NOT enabled on the GS2 (and the phone has previously been paired with the car headunit) then when the car is turned on, it will NOT connect to the GS2 (understandably!).
*IF* the phone has previously been paired with the car headunit, and the bluetooth on the GS2 is enabled *AFTER* the car has been started, it does NOT Auto-Connect.
From this, I assume that when the car is powered on, it searches for previously paired handsets in order of most recently connected first. If it finds one, then it WILL connect.
Now:
If I leave Bluetooth enabled on my phone, the battery is significantly depleted my mid-afternoon.
I've started using an app which uses the "rough location" (not GPS) to monitor where the phone is located. If it deemed to have moved in X period of time, then it enables bluetooth.
This is great, and works a charm ... BUT it does mean that bluetooth stack on the GS2 is enabled AFTER the car has been moving for a period of time, and thus does NOT auto-connect.
What I've been searching for is:
"When BT stack is enabled on GS2, can it look for previously paired devices and initiate the connection itself?" (Rather than the car connecting to it?) Is there a script or app to do this?
Hi WTFH,
I think it might be more headunit specific. I always have my bluetooth on but it wont connect automatically to my headunit unless I have it set to constantly discoverable (on the handset).
I also use a power saving program called Green Power Premium which will cut bluetooth/data/wifi after a certain amount of time when the phone is in a sleep state. Its great fro saving power as my phone isnt constantly looking for a wifi signal (I don';t use it to control my bluetooth though as I need it on for my car).
Hey DJ_sploits,
Thanks for that ... Yes, I understand that some headsets do not auto-connect to the GS2 if the phone is NOT visible.
But what does seem to be constant is that the GS2 will not auto-connect to any of the headsets if the bluetooth stack on the GS2 is enabled AFTER the headset has come online and available.
One workaround I'm thinking of is:
Enabling a profile which says "When connected to a power source (I'll have to use the power adaptor) then enable bluetooth". Connecting my phone to the power first before starting the car should enable the BT stack before the headset tries to connect.
In fact I could extend this to say "Only enable bluetooth when using power adaptor, and not connected to wifi".
It's still a pain to do this though, as I tend to just jump into the car and don't want to faff about with connecting this and that.
The only other work around I use is to set the visiblity to constant (depending on what android software version you are on). My headunit always picks the phone up if I have it setup like this. the only thing with that is it will eat the battery even more (which is annoying considering there are other phones out there that constantly have their bluetooth on and you never see the battery getting hammered).
The only flaw I can see in your method is the fact you need a power source to knock on the bluetooth. Great for powersaving but it would then mean you would have to remember to connect it to a car charger everytime you got in the car (not too bad if you have it constantly plugged in to the cigarette lighter) and as you set this can be a bit of a faff.
The only way I can see in sorting this is using a power saving app but having your visibilty constantly on for the bluetooth and then we just hope it doesnt eat the battery too much (not to bad for me as I have a charger at work but could be a pain for others). The only problem with this (apart from the battery issue) is that if you knock the bluetooth off or knock the phone to airplane mode (as I do at nights) then when you knock the bluetooth back on it forgets that you want it to be constantly visible so you have to go through the settings and check the box

[Q] Bluetooth Headset not pairing ICS LPQ

So my Jawbone Prime was connecting fine before I updated to ICS LPQ (was on GB LA4 before) and now it doesn't even show up on the devices list even when I try to re-pair or reset the headset.
I tried 2 different sets to no avail.
Anyone know of a solution?
Connects to A2DP BT Headset (Motorola) but only allows media audio to connect. Phone audio doesnt stick.
ICS has some compatibility issues with certain bluetooth devices.
GB my phone always paired with my car stereo and streamed music without any issues.
So far every ICS release, even official, has caused my phone to reboot after streaming music over BT for 10+ minutes.
Its pretty sad they dropped the ball here. GB worked fine, and they borked it.
Well I can connect my BT keyboard fine. I just tried my Motorola BT earphones which are A2DP and it connects but won't allow phone audio to go through the BT earphones. However Media does go through. At least it detects it.
It doesn't detect it at all on the Jawbone Prime (which is not A2DP).
Update:
I managed to connect my jawbone and actually have 2 phone calls on it. After that I had the phone in my pocket and when I checked maybe 15mins later it had frozen and I had to keep power pressed to shutdown/reboot.
It kind of matches Chakker3D's pattern of working then not working. It's like there's a memory leak in the bluetooth stack? maybe I'm just spitballing here.
What I know is that in GB whenever I deactivated BT it took a good 20-25secs. In ICS it's instant to turn off or on. In GB however there was 0 issues.
I just really hope Samsung addresses it. Or if we are lucky, a dev will rework a rom so this problem is gone.
But from what I can tell, very few are having this problem.
Airbag888 said:
So my Jawbone Prime was connecting fine before I updated to ICS LPQ (was on GB LA4 before) and now it doesn't even show up on the devices list even when I try to re-pair or reset the headset.
I tried 2 different sets to no avail.
Anyone know of a solution?
Connects to A2DP BT Headset (Motorola) but only allows media audio to connect. Phone audio doesnt stick.
Click to expand...
Click to collapse
Sometimes is helps when you change kernel. Give a try
078gregory said:
Sometimes is helps when you change kernel. Give a try
Click to expand...
Click to collapse
Another update:
Without any intervention on my part other than keeping on trying it finally discovered my BT headpiece. In fact it discovered both.
Now it's still not 100% perfect because it discovers it, connects and immediately disconnects. If I press a button on the headpiece while it connects then it stays connected and it hasn't restarted/locked the phone yet. I even connected my 2nd headset (another Prime) and it worked.
Keeping fingers crossed. Now I need to see what happens when I walk out of range and back in range.

Bluetooth Issues on Ulefone Gemini Pro

Hey,
so a little less then a year ago i bought the Ulefone Gemini Pro on Gearbest. And for the first few months the Phone worked flawless... but then a few prloblems started to appear.
First the external SD card randomly wasnt detected which was quite annoying cause i installed a few apps on the card which i couldnt use until, for whatever reason the card was detected again, this could either be in a few minutes or like half an hour later. Now i just use the sdcard for storage and by this I "fixed" this issue...
Then my Headphone jack broke... like it only works if you bend the connector quite hard... so I switched to a Bluetooth headset which worked fine... until it didn't...
When I connect my Phone with any Bluetooth Speaker (i got the JBL Xtreme) or Headphones (currently using marshall MID) the phone randomly loses the connection.
So first I connect it, start spotify and the songs starts. Then after some time the music randomly stops for about a second and start again until the bluetooth signal on my phone says that there is no connection anymore. And if I let Bleutooth stay active after a minute or so in connects again but wont work properly: sometimes it says its connected but the phone is blasting the music out of its own speakers.
I tried everything i could find online: from the obvious ones like battery power, compatibility.... to the less obvious ones ( for me) like: turn off WIFI signal, Battery savings options, deleting the cache, location tracking...
what i think i noticed is when i open google maps with location on, it almost everytime start with those issues.
with other phones the speaker and headphones work flawlessly so it has to be my phone..
So my question would be what else could be the culprit of this error? is there some app that interferes with my bluetooth and how can i find it (for example i found out that location tracking if it set on extra exact uses WIFI bleutooth etc. and maybe thats interfering with the connection)
Or is there another soultion?
Or could it be a hardware problem with Ulefone Smartphones cause i read in two other posts that they also got bluetooth issues...
thanks for reading
hopefully someone knows how to fix this
Best wishes
paulolo

Categories

Resources