* [Bluez-devel] SCO Question
@ 2007-08-22 18:23 robert
2007-08-24 11:35 ` Mikael Bengtsson
2007-08-24 12:06 ` Marcel Holtmann
0 siblings, 2 replies; 8+ messages in thread
From: robert @ 2007-08-22 18:23 UTC (permalink / raw)
To: bluez-devel
Hello Bluez,
How would I go about redirecting incoming SCO data to an alsa device,
and transmit incoming audio data out as SCO?
I have read the following pages,
http://wiki.bluez.org/wiki/Audio
http://wiki.bluez.org/wiki/HOWTO/AudioDevices
but everything described seems to do too much. I would prefer to
handle the RFCOMM channel, and SDP registration elsewhere.
Presently, I just want to determine how to redirect the SCO traffic.
Thanks,
--robert
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Bluez-devel] SCO Question
2007-08-22 18:23 [Bluez-devel] SCO Question robert
@ 2007-08-24 11:35 ` Mikael Bengtsson
2007-08-24 12:06 ` Marcel Holtmann
1 sibling, 0 replies; 8+ messages in thread
From: Mikael Bengtsson @ 2007-08-24 11:35 UTC (permalink / raw)
To: BlueZ development
[-- Attachment #1.1: Type: text/plain, Size: 2264 bytes --]
Hello Robert!
I want to do the same thing as you. The methods for redirecting audio according to the different HOWTO:s seems to involve A2D2P which, I think, is used for point-to-point communication with a headset. A2D2P is not SCO, but rather ACL (am I right)?
I would like to receive SCO and redirect it to the sound card via Alsa. The idea is that I will recieve SCO in a buffer and then write the buffer to the sound card with Alsa functions. The sound card must be initalized with the correct parameters regarding sample rate, PCM format and so on before beginning to write to the buffer.
I will also record voice via the sound card and then write to a buffer to the socket for SCO.
We have a test version where the voice from a Bluetooth client is echoed back from the master to the client. The result is that the person talking in the headset will here himself. This is simply done by reading the SCO socket and writing back the same data to the socket.
-Mikael> To: bluez-devel@lists.sourceforge.net> From: rbscott@cadvium.net> Date: Wed, 22 Aug 2007 11:23:16 -0700> Subject: [Bluez-devel] SCO Question> > Hello Bluez,> > How would I go about redirecting incoming SCO data to an alsa device, > and transmit incoming audio data out as SCO?> > I have read the following pages,> http://wiki.bluez.org/wiki/Audio> http://wiki.bluez.org/wiki/HOWTO/AudioDevices> > but everything described seems to do too much. I would prefer to > handle the RFCOMM channel, and SDP registration elsewhere. > Presently, I just want to determine how to redirect the SCO traffic.> > Thanks,> --robert> > -------------------------------------------------------------------------> This SF.net email is sponsored by: Splunk Inc.> Still grepping through log files to find problems? Stop.> Now Search log events and configuration files using AJAX and a browser.> Download your FREE copy of Splunk now >> http://get.splunk.com/> _______________________________________________> Bluez-devel mailing list> Bluez-devel@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/bluez-devel
_________________________________________________________________
Dela filer, prata och spela spel med dina vänner på Messenger!
http://get.live.com/?revipcountry=se
[-- Attachment #1.2: Type: text/html, Size: 2786 bytes --]
[-- Attachment #2: Type: text/plain, Size: 315 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Bluez-devel] SCO Question
2007-08-22 18:23 [Bluez-devel] SCO Question robert
2007-08-24 11:35 ` Mikael Bengtsson
@ 2007-08-24 12:06 ` Marcel Holtmann
2007-09-06 11:03 ` Mikael Bengtsson
1 sibling, 1 reply; 8+ messages in thread
From: Marcel Holtmann @ 2007-08-24 12:06 UTC (permalink / raw)
To: BlueZ development
Hi Robert,
> How would I go about redirecting incoming SCO data to an alsa device,
> and transmit incoming audio data out as SCO?
>
> I have read the following pages,
> http://wiki.bluez.org/wiki/Audio
> http://wiki.bluez.org/wiki/HOWTO/AudioDevices
>
> but everything described seems to do too much. I would prefer to
> handle the RFCOMM channel, and SDP registration elsewhere.
> Presently, I just want to determine how to redirect the SCO traffic.
actually you can't really do SCO without a profile. In theory you can,
but that is to compatible with out devices. Since this kind of
application doesn't really make sense for most people we didn't focus on
it and so nothing like that is available. However hstest.c and other SCO
demos can be used to quickly write something like that. The hardest part
is to get the ALSA thing right. Again, you have to write that by
yourself since we have no need for this right now.
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Bluez-devel] SCO Question
2007-08-24 12:06 ` Marcel Holtmann
@ 2007-09-06 11:03 ` Mikael Bengtsson
0 siblings, 0 replies; 8+ messages in thread
From: Mikael Bengtsson @ 2007-09-06 11:03 UTC (permalink / raw)
To: BlueZ development
[-- Attachment #1.1: Type: text/plain, Size: 2717 bytes --]
I have now redirected SCO to ALSA. I setup ALSA as a player, that is, sound shall be played on the soundcard. The hardest part in ALSA was to set the correct number of frames and number of periods, but with the help of tutorials on the web it worked out.
Now I have set up ALSA to play 32 frames, 2 periods, mono, 8 kHz, S16_LE (signed 16 bits little endian on my Intel XScale PXA255). This means 64 bytes of data (one frame = one sample is 2 bytes when mono). This corresponds to sound from SCO.
Unfortunately, on my system SCO delivers only 60 bytes of data per read operation, HV3 delivers 30 bytes in one package, which doesn't add up with the soundcard. The soundcard (AC97-based) wants 16, 32, 64 bytes and so on. Therefore the sound isn't of good quality. On other soundcards it may be possible to set a frame size which corresponds exactly to SCO.
I think I will have to do some buffering from SCO before allowing ALSA to play sound.
-Mikael
> From: marcel@holtmann.org> To: bluez-devel@lists.sourceforge.net> Date: Fri, 24 Aug 2007 14:06:53 +0200> Subject: Re: [Bluez-devel] SCO Question> > Hi Robert,> > > How would I go about redirecting incoming SCO data to an alsa device, > > and transmit incoming audio data out as SCO?> > > > I have read the following pages,> > http://wiki.bluez.org/wiki/Audio> > http://wiki.bluez.org/wiki/HOWTO/AudioDevices> > > > but everything described seems to do too much. I would prefer to > > handle the RFCOMM channel, and SDP registration elsewhere. > > Presently, I just want to determine how to redirect the SCO traffic.> > actually you can't really do SCO without a profile. In theory you can,> but that is to compatible with out devices. Since this kind of> application doesn't really make sense for most people we didn't focus on> it and so nothing like that is available. However hstest.c and other SCO> demos can be used to quickly write something like that. The hardest part> is to get the ALSA thing right. Again, you have to write that by> yourself since we have no need for this right now.> > Regards> > Marcel> > > > -------------------------------------------------------------------------> This SF.net email is sponsored by: Splunk Inc.> Still grepping through log files to find problems? Stop.> Now Search log events and configuration files using AJAX and a browser.> Download your FREE copy of Splunk now >> http://get.splunk.com/> _______________________________________________> Bluez-devel mailing list> Bluez-devel@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/bluez-devel
_________________________________________________________________
Nu kan du får Messenger i mobilen, läs mer!
http://www.mobil.msn.se/
[-- Attachment #1.2: Type: text/html, Size: 3322 bytes --]
[-- Attachment #2: Type: text/plain, Size: 315 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <A1F0D47583A2D711919F00600819B3A45BDC65@goofy.vitronics.com >]
* RE: [Bluez-devel] SCO question
[not found] <A1F0D47583A2D711919F00600819B3A45BDC65@goofy.vitronics.com >
@ 2004-07-09 7:48 ` Arnaud Mouiche
0 siblings, 0 replies; 8+ messages in thread
From: Arnaud Mouiche @ 2004-07-09 7:48 UTC (permalink / raw)
To: Williams, Richard, Bluez-Devel (E-mail)
At 16:11 08/07/2004 -0400, Williams, Richard wrote:
>Arnaud, Thank you.
>
>exactly right.... The channel for my headset is "2".
>
>hstest record t1.wav 00:0A:D9:74:97:19 2
>sets up the SCO channel correctly, and rings the headset.
>
>And I can see the various "AT" commands coming from the headset for volume
>control, etc.
>
>However, there is no audio. Neither "record" nor "play" appears to do
>anything.
>
>Next idea ??
the audio path is something that you should realy take care and look at the
possibiliites provided by your hardware.
- does your device can send/Receive audio through HCI ? and if yes, I
really thing you need to send vendor specific command to configure it (the
device has also the possibilities to use a analogic path, or a IOM one if
they are available)
- does your device support 16 bit PCM steaming ? If not, you should use
another setting for "hciconfig hci0 voice 0x0040" and hack hstest to accept
ulaw/alaw instead of PCM (if it's not already done)
arnaud
>BTW: I am using Bluez-utils 2.3 and bluez-libs 2.4. I don't know if that
>makes a difference.
>
>Best Regards,
>
>Rich
>
>
>
>-----Original Message-----
>From: Arnaud Mouiche [mailto:arnaud.mouiche@inventel.fr]
>Sent: Thursday, July 08, 2004 10:09 AM
>To: Williams, Richard; Bluez-Devel (E-mail)
>Subject: Re: [Bluez-devel] SCO question
>
>
>At 09:12 08/07/2004 -0400, Williams, Richard wrote:
>
> >Hi,
> >
> >I'm getting back to a BT headset <-> LINUX project that I had abandoned
> >some months ago. I have an X-scale single board computer running Linux
> >2.4.26 with the latest Bluez patches. I have a Sony Ericsson HBH-35
> >headset that I'm trying to get to work with my computer. I have an Anycomm
> >USB BT dongle.
> >
> >I have done the following:
> >modprobe hci_usb
> >modprobe rfcomm
> >modprobe sco
> >hcid
> >hciconfig hci0 up
> >hciconfig hci0 voice 0x0040
> >.... My Pin file is set up for a pin of "0000" - required by the headset.
> >
> >hcitool scan works OK and finds the headset
> >
> >l2ping works OK and pairs with the headset.
> >
> >hstest record t1.wav 00:0A:D9:74:97:19 1
>
>are you sure than "1" is the correct rfcomm channel ?
>you should perform a SDP request to get the correct one.
>
>arnaud
>
> ><<<This gives output:
> >Voice setting: 0x0040
> >RFCOMM channel connected
> >Can't connect SCO audio channel: Connection refused.
> >
> >I know that the socket connect statement in sco_connect() in hstest is
> >failing.
> >Any ideas of the cause of this ?
> >
> >
> >thanks very much,
> >
> >Rich
> >
> >
> >
> >Richard B. Williams
> >Vitronics, Inc.
> >3 Corbett Way
> >Eatontown, NJ 07724-2262
> >732-389-0244 x29
> >Richard.Williams@vitronics.com
> >
> >
> >
> >-------------------------------------------------------
> >This SF.Net email sponsored by Black Hat Briefings & Training.
> >Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> >digital self defense, top technical experts, no vendor pitches,
> >unmatched networking opportunities. Visit www.blackhat.com
> >_______________________________________________
> >Bluez-devel mailing list
> >Bluez-devel@lists.sourceforge.net
> >https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by Black Hat Briefings & Training.
>Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
>digital self defense, top technical experts, no vendor pitches,
>unmatched networking opportunities. Visit www.blackhat.com
>_______________________________________________
>Bluez-devel mailing list
>Bluez-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-devel
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [Bluez-devel] SCO question
@ 2004-07-08 20:11 Williams, Richard
0 siblings, 0 replies; 8+ messages in thread
From: Williams, Richard @ 2004-07-08 20:11 UTC (permalink / raw)
To: Bluez-Devel (E-mail)
Arnaud, Thank you.
exactly right.... The channel for my headset is "2".
hstest record t1.wav 00:0A:D9:74:97:19 2
sets up the SCO channel correctly, and rings the headset.
And I can see the various "AT" commands coming from the headset for =
volume control, etc.
However, there is no audio. Neither "record" nor "play" appears to do =
anything.
Next idea ??
BTW: I am using Bluez-utils 2.3 and bluez-libs 2.4. I don't know if that =
makes a difference.
Best Regards,
Rich
-----Original Message-----
From: Arnaud Mouiche [mailto:arnaud.mouiche@inventel.fr]
Sent: Thursday, July 08, 2004 10:09 AM
To: Williams, Richard; Bluez-Devel (E-mail)
Subject: Re: [Bluez-devel] SCO question
At 09:12 08/07/2004 -0400, Williams, Richard wrote:
>Hi,
>
>I'm getting back to a BT headset <-> LINUX project that I had abandoned =
>some months ago. I have an X-scale single board computer running Linux=20
>2.4.26 with the latest Bluez patches. I have a Sony Ericsson HBH-35=20
>headset that I'm trying to get to work with my computer. I have an =
Anycomm=20
>USB BT dongle.
>
>I have done the following:
>modprobe hci_usb
>modprobe rfcomm
>modprobe sco
>hcid
>hciconfig hci0 up
>hciconfig hci0 voice 0x0040
>.... My Pin file is set up for a pin of "0000" - required by the =
headset.
>
>hcitool scan works OK and finds the headset
>
>l2ping works OK and pairs with the headset.
>
>hstest record t1.wav 00:0A:D9:74:97:19 1
are you sure than "1" is the correct rfcomm channel ?
you should perform a SDP request to get the correct one.
arnaud
><<<This gives output:
>Voice setting: 0x0040
>RFCOMM channel connected
>Can't connect SCO audio channel: Connection refused.
>
>I know that the socket connect statement in sco_connect() in hstest is=20
>failing.
>Any ideas of the cause of this ?
>
>
>thanks very much,
>
>Rich
>
>
>
>Richard B. Williams
>Vitronics, Inc.
>3 Corbett Way
>Eatontown, NJ 07724-2262
>732-389-0244 x29
>Richard.Williams@vitronics.com
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by Black Hat Briefings & Training.
>Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
>digital self defense, top technical experts, no vendor pitches,
>unmatched networking opportunities. Visit www.blackhat.com
>_______________________________________________
>Bluez-devel mailing list
>Bluez-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-devel
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <A1F0D47583A2D711919F00600819B3A4028BAE@goofy.vitronics.com >]
* Re: [Bluez-devel] SCO question
[not found] <A1F0D47583A2D711919F00600819B3A4028BAE@goofy.vitronics.com >
@ 2004-07-08 14:08 ` Arnaud Mouiche
0 siblings, 0 replies; 8+ messages in thread
From: Arnaud Mouiche @ 2004-07-08 14:08 UTC (permalink / raw)
To: Williams, Richard, Bluez-Devel (E-mail)
At 09:12 08/07/2004 -0400, Williams, Richard wrote:
>Hi,
>
>I'm getting back to a BT headset <-> LINUX project that I had abandoned
>some months ago. I have an X-scale single board computer running Linux
>2.4.26 with the latest Bluez patches. I have a Sony Ericsson HBH-35
>headset that I'm trying to get to work with my computer. I have an Anycomm
>USB BT dongle.
>
>I have done the following:
>modprobe hci_usb
>modprobe rfcomm
>modprobe sco
>hcid
>hciconfig hci0 up
>hciconfig hci0 voice 0x0040
>.... My Pin file is set up for a pin of "0000" - required by the headset.
>
>hcitool scan works OK and finds the headset
>
>l2ping works OK and pairs with the headset.
>
>hstest record t1.wav 00:0A:D9:74:97:19 1
are you sure than "1" is the correct rfcomm channel ?
you should perform a SDP request to get the correct one.
arnaud
><<<This gives output:
>Voice setting: 0x0040
>RFCOMM channel connected
>Can't connect SCO audio channel: Connection refused.
>
>I know that the socket connect statement in sco_connect() in hstest is
>failing.
>Any ideas of the cause of this ?
>
>
>thanks very much,
>
>Rich
>
>
>
>Richard B. Williams
>Vitronics, Inc.
>3 Corbett Way
>Eatontown, NJ 07724-2262
>732-389-0244 x29
>Richard.Williams@vitronics.com
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by Black Hat Briefings & Training.
>Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
>digital self defense, top technical experts, no vendor pitches,
>unmatched networking opportunities. Visit www.blackhat.com
>_______________________________________________
>Bluez-devel mailing list
>Bluez-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-devel
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bluez-devel] SCO question
@ 2004-07-08 13:12 Williams, Richard
0 siblings, 0 replies; 8+ messages in thread
From: Williams, Richard @ 2004-07-08 13:12 UTC (permalink / raw)
To: Bluez-Devel (E-mail)
Hi,
I'm getting back to a BT headset <-> LINUX project that I had abandoned =
some months ago. I have an X-scale single board computer running Linux =
2.4.26 with the latest Bluez patches. I have a Sony Ericsson HBH-35 =
headset that I'm trying to get to work with my computer. I have an =
Anycomm USB BT dongle.
I have done the following:
modprobe hci_usb
modprobe rfcomm
modprobe sco
hcid
hciconfig hci0 up
hciconfig hci0 voice 0x0040
.... My Pin file is set up for a pin of "0000" - required by the =
headset.
hcitool scan works OK and finds the headset
l2ping works OK and pairs with the headset.
hstest record t1.wav 00:0A:D9:74:97:19 1
<<<This gives output:
Voice setting: 0x0040
RFCOMM channel connected
Can't connect SCO audio channel: Connection refused.
I know that the socket connect statement in sco_connect() in hstest is =
failing.
Any ideas of the cause of this ?
thanks very much,
Rich
Richard B. Williams
Vitronics, Inc.
3 Corbett Way
Eatontown, NJ 07724-2262
732-389-0244 x29
Richard.Williams@vitronics.com
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-09-06 11:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-22 18:23 [Bluez-devel] SCO Question robert
2007-08-24 11:35 ` Mikael Bengtsson
2007-08-24 12:06 ` Marcel Holtmann
2007-09-06 11:03 ` Mikael Bengtsson
[not found] <A1F0D47583A2D711919F00600819B3A45BDC65@goofy.vitronics.com >
2004-07-09 7:48 ` [Bluez-devel] SCO question Arnaud Mouiche
-- strict thread matches above, loose matches on Subject: below --
2004-07-08 20:11 Williams, Richard
[not found] <A1F0D47583A2D711919F00600819B3A4028BAE@goofy.vitronics.com >
2004-07-08 14:08 ` Arnaud Mouiche
2004-07-08 13:12 Williams, Richard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox