FJ Software Foren-Übersicht  
 Homepage   •  Suchen   •  FAQ   •  Mitgliederliste   •  Registrieren   •  Login
 Bluetooth Audio Gateway Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Neues Thema eröffnenNeue Antwort erstellen
Autor Nachricht
Mr. Milk



Anmeldedatum: 21.07.2008
Beiträge: 3

BeitragVerfasst am: Mo Jul 21, 2008 20:15 Antworten mit ZitatNach oben

NEED:
I want to use my PC as a bluetooth headset, that is, receive and place calls (with MPE) using my PC's microphone and speakers.

WHAT TO DO:
Setup bluetooth software (Windows, WidComm) to use Audio Gateway.

PROBLEM:
You can't have 2 bluetooth connections for the same 2 devices at the same time. So, if you start audio gateway MyPhoneExplorer can't dial or ring.

CURRENT SOLUTION:
Plug your phone to the PC using a USB cable and setup MPE to use this USB connection. Start bluetooth audio gateway.

MY PROPOSITION:
MPE could use a bluetooth connection and start Audio Gateway through a COM object, when needed. This could be automatically done right after dialing or ringing.

HOW:
Dim bluetooth as Object, service_name as String, device_address(6) as Byte
Set bluetooth = CreateObject("BTStackServer.BTHSPApi")
service_name = "Telephony Audio Gateway"
device_address = GetDeviceAddr()***
bluetooth.HSPConnectGatewayUuid device_address, service_name, &H1112

COMMENTS:
The code above (vb, vba, vbscript) starts the Audio Gateway bluetooth service in Windows Vista (which uses widcomm stack). I'm not sure if the service name would be "Telephony Audio Gateway" in other stack versions.

There is NO NEED to stop the service. Windows will automatically stop the audio gateway as soons as MPE tries to connect again, as long as there is no call in place.

The GetDeviceAddr() function would have to be built. The value needed is just the device address, which can be retrieved from the bluetooth enumeration api. Maybe MPE already has that internally.

MY TESTS:
I compiled this small code into a exe file and assigned it to a custom button in my notebook. I keep MPE connected through bluetooth. Everytime the phone rings, MPE throws a popup with the caller id. If I want to answer, I just press the custom button. Windows start audio gateway and I get audio through PC's mic and speakers. After hanging up, MPE reconnects and takes control of the phone again. Similarly, when I want to make a call, I simply go to MPE, dial the number and press the custom button right after it.

So, this is my suggestion (and wish) for a future MPE version.

Thanks and congrats for the great work.

Mr. Milk

P.S. I'm sorry. I just realized that there is a sticky thread for wishes and feature requests. Moderator, feel free to move the topic.
Benutzer-Profile anzeigenPrivate Nachricht senden
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 30450
Wohnort: Tirol

BeitragVerfasst am: Di Jul 22, 2008 00:06 Antworten mit ZitatNach oben

Thanks for the tips and code, but i think you missed one thing:
- Its possible to start more than one Bluetooth-Service at the same time if you disable "Save energy" in the Bluetoothsettings of the phone. I think all models since the K750 series support multiple BT-Services

Besides this your code would work only with the Windows-Stack. I don't want to make MPE "Bluetooth-dependend". The serial connection is universal but the BT-Stacks have diffrent APIs (Bluesoleil, Widcomm under WinXP, Widcomm under Vista,....)
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
Gast






BeitragVerfasst am: Di Jul 22, 2008 02:30 Antworten mit ZitatNach oben

FJ hat Folgendes geschrieben:
Thanks for the tips and code, but i think you missed one thing:
- Its possible to start more than one Bluetooth-Service at the same time if you disable "Save energy" in the Bluetoothsettings of the phone. I think all models since the K750 series support multiple BT-Services

Besides this your code would work only with the Windows-Stack. I don't want to make MPE "Bluetooth-dependend". The serial connection is universal but the BT-Stacks have diffrent APIs (Bluesoleil, Widcomm under WinXP, Widcomm under Vista,....)


Thanks for answering FJ.

I have not missed the save energy option. I turned it off but with the audio gateway on, MPE takes a very long time to connect and "talk" to the phone. But the main problem is that audio gateway is automatically disconnected every time MPE accesses the phone (as I described before). Mine is a W810.

Since you don't want to add this option to MPE, you could at least add something like "run this after ring", "run this before dialing", "run this after dialing", where the user could start an external program.

This command line option would be even better if you could additionally pass the caller/called id to the command line as a parameter. It would be possible to create an add-on to popup the related contact record on a contact manager/CRM, for example.
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 30450
Wohnort: Tirol

BeitragVerfasst am: Di Jul 22, 2008 07:35 Antworten mit ZitatNach oben

There are already Handlers for this, please take a look at the german Tweaking-FAQ
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
Mr. Milk



Anmeldedatum: 21.07.2008
Beiträge: 3

BeitragVerfasst am: Di Jul 22, 2008 10:26 Antworten mit ZitatNach oben

FJ hat Folgendes geschrieben:
There are already Handlers for this, please take a look at the german Tweaking-FAQ


That's absolutely great news. I'm all set then, no more wishes!

Thanks FJ!
Benutzer-Profile anzeigenPrivate Nachricht senden
abou-



Anmeldedatum: 22.07.2008
Beiträge: 3

BeitragVerfasst am: Di Jul 22, 2008 20:07 Antworten mit ZitatNach oben

I'm using windows vista - Do you have a link so that i can download drivers to use my computer as an audio gateway? If i dont need additional drivers, can u explain to me how i can make my phone see my PC as a headset?
Benutzer-Profile anzeigenPrivate Nachricht senden
Mr. Milk



Anmeldedatum: 21.07.2008
Beiträge: 3

BeitragVerfasst am: Sa Jul 26, 2008 02:48 Antworten mit ZitatNach oben

abou- hat Folgendes geschrieben:
I'm using windows vista - Do you have a link so that i can download drivers to use my computer as an audio gateway? If i dont need additional drivers, can u explain to me how i can make my phone see my PC as a headset?


I'm using Vista x64 with a HP Compaq notebook. At first, my notebook did not have the Telephony Audio Gateway option available in the bluetooth setup. I then uninstalled the HP bluetooth software/device driver and googled for a newer broadcom driver. After installing it, I got the audio gateway working. Unfortunately, I can't give you more details and links right now. The HP notebook died yesterday (no relation to new driver). So, it may take a week or two before I get it back.
Benutzer-Profile anzeigenPrivate Nachricht senden
Beiträge der letzten Zeit anzeigen:      
Neues Thema eröffnenNeue Antwort erstellen


 Gehe zu:   



Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.

Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme :: Alle Zeiten sind GMT + 1 Stunde
Deutsche Übersetzung von phpBB.de