I looked back your advice that "any new cellular network would
autoconnect without interaction of the user", could you elaborate how
I can set up new cellular network for autoconnect?
I have recently changed SIM and also cellular network, the original
SIM used Telstra cellular network, I defined Name = Telstra in
cellular.config, that worked fine.
Now I changed the SIM to Aeris, it does not have MNO but using ASN =
, everything stopped working.
I am always wondering why I should define cellular network name in
cellular.config, but apparently that is not an option, without the
cellular network name in cellular.config, it just could noit work. Why
can't connman and ofono automatically connecting to cellular network
based on SIM and network registration?
On 4/24/19, Daniel Wagner <wagi(a)monom.org> wrote:
> On 4/23/19 9:22 AM, Christophe Ronco wrote:
>> On 4/21/19 7:56 PM, Tarmo Kuuse wrote:
>>> On 21.04.19 10:02, JH wrote:
>>>> I installed oFono plugin to an embedded system where the cellular is
>>>> used, I suppose that the connman should automatically enable and
>>>> connect to cellular when it first time boot up, it didn't, I have to
>>>> manually run the connmanctl command to enable and to connect it. In a
>>>> product due to limited Flash storage size, I'll not install
>>>> and there will be no manual interactive process, how can I set up
>>>> connman to automatically enable and connect to cellular network
>>> I second this question. With a blank device out of manufacturing, how
>>> would I configure connman to automatically bring up the cellular
>>> connection? There is no possibility for the user to interact with the
>>> device, so cellular should just connect as long as any working SIM is
>>> installed. Assume the SIM is 100% good to go - no PIN, APN/user/pass
>>> present in mobile-broadband-provider-info, etc.
> As it stands today you would deploy a /var/lib/connman/settings with the
> correct settings.
>> I resolved this problem some time ago by telling that cellular services
>> are favorite (like Ethernet services). I use this patch with connman
>> 1.36. Here is the patch comment:
>> [connman] autoconnect cellular service when SIM is not known (#07397)
>> Add a patch to connnman to make cellular services favorite (like
>> services). This allow "unknown" cellular services to be
>> Concretely, when a SIM is used for the first time on a board,
>> cellular service
>> will be autoconnected by connman if there is no ethernet cable
>> plugged in.
>> Maybe this could be integrated in upstream connman with a configuration
>> in main.conf?
> While this works for your setup, it has unwanted side effects. Such as
> any new cellular network would autoconnect without interaction of the
> user. Ethernet is different in this regard because the user already told
> use the indent. He plugged the cable into the device.
> I am not against changing this stuff, I am just pointing out this needs
> more then just marking the cellular technology per default as auto
> connman mailing list