Autoconnect through QMI

Aleksander Morgado aleksander at aleksander.es
Mon Dec 5 12:25:10 UTC 2016


On Mon, Dec 5, 2016 at 1:21 PM, 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?
>
>
> Looking at the Gobi code, it seems that the function
> cGobiQMICore::SetDefaultProfile needs to be implemented in libqmi -
> according to the documentation, it is not there yet?

Yeah, that's not implemented yet if I'm not mistaken.

-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list