Bluetooth Audio Gateway
Verfasst: Mo 21. Jul 2008, 19:15
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.
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.