SOLVED Bluetooth pairing - Nexus 7 Q&A, Help & Troubleshooting

I have a BT mouse and keyboard. I used to be able to get them both to pair. Now, only the keyboard will pair.
If I delete all paired devices, and re-boot, and then try to pair the mouse, I get a 'blue tooth keyboard disconnected' message, but no success with the mouse.
My hypothesis is that there is a file somewhere in the system, that stores details of previously paired devices, which has become corrupt. If I could delete or edit it, I may be able to fix the problem.
Does anyone know where this file would be, or have an alternative idea?
l'd previously raised this in a mouse-specific thread. but it strikes me as a potentially more general issue, hence the new thread.
tia
Nick
Sent from my Nexus 7 using xda app-developers app

Re: Bluetooth pairing
If no-one knows the actual answer, does anyone know where I can find definitive information on BT functions, data stores and architecture in android? I have tried searching.
thanks
Nick
Sent from my Nexus 7 using xda app-developers app

netwizuk said:
If no-one knows the actual answer, does anyone know where I can find definitive information on BT functions, data stores and architecture in android? I have tried searching.
thanks
Nick
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
/data/misc/bluedroid/ perhaps?
not sure, but I see an .xml file in there that has info about devices that I've paired.

Re: Bluetooth pairing
bftb0 said:
/data/misc/bluedroid/ perhaps?
not sure, but I see an .xml file in there that has info about devices that I've paired.
Click to expand...
Click to collapse
Thanks very much for the suggestion. I tried renarning/deleting those files, but when I turned BT on they were automatically re-created, so the master is obviously elsewhere, although I didn't actually try to re-pair at this point.
There are some configuration files in /etc/bluetooth which are also in /system/etc/bluetooth
I then found /data/data/.com.android.bluetooth/databases. I deleted the files here, and the pairing worked, re-creating the files. Something of a relief as it was driving me crazy.
Sent from my Nexus 7 using xda app-developers app

netwizuk said:
Thanks very much for the suggestion. I tried renarning/deleting those files, but when I turned BT on they were automatically re-created, so the master is obviously elsewhere, although I didn't actually try to re-pair at this point.
There are some configuration files in /etc/bluetooth which are also in /system/etc/bluetooth
I then found /data/data/.com.android.bluetooth/databases. I deleted the files here, and the pairing worked, re-creating the files. Something of a relief as it was driving me crazy.
Click to expand...
Click to collapse
Good thing you got it worked out. Looks like the best person to put on the case was you
But yeah, it had to have been in /data somewhere - /system is mounted read-only.
OT a little bit - I bought a sort of chintzy BT keyboard (RockSoul BK101) some time back, and it seems to "time out" fairly rapidly... after 2-3 minutes of inactivity or so. Even though the N7 shows it as paired, I can't just turn it on/off to get it to connect - I need to re-pair it every time I lose connection with it. Does your BT kbd behave similarly, or have I just got a POS kbd?

bftb0 said:
OT a little bit - I bought a sort of chintzy BT keyboard (RockSoul BK101) some time back, and it seems to "time out" fairly rapidly... after 2-3 minutes of inactivity or so. Even though the N7 shows it as paired, I can't just turn it on/off to get it to connect - I need to re-pair it every time I lose connection with it. Does your BT kbd behave similarly, or have I just got a POS kbd?
Click to expand...
Click to collapse
There's an app called Bluetooth Keepalive that may help with that. You might also find external keyboard helper useful, as you can re-allocate functions to keys, set detection and key press rates etc
Nick
Sent from my Nexus 7 using xda app-developers app

Related

[Q] switching a2dp and handsfree profile from homemade app?

Dear XDA folks,
a bit of a story about what the problem is exactly, and how I want to fix it:
I'm a happy owner of an HTC desire with froyo on it, which works like a charm.
There's one small problem though, my car stereo seems to be a bit picky when connecting.
My bluetooth is on, I start the car, and the phone tells me it has connected to a headset, the stereo tells me nothing is connected.
Same happens with the A2DP function, phone says it is connected, stereo doesn't detect it.
After a bit of messing around with it, I found a way to work around this, after connecting, disable and enable the bluetooth profiles (called media and handsfree in android) once, and they both work like a charm.
----
What I want to do, is make an app which checks if the device is connected to the stereo (which shouldn't be much of a problem), and then switch both of the audio profiles off for a moment (one at a time) and then back on.
Problem is, how do I switch them from my app? I've been looking at the documentation for hours, but I can't seem to find out.
The bluetoothchat sample is a great start to build a BT program I think, but I'm pretty much stuck here.
Is there someone who can point me in the right direction?
Thanks in advance
Nobody? I succeeded with making an app that displays the paired devices (after a bit of borowing from the BTchat sample), so that pointed me in the right direction.
Still, I'm stuck with the problem of switching the profiles/services on and off, and I'm sure one of you can help me
Thanks
Hey I'm no expert but you may want to check out the app called tasker in the market, you could look into the app's codes cause from what I experienced, I see a state there that says 'if bluetooth connected...' Then you can add an event to trigger after that.it's an awesome automater app. Base the codes from there.
Sent from my FroyoEris using XDA App
xr4v3nx said:
Hey I'm no expert but you may want to check out the app called tasker in the market, you could look into the app's codes cause from what I experienced, I see a state there that says 'if bluetooth connected...' Then you can add an event to trigger after that.it's an awesome automater app. Base the codes from there.
Sent from my FroyoEris using XDA App
Click to expand...
Click to collapse
Great thanks for the idea, will try that right away.
Will let you know how it turned out.
-edit-
DARN can't find options to enable/disable a2dp and handsfree in tasker, maybe I'm missing it, but so far I don't think it is there.
Thanks for the suggestion though
Help?! Can't believe noone knows how to do this?
Heeeeeeelp! Still stuck with it

Bluetooth not connectig automatically to the car kit

Hi guys,
I have a very strange problem with my beloved note. After I get in the car and drive off I remember that I have to turn bluetooth on so it can connect to the hands free system. The thing is that it doesn't connect automatically, I have to go into the settings and tap the BT name in order to connect it. If on the other hand if I have BT already enabled on the phone before starting the car, it conmects automatically. With the first version of GB the Note had in November I didn't have this issue, but after the first update it started not to work. Now I am on official unrooted ICS 4.0.3. Never had this problem with any other phone.... Any help would be highly appreciated.
Thanks.
Sent from my GT-N7000 using XDA
Anyone?
Sent from my GT-N7000 using XDA
n.vasiliu said:
Hi guys,
I have a very strange problem with my beloved note. After I get in the car and drive off I remember that I have to turn bluetooth on so it can connect to the hands free system. The thing is that it doesn't connect automatically, I have to go into the settings and tap the BT name in order to connect it. If on the other hand if I have BT already enabled on the phone before starting the car, it conmects automatically. With the first version of GB the Note had in November I didn't have this issue, but after the first update it started not to work. Now I am on official unrooted ICS 4.0.3. Never had this problem with any other phone.... Any help would be highly appreciated.
Click to expand...
Click to collapse
You can try Automatic Bluetooth Toggle PRO (I think there is trial version on Google Play). I don't know if it will help you. If not then I'm sorry you will probably have to go back to GB. I'm still on GB as I was also having issues with bluetooth on stock ICS (CM9-based ROMs worked well though).
Thanks a lot. GB had the same annoying problem though :-(... so it's not that....
Sent from my GT-N7000 using xda app-developers app
Hi,
Did you allow the pairing automatically between the devices?
When you pair at installation, it isn't permanently (= automatic) yet. When you get in your car and pair for a second time, normally your phone asks you if you allow your hands free system to access your phone; at that moment you have to tick "don't ask me again" and "yes" for automatic paring.
You might want to disassociate the two and try a new setup (pairing).
To disassociate, stop the system in your car (that cuts the BT connection between the two), disassociate on the phone (push and hold your hands free system in the BT section of the phone and chose disassociate), reboot your phone (so it forgets your cars BT system) and start pairing all over again.
I would provoke the second connection so you get the "automatic" question to make it work.
Good luck :good:
I have the same problem with the original ICS rom.
Flashing a custom ICS rom fixes this problem.
I tried kingdroid (worked ok)
I tried Cyanogen (phone ok, no media audio over BT but connection OK).
I had a similar problem after upgrade with stock ICS through software update. I couldn't pair Note with Mercedes bluetooth. Galaxy Note recognized Mercedes BT & vice versa, but connection was impossible. I read every forum on internet but no help. Everybody was blaming Samsung and ICS. Some suggested resseting Note to factory default, others downloading bluetooth app etc.
Until...I finally figured out that something was confusing my car's BT, so I resseted car system, and the problem was solved.
Sent from my GT-N7000 using xda app-developers app
These is a twist with "old" BT systems and ICS: Old BT systems want you to insert a pin code, ICS wants you to to confirm a code that the BT system sends and that ICS shows on the screen.
It's obvious that that ICS on an old system can be a hassle.
A work around is to put the car in discover mode (so it shows the pin code) and then send a contact (or a picture) from the phone to the car system. As the car replies, your phone will show the possibility to insert the PIN Code.
After that your system should work.
At second connection make the pairing automatic (as I described above) and you're happy.
(This is not my discovery, I found this solution on the SE XPeria Ray forum as I had problems with my wifes phone )
Thaks a lot. I will try as soon as I get the chance and will let you guys know.
Sent from my GT-N7000 using xda app-developers app
So with the workaround mentioned above - it doesn't work. When turning on bt on the phone it won't automatically connect to the car.
Sent from my GT-N7000 using xda app-developers app
Try A2DP Volume on the market.
I have the same problem as you. I used a leaked ics rom on my galaxy s2 and also had the same problem we now have on our ics galaxy notes. My car's head unit is a 3 year old eclipse cd5030. For the last month ive just been manually pairing it every time. PITA. Ill try the workaround suggested earlier in this thread and let you know. Otherwise i think cyanogen mod rom may work.
Sent from my GT-N7000 using Tapatalk 2
Let me know. I am.not going through the trouble of putting anoyher ROM on the phone.just for that
Sent from my GT-N7000 using xda app-developers app
n.vasiliu said:
Let me know. I am.not going through the trouble of putting anoyher ROM on the phone.just for that
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
I had similar issues with Parrot 9200 kit in my car. Paired automatically under GB but on stock ICS wouldn't pair unprompted. Sometimes it would but only after minutes.
I'm on Paranoid Android 0.4 now which is CM9 based. It's better but often still slow to pair unprompted. Main improvement for me is that the phone doesn't carry on playing music through its own speaker, like it did on stock ICS, when I turn off the engine.
There is an app on the market called "Auto Connect 2.0", but it is only available for ICS and above Android versions
atiesfo the
i have same problem with my note, but with my Galaxy S1 works fine, when i upgrade the android to 4.0.4 solves the problem.

Pinless Bluetooth Pairing

Any ideas on how to get this thing to pair with a bluetooth device that doesn't have a pin? I get a request for a passkey/pin during pairing and the OK button is disabled until a character is entered. The normal defaults don't work (0000, ETC) since the device doesn't require a pin. It works perfectly with my Rezound running ViperRez, and Windows, etc.
Not sure you can. That's a security feature of BT. Even if you could somehow alter the BT stack on the tablet, the other device would still need a pin to finish pairing. I suspect the other device DOES have a pin, and you'll need to figure out what it is. If it is a popular device, surely someone else has done the research for you and you can find it online. I know I have a BT GPS unit that didn't use any default PIN that I knew and after scouring for this obscure device I found a similar one using the same chip set and discovered the PIN in the other device's manual.
Good luck.
Sent from my Nexus 7 using xda app-developers app
Thanks for the reply. I'll see if I can find a device with a similar chipset. It's a targus mouse and this nexus is the only thing that has ever asked for a pin, and the manual doesn't specify one and support verified this. ICS devices hadn't been asking for one either.
As a suggestion, the Motorola Elite Sliver can pair via NFC.
Sent from my Google Nexus 7 using Tapatalk 2
Necroreplying for posterity: bluetooth supports pinless pairing, but android doesn't. There's two android bugs for this, 26049 and 52549.

Q: Default bluetooth profiles

Previously i had an S3 that would automatically connect call audio and media to my 11 wrx. This worked perfectly as i listen to pandora on my way to and from work.
My new s4 only automatically connects the call audio and not media. I have to manually connect the media everytjme the car turns on.
Is there any way to change these defaults?
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
bluemax189 said:
Previously i had an S3 that would automatically connect call audio and media to my 11 wrx. This worked perfectly as i listen to pandora on my way to and from work.
My new s4 only automatically connects the call audio and not media. I have to manually connect the media everytjme the car turns on.
Is there any way to change these defaults?
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
Click to expand...
Click to collapse
I'm having similar issues. I cannot change the default profiles and the phone doesn't autoconnect at all. If I turn off the bluetooth and turn it on, the media will connect.
On my Galaxy Nexus I had no issues, both profile boxes were checked and the phone would connect to hpne and media as soon as I turned the car on.
This is frustrating because one of the primary uses for my phone is music in the car and I really love the way the bluetooth works with calls in the car.
^so any ideas on a fix?
bluemax189 said:
^so any ideas on a fix?
Click to expand...
Click to collapse
I have the opposite - connects to Media but not to phone
I also have a 2011 Subaru WRX and have difficulty with my SGS4 auto connecting. As stated by the original post, upon turning on my car, my phone connects the "phone" portion and not the "media." Any help would be appreciated as this is quite annoying. I was previously with an HTC DNA...which auto connected with ease in both aspects, yet didn't display song data. Now, my situation is reversed in a sense...haha....
subiescott77 said:
I also have a 2011 Subaru WRX and have difficulty with my SGS4 auto connecting. As stated by the original post, upon turning on my car, my phone connects the "phone" portion and not the "media." Any help would be appreciated as this is quite annoying. I was previously with an HTC DNA...which auto connected with ease in both aspects, yet didn't display song data. Now, my situation is reversed in a sense...haha....
Click to expand...
Click to collapse
Maybe the issue is actually with the car. I have a 2013 Subaru Legacy
I'm sure your setup is the same as mine but thought I'd share. I never touched the settings when I first paired the phone to my '12 civic.
bobbydsiu said:
I'm sure your setup is the same as mine but thought I'd share. I never touched the settings when I first paired the phone to my '12 civic.
Click to expand...
Click to collapse
I also have this but not automatically, I must manually pair first
subiescott77 said:
I also have a 2011 Subaru WRX and have difficulty with my SGS4 auto connecting. As stated by the original post, upon turning on my car, my phone connects the "phone" portion and not the "media." Any help would be appreciated as this is quite annoying. I was previously with an HTC DNA...which auto connected with ease in both aspects, yet didn't display song data. Now, my situation is reversed in a sense...haha....
Click to expand...
Click to collapse
Awesome another suby driver! I have a 12 sti.
Sorry I dont have a good answer for you other than the stock headunit is a pile. I pulled mine out a week after owning the car.
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
bobbydsiu said:
I'm sure your setup is the same as mine but thought I'd share. I never touched the settings when I first paired the phone to my '12 civic.
Click to expand...
Click to collapse
After manually connecting by hitting both those checkboxes repeatedly, it will eventually look like that.

Disable autoplay on bluetooth connection

Is there anyway to disable the autoplaying of music on my phone when it connects to the car bluetooth sound system? I like streaming music.... just not every time I get into the damn car!
loving the S4 otherwise!
Interesting. Mine does not do this.
Firedcylinder said:
Interesting. Mine does not do this.
Click to expand...
Click to collapse
Hmmm maybe its not the phone and its the Handsfree in the honda civic commanding it to play?
Hmm I'm actually interested in this as well. My old One X used to auto connect and auto play when I got in the car, but the S4 doesn't. It only auto connects to the phone, not A2DP like I want it to...
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
buddmann31 said:
Hmm I'm actually interested in this as well. My old One X used to auto connect and auto play when I got in the car, but the S4 doesn't. It only auto connects to the phone, not A2DP like I want it to...
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
Click to expand...
Click to collapse
Mine does do this though. It's annoying as $? #$. I have to go into settings and and manually connect media audio 99% of the time. It never does start playing automatically though.
Mine initially would do the autoplay but after I reset all the Bluetooth pairings for my car stereo the S4 then only paired phone audio and I also have to go in to manually pair media audio. Looks like I got the best of both worlds! My Galaxy Nexus and Tab 7.7 didn't do this, and neither did my iPhone. Annoying.
I actually had the same problems with my S2. I removed the android music player and used winamp to get around the autoplay annoyance. but on the S4 i actually like the stock player....I didn't want to remove it. It sounds like it seems to be dependant on the bluetooth device that its paired to. I was hoping for a missed setting... grrrr
Firedcylinder said:
Mine does do this though. It's annoying as $? #$. I have to go into settings and and manually connect media audio 99% of the time. It never does start playing automatically though.
Click to expand...
Click to collapse
I have the same problem. Hopefully an update will take care of it.
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
Please read forum rules before posting
Questions and help issues go in Q&A
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator
My phone is rooted, how would I disable this autoplay feature in android? There's got to be a file somewhere I can edit to fix this..
Its very annoying to always have poweramp auto play when I connect to bluetooth. (And Poweramp is set to NOT respond to bluetooth)
Has anyone figured out the root cause of this autoplay silliness?
hey guys, I had this issue as well, even tho on the phone side I "forgot" my car, my car still requested my phone every time I turned it on. but actually, nearly every stereo has some Bluetooth settings. my car didn't have an option to forget my phone, but it did have an option to switch "auto connect" off. look thru your stereos menu, you're likely to find what you're looking for.
Sent from my Galaxy Nexus using xda app-developers app

Categories

Resources