[Gambas-user] Bluetooth in Gambas

Lee McPherson leemcpherson at ...626...
Tue Jun 3 23:31:13 CEST 2008


Thanks for all the advice.  This worked for a cheap headset that I have 
to connect to the computer.  (played some mp3s using mplayer over the 
headset)   However, this won't work on the phone I have... even though 
the headset will work on the phone.

I believe it's because the headset has a "Headset" profile but the phone 
doesn't.   This is confirmed using both the sdptool and using a d-bus 
debugger program.  Have you used a bluetooth headset in Skype or your 
bluetooth phone? 

As Pablo mentioned, I'm going to need the computer to act as the 
Handsfree device and have the phone be the Audio Gateway.  At the 
moment, it seems the Alsa plugin for Bluez uses the computer as an Audio 
Gateway only.  Ack... I may need to start looking at the drivers like he 
said.  This may be beyond my abilities.

I'll keep searching.... Thanks
-Lee

Steven Drinnan wrote:
> Bluetooth Audio is available with ALSA bluez-utils-alsa
> Just edit the file 
>
> .asoundrc  put it in your home folder
>
> you need to add 
>
> pcm.bluetooth {
>    type bluetooth
>    device "00:0C:78:40:B8:01" //this is the id of the phone if you used
> rfcomm just use the same ID.
>    profile "auto"
> }
>
> restart your computer.
>
> You need bluez-utils-alsa. Then you can use alsa to activate the device.
> I have used it in skype, audacious and mplayer.
>
> How that can be used in gambas maybe some else can jump in here.
>
> I hope that helps.
>
>
>
>
>
> On Sun, 2008-06-01 at 10:16 +0200, Ron wrote:
>   
>> Lee McPherson schreef:
>>     
>>> This is not exactly a Gambas question, but I thought someone would be 
>>> able to point me in the right direction.
>>>
>>> I'm trying to make a Bluetooth handsfree app with Gambas.  I've already 
>>> gotten the serial interface established so that I can dial calls and 
>>> download the phonebook from my cell phone within Gambas.  I'm using 
>>> Ubuntu (hardy) and to create the serial connection, I'm using the 
>>> command line program rfcomm.  (I had to put this program in the sudoers 
>>> file so that I didn't have to use sudo every time I wanted to run it.)
>>>
>>> Here's the problem... I haven't been able to find any good documentation 
>>> to establish the 2-way audio link to the cell phone with Bluetooth.  
>>> Other online tutorials explain how to use btsco (an outdated app) to 
>>> connect to Bluetooth headsets, but that doesn't seem to be working for 
>>> me.  I've come across an idea to have linux emulate a bluetooth headset 
>>> so that the phone can find it, but I haven't discovered how to do that.  
>>> Ultimately, I just want to use standard speakers and a mic connected to 
>>> the computer to talk over bluetooth.
>>>
>>> Does anyone have ideas?  I'd be extremely grateful!  (if anyone has 
>>> questions about how I've done what I have so far, I'd be glad to answer 
>>> them.)
>>>
>>> -Lee
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Microsoft
>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>> _______________________________________________
>>> Gambas-user mailing list
>>> Gambas-user at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>   
>>>       
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>     
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>   





More information about the User mailing list