Reject SCO: Agent not registered
by Bruno Bruzzano
Hello,
Hi, I'm trying to use the HFP with oFono 1.14. I'm currently using BlueZ5
5.13 on Debian system. After the installation which went fine, I was able
to enable the modem of my device (before I paired it), and then I tried a
call (using the ./dial-number script), but in ofonod debug during the call
I see the following:
ofonod[9700]: Reject SCO: Agent not registered
ofonod[9700]: Reject SCO: Agent not registered
ofonod[9700]: Reject SCO: Agent not registered
ofonod[9700]: Reject SCO: Agent not registered
ofonod[9700]: Reject SCO: Agent not registered
So, What means that? What did I messed?
Regards
Bruno
7 years, 1 month
[PATCH] gprs: Use "internet" apn for auto-created context
by Slava Monich
Such an access point has a pretty good chance to actually work.
---
src/gprs.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/gprs.c b/src/gprs.c
index e379f7b..01ff875 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -2992,8 +2992,13 @@ static void ofono_gprs_finish_register(struct ofono_gprs *gprs)
struct ofono_modem *modem = __ofono_atom_get_modem(gprs->atom);
const char *path = __ofono_atom_get_path(gprs->atom);
- if (gprs->contexts == NULL) /* Automatic provisioning failed */
- add_context(gprs, NULL, OFONO_GPRS_CONTEXT_TYPE_INTERNET);
+ if (gprs->contexts == NULL) { /* Automatic provisioning failed */
+ struct pri_context *context = add_context(gprs, NULL,
+ OFONO_GPRS_CONTEXT_TYPE_INTERNET);
+ if (context) {
+ strcpy(context->context.apn, "internet");
+ }
+ }
if (!g_dbus_register_interface(conn, path,
OFONO_CONNECTION_MANAGER_INTERFACE,
--
1.8.3.2
7 years, 1 month
oFono upstream test results_20140114
by Nicolas Paccou
Hello all,
Please find the test report of oFono v1.14 commit c2e5840.
During this testing, we ran 32 functional positive cases. 32 cases
passed, 0 failed and 0 blocked.
The Pass Rate is 100% (no change vs previous session). No regression has
been found.
If you want to be removed from this mailing list or if you have any
comment about this report, tell me please.If you have any comment about
this report, tell me please.
-----------------------------------------------
*Test Objective *
The aim of this session was to validate the state of oFono upstream by
testing only major tests of most important features over all material we
had (according to what feature was supported and by priority order: 3G
dongle, Smartphone connected through HFP). oFono has been installed and
tested on Ubuntu 13.04 device.
-----------------------------------------------
*Test Environment *
For all Setup:
oFono: v1.14 (updated to commit c2e5840)
-Laptop + 3G Dongle:
usb_modeswitch: v1.2.3
modeswitch data: 20120815-2
Hardware: Laptop
Ubuntu: v13.04
Modem: Huawei E173u-2 - Operator & SIM Card: SFR SIM Card -- Phone
number +33623312183, Bouygues SIM Card -- Phone number +33663999052
-Laptop + HFP
HF:
Hardware: Laptop
Ubuntu: v13.04
Bluez 4.101 (current version running on Ubuntu 13.04)
oFono has been installed with "--enable-bluez4" option
AG:
Android KK device
-----------------------------------------------
*Issue Summary *
New bug: 0
Known bug: 1
OF-162 - Going back from a select item list releases the session
https://01.org/jira/browse/OF-162
Closed bug: 0
-----------------------------------------------
*Test Result *
*Result Summary -- Basic Features*
Total Test Case
*32*
Passed
32
Failed
0
Blocked
0
TCs completed
*100,0%*
Run rate
*100%*
Pass rate total
*100%*
Blocked rate total
*0%*
Pass rate of executed
*100%*
*Test Result by feature
*
*Features (and their status in color)*
*Total*
*Pass*
*Fail*
*Blocked*
*Pass %*
*Modem Used*
Modem
*5*
5
0
0
*100%*
Tested on Laptop using 3G Dongle with a real SIM
SIM
*4*
4
0
0
*100%*
Tested on Laptop using 3G Dongle with a real SIM
Network
*2*
2
0
0
*100%*
Tested on Laptop using 3G Dongle with a real SIM
Connectivity
*8*
8
0
0
*100%*
Tested on Laptop using 3G Dongle with a real SIM
Voice Calls
*10*
10
0
0
*100%*
Tested on Laptop + HFP connected with a smartphone with a real SIM
Messaging
*2*
2
0
0
*100%*
Tested on Laptop using 3G Dongle with a real SIM
Message Waiting
*1*
1
0
0
*100%*
Tested on Laptop using 3G Dongle with a real SIM
Please find details in the attached file.*
*-----------------------------------------------
*Notes***
Please note that one oFono crash still occurs on the following conditions:
-OF-163 <https://01.org/jira/browse/OF-163>- oFono crashes when doing a
NAA Initialization+File Change Notification after having done a NAA
Initialization+Full File Change Notification with Phonesim.
Best regards,
Nicolas
7 years, 1 month
[PATCH] More const pointers
by Slava Monich
---
include/dbus.h | 12 ++++++------
src/dbus.c | 20 +++++++++++---------
2 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/include/dbus.h b/include/dbus.h
index e7ccb0b..3d39eff 100644
--- a/include/dbus.h
+++ b/include/dbus.h
@@ -77,29 +77,29 @@ extern "C" {
DBusConnection *ofono_dbus_get_connection(void);
void ofono_dbus_dict_append(DBusMessageIter *dict, const char *key, int type,
- void *value);
+ const void *value);
void ofono_dbus_dict_append_array(DBusMessageIter *dict, const char *key,
- int type, void *val);
+ int type, const void *val);
void ofono_dbus_dict_append_dict(DBusMessageIter *dict, const char *key,
- int type, void *val);
+ int type, const void *val);
int ofono_dbus_signal_property_changed(DBusConnection *conn, const char *path,
const char *interface, const char *name,
- int type, void *value);
+ int type, const void *value);
int ofono_dbus_signal_array_property_changed(DBusConnection *conn,
const char *path,
const char *interface,
const char *name, int type,
- void *value);
+ const void *value);
int ofono_dbus_signal_dict_property_changed(DBusConnection *conn,
const char *path,
const char *interface,
const char *name, int type,
- void *value);
+ const void *value);
#ifdef __cplusplus
}
diff --git a/src/dbus.c b/src/dbus.c
index 1558a51..45becc1 100644
--- a/src/dbus.c
+++ b/src/dbus.c
@@ -48,7 +48,7 @@ struct error_mapping_entry cme_errors_mapping[] = {
};
static void append_variant(DBusMessageIter *iter,
- int type, void *value)
+ int type, const void *value)
{
char sig[2];
DBusMessageIter valueiter;
@@ -65,7 +65,7 @@ static void append_variant(DBusMessageIter *iter,
}
void ofono_dbus_dict_append(DBusMessageIter *dict,
- const char *key, int type, void *value)
+ const char *key, int type, const void *value)
{
DBusMessageIter keyiter;
@@ -85,7 +85,8 @@ void ofono_dbus_dict_append(DBusMessageIter *dict,
dbus_message_iter_close_container(dict, &keyiter);
}
-static void append_array_variant(DBusMessageIter *iter, int type, void *val)
+static void append_array_variant(DBusMessageIter *iter, int type,
+ const void *val)
{
DBusMessageIter variant, array;
char typesig[2];
@@ -113,7 +114,7 @@ static void append_array_variant(DBusMessageIter *iter, int type, void *val)
}
void ofono_dbus_dict_append_array(DBusMessageIter *dict, const char *key,
- int type, void *val)
+ int type, const void *val)
{
DBusMessageIter entry;
@@ -127,7 +128,8 @@ void ofono_dbus_dict_append_array(DBusMessageIter *dict, const char *key,
dbus_message_iter_close_container(dict, &entry);
}
-static void append_dict_variant(DBusMessageIter *iter, int type, void *val)
+static void append_dict_variant(DBusMessageIter *iter, int type,
+ const void *val)
{
DBusMessageIter variant, array, entry;
char typesig[5];
@@ -182,7 +184,7 @@ static void append_dict_variant(DBusMessageIter *iter, int type, void *val)
}
void ofono_dbus_dict_append_dict(DBusMessageIter *dict, const char *key,
- int type, void *val)
+ int type, const void *val)
{
DBusMessageIter entry;
@@ -200,7 +202,7 @@ int ofono_dbus_signal_property_changed(DBusConnection *conn,
const char *path,
const char *interface,
const char *name,
- int type, void *value)
+ int type, const void *value)
{
DBusMessage *signal;
DBusMessageIter iter;
@@ -225,7 +227,7 @@ int ofono_dbus_signal_array_property_changed(DBusConnection *conn,
const char *path,
const char *interface,
const char *name,
- int type, void *value)
+ int type, const void *value)
{
DBusMessage *signal;
@@ -251,7 +253,7 @@ int ofono_dbus_signal_dict_property_changed(DBusConnection *conn,
const char *path,
const char *interface,
const char *name,
- int type, void *value)
+ int type, const void *value)
{
DBusMessage *signal;
--
1.8.3.2
7 years, 1 month
How to set 3G card into data mode?
by Dennis Lan (dlan)
Hi all:
I'm using Huawei E173 3G card, and have problem to set current operator.
seems it set to GSM mode by default, COPS query command return "
CHN-CUGSM, 460 01 2"
the commands I'm using here 1) list-modems 2) enable-modem
3)online-modem 4) create-internet-context 5)activate-context
reading the code, it seems possible to manually change operator,
from drivers/atmodem/network-registration.c : at_register_manual()?
any idea? what should I do?
detail log:
ofonod[14119]: PCUI: > AT+CSQ\r
ofonod[14119]: PCUI: < \r\n+CSQ: 23,99\r\n\r\nOK\r\n
ofonod[14119]: drivers/atmodem/network-registration.c:csq_cb() csq_cb: 23
ofonod[14119]: PCUI: > AT+COPS=3,0\r
ofonod[14119]: PCUI: < \r\nOK\r\n
ofonod[14119]: PCUI: > AT+COPS?\r
ofonod[14119]: PCUI: < \r\n+COPS: 1,0,"CHN-CUGSM",2\r\n\r\nOK\r\n
ofonod[14119]: drivers/atmodem/network-registration.c:cops_cb()
cops_cb: CHN-CUGSM, 460 01 2
ofonod[14119]: src/network.c:current_operator_callback() 0x772a80, 0x769f50
ofonod[14119]: PCUI: < \r\n+CREG: 1,"A80A","51AF"\r\n\r\n+CGREG:
1,"A80A","51AF"\r\n
ofonod[14119]: src/network.c:ofono_netreg_status_notify() /huawei_0
status 1 tech 2
ofonod[14119]: src/cbs.c:cbs_location_changed() 1, -1, -1, 2, 46001
ofonod[14119]: src/gprs.c:netreg_status_changed() 1
ofonod[14119]: src/gprs.c:ofono_gprs_status_notify() /huawei_0 status 1
ofonod[14119]: PCUI: > AT+COPS=3,2\r
ofonod[14119]: PCUI: < \r\nOK\r\n
ofonod[14119]: PCUI: > AT+COPS?\r
ofonod[14119]: PCUI: < \r\n+COPS: 1,2,"46001",2\r\n\r\nOK\r\n
ofonod[14119]: drivers/atmodem/network-registration.c:cops_numeric_cb()
Cops numeric got mcc: 460, mnc: 01
ofonod[14119]: PCUI: > AT+CSQ\r
ofonod[14119]: PCUI: < \r\n+CSQ: 23,99\r\n\r\nOK\r\n
ofonod[14119]: drivers/atmodem/network-registration.c:csq_cb() csq_cb: 23
ofonod[14119]: PCUI: > AT+COPS=3,0\r
ofonod[14119]: PCUI: < \r\nOK\r\n
ofonod[14119]: PCUI: > AT+COPS?\r
ofonod[14119]: PCUI: < \r\n+COPS: 1,0,"CHN-CUGSM",2\r\n\r\nOK\r\n
ofonod[14119]: drivers/atmodem/network-registration.c:cops_cb()
cops_cb: CHN-CUGSM, 460 01 2
ofonod[14119]: src/network.c:current_operator_callback() 0x772a80, 0x769f50
ofonod[14119]: PCUI: < \r\n+CREG: 1,"A80A","517E"\r\n\r\n+CGREG:
1,"A80A","517E"\r\n
ofonod[14119]: src/network.c:ofono_netreg_status_notify() /huawei_0
status 1 tech 2
ofonod[14119]: src/cbs.c:cbs_location_changed() 1, -1, -1, 2, 46001
ofonod[14119]: src/gprs.c:netreg_status_changed() 1
ofonod[14119]: src/gprs.c:ofono_gprs_status_notify() /huawei_0 status 1
ofonod[14119]: PCUI: > AT+COPS=3,2\r
ofonod[14119]: PCUI: < \r\nOK\r\n
ofonod[14119]: PCUI: > AT+COPS?\r
ofonod[14119]: PCUI: < \r\n+COPS: 1,2,"46001",2\r\n\r\nOK\r\n
ofonod[14119]: drivers/atmodem/network-registration.c:cops_numeric_cb()
Cops numeric got mcc: 460, mnc: 01
ofonod[14119]: PCUI: > AT+CSQ\r
ofonod[14119]: PCUI: < \r\n+CSQ: 23,99\r\n\r\nOK\r\n
ofonod[14119]: drivers/atmodem/network-registration.c:csq_cb() csq_cb: 23
ofonod[14119]: PCUI: > AT+COPS=3,0\r
ofonod[14119]: PCUI: < \r\nOK\r\n
ofonod[14119]: PCUI: > AT+COPS?\r
ofonod[14119]: PCUI: < \r\n+COPS: 1,0,"CHN-CUGSM",2\r\n\r\nOK\r\n
ofonod[14119]: drivers/atmodem/network-registration.c:cops_cb()
cops_cb: CHN-CUGSM, 460 01 2
ofonod[14119]: src/network.c:current_operator_callback() 0x772a80, 0x769f50
ofonod[14119]: PCUI: < \r\n+CREG: 1,"A80A","51AF"\r\n\r\n+CGREG:
1,"A80A","51AF"\r\n
ofonod[14119]: src/network.c:ofono_netreg_status_notify() /huawei_0
status 1 tech 2
ofonod[14119]: src/cbs.c:cbs_location_changed() 1, -1, -1, 2, 46001
ofonod[14119]: src/gprs.c:netreg_status_changed() 1
ofonod[14119]: src/gprs.c:ofono_gprs_status_notify() /huawei_0 status 1
ofonod[14119]: PCUI: > AT+COPS=3,2\r
ofonod[14119]: PCUI: < \r\nOK\r\n
ofonod[14119]: PCUI: > AT+COPS?\r
ofonod[14119]: PCUI: < \r\n+COPS: 1,2,"46001",2\r\n\r\nOK\r\n
ofonod[14119]: drivers/atmodem/network-registration.c:cops_numeric_cb()
Cops numeric got mcc: 460, mnc: 01
ofonod[14119]: PCUI: > AT+CSQ\r
ofonod[14119]: PCUI: < \r\n+CSQ: 23,99\r\n\r\nOK\r\n
ofonod[14119]: drivers/atmodem/network-registration.c:csq_cb() csq_cb: 23
ofonod[14119]: PCUI: > AT+COPS=3,0\r
ofonod[14119]: PCUI: < \r\nOK\r\n
ofonod[14119]: PCUI: > AT+COPS?\r
ofonod[14119]: PCUI: < \r\n+COPS: 1,0,"CHN-CUGSM",2\r\n\r\nOK\r\n
ofonod[14119]: drivers/atmodem/network-registration.c:cops_cb()
cops_cb: CHN-CUGSM, 460 01 2
ofonod[14119]: src/network.c:current_operator_callback() 0x772a80, 0x769f50
ofonod[14119]: PCUI: < \r\n^RSSI: 26\r\n
ofonod[14119]: src/network.c:ofono_netreg_strength_notify() strength 83
ofonod[14119]: drivers/atmodem/gprs-context.c:at_gprs_activate_primary() cid 1
ofonod[14119]: Modem: > AT+CGDCONT=1,"IP","3gnet"\r
ofonod[14119]: Modem: < \r\nOK\r\n
ofonod[14119]: drivers/atmodem/gprs-context.c:at_cgdcont_cb() ok 1
ofonod[14119]: Modem: > AT+CGDATA="PPP",1\r
ofonod[14119]: Modem: < \r\n+CME ERROR: 50\r\n
ofonod[14119]: drivers/atmodem/gprs-context.c:at_cgdata_cb() ok 0
ofonod[14119]: Unable to enter data state
ofonod[14119]: src/gprs.c:pri_activate_callback() 0x782e30
ofonod[14119]: src/gprs.c:pri_activate_callback() Activating context
failed with error: Incorrect parameters
7 years, 1 month
oFono issue: Reject SCO: Agent not registered
by Ignazio Chiappone
Hello everyone,
my goal is to use the bluetooth HFP to make/receive a call, however I have
a problem with oFono.
Actually I'm working on Fedora 20 with blueZ 5.12 and oFono 1.14 .
When I start ofonod I see this: http://pastebin.com/AsukjcXx .
Using test script enable-modem, after pair my device with linux, everything
seems to work fine, on ofonod in debug mode, I see this:
http://pastebin.com/2GBmZERk .
Now, using my device I try to make/receive a call, but I see in both cases
this error:
Reject SCO: Agent not registered
Reject SCO: Agent not registered
Reject SCO: Agent not registered .
I don't understand if that kind of problem is related to oFono or blueZ,
because I think it's blueZ duty to establish the SCO link, but the agent
reported on the error message is a particular blueZ agent or an oFono agent?
Have anyone an idea to solve my problem?
Please if you need more details let me know.
Thanks in advance
Ignazio
7 years, 1 month