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