Autoconnect through QMI

Aleksander Morgado aleksander at aleksander.es
Mon Dec 5 12:13:11 UTC 2016


On Mon, Dec 5, 2016 at 12:54 PM, Kasper Holtze <kasper at holtze.dk> wrote:
> On 12/05/2016 12:19 PM, Aleksander Morgado wrote:
>>
>> On Mon, Dec 5, 2016 at 11:34 AM, Kasper Holtze <kasper at holtze.dk> wrote:
>>>
>>> Using AT commands with Sierra MC7710, we can set a PDP using
>>> +CGDCONT=x,"IP","apn". By setting SCPROF=x, ... we can tell the modem to
>>> automatically connect a PDP when the modem boots.
>>>
>>> We now switched to MC7304, and QMI. How do archieve the same using
>>> libqmi/qmicli? To make the modem automatically connect on boot, without
>>> any
>>> interaction (besides sending PIN code to the modem).
>>
>>
>> Try to use these qmicli commands to get/set the settings:
>>    --wds-get-autoconnect-settings  Get autoconnect settings
>> and:
>>
>> --wds-set-autoconnect-settings=[(enabled|disabled|paused)[,(roaming-allowed|home-only)]]
>>      Set autoconnect settings (roaming settings optional)
>>
> Thank you - that enables autoconnect. But how to set the
> APN/username/password in the modem? Will the settings used with
> wds-start-network be persistent over reboots of the modem? I guess it has to
> do with the profiles which can be fetched with --wds-get-profile-list?

I believe --wds-set-autoconnect-settings is persistent, yes. As for
the APN settings, yes, they need to be managed via profiles; we should
add qmicli commands to update profiles one day :9


-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list