Hi,
On 4/21/19 7:56 PM, Tarmo Kuuse wrote:
Hi!
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 connmanctl
> and there will be no manual interactive process, how can I set up
> connman to automatically enable and connect to cellular network
> interface?
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.
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
ethernet
services). This allow "unknown" cellular services to be autoconnected.
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?
Best Regards,
Christophe Ronco