Can neither see "wwan" interface, nor does network work in Sierra-modem-in-QMI-mode

Thomas Schäfer tschaefer at t-online.de
Sun Aug 14 18:29:45 UTC 2016


I am a little bit confused.

I started everytime with step "c)" (mmcli -L to get the right number)

Step "b)"(setting the bearer manually)  was never necessary.

Because of the enumeration I also rarely used step  "a)".

By the way: Does your ISP provide IPv6 too?

Regards

Thomas Schäfer



Am Sonntag, 14. August 2016, 23:29:19 schrieb Ajay Garg:
> Thanks Thomas !!!
> 
> Following algorithm "mostly"  works ::
> 
> 
> ##############################################################
> a)
> Check whether the required bearer already exists, via ::
> 
>                mmcli -m 0 --list-bearers
>                mmcli -b /path/of/bearer/as/returned/by/above/command
> 
> If yes, then go to step c).
> 
> b)
>                mmcli -m 0 --create-bearer="apn=airtelgprs.com"
> 
> c)
>                mmcli -m 0 --simple-connect="apn=airtelgprs.com"
> 
> d)
>                dhclient -r wwan0
>                dhclient wwan0
> ##############################################################
> 
> In everything goes right, then telnet/ping work fine.
> 
> In the beginning, I said "mostly", because the last step (dhclient wwan0)
> hangs 8/10 times. Whenever this happens, the only remedy that I have found
> so far is rebooting the machine.
> 
> 
> Is there a saner way to have the "dhclient wwan0" work fine every time?
> 
> 
> Thanks and Regards,
> Ajay
> 
> On Sun, Aug 14, 2016 at 7:52 PM, <tschaefer at t-online.de> wrote:
> > Modemmanager doesn't make the ip-settings.
> > This is normally done by networkmanager or by yourself.
> > 
> > See mmcli -b 0
> > 
> > The hint using ip instead of ifconfig was no joke!
> > 
> > Ifconfig doesn't list down interfaces.
> > 
> > Ip l does.
> > 
> > The simplest thing in  your case seems to me, is to starting
> > dhclient/dhcpcd or something similar on your wwan-device.
> > Alternatively try to do the settings according to mmcli -b 0 via ip
> > manually.
> > 
> > Thomas
> > 
> > 
> > 
> > 
> > Am 14.08.2016 15:52 schrieb Ajay Garg <ajaygargnsit at gmail.com>:
> > 
> > Hi All.
> > 
> > This post is mostly similar to https://lists.freedesktop.org/
> > archives/libqmi-devel/2016-August/001647.html, except there I am trying
> > with "qmicli" throughout, and here I try with "mmcli" throughout.
> > 
> > Anyways, for brevity, I will put in the complete relevant-content here
> > too.
> > 
> > I switched my modem into QMI-mode, and rebooted the SOC
> > (Ubuntu-on-SSD-interfaced-with-modem). After reboot, following is the
> > information ::
> > 
> > 
> > == Pre-Requisites are in place ==
> > 
> > ############################################################
> > root at logic-desktop:~# *lsusb*
> > Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> > Bus 001 Device 005: ID 1199:68a2 Sierra Wireless, Inc.
> > Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
> > Bus 001 Device 003: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
> > Bus 001 Device 002: ID 046d:c31d Logitech, Inc. Media Keyboard K200
> > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > 
> > 
> > root at logic-desktop:~# *ps -aux | grep qmi-proxy*
> > root       865  0.0  0.1  28032  5732 ?        Sl   18:58   0:00
> > /usr/lib/libqmi/qmi-proxy root      2563  0.0  0.0   4692  2072 pts/2   
> > S+   19:05   0:00 grep --color=auto qmi-proxy
> > 
> > root at logic-desktop:~# *lsmod | grep sierra*
> > 
> > root at logic-desktop:~# *lsmod | grep qcserial*
> > qcserial               13006  0
> > usb_wwan               19306  1 qcserial
> > usbserial              38972  2 qcserial,usb_wwan
> > 
> > root at logic-desktop:~# *lsmod | grep qmi_wwan*
> > qmi_wwan               21469  0
> > cdc_wdm                18518  2 qmi_wwan
> > usbnet                 37829  1 qmi_wwan
> > ############################################################
> > 
> > 
> > 
> > 
> > 
> > == Initial-Interface Listing ==
> > 
> > ############################################################
> > root at logic-desktop:~# *ifconfig*
> > eth1      Link encap:Ethernet  HWaddr 00:90:0b:4c:65:fa
> > 
> >           UP BROADCAST MULTICAST  MTU:1500  Metric:1
> >           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:1000
> >           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
> >           Memory:d0700000-d071ffff
> > 
> > eth2      Link encap:Ethernet  HWaddr 00:90:0b:4c:65:fb
> > 
> >           inet6 addr: fe80::290:bff:fe4c:65fb/64 Scope:Link
> >           UP BROADCAST MULTICAST  MTU:1500  Metric:1
> >           RX packets:3910 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:3448 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:1000
> >           RX bytes:3143983 (3.1 MB)  TX bytes:540896 (540.8 KB)
> >           Memory:d0600000-d061ffff
> > 
> > lo        Link encap:Local Loopback
> > 
> >           inet addr:127.0.0.1  Mask:255.0.0.0
> >           inet6 addr: ::1/128 Scope:Host
> >           UP LOOPBACK RUNNING  MTU:65536  Metric:1
> >           RX packets:2398 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:2398 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:0
> >           RX bytes:188946 (188.9 KB)  TX bytes:188946 (188.9 KB)
> > 
> > ############################################################
> > 
> > 
> > 
> > 
> > 
> > == Connection-Establishment ==
> > 
> > ############################################################
> > root at logic-desktop:~# *mmcli -m 0 -e*
> > successfully enabled the modem
> > 
> > root at logic-desktop:~# *mmcli -m 0 --simple-connect="apn=airtelgprs.com
> > <http://airtelgprs.com>"* successfully connected the modem
> > 
> > root at logic-desktop:~# *mmcli -m 0*
> > 
> > /org/freedesktop/ModemManager1/Modem/0 (device id
> > '6eef1b98754cbd133c7a802b89bfcccb55c2f464')> 
> >   -------------------------
> >   Hardware |   manufacturer: 'QUALCOMM INCORPORATED'
> >   
> >            |          model: '0'
> >            |       
> >            |       revision: 'SCAUTNZ  1  [Oct 21 2011 09:30:38]'
> >            |      
> >            |      supported: 'gsm-umts'
> >            |      
> >            |        current: 'gsm-umts'
> >            |   
> >            |   equipment id: '013087000947186'
> >   
> >   -------------------------
> >   System   |         device:
> >   '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1'>   
> >            |        drivers: 'qmi_wwan, qcserial'
> >            |        
> >            |         plugin: 'Sierra'
> >            |   
> >            |   primary port: 'cdc-wdm0'
> >            |   
> >            |          ports: 'ttyUSB1 (at), cdc-wdm0 (qmi), wwan0 (net)'
> >   
> >   -------------------------
> >   Numbers  |           own : 'unknown'
> >   -------------------------
> >   Status   |           lock: 'sim-pin2'
> >   
> >            | unlock retries: 'sim-pin (10), sim-pin2 (3), sim-puk (10),
> >            | sim-puk2 (10)'
> >            | 
> >            |          state: 'connected'
> >            |    
> >            |    power state: 'on'
> >            |    access tech: 'gsm'
> >            | 
> >            | signal quality: '71' (recent)
> >   
> >   -------------------------
> >   Modes    |      supported: 'allowed: 2g; preferred: none
> >   
> >            |                  allowed: 3g; preferred: none
> >            |                  allowed: 2g, 3g; preferred: none
> >            |                  allowed: 2g, 3g; preferred: 2g
> >            |                  allowed: 2g, 3g; preferred: 3g'
> >            |        
> >            |        current: 'allowed: 2g, 3g; preferred: none'
> >   
> >   -------------------------
> >   Bands    |      supported: 'dcs, egsm, pcs, g850, u2100, u1900, u800,
> >   u850'
> >   
> >            |        current: 'dcs, egsm, pcs, g850, u2100, u1900, u800,
> >            |        u850'
> >   
> >   -------------------------
> >   IP       |      supported: 'ipv4, ipv6, ipv4v6'
> >   -------------------------
> >   3GPP     |           imei: '013087000947186'
> >   
> >            |  enabled locks: 'none'
> >            |  
> >            |    operator id: '659957'
> >            |  
> >            |  operator name: 'unknown'
> >            |  
> >            |   subscription: 'unknown'
> >            |   registration: 'home'
> >   
> >   -------------------------
> >   SIM      |           path: '/org/freedesktop/ModemManager1/SIM/0'
> >   
> >   -------------------------
> >   Bearers  |          paths: '/org/freedesktop/ModemManager1/Bearer/0'
> > 
> > ############################################################
> > 
> > 
> > 
> > 
> > == Latest-Interface Listing ==
> > ############################################################
> > root at logic-desktop:~# *ifconfig*
> > eth0      Link encap:Ethernet  HWaddr 00:90:0b:4c:65:fa
> > 
> >           UP BROADCAST MULTICAST  MTU:1500  Metric:1
> >           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:1000
> >           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
> >           Memory:d0700000-d071ffff
> > 
> > eth2      Link encap:Ethernet  HWaddr 00:90:0b:4c:65:fb
> > 
> >           inet6 addr: fe80::290:bff:fe4c:65fb/64 Scope:Link
> >           UP BROADCAST MULTICAST  MTU:1500  Metric:1
> >           RX packets:2023 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:1819 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:1000
> >           RX bytes:1561030 (1.5 MB)  TX bytes:318922 (318.9 KB)
> >           Memory:d0600000-d061ffff
> > 
> > lo        Link encap:Local Loopback
> > 
> >           inet addr:127.0.0.1  Mask:255.0.0.0
> >           inet6 addr: ::1/128 Scope:Host
> >           UP LOOPBACK RUNNING  MTU:65536  Metric:1
> >           RX packets:948 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:948 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:0
> >           RX bytes:77992 (77.9 KB)  TX bytes:77992 (77.9 KB)
> > 
> > ############################################################
> > 
> > 
> > 
> > == Network-Trials ==
> > 
> > ############################################################
> > root at logic-desktop:~# *telnet www.google.com <http://www.google.com> 80*
> > telnet: could not resolve www.google.com/80: Name or service not known
> > 
> > root at logic-desktop:~# *ping www.google.com <http://www.google.com>*
> > ping: unknown host www.google.com
> > ############################################################
> > 
> > 
> > What am I missing?
> > 
> > Will be grateful fo pointers.
> > 
> > 
> > Thanks and Regards,
> > Ajay



More information about the ModemManager-devel mailing list