Skip to contentSkip to conversation

How can I add a new bluetooth service ?

Bluez-devel Paul Ionescu 2 participants 2 messages Jan 16, 2005 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi Fred,

I used the headset with a lot of alsa apps like gnomemeeting, mplayer, aso, and non alsa apps thru the oss emulation of alsa.
For gnomemeeting this is just fine because is also intended for voice, but to listen to a movie on a 8KHz mono headset is not so HiQ.
Anyway it realy works.
What I am trying to do is to connect it when I press the button on headset and disconnect it when I press the button again. So no need for special applet. I think that will be nice to put some support for btsco in kdebluetooth, but the right person to ask is not me.
Maybe Brad or Lars can give more details of what is in the future development for btsco.
I just modified btsco a bit to be able to use the rfcomm connection accepted by kdebluetoothd and did some other small changes to better fit my Jabra BT110.

Anyway, if I can help with something, just let me
know.

Thanks,
Paul

--- Fred Schaettgen <[email protected]>

Quoted 18 lines · wrote:
Quoted 5 lines · you

--- Fred Schaettgen <[email protected]> wrote:
Hi Fred,

Yes, I can press the headset button and

kbluetoothd

Quoted 1 line

will start a headset connection with btsco.

And I can use it with any alsa-capable application?

Quoted 1 line

btsco is from

http://bluetooth-alsa.sourceforge.net/

Quoted 4 lines

and is a small proof of concept AG profile using snd-bt-sco which is indeed an alsa bt driver. So you can connect btsco to a headset but not to a phone as it does not knows HS or HF profiles.

Quoted 14 lines

Ah, got it.. I thought btsco handles only the SCO connection, but this can
hardly work. Do you think it would make sense to integrate headset support
into kdebluetooth at this point?
If it works already, the only thing that's missing is a little tray icon,
where the user can terminate the headset connection. Problem is snd-bt-sco
isn't shipped with the stock kernel. But on the other hand it could help
making snd-bt-sco more popular if we support it in kdebluetooth. What's you
opinion?

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just a few comments that where not even asked for :)

just to describe whats happening right now:

we have a small "daemon" that does the whole rfcomm and sco connection handling (btsco). It listens on rfcomm for the connect/disconnect events from the headset (button press) and opens/closes sco when needed.

the second part of the whole lot is snd-bt-sco, which handles the sco-to-audio transmission. This thing will be reworked sooner or later, we hope it can be a user-space driver AND we want to get rid of the data transfer loop by connecting alsa and sco socket directly (or converting the sco socket).

What I always thought about was some way of "communication" between our btsco daemon that does the connection handling (also should manage different headsets and stuff like auto-connection on audio-open later), and I think you might have some suggestions here, Fred.

i.e. an application like gnomemeeting might like to open the headset, or a tray app could display the status of the headset. For this, the daemon must support some "connection" thingy. How should this be done? I never did something like that before, so I don't know... :)

Maybe something simple in /proc or /dev? We won't need much mojo there, just control for each headset (on/off)

best regards,
~ Lars

Paul Ionescu wrote:

| Hi Fred,
|
| I used the headset with a lot of alsa apps like
| gnomemeeting, mplayer, aso, and non alsa apps thru the
| oss emulation of alsa.
| For gnomemeeting this is just fine because is also
| intended for voice, but to listen to a movie on a 8KHz
| mono headset is not so HiQ.
| Anyway it realy works.
| What I am trying to do is to connect it when I press
| the button on headset and disconnect it when I press
| the button again. So no need for special applet.
| I think that will be nice to put some support for
| btsco in kdebluetooth, but the right person to ask is
| not me.
| Maybe Brad or Lars can give more details of what is in
| the future development for btsco.
| I just modified btsco a bit to be able to use the
| rfcomm connection accepted by kdebluetoothd and did
| some other small changes to better fit my Jabra BT110.
|
| Anyway, if I can help with something, just let me
| know.
|
| Thanks,
| Paul
|
|
| --- Fred Schaettgen <[email protected]>
| wrote:
|
|
|>On Sunday 16 January 2005 10:27, you wrote:
|>
|>>--- Fred Schaettgen <[email protected]>
|>>wrote:
|>>Hi Fred,
|>>
|>>Yes, I can press the headset button and
|>
|>kbluetoothd
|>
|>>will start a headset connection with btsco.
|>
|>And I can use it with any alsa-capable application?
|>
|>
|>>btsco is from
|>
|>http://bluetooth-alsa.sourceforge.net/
|>
|>>and is a small proof of concept AG profile using
|>>snd-bt-sco which is indeed an alsa bt driver.
|>>So you can connect btsco to a headset but not to a
|>>phone as it does not knows HS or HF profiles.
|>
|>Ah, got it.. I thought btsco handles only the SCO
|>connection, but this can
|>hardly work. Do you think it would make sense to
|>integrate headset support
|>into kdebluetooth at this point?
|>If it works already, the only thing that's missing
|>is a little tray icon,
|>where the user can terminate the headset connection.
|>Problem is snd-bt-sco
|>isn't shipped with the stock kernel. But on the
|>other hand it could help
|>making snd-bt-sco more popular if we support it in
|>kdebluetooth. What's you
|>opinion?
|

- --
Lars Grunewaldt
* software development
* multimedia design
skills: C/C++/Java/PHP/(X)HTML/Flash/audio/video
web: http://www.dark-reality.de
mail: [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB6v9BQWC6DTWkDAoRAl6vAJ95UtPcSOr4sl0ap6YDqUU317iT5gCgsE4b K+3bSnyFJB7d2niiLrrQoaI=
=/l1/
-----END PGP SIGNATURE-----

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel