On 03/24/2015 05:44 AM, Kallumari Nagaraja Rao, RammohanX wrote:
I am trying to update APN via my C code.
Procedure which I am following,
1.Trying to de activate the context [ “Active” -> 0 ]
2.Set APN property
3.Activate the context [“Active” -> 1 ]
I am able to get the modem, get the context.
I am also able to set the APN via C code if the context is deactivated.
Here context deactivation happened via python script under /test folder.
Deactivation via c code is not happening, sometimes even if I am trying
to deactivate ofonod daemon is activating it.
oFono only does what it is told. Some other service must be activating
it. ConnMan has logic in it to re-activate contexts in case of network
failures, etc. You probably need to tell ConnMan not to do its thing
while you're messing with the settings. Or set
org.ofono.ConnectionManager.Powered property to False.
Let me know if you can pin point at any mistake. Thanks.