yashsingh1/xdaforums huggingface dataset:
[JAM, MDA Compact, S100 General] psneddon:
I'm still working on this - but its hard to see if I'm getting somewhere without some form fo debug output - but I did manage to change a registry key that make the JAM beep everytime I pressed the headset button :)

I found an interesting file here - http://www.pdaphonehome.com/forums/showthread.php?s=&threadid=52942

Information about how this is *supposed* to work is here (look at the hand free profile and the registry settings sections)

http://msdn.microsoft.com/library/d...mm5/html/wce50conatcommandextensionmodule.asp

Its quite interesting if you look at that dll file with a hex editor.

1) It calles BthAGATSetCallback

2) It looks like it handles (or executes) the AT command AT+BVRA which is toEnables or disables voice recognition in the AG."

If we can establish that this file is working (and it seems to do because it gets locked by CE when loaded) then we should be able to hexedit the AT command and try different things.
[JAM, MDA Compact, S100 General] psneddon:
My head is getting sore now. I've been looking at how CE handles the loading and the calling of device drivers and services. It seems it loads a service or driver via DLL entry points with well defined names (e.g. XXX_INIT) The XXX part is the prefix that is stored in the registry. Part of the problem (I think) is that the headset code in the ETEN ROM loads via the bthserial.dll driver with a prefix of BTH - this is also the prefix that the base BT driver uses on the magician. So this is why when we run the BluetoothManager.exe we get that "please turn off flight mode error".

It also looks like the software makes calls to the audiogateway extensions using the same method (e.g. BTH : AG_INIT) which I think refers to the DRIVER : SERVICE name.

So I'm going to try going through all the interlinked ETEN dll's and editing the binary to use a different prefix (e.g. HTS) and changing all the references too.

To be honest I dont even know if this will work but I wont know untill I give it a try. The BTAGSVC.DLL has the same prefix in both roms but fails to load when you use the ETEN version, but this could be down to something else??

The other confusing thing - is that there is a dll in the eten rom called audiogateway.dll that does not seem (from the registry and function calls) to get loaded , however it looks like it contains lots of nice code??

If anyone has any further ideas, please share.
[JAM, MDA Compact, S100 General] corben:
No rmg, you missunderstood that. I wasn't able to get that from romdump. :oops: I wasn't clear about it, sorry.

I took audiogw.dll and btaudiogw.dll from bt_headset and just drop it in windows folder. It recognize audiogw.dll but not btaudiogw.dll.
[JAM, MDA Compact, S100 General] rmg:
Ahh, dunno then mate. prolly best to just wait and see what Paul comes up with :-)
[JAM, MDA Compact, S100 General] psneddon:
The btaudiogw.dll that is in that cab file is for the widcomm stack - so it wont work on our devices.
[JAM, MDA Compact, S100 General] Baldrick45:
Just a word of encouragement

Paul

I'm no coder so I can't even begin to help you move anything on but just to say that this will be a "killer function" if you can get it working and I, as well as the many others following this thread, really appreciate the effort you are continuing to plough into this.

Cheers mate - I for one will gladly Paypal you the price of a pint if you can do it!
[JAM, MDA Compact, S100 General] corben:
yeah...rmg. Thats what I thought, I'll try again.
[JAM, MDA Compact, S100 General] corben:
Guys,

I found this patch, but I dont know if it going to work on i-mate or not.

Bluetooth Headset Patch for h1940 & h2210

This program aktivate the bluetooth function in your bluetooth manager. You can connect your BT-Headset with your Pocket PC now.

Activate or deactivate the Bluetooth headset in BT-Manager

You can with a Bluetooth headset:

Hear music* or sounds wireless

Record in "Notes"

IP phone (with software, the future is now)

Speak via software over Internet

Hear voice from navigation system

You can deinstall this program after enabled the headset function

Tested on ipaq h2210, h1940

Works only with h2210 and h1940, NOT with other Pocket PCs !!!

Help:

For Pocket PC 2003 is required the WM 2003 Runtimemodul

Start the BT Headset Patch an press the button "Enable".

Exit this program.

Open the BT Manager and add a new connection.

You see a new picture with a headset (below).

After connect enter the password of the headset (see manual of the headset).

Perform a Softreset.

Connect with the headset and if you hear a rington in the headset, then

press the button on the headset.

Open the Media Player and play music, you hear it over the BT Headset now.

Pocket PC 2000, 2002, Windows Mobile 2003 & SE, 2005

Screen: 240x320 Pixel or higher

Processors: Samsung, XScale, StrongARM, MIPS, SH3

Which Pocket PC do I have? Help ?

http://www.pocketkai.net/asp/en/

Search by: Bluetooth Headset Patch

Check it out, thats probably has the answer we are looking for.

Corben
[JAM, MDA Compact, S100 General] rmg:
An interesting find. I doubt very much that it would do anything on the magician, but a good spot never the less!
[JAM, MDA Compact, S100 General] adit:
Hey guys, anyone tried http://bluetooth.i-networx.de/index_e.html yet? I hope i would work, i'll keep u guys updated.

::adit
[JAM, MDA Compact, S100 General] adit:
hmm it doesnt do anything except add that on/off switch on the today screen. Is it just my pda or is the software not compat with mini? can anyone confirn?

::adit
[JAM, MDA Compact, S100 General] rmg:
This will not add any value.

The magician already supports the headset profile.

--

rmg.
[JAM, MDA Compact, S100 General] psneddon:
After many, many, hours of trial and error.................... I finally have a function implementation of voice dialling via pressing the call button on my Bluetooth headset :) Thank goodness - I was about to go mad.

Here is a quick guide for now - I will post a full guide later or tomorrow as I'm exhausted with this thing now. My specs for reference are - a MDA compact with the latest Imate Jam Rom, and a Bluespoon AX headset.

There is what I did - maybe not all steps are required but I wont miss any out (if I remember correctly). You will need the attached file along with a registry editor.

Remember this is only a quick post at I'm tired and its getting late - but I will post a full guide explaining things alot better - this is just for people who cant wait and are a bit technical :)

1) Copy the attached file to the \windows folder on the Jam. You must use this one and not the one I told you about a previous post as I have modified it.

2) Import the attached registry files into the registry. You will have to change the bluetooth device addresses to match your own (or it wont work)

3) Soft reset your device.

4) Remove and pair your headset - it answer yes to the questions about the headset and handsfree profile.

5) Look in the registry for this key (but use the device address for your device which you can obtain just by looking at the name values under the device section)

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\Device\000e6d8ef421\Services]

There should be 2 services listed, just delete the key that holds the values for the handsfree profile.

6) Look at the values under the following key, you may have to change the last number to match your device.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\AudioGateway\Devices\1]

Make sure that the service listed matches the headset service, which should be. I think the handfree one starts with 1E,11.

"Service"=hex:08,11,00,00,00,00,00,10,80,00,00,80,5F,9B,34,FB

7) Install Microsoft Voice Commander

8) Copy the Voicecmd.exe file from the voice command installation directory and put it in \windows - also rename it to VoiceSignal Launcher.exe (yes thats a space between te Signal and Launcher)

9) Soft reset and you should be good to go.

You can check that its working by obvioiulsy pressing the headset button and voice commander will start. But also when you tap on the headset icon at the top of the screen you should see 2 buttons in the bubble (stop handfree and hide)

Also note that it is still called "Hands free profile" even though its working more like a headset profile. Also note that it is still the speaker and mic in the jam that picks up and relays the voice commands. Maybe a different program will route it?

I've typed all this very quickly but I hope you understand I'm in a rush but I wanted you all to know the good news :)

Paul
[JAM, MDA Compact, S100 General] psneddon:
Also I forgot to add - I added the "capability" registry value as described here

http://msdn.microsoft.com/library/d...html/wce50conaudiogatewayregistrysettings.asp

And I set its value to 25 (hex)
[JAM, MDA Compact, S100 General] rmg:
you diamond.

Im too tired to try it tonight,but will do first thing.

Pat on the back for you :-)
[JAM, MDA Compact, S100 General] efjay:
any chance this can be made to work on the blue angel?
[JAM, MDA Compact, S100 General] chrisamydang:
VOICEDIAL ACTIVATION VIA BLUETOOTH WORKS! PSNEDDON ROCKS!

psneddon

You ROCK!

I've been trying to find an answer to this since I bought the magician last December.

There are suggestions and opinions everywhere but nothing worked.

Not only that your instructions were clear, precise and understandable it worked first time!

I still can't believe it's working...

Again, dude you ROCK.

Long Live KING PSNEDDON!

Now, if only we can get the sound and mic to transfer to bt device on button press :lol:
[JAM, MDA Compact, S100 General] vbexpert:
Hi, I tried on my XDA II, I can start voice command by pree the button, but noe sound was transferred to my AX.
[JAM, MDA Compact, S100 General] adit:
I tried everything instructed, but when i press the button on the headset, nothing happens :roll: i think HBH-662 doesn't work :cry:
[JAM, MDA Compact, S100 General] rmg:
This hack is for the Magician only.

That is why its in the magician forum ;-)

--

rmg.
[JAM, MDA Compact, S100 General] rmg:
Can you provide you phone model (Dopod/Qtek/Imate etc.), what rom version you are running so we can get an idea of what works and what doesnt.

thanks.

--

rmg.
[JAM, MDA Compact, S100 General] psneddon:
I have the 1.12 ROM and its the MDA Compact but ath should not make a difference.

When you are editing the registry you need to make sure ou have your values right for your bluetooth device etc. I'll try see if I can get it to automatically use the service for headset instead of handfree. You also need to make sure that the file you want to run when you press the button is in the \windows dir and is called "VoiceSignal Launcher.exe"

Paul
[JAM, MDA Compact, S100 General] psneddon:
I had a user PM saying he also got it working first time. He also gave me a edited version of my instructions which are a bit clearer :)

Paul

0) go to the following and write down the Address value (HEX)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\AudioGateway\Devices\1

edit "Ag mod.reg" and "Hset services2.reg" to reflect above

1) Copy the attached file to the \windows folder on the Jam. You must use this one and not the one I told you about a previous post as I have modified it.

2) Import the attached registry files into the registry. You will have to change the bluetooth device addresses to match your own (or it wont work)

3) Soft reset your device.

4) Remove and pair your headset - it answer yes to the questions about the headset and handsfree profile.

5) Look in the registry for this key (but use the device address for your device which you can obtain just by looking at the name values under the device section)

5a) Drill to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\Device\**YOUR BLUETOOTH DEVICE ADDRESS**\Services]

eg.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\Device\000e6d8ef421\Services]

There should be 2 services listed. Delete the handsfree service.

6) Look at the values under the following key, you may have to change the last number to match your device.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\AudioGateway\Devices\1]

Make sure that the service listed matches the headset service, which should be. I think the handfree one starts with 1E,11.

"Service"=hex:08,11,00,00,00,00,00,10,80,00,00,80,5F,9B,34,FB
[JAM, MDA Compact, S100 General] rmg:
Confirmed as working on the iMate Jam - Latest Rom - 1.12.00 WWE with a Jabra BT250

W00T!

Here is what I did:

BEGIN INSTRUCTIONS

Download the zip file ;-)

Copy BTAGExtModule.dll to /windows

Import the registry files **without modification**

Soft reset

Delete and re-pair headset. Answer yes both times to set as headset and handsfree if prompted.

Drill to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\Device\**YOUR BLUETOOTH DEVICE ADDRESS**\Services]

eg.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\Device\000e6d8ef421\Services]

where there were 2 services listed.

Delete the handsfree service.

Go to

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\AudioGateway\Devices\1]

And make sure that the service listed matches the headset service, which starts with 1E,11.

Install Microsoft Voice Commander & Copy the Voicecmd.exe file to windows and rename as VoiceSignal Launcher.exe.

END INSTRUCTIONS

That worked for me, I did not have to make any changes to the reg files.

LuvlyJubly!

--

rmg.
[JAM, MDA Compact, S100 General] rmg:
I can also confirm that normal headset functions continue to work, including answer, end and redial of last number called.

When I click on the headset icon my bubble says

Bluetooth

Bluetooth handsfree is on.

With 3 options

Turn hands free off

Close

Kiss Paul

Only joking on the third option ;-)
[JAM, MDA Compact, S100 General] psneddon:
If we want to get the mic input taken from the headset instead of the device mic then I think we can do it - but I need someone who knows how to extract the files from the MPX300 rom :( I have a copy of the rom upgrade for the device but its in Bin format and I cant seem to extract the files (however it not encrypted :) ). This device has a full headset profile module that hopefully we can use.

So can anyone help with this?
[JAM, MDA Compact, S100 General] rmg:
What files exactly do you need? Or do you want them all?

I was under the impression that it was only the pre production MPX300 that supported the audio gateway. I think it was taken out of the production roms?

Are you choosing the MPX300 because it has the full profile AND uses the BT stack?

I dont see what the difference would be between using this and the Eten? Unless the Eten has protection?

Glad to see your not giving up BTW, I have now drained the battery on my headset after playing with it so much ;-)
[JAM, MDA Compact, S100 General] adit:
What program did u use to import those .reg files? is there any free ones i can use? because i had to do it manually i don't think phm regedit support these function. I use magician XDA 2 mini with 1.11.00WWE thanks
[JAM, MDA Compact, S100 General] rmg:
Yes, its odd, phm regedit has an import option but it is greyed out.

I used Resco file explorer to do the import.

--

rmg.
[JAM, MDA Compact, S100 General] adit:
yayy it worked!! XDA 2 Mini 1.11.00WWE paired with SE HBH-662 works perfectly. I had to do the reg manually and figured out that Capability,nohandsfree is hex, and the HKLM\Software\Microsoft\Bluetooth\AudioGateway\1 was binary. Now to wait till these geniuses find a way to speak thru the headset :twisted:
[JAM, MDA Compact, S100 General] adit:
Oh almost forgot to mention thanks to Paul and rmg :wink:
[JAM, MDA Compact, S100 General] psneddon:
The way the voice dialling/headset stuff works in the MPX is completely different from how it works in ETEN. In the end I didnt use anything from the ETEN rom or registry at all.

In the ETEN rom its bluetoothmanager.exe which detects the keypress and routes the audio as far as I can tell. I cant get his working properly on out devices as the stack is implememted in a different way.

I looks like the MPX is setup more like our roms. I'll try find out exactly what files I need from the rom. But if you know how to extract them that would be great.

However you cant simply copy it from the device - it needs to be extracted from the rom. I just need a tool that can extract files from the rom file.

MS didnt include all the stuff required to route the audio with in the OS (SCOWAV driver I think) so this must be done by either an extension to the bluetooth stack or just even a standalone application could trigger it.

The other option we have is to try using the voice dialling software from the ETEN as it includes a daemon and a service which must provide some sort of goodies :) I'll have a go at this later.

Paul
[JAM, MDA Compact, S100 General] Baldrick45:
I second that!

Adit speaks for lots of us when he passes on thanks for all of the effort getting to this point. Paul/RMG very much appreciated... :D :D

Now... at the risk of appearing a complete Numpty :? can I just confirm the following sequence.

Following Paul's instructions you can get your Magician to start voice command from your bluetooth headset.

You still then rely on the internal speaker and mic to initiate the call.

Once connected the Magician automatically hands off both voice and audio correctly to the BT headset??

You terminate the call from a button on the BT headset??

It's these last two points I'm not entirely sure of. Ideally I'd like to have my magician in a std holder/charger in my car and initiate or receive calls exclusively from the headset.

I understand we need the more advanced ability to take voice from the headset and deliver the VC responses to the headset to make my dream scenario work but does anyone have any practical experience of trying to use the magician at make calls a distance of 12"-18"

Can you turn up Mic gain enough to get it working OK or is in car use impractical until the next piece of the puzzle is cracked??

Thanks again guys

Baldrick45 :D :D
[JAM, MDA Compact, S100 General] rmg:
Re: I second that!

Bah, paul did all the work ;-) I just bump the thread and help out where I can ;-)

It all works like you said mate and works really bloody well too.

I can make and receive calls, end calls, get the time, play music etc all without touching the Jam :-) and the mic is frikin amazing. It can hear me from a good 5 meters away.

--

rmg.
[JAM, MDA Compact, S100 General] Baldrick45:
Excellent News

RMG

Thanks for the quick reply. I'm now off home to try it myself. If it all works as well as you say I think Paul should definitely consider taking a break for a week or two and then come back fresh to begin playing with all the MPX ROMs.

The system as you describe it does what I need/want. The full voice transfer would be nice but I can wait.....

By the way - In all seriousness I would be happy to donate a few quid either to Paul or to the XDA site for this one. Paul - What's your preference?? :wink:

Baldrick45
[JAM, MDA Compact, S100 General] corben:
I need the latest ROM

RMG or any body has the lastest ROM file or better than mine. I need to get that one for this bluetooth to work. I just realized that I have ROM version 1.03.00 WWE and I cant download it from clubimate.com because I bought it second hand and the tech support is unwillingly to give me the file. Please, help.

Great job Paul.

Corben
[JAM, MDA Compact, S100 General] rmg:
Hmm cant find anything on mpx bin extraction :-(

Will keep trying.

Found very little mention of SCOWAV as well. only

prolly no use at all :-(

--

rmg.
[JAM, MDA Compact, S100 General] rmg:
Also:

Loads more in

http://groups.google.co.uk/group/microsoft.public.windowsce.platbuilder?hl=en
[JAM, MDA Compact, S100 General] rmg:
Re: I need the latest ROM

The latest roms should be on the XDA_D ftp mate.

Or I can host the latest UK Jam rom when I get home (will be late tonight GMT)

--

rmg.
[JAM, MDA Compact, S100 General] adamz:
I tried to make a CAB file to do most of the dirty work. You still have to delete the Handsfree service in [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\Device\**YOUR BLUETOOTH DEVICE ADDRESS**\Services]

I havn't been able to test this yet as my Bluetooth headset is at home, but maybe some one else wants to try. Hope it works!

It will add the registry entries, and put BTAGExtModule.dll and VoiceSignal Launcher.exe in the Windows folder.

UPDATE: File should work now.
[JAM, MDA Compact, S100 General] rmg:
Nice one adamz.

2 things:

We need to confirm that no changes are required to the reg entries. I did not have to make any changes and it worked but Paul seemed pretty sure that something needed to be changed?

Where is VoiceSignal Launcher.exe coming from? are you including the renamed voicecmd.exe in the cab?

good work fella :-)
[JAM, MDA Compact, S100 General] corben:
rmg thanks. It seems that I'm having problem downloading from XDA_D ftp site. If you can host it of email (corben1@hotmail.com) them to me that would be great.

thanks again mate
[JAM, MDA Compact, S100 General] rmg:
no worries mate, will sort it later.

BTW, were famous ;-)

http://msmobiles.com/news.php/4133.html

Well, would have been rude not to share the good news ;-)

Im gonna have to donate to XDA_D tho, should have done it ages ago!

Also gonna speak to the queen about getting Paul knighted ;-)

--

rmg.
[JAM, MDA Compact, S100 General] adamz:
The reg entries Paul was saying to change seem to already exist in my device so the CAB file doesn't change those. Sounds like it should be fine leaving them as is, no? Yes, VoiceSignal Launcher.exe is a renamed voicecmd.exe in there. It's from Voice Command 1.5, which I should assume you would need to be installed in order for that to work. So maybe the CAB file won't work for everyone. Eh, just trying to help.

Can't wait to try it out with my headset.

FYI, Paul and others, this is the program you can use to make CAB files: http://www.ocpsoftware.com/download.php?nm=cecabmgr
[JAM, MDA Compact, S100 General] adamz:
And I just confirmed that my CAB file does work! Woohoo! VERY NICE! Thanks Paul!
[JAM, MDA Compact, S100 General] psneddon:
I just tried to move the speech engine/voice command software from the C500 smartphone to the jam with some success. It enables the voice tag feature (the one built into the os) and lets me record and play back the tags so it must be compatable..... Most smartphone apps work nicely on the ppc.

However nothing happens when I press the headset button. The file that we currently use simply loads voice command. The extentsion from the C500 looks like it links up the audiogateway to the wav driver. The voice software from the C500 is all contained in a single dll file and it must register itself as some sort of server.

When I press the headset button I hear the device connect but nothing else happens :(

Does anyone know how any applications like softice on the pc that work on the PDA - if I could view whats going on internally on the PPC then I might get somewhere.

I would love to get this to work as I really like the way voicedial works on the C500 - really simple and effective. Plus it relays back throught the headset.

Also for anyone who does PPC programming - writing an audiogateway extenstion (Like the one I hacked) looks to be quite simple - All is does is make a callback function which gets called when you press the headset button (or any other event for that mater). For example you could have a callback that triggers when you do xyz.

Also, I've noted that we dont need to edit the registry to get the hack working (apart from adding the headset.dll bit). That file has always been there - its just that for some reason HTC never enabled it??

Paul
[JAM, MDA Compact, S100 General] rmg:
http://www.rmg.me.uk/jam/JAM_UK_11200_131_11210_ship.exe

--

rmg.