ERROR:Reject SCO: Agent not registered.
by Abhishek Dharmapurikar
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?
5 years
U-Blox modem sends unprintable chars before "AT+CGMS=<seq>" reply: ofono (1.16) close the serial port ?
by Fabio
Hello,
I'm using ofono 1.16 with some patch to add sms manager to the Ublox driver.
Someone could confirm that ofono close the serial port when it receives
some unexpected/unprintable character before the "AT+CGMS=<seq>" reply from
the modem?
If yes, is possible to discard these characters instead of hanging-up the
serial port? Could I have some info about the source I have to patch ?
Thanks in advance,
FabioT
--
****************************************************************************************************************************
"Solo due cose sono infinite: l'universo e la stupidità umana. Ma della
prima non sono sicuro". [Albert Einstein]
****************************************************************************************************************************
5 years, 1 month
[PATCH] voicecall: don't dereference a supplied null value
by Simon Fels
When the voicecall atom is unregistered we remove all HFP support as
well but were supplying a zero as value to the emulator status
callbacks which caused the process to crash as we were dereferencing
the supplied value always and not respecting a zero as indicator to
reset.
---
src/voicecall.c | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/voicecall.c b/src/voicecall.c
index a4eef0e..31d845e 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -2660,16 +2660,25 @@ static void emulator_hfp_unregister(struct ofono_atom *atom)
struct ofono_voicecall *vc = __ofono_atom_get_data(atom);
struct ofono_modem *modem = __ofono_atom_get_modem(atom);
+ struct emulator_status data;
+ data.vc = vc;
+
+ data.status = OFONO_EMULATOR_CALL_INACTIVE;
__ofono_modem_foreach_registered_atom(modem,
OFONO_ATOM_TYPE_EMULATOR_HFP,
- emulator_call_status_cb, 0);
+ emulator_call_status_cb, &data);
+
+ data.status = OFONO_EMULATOR_CALLSETUP_INACTIVE;
__ofono_modem_foreach_registered_atom(modem,
OFONO_ATOM_TYPE_EMULATOR_HFP,
emulator_callsetup_status_cb,
- 0);
+ &data);
+
+ data.status = OFONO_EMULATOR_CALLHELD_NONE;
__ofono_modem_foreach_registered_atom(modem,
OFONO_ATOM_TYPE_EMULATOR_HFP,
- emulator_callheld_status_cb, 0);
+ emulator_callheld_status_cb,
+ &data);
__ofono_modem_foreach_registered_atom(modem,
OFONO_ATOM_TYPE_EMULATOR_HFP,
--
2.5.0
5 years, 1 month
[PATCH] rilmodem: fix set_call_barring reply trace (mako)
by Tony Espy
This change restores the trace output for a reply to a
REQUEST_SET_FACILITY_LOCK used by the set function.
---
drivers/rilmodem/call-barring.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/rilmodem/call-barring.c b/drivers/rilmodem/call-barring.c
index 70b0b56..719bbe1 100644
--- a/drivers/rilmodem/call-barring.c
+++ b/drivers/rilmodem/call-barring.c
@@ -119,7 +119,7 @@ static void ril_call_barring_set_cb(struct ril_msg *message, gpointer user_data)
ofono_call_barring_set_cb_t cb = cbd->cb;
struct barring_data *bd = cbd->user;
struct parcel rilp;
- int retries;
+ int retries = -1;
if (message->error != RIL_E_SUCCESS)
goto error;
@@ -138,10 +138,10 @@ static void ril_call_barring_set_cb(struct ril_msg *message, gpointer user_data)
if (rilp.malformed)
goto error;
+done:
g_ril_append_print_buf(bd->ril, "{%d}", retries);
g_ril_print_response(bd->ril, message);
-done:
CALLBACK_WITH_SUCCESS(cb, cbd->data);
return;
--
2.1.4
5 years, 1 month
[PATCH 0/2] Add new rilmodem SMS test cases
by Tony Espy
This patchset adds new rilmodem SMS test cases, including
tests for incoming SMS unsolicited responses.
Tony Espy (2):
unit: add write support to rilmodem-test-server
unit: add new test-rilmodem-sms test cases
unit/rilmodem-test-server.c | 113 ++++++++------
unit/rilmodem-test-server.h | 11 +-
unit/test-rilmodem-cs.c | 6 +-
unit/test-rilmodem-sms.c | 356 ++++++++++++++++++++++++++++++++++++++++++--
4 files changed, 426 insertions(+), 60 deletions(-)
--
2.1.4
5 years, 1 month
[PATCH v2] plugins: rm unneeded exits/sleeps from ril plugin
by Tony Espy
---
plugins/ril.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/plugins/ril.c b/plugins/ril.c
index 8ccf01a..9bf86c5 100644
--- a/plugins/ril.c
+++ b/plugins/ril.c
@@ -142,13 +142,9 @@ static void ril_radio_state_changed(struct ril_msg *message, gpointer user_data)
* too fast re-spawns, then exit with error to make
* upstart re-start ofono.
*/
- if (rd->ofono_online) {
+ if (rd->ofono_online)
ofono_error("%s: radio self-powered off!",
__func__);
- sleep(5);
- exit(1);
- }
- break;
}
}
}
@@ -398,8 +394,8 @@ static gboolean connect_rild(gpointer user_data)
if (create_gril(modem) < 0)
return TRUE;
} else {
- ofono_error("Exiting, can't connect to rild.");
- exit(0);
+ ofono_error("Failed to connect to rild.");
+ return TRUE;
}
return FALSE;
--
2.1.4
5 years, 2 months
[PATCH 0/4 v2] New rilmodem sms test
by Tony Espy
This patch series adds a second rilmodem test for SMS.
The common server test functions have been extracted
for use by future rilmodem tests, and test-rilmodem-cs
has been re-factored to use the common server code.
Tony Espy (4):
unit: add new test-rilmodem-sms
build: add support for test-rilmodem-sms
unit: re-factor test-rilmodem-cs server logic
build: update for test-rilmodem-cs changes
Makefile.am | 26 ++-
unit/rilmodem-test-server.c | 196 +++++++++++++++++++++++
unit/rilmodem-test-server.h | 40 +++++
unit/test-rilmodem-cs.c | 379 ++++++++++++++------------------------------
unit/test-rilmodem-sms.c | 261 ++++++++++++++++++++++++++++++
5 files changed, 639 insertions(+), 263 deletions(-)
create mode 100644 unit/rilmodem-test-server.c
create mode 100644 unit/rilmodem-test-server.h
create mode 100644 unit/test-rilmodem-sms.c
--
2.1.4
5 years, 2 months
[PATCH 0/2] Make test-rilmodem-cs use new server functions
by Tony Espy
This patch series updates test-rilmodem-cs to use the new
rilmodem-test-server functions.
Tony Espy (2):
unit: re-factor test-rilmodem-cs server logic
build: update for test-rilmodem-cs changes
Makefile.am | 2 +
unit/test-rilmodem-cs.c | 377 ++++++++++++++++--------------------------------
2 files changed, 125 insertions(+), 254 deletions(-)
--
2.1.4
5 years, 2 months
[PATCH 0/2] New rilmodem sms test
by Tony Espy
This patch series adds a second rilmodem test for SMS.
The common server test functions have been extracted
for use by future rilmodem tests.
Tony Espy (2):
unit: add new test-rilmodem-sms
build: add support for test-rilmodem-sms
Makefile.am | 14 ++-
unit/rilmodem-test-server.c | 198 ++++++++++++++++++++++++++++++++
unit/rilmodem-test-server.h | 40 +++++++
unit/test-rilmodem-sms.c | 267 ++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 518 insertions(+), 1 deletion(-)
create mode 100644 unit/rilmodem-test-server.c
create mode 100644 unit/rilmodem-test-server.h
create mode 100644 unit/test-rilmodem-sms.c
--
2.1.4
5 years, 2 months