On 24.07.19 12:43, Daniel Wagner wrote:
On 7/23/19 2:12 PM, Tarmo Kuuse wrote:
> I'd like for my device to automatically connect to 3G data in roaming
> whenever GSM network permits it. I'd very much like to set this up as
> default during manufacturing. What configuration options do I have?
> Connman version 1.36, ofono version 1.21 (debian buster).
> So far I tried setting configuration option
> "AutoConnectRoamingServices=true" in file
> restarted connman and ofono, but this doesn't seem to have any effect.
> Option RoamingAllowed remains "false" in ofono config
> (/var/lib/ofono/248030010014875/gprs). It seems like connman does not
> tell ofono to enable roaming, so it remains disabled. Is this
> configuration option perhaps not supported in 1.36?
AutoConnectRoamingService doesn't do any configuration. Instead, it's
just an flag for the connection algorithm to auto connect to a network
even if it's in roaming mode.
So yes, ConnMan des not tell oFono to enable roaming.
Aha, so if ofono determines that the GSM module is roaming and it is
permitted to bring up the data connection, connman would still require
AutoConnectRoamingService to be set before it autoconnects?
> I can tell ofono to enable roaming manually - either via the
> file or dbus interface, but I'd prefer that connman does that
> automatically whenever I provision a SIM card with "connmanctl connect
> cellular_xxx" or setting up the /var/lib/connman/ configuration files.
If I am not complete mistaken ConnMan lacks something like EnableRoaming
in the Service API. There is the Roaming property, but which is just
indicating if the Service is in roaming mode.
That's clear now, thank you. I'll see what I can do on ofono side to
enable this by default.