Hi
I think the best way to configure an LTE modem is to use APN profiles.
An LTE modem must have a valid APN profile to be able to register to the cellular network. A 3G modem can register without an APN.
My proposal is:
- Set the modem in flight mode
uqmi -d /dev/cdc-wdm0 --set-device-operating-mode low_power
- Configure the default APN profile
root@OpenWrt:/tmp# uqmi -d /dev/cdc-wdm0 --get-default-profile-num 3gpp
{
"default-profile": 1
}
root@OpenWrt:/tmp# uqmi -d /dev/cdc-wdm0 --get-profile-settings 3gpp,1
{
"apn": "internet.com",
"pdp-type": "ipv4",
"username": "",
"password": "",
"auth": "none"
}
root@OpenWrt:/tmp# uqmi -d /dev/cdc-wdm0 --modify-profile 3gpp,1 --apn internet --pdp-type ipv6
root@OpenWrt:/tmp# uqmi -d /dev/cdc-wdm0 --get-profile-settings 3gpp,1
{
"apn": "internet",
"pdp-type": "ipv6",
"username": "",
"password": "",
"auth": "none"
}
- Turn off flight mode
uqmi -d /dev/cdc-wdm0 --set-device-operating-mode online
- Start the "Network"
uqmi -d /dev/cdc-wdm0 --start-network --set-client-id wds,2
The commands for printing and modifying the APN profile are still in my local UQMI version.
I will try to get them approved in the official UQMI. Is there a mailing-list to sent it to?
I would be happy if you could help me to print the default APN number and profile for you device with:
qmicli -d /dev/cdc-wdm0 --wds-get-default-profile-num=3gpp
qmicli -d /dev/cdc-wdm0 --wds-get-default-settings=3gpp
Any comments or thoughts?