Hi,

 

For my internal project I am using ofono and connman. I am seeing a weird behaviour when using Verizon SIM with MC7455 module.

 

Ofono version:1.22

 

The ofono is not able to detect the Verizon SIM.

 

• /usr/lib/ofono/test/list-modems

            [ /sierra_0 ]

                Type = hardware

                Model = MC7455

                Manufacturer = Sierra Wireless, Incorporated

                Lockdown = 0

                Interfaces = org.ofono.SimManager org.ofono.VoiceCallManager

                Serial = 359072061147894

                Revision = SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09

                Online = 0

                Emergency = 0

                Features = sim

                Powered = 1

                [ org.ofono.SimManager ]

                    Present = 0

                [ org.ofono.VoiceCallManager ]

                    EmergencyNumbers = 08 000 999 110 112 911 118 119

 

As a next step, I tried to check the responses of AT commands:

 

AT+CPIN?

+CPIN: READY

 

AT+COPS=?

+COPS: (2,"Verizon Wireless","VZW","311480",7),(1,"AT&T","AT&T","310410",7),(1,)

OK

aT+CREG?

+CREG: 0,3

 

We can see that SIM is being detected by the AT commands but not by ofono. From the response of ‘at+creg?’ we can see that the registration to the network is denied. I thought that's the problem initially.

 

But when i tried to use qmilci tools, I can successfully register to the network and can access the internet. The steps followed are as foloows:

 

#qmicli -d /dev/cdc-wdm1 --dms-set-operating-mode=online

[/dev/cdc-wdm1] Operating mode set successfully

 

#qmi-network /dev/cdc-wdm1 start

Loading profile at /etc/qmi-network.conf...

    APN: vzwinternet

    APN user: unset

    APN password: unset

    qmi-proxy: no

Checking data format with 'qmicli -d /dev/cdc-wdm1 --wda-get-data-format '...

Device link layer protocol retrieved: raw-ip

Getting expected data format with 'qmicli -d /dev/cdc-wdm1 --get-expected-data-format'...

Expected link layer protocol retrieved: 802-3

Updating kernel link layer protocol with 'qmicli -d /dev/cdc-wdm1 --set-expected    -data-format=raw-ip'...

Kernel link layer protocol updated

Starting network with 'qmicli -d /dev/cdc-wdm1 --wds-start-network=apn='vzwinternet'  --client-no-release-cid '...

Saving state at /tmp/qmi-network-state-cdc-wdm1... (CID: 35)

Saving state at /tmp/qmi-network-state-cdc-wdm1... (PDH: 63831232)

Network started successfully

 

#qmicli  -d /dev/cdc-wdm1 --wds-get-current-settings

[/dev/cdc-wdm1] Current settings retrieved:

           IP Family: IPv4

        IPv4 address: 100.100.90.111

    IPv4 subnet mask: 255.255.255.224

IPv4 gateway address: 100.100.90.112

    IPv4 primary DNS: 198.224.145.135

  IPv4 secondary DNS: 198.224.144.135

                 MTU: 1428

             Domains: none

 

root@alen-eval-kit:~# ifconfig wwan1 100.100.90.111 netmask 255.255.255.224

root@alen-eval-kit:~# route add default gw 100.100.90.112 wwan1

root@alen-eval-kit:~# echo "nameserver 198.224.145.135" > /etc/resolv.conf

root@alen-eval-kit:~# echo "nameserver 198.224.144.135" >> /etc/resolv.conf

root@alen-eval-kit:~# wget http://www.google.com

Connecting to www.google.com (74.125.124.99:80)

index.html           100% |*******************************| 13346   0:00:00 ETA

 

I am puzzled why the network registration fails with AT commands and when using qmicli I could successfully connect to the internet.  Any information on this topic would be helpful.

 

I have attached the ofono debug messages for your reference.

 

Thanks & Regards

vinothkumar