I am trying to start network using qmicli commands on a EM7565 modem. The commands that I have executed are present in the footer of this message.
Everything was working fine till when I started getting registration denied error when I issue the command " qmicli -d /dev/cdc-wdm0 --nas-get-serving-system". The forbidden field also works fine. However when I insert the same sim card on a phone, it works fine.
Any help on this would be helpful
Get Signal Strength
qmicli -p -d /dev/cdc-wdm0 --device-open-qmi --nas-get-signal-strength
If signal signal-strength returns as -128db (default) that mean modem is not receiving any signal. Check the modem operating mode using qmicli -d /dev/cdc-wdm0 --dms-get-operating-mode If it is low-power mode then set the operating mode to online.
Set the device to online
qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode=online
Run the get signal strength again and see if modem gets good signal strength.
Check the registration status and it should show registered.
qmicli -d /dev/cdc-wdm0 --nas-get-serving-system
Check the data format. Otherwise leasing will fail.
qmicli -d /dev/cdc-wdm0 -e
if it comes as 802.3 then change it to raw-ip
qmicli -d /dev/cdc-wdm0 -e raw-ip
Start the N/W
qmicli -p -d /dev/cdc-wdm0 --wds-start-network=honeywell01.com.attz --client-no-release-cid // to establish network.
where honeywell01.com.attz is the APN
Check the connection status. It should show as “connected”
qmicli -p -d /dev/cdc-wdm0 --wds-get-packet-service-status
Check the current settings. It will retun the IP4, wwan0 etc.
qmicli --device=/dev/cdc-wdm0 --wds-get-current-settings
Get the IP assigned and the lease
udhcpc -q -f -i wwan0 // do this immediately after the network is started.