Discussion:
Network preference gsm is only working when allowing roaming?
Niclas Karlsson
2014-05-08 14:51:07 UTC
Permalink
Hi,

I'm trying to get my 3G dongle to use gsm/gprs/edge instead of 3G. It
is a GlobeTrotter HSDPA Modem which uses ofono.
I've used ofono scripts to enable only gsm. But connman can't connect
unless I set roaming allowed to true (it still just connect to my
provider).
I read somewhere that AutoConnect will not work while roaming which
seems to be the case for me. If I tell connman to connect it will
connect and everything is working as expected.

My questions are:
* Why is roaming needed to use gsm?
* How can I autoconnect even if roaming is active?

[ /hso_1 ]
Features = sms gprs cbs net ussd rat sim
Emergency = 0
Powered = 1
Lockdown = 0
Interfaces = org.ofono.SmartMessaging org.ofono.PushNotification
org.ofono.MessageManager org.ofono.ConnectionManager org.o
Online = 1
Model = GlobeTrotter HSDPA Modem
Revision = 2.5.13Hd (Date: Feb 18 2008, Time: 18:32:40)
Type = hardware
Serial = 357952021448486,DR298C55GV
Manufacturer = Option N.V.
[ org.ofono.SmartMessaging ]
[ org.ofono.PushNotification ]
[ org.ofono.MessageManager ]
Alphabet = default
UseDeliveryReports = 0
Bearer = cs-preferred
ServiceCenterAddress = +46*********
[ org.ofono.ConnectionManager ]
Attached = 0
RoamingAllowed = 1
Powered = 1
[ org.ofono.CellBroadcast ]
Topics =
Powered = 0
[ org.ofono.NetworkRegistration ]
Status = roaming
Strength = 100
Name = - Telenor SE
LocationAreaCode = 34301
Mode = auto
MobileCountryCode = 240
CellId = 40251
MobileNetworkCode = 24
[ org.ofono.
SupplementaryServices ]
State = idle
[ org.ofono.RadioSettings ]
TechnologyPreference = gsm
[ org.ofono.VoiceCallManager ]
EmergencyNumbers = 08 000 999 110 112 911 118 119
[ org.ofono.NetworkTime ]
[ 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



Thanks!
Niclas
Patrik Flykt
2014-05-09 06:31:18 UTC
Permalink
Hi,
Post by Niclas Karlsson
[ org.ofono.NetworkRegistration ]
Status = roaming
Strength = 100
Name = - Telenor SE
LocationAreaCode = 34301
Mode = auto
MobileCountryCode = 240
CellId = 40251
MobileNetworkCode = 24
This, and...
Post by Niclas Karlsson
[ 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
Denis Kenzior
2014-05-09 18:48:40 UTC
Permalink
Hi Patrik,
Post by Patrik Flykt
Hi,
Post by Niclas Karlsson
[ org.ofono.NetworkRegistration ]
Status = roaming
The modem tells us it is roaming. Nothing can be done about that.

<snip>
Post by Patrik Flykt
...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.
I'm not sure what the context of the question is, but RadioSettings API
is completely independent of the current registration status.

Regards,
-Denis
Patrik Flykt
2014-05-09 20:28:17 UTC
Permalink
Hi,
Post by Denis Kenzior
Post by Patrik Flykt
Hi,
Post by Niclas Karlsson
[ org.ofono.NetworkRegistration ]
Status = roaming
The modem tells us it is roaming. Nothing can be done about that.
<snip>
Post by Patrik Flykt
...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.
I'm not sure what the context of the question is, but RadioSettings API
is completely independent of the current registration status.
The context was that SIM shows home network as 08 with the current
network being 24. The device thinks it is roaming while the user, in
this case Niclas Karlsson, knows the device should be in its home
network. So org.ofono.NetworkRegistration is the correct one here and
any change in roaming status must come from the network? So this boils
down to simply being connected to the wrong network after all?

Cheers,

Patrik
Denis Kenzior
2014-05-10 02:29:04 UTC
Permalink
Hi Patrik,
Post by Patrik Flykt
Post by Denis Kenzior
I'm not sure what the context of the question is, but RadioSettings API
is completely independent of the current registration status.
The context was that SIM shows home network as 08 with the current
network being 24. The device thinks it is roaming while the user, in
this case Niclas Karlsson, knows the device should be in its home
network. So org.ofono.NetworkRegistration is the correct one here and
any change in roaming status must come from the network? So this boils
down to simply being connected to the wrong network after all?
This all depends. The operation in question might be an MVNO, or the
operator has an agreement to "roam" on a network but all traffic be
treated as "home" for billing purposes. There are very nasty details of
how the operator name is presented in these circumstances. In certain
'roaming' conditions, the operator is presented just like it is a home
network. See EFspn and EFspdi handling if you're curious.

This is what might be happening here. The user is not connected to a
"home" network; however for all intents and purposes he is not really
roaming. The current roaming logic uses the registration status as
reported by the modem firmware, which may not be satisfactory in this
particular situation.

Regards,
-Denis
Niclas Karlsson
2014-05-12 12:08:55 UTC
Permalink
Hi,
Post by Denis Kenzior
Post by Patrik Flykt
The context was that SIM shows home network as 08 with the current
network being 24. The device thinks it is roaming while the user, in
this case Niclas Karlsson, knows the device should be in its home
network. So org.ofono.NetworkRegistration is the correct one here and
any change in roaming status must come from the network? So this boils
down to simply being connected to the wrong network after all?
This all depends. The operation in question might be an MVNO, or the
operator has an agreement to "roam" on a network but all traffic be
treated as "home" for billing purposes. There are very nasty details of
how the operator name is presented in these circumstances. In certain
'roaming' conditions, the operator is presented just like it is a home
network. See EFspn and EFspdi handling if you're curious.
This is what might be happening here. The user is not connected to a
"home" network; however for all intents and purposes he is not really
roaming. The current roaming logic uses the registration status as
reported by the modem firmware, which may not be satisfactory in this
particular situation.
I changed the network preference on my Android phone to GSM to see
what happend. When the phone is set to "GSM only", the network operator
is 24024 (but Telenor SE is also visible, no roaming symbol).
When the phone is in WCDMA mode, the network operator is Telenor SE.


Reagrds,
Niclas
Patrik Flykt
2014-05-13 06:19:40 UTC
Permalink
Post by Niclas Karlsson
Hi,
Post by Denis Kenzior
Post by Patrik Flykt
The context was that SIM shows home network as 08 with the current
network being 24. The device thinks it is roaming while the user, in
this case Niclas Karlsson, knows the device should be in its home
network. So org.ofono.NetworkRegistration is the correct one here and
any change in roaming status must come from the network? So this boils
down to simply being connected to the wrong network after all?
This all depends. The operation in question might be an MVNO, or the
operator has an agreement to "roam" on a network but all traffic be
treated as "home" for billing purposes. There are very nasty details of
how the operator name is presented in these circumstances. In certain
'roaming' conditions, the operator is presented just like it is a home
network. See EFspn and EFspdi handling if you're curious.
This is what might be happening here. The user is not connected to a
"home" network; however for all intents and purposes he is not really
roaming. The current roaming logic uses the registration status as
reported by the modem firmware, which may not be satisfactory in this
particular situation.
I changed the network preference on my Android phone to GSM to see
what happend. When the phone is set to "GSM only", the network operator
is 24024 (but Telenor SE is also visible, no roaming symbol).
When the phone is in WCDMA mode, the network operator is Telenor SE.
I think you need to get in touch with Denis Kenzior on the ofono ml,
normal ml subscription policy applies to get mails through. This is out
of ConnMan's domain to get correctly configured.

Cheers,

Patrik

Continue reading on narkive:
Loading...