Autoconnect through QMI

Kasper Holtze kasper at holtze.dk
Mon Dec 5 12:21:01 UTC 2016



On 12/05/2016 12:54 PM, Kasper Holtze 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?

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?


More information about the libqmi-devel mailing list