Problem with Bluetooth Stack after Android 4.1?? - Android Q&A, Help & Troubleshooting

For nearly a year we have not be able to upgrade our 1000+ Android devices operating with 4.1 Jellybean because the Bluetooth will not work properly. We recently discovered that this problem apparently began with Android version 4.2, coinciding with the change in the Bluetooth stack from BlueZ to Bluezoid. Here is the story: We use an Anoto digital pen with bluetooth and an app we developed, installed on an Android device (Kyocera Torque cell phone). After pairing the pen with the phone, individual transactions, written by the pen on paper are sent to the phone after a "send" box is checked. The phone then responds by activating its camera, pictures are taken then pen data and photos are sent to our server. This is the process which has been working flawlessly. The problem: After 4.1, the pen must be paired then the phone restarted. The "send" box must be checked twice before phone responds. After 8 sends, the process reverts to the correct process and remains until 20 total "sends" upon which the bluetooth function stops. The phone must be restarted. The pattern repeats. We have tested this on a variety of devices using Android 4.2 all the way to Marshmallow, all with the same results.
Please respond if you have some ideas which might help. We're hoping to find some work-around which does not require a major code re-write etc.

Related

Debugging Galaxy s2 Bluetooth problem

Hi,
I know many have problems with Bluetooth and certain car kits. I specifically have a VW. In any case, my Galaxy disconnects from not only my car, but also from my Philips in home audio system. In both cases, the disconnect is the same. What happens in both cases is the Bluetooth pair is lost. If I try to turn off and then on the Bluetooth (on the phone) to reset the pair the Bluetooth light never fully turns on. It stays a dim green. To get it to work I have to restart the phone.
I wrote a script to collect the Bluetooth logs, and programmed it to start logging whenever Buetooth is connected. Attached is my log. notice that around 7:56 the probem occurred. I was in a call on my galaxy s2 connected to my vw tiguan, and the hands free audio stopped. I was able to pick up the phone and switch from hands free to the speaker (on the phone) to resume the call.
Around 8:19, I think, I turned off the Bluetooth on the phone, and then tried to to turn on it again. But,it did not fully turn on. The green Bluetooth light is dim rather then bright. The only way I can restart the Bluetooth is to reboot the phone.
There are exceptions thrown that I am going to look at.
Have any thoughts?
Thanks!
I am running the stock rom that I downloaded from Kies. The Android version is 4.1.2
Logs:
1. S2 paired with VW Tiguan (7:56, 8:19 approx) https://www.dropbox.com/s/hd809geb4hoxvrr/btlog.txt
2. S2 paired with Philips AS351 (Time 21:02-21:06 approx) https://www.dropbox.com/s/6w7je0xrdcn7kiy/20130916_902-906btlog.txt
Follow-up
I have spent quite a bit of time over the past few weeks testing different Android versions, testing Bluetooth Keepalive, speaking to other developers, logging errors and debugging, installing different versions of Cyanogenmod, and speaking to Samsung.
In short here is what I have found:
1. The problem still exists in the stock rom that is downloaded from Kies with Android version 4.1.2.
2. Problem was still encountered, and potentially worse, on Cyanogenmod 10.1 with Android 4.2. (Problem happened more frequently)
3. Still testing with Cyanogenmod 10.2 with Android 4.3, and so far I have NOT had any issue.
4. I have had mixed results with Bluetooth Keepalive, but have been in contact with the developer.
I spoke with Samsung yesterday as well as last month. I requested a call from a developer, but they would not allow. They said they would connect me to the next level of support, but I would have to wait on hold for an hour. Oddly enough, I did not want to or have time to wait an hour. However, over the coming days I am going to contact Samsung using a more direct method in hopes of speaking to a developer. The tech guy I talked to seemed to indicate that it was his position that it was a 3rd party issue, and I should contact my auto manufacturer. I explained to him that this problem happens across multiple auto manufacturers, and the one common theme is the Galaxy phone. In addition, my auto manufacturer has replaced everything Bluetooth related, and has had no issue testing with other phone models. The Samsung rep also said, and I agree, that sending the phone into Samsung for repair would be worthless.
Short of rooting your phone and installing CM 10.2 with Android 4.3 the problem still exists. Again, I am still testing with CM 10.2, and look forward to speaking with Samsung again.

Crane 3g N708 Chinese 2 DIN Car Audio WinCE6+Android 4.x.x

Hi All,
I have purchased a 2 DIN Chinese Car Audio System from Chinavision which runs on two OS's. WinCE and Android 4.0.4. The WINCE Partition apparently runs hardware for Bluetooth Handsfree calling etc, USB port for external USB memory/storage (media), 1 x micro SD crd marked on the box as GPS (to store the GPS maps due to internal memory size limitations (4Gb standard with 8Gb upgrade by manufacturer), DTV, analogue radio, 1 x USB that when hubbed will connect to ext drives usb memory sticks while also being read and utilised for wifi dongle/3g dongle (controlled by android OS). The WinCE UI is uite poor with clumsy controls and limited user interface actions.
The Android OS is a little better however seems quite unstable. often hanging and freezing, loss of data from storage, app remnants following uninstalling apps. This OS controls, USB media access, 1 x SC card, 3G and Wifi (though not phone use on 3g as it always freezes and required a hard power down (disconnection of batters/power).
For one or two posts I can see there are others here that have such systems and serge/Gibroid is mentions however I don't seem to be able to get contact..
My questions/goals are to replace the systems android firmware with a smoother running, more stable build of ROM whilst keeping the original functionality (at least) and maybe (if possible) to add the functionality that is missing within the android OS.. such as Bluetooth access, phone access for calls etc..
Also, if at all possible, to upgrade/replace the WinCE OS with a more user friendly version, with a better UI, and the functionality of the original if not better. Basically opening this system to its full potential.
Now, I have to say I am a noob and am not knowledgeable nor experienced at this sort of thing (I have flashed a few phones etc) so would need to know
1) where to get the firmwares
2) where to get the required installation software
3) how to install via sd card input/external storage input as the unit seems not to be able to be connected to a PC
4) how to do a complete system image backup and how to restore should it all go horribly wrong
and
5) step by step instructions on how to do it.. or if a user out there is local and can do it I'd come to you and get it done that way.. (and compensate for your time and expertise)
The system/car unit is liveable as it is (just) but it has the hardware in it that means it is capable of so much more.
Anyone out there that can help??
Cheers
Cheeks :silly:
I also have a N708 based stereo
cheekyleebo said:
Hi All,
I have purchased a 2 DIN Chinese Car Audio System from Chinavision which runs on two OS's. WinCE and Android 4.0.4. The WINCE Partition apparently runs hardware for Bluetooth Handsfree calling etc, USB port for external USB memory/storage (media), 1 x micro SD crd marked on the box as GPS (to store the GPS maps due to internal memory size limitations (4Gb standard with 8Gb upgrade by manufacturer), DTV, analogue radio, 1 x USB that when hubbed will connect to ext drives usb memory sticks while also being read and utilised for wifi dongle/3g dongle (controlled by android OS). The WinCE UI is uite poor with clumsy controls and limited user interface actions.
The Android OS is a little better however seems quite unstable. often hanging and freezing, loss of data from storage, app remnants following uninstalling apps. This OS controls, USB media access, 1 x SC card, 3G and Wifi (though not phone use on 3g as it always freezes and required a hard power down (disconnection of batters/power).
For one or two posts I can see there are others here that have such systems and serge/Gibroid is mentions however I don't seem to be able to get contact..
My questions/goals are to replace the systems android firmware with a smoother running, more stable build of ROM whilst keeping the original functionality (at least) and maybe (if possible) to add the functionality that is missing within the android OS.. such as Bluetooth access, phone access for calls etc..
Also, if at all possible, to upgrade/replace the WinCE OS with a more user friendly version, with a better UI, and the functionality of the original if not better. Basically opening this system to its full potential.
Now, I have to say I am a noob and am not knowledgeable nor experienced at this sort of thing (I have flashed a few phones etc) so would need to know
1) where to get the firmwares
2) where to get the required installation software
3) how to install via sd card input/external storage input as the unit seems not to be able to be connected to a PC
4) how to do a complete system image backup and how to restore should it all go horribly wrong
and
5) step by step instructions on how to do it.. or if a user out there is local and can do it I'd come to you and get it done that way.. (and compensate for your time and expertise)
The system/car unit is liveable as it is (just) but it has the hardware in it that means it is capable of so much more.
Anyone out there that can help??
Cheers
Cheeks :silly:
Click to expand...
Click to collapse
Hi,
My N708 also has the same issues, unfortunately I have not been able to use none of serg090909 images to improve my android system.
I have noticed that my system works better if I don't turn it off and on using the button on my stereo, I almost always reconnects fine if i just turn the car's key.
I have also discovered that the volume between the two systems is very different, if you play music, audio-books or use the Gps you will notice a huge difference in volume between the two systems... I'm using a volume booster to soften the difference.
I too am searching for something that can improve the WinCe side... it sucks... My bluetooth phone app is just useless! (I'm not able to synchronize any contacts).
You can go here (http://forum.xda-developers.com/showthread.php?t=2607632) to find out how to make an image of your system (at least of its android side).
Cheers
Norvati
Hi
I have the same system.
I am currently talking with the seller to try and sort the unfortunate bug I keep getting. The android part stops accepting touch screen input. Happens when I initially boot the system by switching the car on and will only clear if I power it down for 25 seconds then power up. The android side then reboots.
You can reinstall-initialize the android side by removing your key, holding the reset button down, inserting key and starting car while holding down the reset button, hold for 10 seconds, then release and turn on the stereo. When you go into the GPS/android side after that, you will be asked to calibrate the screen again and the android startup wizard begins.
I managed to get the Gibroid system running, so ask me any questions you have about doing that. It gives a much nicer, larger storage space android section, but I still suffer from the android side not accepting screen input when i start the car 50% of the time.
I agree the bluetooth functionality in the WINCE part is borderline criminal with no sorting of phone book. Would love to be able to tinker with it.
Gibroid install help
naivri said:
Hi
I have the same system.
I am currently talking with the seller to try and sort the unfortunate bug I keep getting. The android part stops accepting touch screen input. Happens when I initially boot the system by switching the car on and will only clear if I power it down for 25 seconds then power up. The android side then reboots.
You can reinstall-initialize the android side by removing your key, holding the reset button down, inserting key and starting car while holding down the reset button, hold for 10 seconds, then release and turn on the stereo. When you go into the GPS/android side after that, you will be asked to calibrate the screen again and the android startup wizard begins.
I managed to get the Gibroid system running, so ask me any questions you have about doing that. It gives a much nicer, larger storage space android section, but I still suffer from the android side not accepting screen input when i start the car 50% of the time.
I agree the bluetooth functionality in the WINCE part is borderline criminal with no sorting of phone book. Would love to be able to tinker with it.
Click to expand...
Click to collapse
Hi,
You say you were able to get the gibroid working on your system can you explain to me how and what you did? I use all the tools that are recommended apart from thelivesuit, It simply doesn't accept any of the gibroid img files available here and on 4PDA that I was able to find. The touch screen on my unit just binks (black on black). I also have tried maybe 5 different sd cards.
Thanks in advance for your help.
P.S. At the moment my system doesn't even work it just gets stuck on the android (word) screen.
Cheers
Norvati
Hi
I to would like to hear how you got gibroid to boot, as I to only gets black screen trying to boot.
Have tried with 4 different sd cards, 2 different sdcard to pc adapters without luck !
Regards Bo
same here
xdabca said:
Hi
I to would like to hear how you got gibroid to boot, as I to only gets black screen trying to boot.
Have tried with 4 different sd cards, 2 different sdcard to pc adapters without luck !
Regards Bo
Click to expand...
Click to collapse
Mine wont connect wifi. Says nothing about the hardware but is got the option to do it and the usb too. I have all the exact problems. Wish I knew what to do...
i am having a few issues too.
i tried serge images but it was very unstable and SO didnt run every times and when it did it its very laggy, screen blinks and others issuses.
on the native system its usualy to ask me for calibrate screen and restart all the SO to factory stage.
but now its stuck on android green logo screen. i already try to reset it but still on the same. can anyone help please?
arantes87 said:
i am having a few issues too.
i tried serge images but it was very unstable and SO didnt run every times and when it did it its very laggy, screen blinks and others issuses.
on the native system its usualy to ask me for calibrate screen and restart all the SO to factory stage.
but now its stuck on android green logo screen. i already try to reset it but still on the same. can anyone help please?
Click to expand...
Click to collapse
i have same problem stuck on Android loading screen how to hard rest with recovery mode ?
what is the combination for go to in recovery ?

Some BT devices can't pair with Android 5 but can with Android 4. Why?

How did Bluetooth pairing change between Android 4 and Android 5?
I have an older Casio G-Shock watch that does text notifications. I also have an HTC One M8.
On my previous phone, that ran Android 4.0.4, the watch worked fine. Also, when I first got this HTC One M8, it had Android 4, and the watch worked with it as well. However, after an upgrade to Android 5 on the phone, the watch no longer works and I cannot pair it any longer.
If I use the app provided by Casio, when I go to pair the watch/phone, it attempts some sort of automatic pairing, which times out. It never gives the option to enter a PIN. If I try to pair the devices using the phone itself, then it always returns a PIN error right away- it doesn't even prompt for a PIN. Yet I can pair the watch with no problem with other Android devices that are running Android 4.
Is there a way to force Android 5 to behave like its predecessor when it comes to pairing?
Thanks!

Any way to completely reset bluetooth on Oreo 8.1 w/o doing a factory reset?

I have a Galaxy Tab A 10.1 with stock Oreo. Not rooted (yet ) and probably going to put a custom ROM in soon.
I just bought an Innuevo Bluetooth keyboard (older - BT 3.0) and was able to pair it almost immediately. It worked fine, but when I went to use it again (after turning the keyboard off to save power), it wouldn't pair. I unpaired the keyboard on the tablet, and unfortunately the tablet's BT no longer detects the keyboard at all.
Have tried everything troubleshooting-wise: clear cache, reset network settings, off/on/scan a million times, different BT connection app... nothing. It simply doesn't see it.
My Windows 10 laptop was able to detect the keyboard and start the pairing, but crappy Windows 10 keep aborting the pair procedure (e.g., typing in the code) early. Then the keyboard also disappeared from the laptop's BT radar. (Event log has lot of BT low-power warnings in it so I'm thinking it's Windows being Windows.) The keyboard briefly appeared on the detection list but then disappeared after several unsuccessful pair attempts.
Any idea if there's a way I can totally nuke the BT (other than a factor reset) to see if it'll detect it again? Also wondering if using Lineage or a other AOSP/non-TW ROM would help.
Thank you!!!

Parrot MKi9200 with Galaxy S2

I've recently upgraded my ROM on my S2 i9100 phone from the standard 4.1.2 official to various unofficial ROMs. None of these allow me to use the hands-free features of the MKi9200 device. All of them will pair with the Parrot but the phone-book does not sync. Pressing the green button on the Parrot (which should allow you to voice dial) simply gives the message "phonebook is busy please wait".
I have reached out to Parrot without any joy to date even after 8 emails each way. My symptoms to them were along the following lines.
"1. The phone pairs with the MKi9200 still but still does not automatically connect when I get into the car.
2. After pairing the phone, the menu item “Bluetooth/paired phones” is still greyed out. It used to have my phone listed there before I upgraded. I guess that this is why the MKi does not automatically connect.
3. As noted above, I have to manually connect my phone now, whereas before I upgraded the smartphone Android version, it connected automatically. When it does connect, it says it is synchronising for a second or two.
4. I can dial a number using the “Phonebook” on the MKi device using the central knob and the menu system. I cannot use the green button as it always says the “phonebook is busy please wait”, even after 15 minutes.
5. When I finish a call, the iPod music does not restart automatically and I cannot start it manually using the “Play” button. The green play icon appears for a few seconds then goes away. I can play a track/playlist by selecting it from the menu system and the central knob.
6. I can play music from my iPod through the MKi9200 but when I press Pause, the red “pause” icon appears and the MKi “freezes”. I have to reboot the MKi to get it to work again.
7. I have tried various options for pairing the phone such as “force AT sync” but none have worked yet."
Any clues from anyone would be very welcome. I've had the Parrot for nearly 10 years and love it. I know it still o=works as I can pair an old phone (with my SIM card in it) and it works flawlessly. There is clearly something about unofficial ROMs that it doesn't like.
For info, I have always installed Micro GAPS or lower and have tried disabling bluetooth scanning and the software "Bluetooth File Transfer (Android)" by Medieval (versions 5.2 and the latest).
Parrot say the MKi9200 is not compatible with Android 8 but I have tried various other ROMs below that with no success.
Apologies if this post is in the wrong place but it seems to be an unofficial ROM thing to me. I feel there is something in these ROMs which is not compatible with my Parrot and was hoping someone would know what that was.

Categories

Resources