how to get bluetooth working - myTouch 3G, Magic Android Development

can someone on here..please, give me step by step instructions on how to get the bluetooth working on my mytouch. it has been rooted and i'm running the evilhero rom, with a class 6 sd card. thanks in advance..

First off you have to define what you mean by "working"....
Some of the stock ROMs do not properly support bluetooth profiles for FTP, OPP, A2TP, HFP, or HSP. Some ROMs have added in support for some of the profiles, mostly A2TP, and HSP or HFP, which means you get bluetooth headsets.
I believe the 1.6 update on some phones does support A2DP, but I no longer have a stock ROM on my Magic, and never got a 1.6 OTA update to check this out.
The app "Bluetooth File Transfer" adds in OPP and FTP which lets you push files to or from the phone.
This is very ROM dependent so you need to verify what your ROM of choice supports. I know that RAv1.6.2H does support bluetooth since I have a working bluetooth headset and have been able to transfer files using bluetooth in both directions between the phone and my netbook, running Linux. I have not been able to browse the remote file system, in either direction.

Related

Bluetooth A2DP

Hi there,
I don't know where to ask this, so it went to "General".
I've got a JasJar running WM6 and it happily runs stereo music on my Motorola HT820 bluetooth headset. I also have Sony BT2500 car stereo system which supports bluetooth phone as well as A2DP. with my HT820, I just turn the headset on and jasjar sees the headset and connects to it, but with the BT2500 only the phone part is automatically connected. if I want to listen to music I have to (on my jasjar) go to settings/connections/bluetooth and tap and hold on my xplod (my sony BT2500) and set it as wireless stereo.
is there any way to avoid this step (as I'm usually driving when i have to do this)? if not, is there an easy way to do it with one hand and no tap and hold ?
Cheers,
Shafa
Hey Shafa,
I've got the same problem with my Prophet and a Pioneer BTB200. So far i found no solution, so i most likely will have to write a program to connect to a BTdevice as wireless stereo, if it autoconnects as a handsfree device and is a2dp capable.
hey Lemmz,
I'm very interested to know what API you have to call to do this...
Cheers,
Shafa
HTC Faraday
Hello all,
Are there any resources here for the Cingular 2125 , I would like to port linux on the 2125. sorry if i have mis-posted.
thanks,
rvb
@shafa:
there is a Bt_api.h in the wm5 SDK which defines a function called RequestBluetoothNotifications; so far i found
RequestBluetoothNotifications
Handling Events from the Bluetooth Stack
Retrieving AVDTP Connection State
My idea would be to monitor all bluetooth connection events (most likely via a service), see which device (auto)connects and if it is a handsfree-device and supports wireless-stereo, initiate pairing for the latter.
i will try to do some coding later today. i'll keep you informed.
Cheers,
lemmz
Ok, so far i can recieve bt-related events. unfortunately i've found no info on how to initiate an a2dp connection microsoft-style. There's tons of code for AudioGateway stuff, but imho thats pretty useless.
Looking at the registry i found in HKLM\Software\Microsoft\Bluetooth\Services\0000110B-(...) reference to "Wireless Stereo" and bthutil.dll. looking at the WM6 SDK, bthutil.h, there are just two functions, BthGetMode and BthSetMode, for turning BT on and off.
I'm also looking at the sources for the (settings->connections->bluetooth)-Dialog, btenum.cxx and btmgmtui.cpp, maybe there is some info on this.
Edit:
btw, this 0000110B thing is referred to as AudioSinkServiceClass_UUID. But no luck on that either.
Soo, i think i'm quite close now...
DRVM_MAPPER_PREFERRED_SET -- with waveOutMessage you can switch soundoutput to different devices, unfortunately for a2dp it returns NOTSUPPORTED.
But within the a2dp driver i found some messages:
WODM_BT_SCO_AUDIO_CONTROL, WODM_OPEN_CLOSE_A2DP, WODM_PARAM_OPEN_A2DP
they seem to initiate a connection and set the preferred output device, just like the DRVM_MAPPER_PREFERRED_SET should. Tonight i'll experiment with it.
SUCCESS!!
It worked just as i though: a single command does all the work.
waveOutMessage((HWAVEOUT)devId, WODM_OPEN_CLOSE_A2DP, WODM_PARAM_OPEN_A2DP, NULL)
The device to connect to has to be paired and, of course, in range. I'm now going to clean up the code and build a litte configuration-tool.
Freeware tool
EDIT: Version 1.0.rc-2 uploaded . Find the download link below:
http://teksoftco.com/index.php?section=freeware
I've just uploaded version 1.0.rc-1 of the A2DP plugin. It can be downloaded and used as freeware (0 cost) from http://teksoftco.com/index.php?section=freeware , or find it below attached to this message, including a short usage guide.
New in this release (as many users requested):
-signal indicator
-3 modes for headset: OK, Off, Err
-settings panel added
-Handle Bluetooth option
-Execute File after start option
-applet added in start->settings->system to start settings
-a2dp.exe included in the package, that with parameters: a2dp.exe -bluetoothn|off -a2dpn|off or a2dp.exe -bluetooth:1|0 -a2dp:1|0
------------------
Actually devices that support A2DP (most wm6.0 bluetooth devices), come with 2 audio drivers installed:
1) The "Audio Output" Driver (supported since ppc 2002)
2) The "Bluetooth Advanced Audio Output" Driver, that is responsible of sending audio data over a L2CAP Bluetooth connection, as per A2DP protocol
When the user connects a Stereo A2DP headset, and selects the "Wireless Stereo" profile, the Bluetooth Adv. Audio Output becomes the nr. 1 audio output route, and is indexed as the First audio driver. Any application will output sound by using that driver.
The problem is that sometimes we are already listening to audio in the device's speaker's, and then suddenly we want to switch the output to our a2dp headsets - this is sometimes problematic, as the First audio driver changes from "Audio Output" to "Bluetooth Adv. Audio Output" and the applications currently playing audio need to be restarted.
For such issues, I have provided a tool, as freeware, that will install as a today plugin and provide the user with the possibility of instantly switching the audio between Device Speaker and A2DP Stereo Headset.
It is designed for WM6.0, Microsoft Bluetooth stack, please download it and let me know how it works for you. There are some more modifications that will be done, so this is only Beta-1
The CAB installer and instructions are in the ZIP attached.
(tested on ultimate 8150/wm6.0 and eten m600+/wm5.0, the gfx was made for vga but works on qvga too)
Hello Radhoo,
first times thank you, after such a thing I searched for a long time in vain.
tool functions on the Artemis with WM6 perfectly.
If the Tool were still developed further, I would be pleased genuinly, and would like to call hereby gladly my desires:
1. Bluetooth automatically switch on and off
2. Komandozeilensteuerung
3. Traybuttons without Todayplugin
4. Automatic start of a desired program after activation of A2DP (Mortplayer)
thanks Menkul
Hello menkul, Thanks for the feedback.
What is Komandozeilensteuerung?
Sorry Komandozeilensteuerung ist german.
I mean a Funktion a2pd.exe blueon A2DPon
a2dp.exe blueoff
or so.
Also a exe with startparameter
Menkul
Great idea
Any way to indicate bluetooth 1.2 or 2.0 status/line speed, signal strength, bandwidth?
bjrmd said:
Great idea
Any way to indicate bluetooth 1.2 or 2.0 status/line speed, signal strength, bandwidth?
Click to expand...
Click to collapse
Will try to
I have two spare days for research (wow!) so I'll try to come up with something.
lemmz
lemmz said:
SUCCESS!!
It worked just as i though: a single command does all the work.
waveOutMessage((HWAVEOUT)devId, WODM_OPEN_CLOSE_A2DP, WODM_PARAM_OPEN_A2DP, NULL)
The device to connect to has to be paired and, of course, in range. I'm now going to clean up the code and build a litte configuration-tool.
Click to expand...
Click to collapse
I am sorry I've "invaded" this thread, without first saying thanks to lemmz for his work, as I very well understand the effort needed to perform this kind of research.
While I wasn't aware of his findings (which are available in AK :
bt_ddi.h, WM520\PUBLIC\COMMON\OAK\INC\ ) I just wanted to give another free tool to the community, so I posted this in a few threads where users where requesting A2DP tools. I hope this is ok.
Dear Lemmz,
thanks a lot, i will take a look asap.
thanks again
Shafa
Hey Lemmz,
where do you get the devId from?
I'm thinking about writing the application, but I'm not a C++ guy (anymore atleast) I need to write it in C#...
Cheers,
Shafa
me again. should i use WAVE_MAPPER for device ID? if so, what is the value for it or even better, where can i find the whatever.h that has the value? is there an SDK i should download?
Cheers,
Shafa
menkul said:
Sorry Komandozeilensteuerung ist german.
I mean a Funktion a2pd.exe blueon A2DPon
a2dp.exe blueoff
or so.
Also a exe with startparameter
Menkul
Click to expand...
Click to collapse
Done, original post updated, download 1.0.rc-1
Signal indicator also added: it shows the bluetooth connection strength!
shafa said:
me again. should i use WAVE_MAPPER for device ID? if so, what is the value for it or even better, where can i find the whatever.h that has the value? is there an SDK i should download?
Cheers,
Shafa
Click to expand...
Click to collapse
You should use waveOutGetNumDevs() to get the number of wave devices.
Then you can use their index directly: 0 , 1 , eg.:
int idWAVE_BTAudio = 0; // or 1
waveOutMessage((HWAVEOUT)idWAVE_BTAudio ...
Where:
Code:
0. Audio Output
1. Bluetooth Advanced Audio Output
Be careful, the index changes when one device is selected, so you should check the WAVE devices each time you want to switch the audio.
Personally I've used waveOutGetNumDevs() then waveOutGetDevCaps to see what kind of device is each of the enumerated ones.
Hope this helps.

A2dp motorola S9+windows xp

first off, major props to the xda community, you guys are the best!
now for an interesting problem/project:
It's been a month since I've purchased my Motorola S9 bluetooth headphones http://www.motorola.com/motoinfo/product/details.jsp?globalObjectId=177 and have been amazed by what I can do when combine the S9 with my HTC touch and cyberon's voice dialer which is a voice activation program
I use it to:
listen to stereo music
launch programs
stereo music remote control
speed dial
raise and lower volume
teach iphone users the meaning of envy
just being able to do that with with the a2dp remote and microphone of the s9 makes it feel like it's 2030 where people are wired to computers and technology is transparent and everywhere. The s9 feels like sci fi technology... almost. the s9+htc touch is a great no hassle way of getting the information you want pumped into your ears
so as a tech enthusiast I've asked myself,
why the hell can't my computer do this?? i mean, it's 2008 and I'm still using a keyboard and mouse for everything?
I'm trying to make the S9's work on my mac book pro running windows xp+bootcamp drivers but windows doesn't even support a2dp much less handsfree wireless mic profile
i've an online tutorial by katy hxxp: www.djkaty.com/drupal/vista/bluetootha2dp but installing broadcomm's bluetooth stack gives me an error telling me that there is no bluetooth radio device detected which is total bull as i've been able to send files to my HTC touch via bluetooth. I've also tried installing another bluetooth replacement stack called bluesoleil; with no luck
I've also am about to start trying adding widcomm using this guide (http://www.dev-toast.com/2007/01/05/uncrippling-bluetooth-in-vista-rtm)
but in the guide said a2dp doesn't work with widcomm
anyways how do i make bluetooth a2dp work and my s9's mic to work via bluetooth on pc? is my ultimate question
also, if you could recomend a voice activation program that works as well as cyberon's voice dialer I'm looking for the type of functionality where I can press the voice button issue a command and then good stuff happens I bet lots of other people thought of doing the same thing like this
could you please help?
A step by step guide would be aprechiated
update: I've been able to install widcomm drivers version 5.1 and everything works... except the a2dp UGH!
the cheshire cat said:
I've also tried installing another bluetooth replacement stack called bluesoleil; with no luck
Click to expand...
Click to collapse
BlueSoleil, with some external BT dongles, does support A2DP. It's just that the BT dongle itself must support it in hardware.
That is, shop for an external BT dongle if you do need A2DP.
Menneisyys said:
BlueSoleil, with some external BT dongles, does support A2DP. It's just that the BT dongle itself must support it in hardware.
That is, shop for an external BT dongle if you do need A2DP.
Click to expand...
Click to collapse
thanx but i'm trying to get my internal laptop's bluetooth to use it I've heard good reports that i'm just using the wrong version of widcomm drivers.... time to reinstall everything...again
besides who wants to carry around a laptop with a dongle flopping around? i'll try to avoid the dongle solution if i can
A2DP and bluetooth stack
Having same issues here. My goal is using BOTH A2dp and Blackberry wireless sync via bluetooth (just a serial port).
I find it impossible as Blackberry will only work with native xp drivers and A2DP is not supported in xp.
Currently i gave up wireless sync and am using A2DP with Bluesoleil, which works fine for me.
Anyone ever tried using A2DP WITHOUT switching to a different bluetooth stack?

[Q] Suggest a ROM for bluetooth audio and Wiimote support??

What I'm looking for is a custom ROM that will let my Infuse 4g connect to a Wiimote so I can use it for emulators. I've tried CM7.2, and it allows the connection, but the bluetooth connections to headphones and speakers is completely awful. I use bluetooth all the time so this doesn't work. I've also tried Zeus and R3velation too, and the bluetooth works fine, but they can't connect a Wiimote. I read somewhere that it has something to do with the bluetooth stack, but I honestly don't know what that means.
Does anybody know of a custom ROM that has working bluetooth audio and the proper stack to allow Wiimote connection?
Of course it needs to be stable and have the basic functionalities.
Thanks for any help!
I am sorry to say that our phones biggest weakness seem to be the bluetooth as I wanated to do this also and it did not work. I even brought a small bluetooth keyboard to try to do the same thing and I could not get it to work.

[Resolved] How can I use my computer as a Headset device for my phone with Bluetooth?

Hello,
I want to extract the audio from my phone (the analog TV and FM/AM receiver mainly) and play it through my computer speakers. There is a headphone jack but it is of non-standard size (slightly smaller, probably 2.5mm).
Both my laptop and my phone support A2DP but for some reason the service (from the phone) does not show up while I add a new connection and the phone does not let me initiate a connection with any other profile except FTP (although it detects other services in the service list like A2DP and works perfectly fine with other profiles like DUN, HID, OPP, SSP if the connection is started through the computer).
I am currently using the latest version of the Toshiba stack, I have tried using WIDCOMM but it refuses to install drivers for both the internal Bluetooth and the USB Bluetooth that I use on my desktop. The standard Microsoft stack (generic driver) does install but it does not work with both of my devices as they do not detect any Bluetooth devices when scanning.
How can I make my phone detect my computer as a headset?
Thanks in advance.

[Q] How do i enable bluetooth setting in the maind menu

Alright here is my dilemma: I have a android head unit for my car An6b01 (Adayo, FORYOU, K1) it runs on froyo 2.2 it has a 6.1 inch screen, 1 sd micro slot & and 1 regular sd, 3 usb ports wi-fi and bluetooth 1ghz arm8 processor etc. I'm able to go on the market place web and all that good stuff my problem is that although the unit runs on android 2.2 it has its own native apps which seem to control some of the hardware on the unit. For example it has a bluetooth app thats designated for pairing with your phone which lets you play music off of it receive calls and go through your phone book, This app also enables if the bluetooth is on or not. Now if you go to android settings the bluetooth option is not there and i'm unable to pair with different device such a ODB2 module. I was wondering if there is a way that i could add the bluetooth option back into my setting in order for me to pair with other devices. I have tried some of the apps of the market place like "Bluetooth Enabler" and "Bluetooth Manager" but when i try turning on the bluetooth through there it just says "Turning on Bluetooth" and nothing happens. My unit is rooted and i'm familiar with editing the system files and flashing roms. Could any one give me some tips on how i can enable the Bluetooth setting in my android setting? I also have all the system files if anyone is willing to look at it. thanks:
i just relized that i might of put this in a wrong area... feel free to move it sorry

Categories

Resources