* ERROR:Reject SCO: Agent not registered.
@ 2015-08-25 6:51 Abhishek Dharmapurikar
2015-08-25 8:47 ` Georg Chini
0 siblings, 1 reply; 4+ messages in thread
From: Abhishek Dharmapurikar @ 2015-08-25 6:51 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1936 bytes --]
Hi,
I was trying to setup HFP uing ofono. I have the following setup
Rasperry Pi B+ ( ARM1176JZF-S)
Bluez 5.32
Pulseaudio 6.0
ofono 1.16
Used the following steps
http://padovan.org/blog/2010/02/handsfree-profile-into-bluez-and-ofono/
start pulseaudio, bluetoothd and ofonod
Connect to phone using bluetoothctl
./enable-modem
./dial-number
loopback
I was able to pair my nexus 4 device and use the script ./dial-number which
actually sets a call up. But the audio of the call doesn't route to the
default sink. I see the following error in ofonod
*Reject SCO: Agent not registered*
Which could be the reason for the audio problem.
Things that I have already tried.
Patched http://cgit.freedesktop.org/~jprvita/pulseaudio/ file
bluetooth-headsets-media-api.
Recompiled the raspbian kernel with
*CONFIG_BT_SCOCONFIG_BT_HCIUSB_SCO*
enabled
Added
*Enable = Source,Sink,Headset,Gateway,Control,MediaDisable = Socket*
to /etc/bluetooth/audio.conf.
Things that could be wrong
When I do a pactl list cards, i see the bluetooth card at #0 with two
profiles.
* Profiles: a2dp_source: High Fidelity Capture (A2DP
Source) (sinks: 0, sources: 1, priority: 10, available: yes)
headset_audio_gateway: Headset Audio Gateway (HSP/HFP) (sinks: 1, sources:
1, priority: 20, available: no) off: Off (sinks: 0, sources:
0, priority: 0, available: yes) Active Profile: a2dp_source*
But when I try making the headset_audio_gateway the default profile. I get
*$ sudo pactl set-card-profile 0 headset_audio_gatewayFailure: Input/Output
error*
Also read this in the pulseaudio notes
http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/6.0/
"When building PulseAudio, it's possible to choose between "native" and
"ofono" BlueZ 5 headset backends."
How do I specify that I wish to use the ofono headset backend? Is that the
problem?
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 2456 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ERROR:Reject SCO: Agent not registered.
2015-08-25 6:51 ERROR:Reject SCO: Agent not registered Abhishek Dharmapurikar
@ 2015-08-25 8:47 ` Georg Chini
2016-01-10 15:22 ` ERROR:Reject SCO: Agent not registered. HSP vs A2DP in Debian8 Andrea Furin
0 siblings, 1 reply; 4+ messages in thread
From: Georg Chini @ 2015-08-25 8:47 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 2686 bytes --]
On 25.08.2015 08:51, Abhishek Dharmapurikar wrote:
> Hi,
> I was trying to setup HFP uing ofono. I have the following setup
>
> Rasperry Pi B+ ( ARM1176JZF-S)
> Bluez 5.32
> Pulseaudio 6.0
> ofono 1.16
>
> Used the following steps
> http://padovan.org/blog/2010/02/handsfree-profile-into-bluez-and-ofono/
> start pulseaudio, bluetoothd and ofonod
> Connect to phone using bluetoothctl
> ./enable-modem
> ./dial-number
> loopback
>
> I was able to pair my nexus 4 device and use the script ./dial-number
> which actually sets a call up. But the audio of the call doesn't route
> to the default sink. I see the following error in ofonod
> /
> Reject SCO: Agent not registered/
>
> Which could be the reason for the audio problem.
>
> Things that I have already tried.
> Patched http://cgit.freedesktop.org/~jprvita/pulseaudio/
> <http://cgit.freedesktop.org/%7Ejprvita/pulseaudio/> file
> bluetooth-headsets-media-api.
>
> Recompiled the raspbian kernel with
> /CONFIG_BT_SCO
> CONFIG_BT_HCIUSB_SCO/
> enabled
>
> Added
> /Enable = Source,Sink,Headset,Gateway,Control,Media
> Disable = Socket/
> to /etc/bluetooth/audio.conf.
>
> Things that could be wrong
> When I do a pactl list cards, i see the bluetooth card at #0 with two
> profiles.
> /
> Profiles:
> a2dp_source: High Fidelity Capture (A2DP Source)
> (sinks: 0, sources: 1, priority: 10, available: yes)
> headset_audio_gateway: Headset Audio Gateway (HSP/HFP)
> (sinks: 1, sources: 1, priority: 20, available: no)
> off: Off (sinks: 0, sources: 0, priority: 0,
> available: yes)
> Active Profile: a2dp_source
> /
> But when I try making the headset_audio_gateway the default profile. I
> get
> /$ sudo pactl set-card-profile 0 headset_audio_gateway
> Failure: Input/Output error/
>
> Also read this in the pulseaudio notes
> http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/6.0/
> "When building PulseAudio, it's possible to choose between "native"
> and "ofono" BlueZ 5 headset backends."
> How do I specify that I wish to use the ofono headset backend? Is that
> the problem?
>
Hi,
most of what you find on the web is outdated (like the link above)
because it refers
to Bluez 4 which has a completely different API compared to Bluez 5. But
nevertheless
the combination you are using should work. In pulseaudio you have to
enable ofono
support by adding the parameter "headset=ofono" to
module-bluetooth-discover in
default.pa. See also
http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index35h3
Regards
Georg
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 4318 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ERROR:Reject SCO: Agent not registered. HSP vs A2DP in Debian8
2015-08-25 8:47 ` Georg Chini
@ 2016-01-10 15:22 ` Andrea Furin
2016-01-10 19:50 ` Andrea Furin
0 siblings, 1 reply; 4+ messages in thread
From: Andrea Furin @ 2016-01-10 15:22 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1429 bytes --]
I've found a way to use pc like an headset with Android phone (for making
callings).
!!! I've use pulseaudio from jessie-backports: I don't know how much this
takes risks ;-) !!!
In /etc/apt/sources.list add:
deb http://ftp.jp.debian.org/debian/ jessie-backports main contrib non-free
deb-src http://ftp.jp.debian.org/debian/ jessie-backports main contrib non-free
$ sudo apt-get update
$ sudo apt-get install pulseaudio=7.1-2~bpo8+1 pulseaudio-utils=7.1-2~bpo8+1 \
pulseaudio-module-x11=7.1-2~bpo8+1
pulseaudio-module-bluetooth=7.1-2~bpo8+1 \
libpulse-mainloop-glib0=7.1-2~bpo8+1 libpulsedsp=7.1-2~bpo8+1
libpulse0=7.1-2~bpo8+1 \
libpulse0:i386=7.1-2~bpo8+1
create a file (with same ownership of /var/lib/gdm3) (create directories if
necessary)
/var/lib/gdm3/.config/pulse/client.conf
autospawn = no
daemon-binary = /bin/true
[http://www.gem.mydns.jp/daitei/linux/jessie/bt-headset/]
Install "ofono"
in /etc/pulse/default.pa
modify the line:
load-module module-bluetooth-discover
in:
load-module module-bluetooth-discover headset=ofono
Restart pulseaudio:
killall -9 pulseaudio
(is not necessary "pulseaudio --start" because from pulseaudio 6 it will
restart automatically)
For now it seems that:
- if in /etc/pulse/default.pa you have add "headset=ofono" you will have the
headset;
- if not you will have a2dp (restart pulseaudio every time).
Good luck
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ERROR:Reject SCO: Agent not registered. HSP vs A2DP in Debian8
2016-01-10 15:22 ` ERROR:Reject SCO: Agent not registered. HSP vs A2DP in Debian8 Andrea Furin
@ 2016-01-10 19:50 ` Andrea Furin
0 siblings, 0 replies; 4+ messages in thread
From: Andrea Furin @ 2016-01-10 19:50 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 339 bytes --]
UPDATES
About parameters of "load-module module-bluetooth-discover":
headset=native -> only a2dp
headset=ofono -> only headset
headset=auto -> a2dp and headset !!!
so in /etc/pulse/default.pa
add "headset=auto" to line "load-module module-bluetooth-discover":
load-module module-bluetooth-discover headset=auto
It works!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-01-10 19:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-25 6:51 ERROR:Reject SCO: Agent not registered Abhishek Dharmapurikar
2015-08-25 8:47 ` Georg Chini
2016-01-10 15:22 ` ERROR:Reject SCO: Agent not registered. HSP vs A2DP in Debian8 Andrea Furin
2016-01-10 19:50 ` Andrea Furin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.