Related
I cannot pair my vehicle's headunit to a CM-powered device, starting with CM6 RC2. (RC1 worked as expected).
I would like to build the stock Android Bluetooth stack and replace that portion of CM with it, in an effort to see if it resolves this problem for me. I'm also curious how the new Bluetooth stack in Gingerbread will behave, as it's apparently received an overhaul.
Ultimately, I'd like provide a package so that CM users could easily "flash" a new BT stack if they're having problems with CM's modified version.
I'm a junior developer, and I have Ubuntu on my machine, as well as AOSP Gingerbread and CM6/7, all building correctly. However, I lack the knowledge (or even a starting point) on what I need to do to accomplish this.
Anyone willing to offer some advice?
Additionally, if anyone else out there is having problems, please post here--once I get this working, I'll need test candidates to see if it helps resolve their issues as well.
EDIT: Starting here. http://source.android.com/porting/bluetooth.html
Never had an issue with bluetooth and my vehicle or a couple of others while running CM 6.x or any of the nightly builds of cm6. Sometimes a kernal I flashed would break it, but otherwise it worked fine. I done this one both a alpine blue tooth module and factory ones.
What are you syncing to?
aduljr, the type of headunit I have is called "BlueConnect", and is built-in to my 2009 model year Hyundai Elantra. This is the manufacturer's website: http://www.autointelligence.com/
Like I said, it worked with CM6.0.0 RC1, but stopped working starting with RC2 and hasn't worked since.
So far I've started reading about the BlueZ stack, but haven't made more progress than simply reviewing some make files.
As always, if anyone has any pointers (or if anyone is also having BT-related problems), please post.
Thanks.
While you're working on the bluetooth stack, can you look into the lack of DUN/PAN support on the the Evo?
timwoj said:
While you're working on the bluetooth stack, can you look into the lack of DUN/PAN support on the the Evo?
Click to expand...
Click to collapse
I suppose I might as well--I'll have to delve into Bluetooth pretty deep I suppose, so I'll see what I can do.
What are you hoping to do with DUN/PAN support? Mobile networking/Ad-Hoc of some sort?
Shidell said:
I suppose I might as well--I'll have to delve into Bluetooth pretty deep I suppose, so I'll see what I can do.
What are you hoping to do with DUN/PAN support? Mobile networking/Ad-Hoc of some sort?
Click to expand...
Click to collapse
The Savage Team will help.
my suggestion is start a private google group, its a great way to collaborate with your team
have you tried updating to cm6.1 and trying with a stock kernel?
jsseidel1 said:
The Savage Team will help.
my suggestion is start a private google group, its a great way to collaborate with your team
Click to expand...
Click to collapse
Interesting, and appreciated. I'll look into a Google Group, although for now I'll work out of this thread unless this grows into a large project.
BrianDigital said:
have you tried updating to cm6.1 and trying with a stock kernel?
Click to expand...
Click to collapse
I have tried 6.1 with an alternative kernel (Kings) to no avail. Do you have a kernel you'd suggest I pair with 6.1 for testing purposes? I'm more than willing to do so for testing purposes.
Shidell said:
What are you hoping to do with DUN/PAN support? Mobile networking/Ad-Hoc of some sort?
Click to expand...
Click to collapse
Basically, I'd like to be able to tether my phone over BT. The Evo doesn't provide a DUN or PAN service that OS X can see (never tried windows), so things like Android-Wifi-Tether don't work in bluetooth mode.
does you phone work with any other bluetooth device?
aduljr said:
does you phone work with any other bluetooth device?
Click to expand...
Click to collapse
It works fine for other Bluetooth profiles (phonebook, etc) but it doesn't provide a PAN service at all. I haven't tried with the new AWT, but I don't hold much hope.
I've created an update package from CM6.0.0 RC1 with (what I believe to be) all the pertinent Bluetooth files. This will replace your current files when you run this update script.
I'm going to test this using a CM7 nightly, and wholly expect this to fail. This may actually work with CM6, however, but I'm testing CM7 first.
If anyone else tests this, please let me know your results.
Also, if anyone is more tuned in as to what needs to be done/fixed, please let me know that as well. I'm basically treading water in the middle of the pacific, hoping I find an island.
This is appreciated. I stopped using CM because they changed something with bluetooth that would cause my Motorola Rokr headphones to constantly cut in and out. I asked the question over at CM's forums but never received any help there. Before with RC6 the headphones worked flawlessly and I could actually ride my mountain bike on the trails and never have it cut out. Seems they have cut some power out to save battery or something but hey I'm no dev so who knows. Maybe in your quest to get better bluetooth you could figure out if the power can be turned up for those of us that just want a stronger connection.
BuddaBelly said:
This is appreciated. I stopped using CM because they changed something with bluetooth that would cause my Motorola Rokr headphones to constantly cut in and out. I asked the question over at CM's forums but never received any help there. Before with RC6 the headphones worked flawlessly and I could actually ride my mountain bike on the trails and never have it cut out. Seems they have cut some power out to save battery or something but hey I'm no dev so who knows. Maybe in your quest to get better bluetooth you could figure out if the power can be turned up for those of us that just want a stronger connection.
Click to expand...
Click to collapse
+1 I have this same problem. CM has a much weaker bluetooth connection than Sense ROMs. I would love to be able to flash something over CM7 to increase bluetooth reliability, even if it hurts battery life (you could always turn bluetooth off when you need to save battery).
Shidell said:
I've created an update package from CM6.0.0 RC1 with (what I believe to be) all the pertinent Bluetooth files. This will replace your current files when you run this update script.
I'm going to test this using a CM7 nightly, and wholly expect this to fail. This may actually work with CM6, however, but I'm testing CM7 first.
If anyone else tests this, please let me know your results.
Also, if anyone is more tuned in as to what needs to be done/fixed, please let me know that as well. I'm basically treading water in the middle of the pacific, hoping I find an island.
Click to expand...
Click to collapse
ill try this as i have the cutting out issue as well
When I've had problems with audio dropping in and out,it's because my wifi is on at the same time.
You can't have wifi and do a2dp at the same time. I've seen that around,so I think it's a known bug.
The whole reason I switched to cm was because the bitpool is set too low in all the sense roms. From my understanding, it should be set to something in the 50s or 60s (sorry, I haven't looked @ it in a few weeks) and sense roms have it set in the 30s resulting in a lot of high frequency distortion or clipping.
I'm not sure if that's helpful. ..but I wrote some stuff.
Sent from my PC36100 using XDA App
allroy1975 said:
When I've had problems with audio dropping in and out,it's because my wifi is on at the same time.
You can't have wifi and do a2dp at the same time. I've seen that around,so I think it's a known bug.
The whole reason I switched to cm was because the bitpool is set too low in all the sense roms. From my understanding, it should be set to something in the 50s or 60s (sorry, I haven't looked @ it in a few weeks) and sense roms have it set in the 30s resulting in a lot of high frequency distortion or clipping.
I'm not sure if that's helpful. ..but I wrote some stuff.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
my wifi is never on. and even when it is it doesnt do it on sense roms.
zikronix said:
my wifi is never on. and even when it is it doesnt do it on sense roms.
Click to expand...
Click to collapse
Yeah my wifi is not on when Im riding my bike. I do agree sence has a pretty crappy bluetooth stack but the early CM releases were amazing. I could ride even on a open road with no trees to bounce signals of off and never get a signal drop.
Sent from my PC36100 using XDA App
BuddaBelly said:
Yeah my wifi is not on when Im riding my bike. I do agree sence has a pretty crappy bluetooth stack but the early CM releases were amazing. I could ride even on a open road with no trees to bounce signals of off and never get a signal drop.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Well, wouldn't it be easier to look back into the git commits for the CM repository. And see what changed in the bluetooth files after 6.0.0? That way you should be able to drop in the older bluetooth stuff, and have it work. Then you can try to convert that stuff to work in CM7?
timwoj said:
It works fine for other Bluetooth profiles (phonebook, etc) but it doesn't provide a PAN service at all. I haven't tried with the new AWT, but I don't hold much hope.
Click to expand...
Click to collapse
If you use AWT and set it to Bluetooth mode and then turn it on, the PAN service will magically be created, but only while tethering is turned on. However, I still wasn't able to get Bluetooth tether to work because of some kind of IP address error in AWT. I think AWT wasn't able to set an IP address for the Bluetooth PAN adapter. My computer was able to see the Bluetooth PAN but wasn't able to pull an IP address to fully complete the connection.
I posted about this in the past my first g2x didnt work with it so i thought maybe it was messed up, i got a new g2x still doesnt work! thought maybe it was my bluetooth, got a new bluetooth still doesnt work! can anyone confirm this application is working with stock froyo? at my work im allowed to wear a bluetooth but cant have music blasting on my phone so this was perfect for me, it worked with my htc hd2 running android.......
Sadly no app that routes music to you're mono Bluetooth will work on the G2x. It for whatever reason requires stereo Bluetooth headphones to work. I bought supermono bt (or something to that effect), for my G2 which worked great. But none have worked on this one as of yet.
Sent from my LG-P999 using XDA App
I don't know about stock but I know the CM7 rom made some major changes to the bluetooth department. Their bluetooth stack seems to be a more common profiles vs the LG custom one.
My WiiMote app wouldn't work until I flashed CM7. I would try that before returning it again. It isn't damaged hardware but rather crappy software support. CM's kernel fixes most of those little annoyances.
So, after digging around for the last month both on XDA and on the Googlewebs, I've not come up with a good way to get a bluetooth keyboard to both pair and connect (As in can be used as an input device) with this particular phone.
So far, I've tried different ROM's from AOSP ROM's to SENSE versions without any luck. I've also tried different kernals that people said worked or said they were AOSP kernals (CM7, Talon, LorDmod). I've used Ninja, MIUI, and Leedroid for the different ROM's I've tried it on.
Currently I'm running MIUI, and have asked the question in the Q&A forum there without any luck at all. So I was hoping XDA as a general can point me in the right direction.
Thanks!
Anyone? There has to be someone with any idea of some way to get HID support with a keyboard on the Inspire.
Considering you're using a AOSP rom and kernel... have you tried using a near-stock ROM or at least a Sense ROM? Does it have the same issues?
And what keyboard are you using?
Drashna said:
Considering you're using a AOSP rom and kernel... have you tried using a near-stock ROM or at least a Sense ROM? Does it have the same issues?
And what keyboard are you using?
Click to expand...
Click to collapse
Hid Bluetooth isn't built in to stock or sense roms. It is supposed to be built in to cm7, but have never tried it. You may look into a Bluetooth keyboard that doesn't require hid, I read about it on these forums can't remember where, but it required dl-ing drivers on your phone and it worked.
Sent from my Inspire 4G using Tapatalk
Youngunn2008 said:
Hid Bluetooth isn't built in to stock or sense roms. It is supposed to be built in to cm7, but have never tried it. You may look into a Bluetooth keyboard that doesn't require hid, I read about it on these forums can't remember where, but it required dl-ing drivers on your phone and it worked.
Sent from my Inspire 4G using Tapatalk
Click to expand...
Click to collapse
Thanks! I'll have to look into that. In the mean time, I just received a tablet with Android 3.1 on it, which happens to support the HID keyboard I have. So that'll due me until I can look into the keyboards that don't require HID!
Starting this to clear up space hopefully in the developer thread as I am no developer just a user that really loves this rom and want to help by having questions that are not developmental here also if you want to say that this rom is the best just to say it please do it.
By not developmental I mean what kernels are working for you, possible workaround apps, your roms settings, advanced app that just works better than maybe a pre-installed etc.pretty much anything you would want to say in the rom thread that you know someone is probably gonna say that should be somewhere else.
If Bruce wants me to take this down I will but figured it may help some.
Here is a list of working and not working functions
Thanks to Bruce 2728 and cm team for great work also anyone else that is helping with development have a good day
Not working
??????
Working
F***king camera
Wifi
Audio
Radio
Hardware acceleration (videos need s/w decoder at moment)
button lights
vibration
USB
Charging
Notification led
Sensors
Root
TORCH
HEADPHONES
In call audio (Google now, voice dictation etc)
Bluetooth
for full screen video playback go into settings then developer options and check disable hw overlay box as a workaround
Here is a screencast of Rom
https://www.youtube.com/watch?v=iNKJqimJP70&feature=youtube_gdata_player
Sent from my HTC Sensation using xda app-developers app
Haha it's very to the point, hopefully people take notice and use this. One suggestion: in your OP, you might want to make a list of what works and what doesn't, just to keep it up to date so that it mirrors the dev pages progress. Otherwise, thanks!
Sent from my HTC Sensation Z710e using xda app-developers app
monkor said:
Haha it's very to the point, hopefully people take notice and use this. One suggestion: in your OP, you might want to make a list of what works and what doesn't, just to keep it up to date so that it mirrors the dev pages progress. Otherwise, thanks!
Sent from my HTC Sensation Z710e using xda app-developers app
Click to expand...
Click to collapse
+1 totally agree with you bro, just some info on what's working and what's not in the OP would do it, hopefully ppl would use this and keep that dev thread clean:thumbup:
Sent from my GT-N7000 using xda app-developers app
Says in the original thread "Bluetooth partially working" and "Wifi Working" I have found this to be the other way round for me with Bluetooth working fine and Wifi partially working? Wifi just scans saying "Scanning for network" and never finds anything. Not sure if this is the same for everyone or not? Looks like a fix for wifi as well as Google Now maybe imminent though if you look here: https://github.com/febycv
chronic8000 said:
Says in the original thread "Bluetooth partially working" and "Wifi Working" I have found this to be the other way round for me with Bluetooth working fine and Wifi partially working? Wifi just scans saying "Scanning for network" and never finds anything. Not sure if this is the same for everyone or not? Looks like a fix for wifi as well as Google Now maybe imminent though if you look here: https://github.com/febycv
Click to expand...
Click to collapse
Wifi working beautifully for me here. Actually getting reception in the back rooms of my house that I usually don't. As for BT... I can't say as I don't ever use it.
I'm using the Tamcore kernel for overclocking purposes and as a result, the Bluetooth behavior I'm seeing won't be the same as others are experiencing necessarily, but I'll add it for the sake of the few who are also using this kernel.
Pairing is working - I can see my laptop from the Sensation and vice versa. However, when I attempt to transfer files from the laptop to the phone, the transfer fails with an error that states the type of file cannot be transferred. Seeing as it's a simple .rtf file, that is a highly unlikely scenario and something else is going on there.
That's all I have re this issue, but hopefully it will strike a chord with the devs and point toward a fix.
Meantime, there is also some interference between music playback via Apollo and GPS activity - pauses happen seemingly in sync with the GPS doing stuff in the background. The rest of the time, playback is flawless.
Played some video on YouTube and had no issues. Didn't try full screen though but will update when I've had the chance to do so.
Camera, as noted elsewhere, cannot be found by the app.
Apps other than Phone are unable to use the mic so voice search, G Now, Gstrings guitar tuner and so on won't work as yet.
WiFi is working and I get 10Mb's down no probs. GPS is outstanding... getting GPS lock indoors in 8 seconds.
Occasional graphics glitches, but rare and not debilitating.
Not seeing the UI smoothness experienced by others, but should add that my ICS install was already smooth. Or maybe my expectations were unrealistic.
That's about it. No doubt the next fixes from bruce2728 will render these comments moot.
Cheers,
R2
R2D2_NZ said:
I'm using the Tamcore kernel for overclocking purposes and as a result, the Bluetooth behavior I'm seeing won't be the same as others are experiencing necessarily, but I'll add it for the sake of the few who are also using this kernel.
Pairing is working - I can see my laptop from the Sensation and vice versa. However, when I attempt to transfer files from the laptop to the phone, the transfer fails with an error that states the type of file cannot be transferred. Seeing as it's a simple .rtf file, that is a highly unlikely scenario and something else is going on there.
That's all I have re this issue, but hopefully it will strike a chord with the devs and point toward a fix.
Meantime, there is also some interference between music playback via Apollo and GPS activity - pauses happen seemingly in sync with the GPS doing stuff in the background. The rest of the time, playback is flawless.
Played some video on YouTube and had no issues. Didn't try full screen though but will update when I've had the chance to do so.
Camera, as noted elsewhere, cannot be found by the app.
Apps other than Phone are unable to use the mic so voice search, G Now, Gstrings guitar tuner and so on won't work as yet.
WiFi is working and I get 10Mb's down no probs. GPS is outstanding... getting GPS lock indoors in 8 seconds.
Occasional graphics glitches, but rare and not debilitating.
Not seeing the UI smoothness experienced by others, but should add that my ICS install was already smooth. Or maybe my expectations were unrealistic.
That's about it. No doubt the next fixes from bruce2728 will render these comments moot.
Cheers,
R2
Click to expand...
Click to collapse
What radio / hboot versions are you using? I have forever had wifi problems with my sensation really trying to sort it out been bugging me for days, tried nearly everything i can think of and I been flashing android phones for years now. I know it is not a hardware issue as it works on stock roms but not on CM9 / CM10.
chronic8000 said:
Says in the original thread "Bluetooth partially working" and "Wifi Working" I have found this to be the other way round for me with Bluetooth working fine and Wifi partially working? Wifi just scans saying "Scanning for network" and never finds anything. Not sure if this is the same for everyone or not? Looks like a fix for wifi as well as Google Now maybe imminent though if you look here: https://github.com/febycv
Click to expand...
Click to collapse
are you using the kernel that was included because I have found that tamcore's cm9 kernel had fully working Wi-Fi and Bluetooth works perfectly for me and is incredibly smooth also
I am currently using it on the Pegasus q governor just to see how it runs so far really smooth @1728 & 432 almost as good as intellidemand going to see how battery is on this governor though
Sent from my HTC Sensation using xda app-developers app
melo563 said:
are you using the kernel that was included because I have found that tamcore's cm9 kernel had fully working Wi-Fi and Bluetooth works perfectly for me and is incredibly smooth also
I am currently using it on the Pegasus q governor just to see how it runs so far really smooth @1728 & 432 almost as good as intellidemand going to see how battery is on this governor though
Sent from my HTC Sensation using xda app-developers app
Click to expand...
Click to collapse
Yes using kernel that was included and I also tried bricked 1.31 aosp kernel both with no joy. I am going to try tamcores cm9 kernel now you said working wifi though! Don't suppose you gotta link to the exact kernel your using do you?
chronic8000 said:
What radio / hboot versions are you using? I have forever had wifi problems with my sensation really trying to sort it out been bugging me for days, tried nearly everything i can think of and I been flashing android phones for years now. I know it is not a hardware issue as it works on stock roms but not on CM9 / CM10.
Click to expand...
Click to collapse
I'm using firmware 3.33 with Radio 11.76A.3504.00P_11.24A.3504.31_M and stock kernel with amazing wifi.
chukis13 said:
I'm using firmware 3.33 with Radio 11.76A.3504.00P_11.24A.3504.31_M and stock kernel with amazing wifi.
Click to expand...
Click to collapse
exactly same setup as me 3.33 firmware and 11.76A radio but with stock kernel no wifi? Is there different versions of the sensation or something? Very weird
melo563 said:
Not working
Camera
Video playback is buggy (temp fix http://forum.xda-developers.com/showthread.php?p=29243391 )
Headphones.
Click to expand...
Click to collapse
There's a headphones workaround that uses a Play Store widget to re-route the speaker though the headset. Not a fix, obviously, but enough to get by for those for whom no headphones is a deal-breaker for flashing onto their phone.
HTH.
R2
R2D2_NZ said:
There's a headphones workaround that uses a Play Store widget to re-route the speaker though the headset. Not a fix, obviously, but enough to get by for those for whom no headphones is a deal-breaker for flashing onto their phone.
HTH.
R2
Click to expand...
Click to collapse
I concur with this. It works beautifully.
chronic8000 said:
What radio / hboot versions are you using? I have forever had wifi problems with my sensation really trying to sort it out been bugging me for days, tried nearly everything i can think of and I been flashing android phones for years now. I know it is not a hardware issue as it works on stock roms but not on CM9 / CM10.
Click to expand...
Click to collapse
HBOOT version is1.29.0000
Radio is 11,24A.3504.31_M
HTH
R2
for me youtube full screen causes reboots
but if you download super video pop-up video player from the market you can drag the video pretty big almost full screen with no issues so far from me
all you have to do is go to youtube find the video you want them press share and select super video to play youtube videos
Sent from my HTC Sensation using xda app-developers app
do you guys think I should put some of the workaround apps we find in op as we go
Sent from my HTC Sensation using xda app-developers app
melo563 said:
do you guys think I should put some of the workaround apps we find in op as we go
Sent from my HTC Sensation using xda app-developers app
Click to expand...
Click to collapse
Yes, in hopes that retards might actually read it.
Girlfriend is out of town so I've got nothing to do for awhile so I'm going to flash this and test a bunch of stuff out. If anyone has any requests on apps to test, I'd be glad to download em and give it a whirl. That is, provided I don't bork my phone flashing this directly over Virtuous Inquisition.
melo563 said:
are you using the kernel that was included because I have found that tamcore's cm9 kernel had fully working Wi-Fi and Bluetooth works perfectly for me and is incredibly smooth also
I am currently using it on the Pegasus q governor just to see how it runs so far really smooth @1728 & 432 almost as good as intellidemand going to see how battery is on this governor though
Sent from my HTC Sensation using xda app-developers app
Click to expand...
Click to collapse
Well I tried with Tamcore's 3.0.38 00673 kernel and it doesn't break or fix anything. JB does run a little smoother than stock kernel but still broken wifi
did you reflash rom or just flash kernel maybe try full wipe and reflash with tamcore from start if you didn't already
Sent from my HTC Sensation using xda app-developers app
I've ran a variety of TW ROMs including CleanROM, Hyperdrive and am currently running BoneStock - all are based on 4.1.2.
However, Bluetooth Calling/Voice quality sucks when I am paired with my car (2010 Nissan Maxima). I can hear callers fine, but they say I sound garbled and robotic. At first, I thought the problem was my car until I paired an iPhone and call quality was fine.
FYI, streaming music via Bluetooth works perfectly.
I've done research on XDA and other forums, and the problem seems to be with 4.1.2. Does anyone know if switching over to an AOSP 4.3 ROM will alleviate Bluetooth issues?
I like everything else about Touchwiz (e.g. the stability, battery life, etc.) and I know Google was messing around with the Bluetooth stack. However, I work in Sales and need Bluetooth in the car. Thoughts?
Sent from my Samsung Galaxy s3 via Tapatalk Pro
Any solution?
Comp625 said:
I've ran a variety of TW ROMs including CleanROM, Hyperdrive and am currently running BoneStock - all are based on 4.1.2.
However, Bluetooth Calling/Voice quality sucks when I am paired with my car (2010 Nissan Maxima). I can hear callers fine, but they say I sound garbled and robotic. At first, I thought the problem was my car until I paired an iPhone and call quality was fine.
FYI, streaming music via Bluetooth works perfectly.
I've done research on XDA and other forums, and the problem seems to be with 4.1.2. Does anyone know if switching over to an AOSP 4.3 ROM will alleviate Bluetooth issues?
I like everything else about Touchwiz (e.g. the stability, battery life, etc.) and I know Google was messing around with the Bluetooth stack. However, I work in Sales and need Bluetooth in the car. Thoughts?
Sent from my Samsung Galaxy s3 via Tapatalk Pro
Click to expand...
Click to collapse
Hi,
Did you find a solution to your problem? I have the exact same issue and I need bluetooth in my car .
Thanks,
John.
starcraft04 said:
Hi,
Did you find a solution to your problem? I have the exact same issue and I need bluetooth in my car .
Thanks,
John.
Click to expand...
Click to collapse
Sorry for not seeing your post sooner. If I get a chance, I am going to flash 4.3 ROM's myself (4.4 is still a bit unstable for my tastes) this weekend and see if the BT stack is improved.
Otherwise, I think I might jump on the Moto X deal happening on Monday (if the MotoMaker site decides to work. :silly