Re: Network preference gsm is only working when allowing roaming?
by Patrik Flykt
Hi,
On Thu, 2014-05-08 at 16:51 +0200, Niclas Karlsson wrote:
> [ org.ofono.NetworkRegistration ]
> Status = roaming
> Strength = 100
> Name = - Telenor SE
> LocationAreaCode = 34301
> Mode = auto
> MobileCountryCode = 240
> CellId = 40251
> MobileNetworkCode = 24
This, and...
> [ org.ofono.SimManager ]
> Retries = [pin = 3] [puk = 10]
> SubscriberIdentity = 24*************1
> FixedDialing = 0
> SubscriberNumbers =
> BarredDialing = 0
> LockedPins =
> MobileNetworkCode = 08
> MobileCountryCode = 240
> Present = 1
> PinRequired = none
...this combined looks like your SIM says MobileNetworkCode 08 while the
network attached to is 24. So ofono thinks your are roaming now. Is an
update needed to some database? Is this in ofono or in some other sw?
Let's ask ofono ml for an answer.
Cheers,
Patrik
6 years, 9 months
[PATCH 1/1] he910: set modem unpowered after IO disconnect
by Jonas Bonn
This patch address an issue with SIM hotplug. If the SIM card is removed
while there is an active connection then the io_disconnect function
of gatchat.c pulls the rug out from under us by cleaning up the modem
chat that we hold a reference to.
This patch addresses this by hooking into the notification from
io_disconnect and setting the modem to 'unpowered' state in order to force
a reinitialization when the SIM is reinserted.
The modem is not actually powered off as that would turn off SIM detection
as well.
With this patch, SIM hotplug works reliably.
---
plugins/he910.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/plugins/he910.c b/plugins/he910.c
index 38dbfac..999889f 100644
--- a/plugins/he910.c
+++ b/plugins/he910.c
@@ -76,6 +76,22 @@ static void he910_debug(const char *str, void *user_data)
ofono_info("%s%s", prefix, str);
}
+static void he910_disconnected_cb(gpointer user_data)
+{
+ struct ofono_modem *modem = user_data;
+ struct he910_data *data = ofono_modem_get_data(modem);
+
+ DBG("HE910 disconnected");
+
+ ofono_modem_set_powered(modem, FALSE);
+
+ g_at_chat_unref(data->chat);
+ data->chat = NULL;
+
+ g_at_chat_unref(data->modem);
+ data->modem = NULL;
+}
+
static GAtChat *open_device(struct ofono_modem *modem,
const char *key, char *debug)
{
@@ -110,6 +126,8 @@ static GAtChat *open_device(struct ofono_modem *modem,
if (chat == NULL)
return NULL;
+ g_at_chat_set_disconnect_function(chat, he910_disconnected_cb, modem);
+
if (getenv("OFONO_AT_DEBUG"))
g_at_chat_set_debug(chat, he910_debug, debug);
--
1.9.1
6 years, 9 months
oFono upstream test results_20140507
by Nicolas Paccou
Hello all,
Please find the test report of oFono v1.14 commit 9bbc986.
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.
-----------------------------------------------
*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 9bbc986)
-Laptop + 3G Dongle:
usb_modeswitch: v1.2.3
modeswitch data: 20120815-2
Hardware: Laptop
Ubuntu: v13.04
Modem: Huawei E173u-2 - Operator & SIM Card: Bouygues SIM Card -- Phone
number +33760660848
-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 with SFR SIM Card -- Phone number +33623312183
-----------------------------------------------
*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
6 years, 9 months
[PATCH] sim: Handle multiple invocations of sim_imsi_obtained
by Slava Monich
To avoid leaking memory and issuing unnecessary D-Bus signals
---
src/sim.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/sim.c b/src/sim.c
index edae5eb..1b0cb80 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -1425,11 +1425,18 @@ static void sim_set_ready(struct ofono_sim *sim)
static void sim_imsi_obtained(struct ofono_sim *sim, const char *imsi)
{
- DBusConnection *conn = ofono_dbus_get_connection();
- const char *path = __ofono_atom_get_path(sim->atom);
+ DBusConnection *conn;
+ const char *path;
+
+ if (sim->imsi && !strcmp(sim->imsi, imsi))
+ return;
+ DBG("%s", imsi);
+ g_free(sim->imsi);
sim->imsi = g_strdup(imsi);
+ conn = ofono_dbus_get_connection();
+ path = __ofono_atom_get_path(sim->atom);
ofono_dbus_signal_property_changed(conn, path,
OFONO_SIM_MANAGER_INTERFACE,
"SubscriberIdentity",
--
1.8.3.2
6 years, 9 months