Registration denied error on EM7565

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

  1. 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.
  2. 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.

  3. Check the registration status and it should show registered.
    qmicli -d /dev/cdc-wdm0 --nas-get-serving-system

  4. 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

  5. Start the N/W
    qmicli -p -d /dev/cdc-wdm0 --client-no-release-cid // to establish network.
    where is the APN

  6. Check the connection status. It should show as “connected”

             qmicli -p -d /dev/cdc-wdm0 --wds-get-packet-service-status
  7. Check the current settings. It will retun the IP4, wwan0 etc.
    qmicli --device=/dev/cdc-wdm0 --wds-get-current-settings

  8. Get the IP assigned and the lease
    udhcpc -q -f -i wwan0 // do this immediately after the network is started.

  9. ping

Not sure where you got those steps from, but this one is wrong. If you want to switch the kernel driver to raw-ip for this device you must use -E (i.e. --set-expected-data-format), instead of -e (i.e. --get-expected-data-format).

This has nothing to do with your specific issue with the denied registration, though.

What is the full output of that command?
If the modem is trying to register to a network where it’s forbidden, maybe it’s because the home network is no longer visible? Maybe the network you’re trying to attach to is LTE-only and your modem did a fallback to 3G or 2G? or something like that?

Hi Aleksander, thank you for your time. The full output is like
~ # qmicli -p -d /dev/cdc-wdm0 --nas-get-serving-system
[12 Dec 2019, 12:55:12] -Warning ** [/dev/cdc-wdm0] requested auto mode but no MBIM QMUX support available
[/dev/cdc-wdm0] Successfully got serving system:
Registration state: ‘registration-denied’
CS: ‘detached’
PS: ‘detached’
Selected network: ‘3gpp’
Radio interfaces: ‘1’
[0]: ‘lte’
Roaming status: ‘on’
Data service capabilities: ‘0’
Current PLMN:
MCC: ‘404’
MNC: ‘86’
Description: ‘’
Roaming indicators: ‘1’
[0]: ‘on’ (lte)
Detailed status:
Status: ‘limited’
Capability: ‘cs-ps’
HDR Status: ‘none’
HDR Hybrid: ‘no’
Forbidden: ‘yes’
Full operator code info:
MCC: ‘404’
MNC: ‘86’
MNC with PCS digit: ‘no’

So the forbidden state happens while in LTE. Maybe your account with the operator doesn’t allow 4G service?
When you put the SIM card in a phone and it works, is the phone in LTE as well? Or is it in 2G/3G?

We have a 4G plan with the operator. When the SIM is inserted into the phone, it uses 4G. I have confirmed that as well.

Hi @nithss,
Do you have access to the AT command port. If you do. Please make sure you enter a correct APN for your EM7565 using the command “AT+CGDCONT”.
Besides, please get the output from the following commands so I could have more info of what’s going on: