<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font color="#663300" size="+1">Working now. See below.</font><br>
<br>
<div class="moz-cite-prefix">On 12/12/2015 11:09 PM, Brendan Simon
(eTRIX) wrote:<br>
</div>
<blockquote cite="mid:566C0E63.6030007@etrix.com.au" type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<font color="#663300" size="+1">More info below.</font><br>
<br>
<div class="moz-cite-prefix">On 12/12/2015 10:53 PM, Brendan Simon
(eTRIX) wrote:<br>
</div>
<blockquote cite="mid:566C0A9E.3030509@etrix.com.au" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
<font color="#663300" size="+1">Hi,<br>
<br>
Not sure if this the best forum to ask questions regarding MM
configuration, etc. I hope so. If not please refer me to
appropriate forums.<br>
<br>
I have a Quectel UC20 gsm modem. I got it working under
Debian Jessie on my MacBook (using VirtualBox). It all seem
to go well and had no problems getting it to work (well, after
I unloaded the option driver, as the Quectel documentation
only specifies the multiple tty method to access the modem).<br>
<br>
Now I have installed the same modem (on an evaluation board)
to my embedded arm board (Digilent ZedBoard with Xilinx Zynq
dual ARM-A9 SOC), also running Debian Jessie. It's conncected
via a USB OTG port. It shows up with lsusb and also the
/dev/cdc-wdm0 entry is populated. MM can see the device with
'mmcli -L' and 'mmcli -m 0' reports a bunch of information, so
everything looks fine as far as detecting and communicating
with the device.<br>
<br>
However, I just can't get it to connect to my ISP. It works
ok on the full Debian Jessie system, but not on the ZedBoard.<br>
I copied the
/etc/NetworkManager/system-connections/<myisp> file from
the VB system. I presume that is ok and MM should work.<br>
<br>
I thought I would try creating a new connection, but I can't
find a way of doing this from the cli. nm-connection-editor
is gnome app and I don't have gnome installed on my embedded
board. I tried nmtui, nmtui-edit, nmtui-connect, but there
are no options to add a Mobile Broadband connection as there
is with nm-connection-editor.<br>
<br>
Is there a nice/easy way of adding a new Mobile Broadband
connection with the cli tools ?<br>
<br>
</font>
<blockquote><font color="#663300" size="+1"><tt># cat
/etc/NetworkManager/system-connections/Telstra\ Telstra\
\(Next\ G\)\ 1 <br>
[connection]<br>
id=Telstra Telstra (Next G) 1<br>
uuid=5ee505f2-e161-436b-9b00-b36cab43ebfc<br>
type=gsm<br>
<br>
[gsm]<br>
number=*99#<br>
password-flags=1<br>
apn=telstra.internet<br>
network-type=4<br>
<br>
[ipv6]<br>
method=auto<br>
<br>
[ipv4]<br>
method=auto<br>
<br>
[serial]<br>
baud=115200<br>
<br>
<br>
# lsmod</tt></font><font color="#663300"><br>
<font size="+1"><tt>Module Size Used by</tt></font><br>
<font size="+1"><tt>cp210x 7582 0 </tt></font><br>
<font size="+1"><tt>qmi_wwan 10608 0 </tt></font><br>
<font size="+1"><tt>cdc_wdm 8788 2 qmi_wwan</tt></font><br>
<font size="+1"><tt>usbnet 17174 1 qmi_wwan</tt></font><br>
<font size="+1"><tt>mii 3417 1 usbnet</tt></font><br>
<font size="+1"><tt>ipv6 262886 24 </tt></font><br>
<br>
<br>
<font size="+1"><tt># cat /boot/config-4.0.0-g0fa909f-dirty
| grep -v '#' | grep
'WWAN\|QMI\|USB_SERIAL\|PPP\|QUALCOM'</tt></font><br>
<font size="+1"><tt>CONFIG_NET_VENDOR_QUALCOMM=y</tt></font><br>
<font size="+1"><tt>CONFIG_PPP=m</tt></font><br>
<font size="+1"><tt>CONFIG_PPP_BSDCOMP=m</tt></font><br>
<font size="+1"><tt>CONFIG_PPP_DEFLATE=m</tt></font><br>
<font size="+1"><tt>CONFIG_PPP_FILTER=y</tt></font><br>
<font size="+1"><tt>CONFIG_PPP_MPPE=m</tt></font><br>
<font size="+1"><tt>CONFIG_PPP_MULTILINK=y</tt></font><br>
<font size="+1"><tt>CONFIG_PPPOE=m</tt></font><br>
<font size="+1"><tt>CONFIG_PPP_ASYNC=m</tt></font><br>
<font size="+1"><tt>CONFIG_PPP_SYNC_TTY=m</tt></font><br>
<font size="+1"><tt>CONFIG_USB_NET_QMI_WWAN=m</tt></font><br>
<font size="+1"><tt>CONFIG_USB_SERIAL=y</tt></font><br>
<font size="+1"><tt>CONFIG_USB_SERIAL_GENERIC=y</tt></font><br>
<font size="+1"><tt>CONFIG_USB_SERIAL_CP210X=m</tt></font><br>
<font size="+1"><tt>CONFIG_USB_SERIAL_FTDI_SIO=y</tt></font><br>
<font size="+1"><tt>CONFIG_USB_SERIAL_PL2303=m</tt></font><br>
<font size="+1"><tt>CONFIG_USB_SERIAL_QCAUX=m</tt></font><br>
<font size="+1"><tt>CONFIG_USB_SERIAL_QUALCOMM=m</tt></font><br>
<font size="+1"><tt>CONFIG_USB_SERIAL_WWAN=m</tt></font><br>
<font size="+1"><tt>CONFIG_USB_SERIAL_OPTION=m</tt></font><br>
</font></blockquote>
<font color="#663300" size="+1"> </font> </blockquote>
<br>
<font color="#663300"><tt># mmcli -L </tt><tt><br>
</tt><tt><br>
</tt><tt>Found 1 modems:</tt><tt><br>
</tt><tt> /org/freedesktop/ModemManager1/Modem/0 [QUALCOMM
INCORPORATED] 0</tt><tt><br>
</tt><tt><br>
</tt><tt><br>
# mmcli -m 0</tt><tt><br>
</tt><tt><br>
</tt><tt>/org/freedesktop/ModemManager1/Modem/0 (device id
'a6620fb85776960b03a5848959ac4607cf6922dc')</tt><tt><br>
</tt><tt> -------------------------</tt><tt><br>
</tt><tt> Hardware | manufacturer: 'QUALCOMM INCORPORATED'</tt><tt><br>
</tt><tt> | model: '0'</tt><tt><br>
</tt><tt> | revision: 'UC20GQAR03A05M1024 1
[2014/05/05 9:00:00]'</tt><tt><br>
</tt><tt> | supported: 'gsm-umts'</tt><tt><br>
</tt><tt> | current: 'gsm-umts'</tt><tt><br>
</tt><tt> | equipment id: '861075020977922'</tt><tt><br>
</tt><tt> -------------------------</tt><tt><br>
</tt><tt> System | device:
'/sys/devices/soc0/amba@0/e0002000.usb/ci_hdrc.0/usb1/1-1/1-1.4'</tt><tt><br>
</tt><tt> | drivers: 'qmi_wwan'</tt><tt><br>
</tt><tt> | plugin: 'Generic'</tt><tt><br>
</tt><tt> | primary port: 'cdc-wdm0'</tt><tt><br>
</tt><tt> | ports: 'cdc-wdm0 (qmi), wwan0
(net)'</tt><tt><br>
</tt><tt> -------------------------</tt><tt><br>
</tt><tt> Numbers | own : 'unknown'</tt><tt><br>
</tt><tt> -------------------------</tt><tt><br>
</tt><tt> Status | lock: 'sim-pin2'</tt><tt><br>
</tt><tt> | unlock retries: 'sim-pin (3), sim-pin2
(3), sim-puk (10), sim-puk2 (10)'</tt><tt><br>
</tt><tt> | state: 'connected'</tt><tt><br>
</tt><tt> | power state: 'on'</tt><tt><br>
</tt><tt> | access tech: 'umts'</tt><tt><br>
</tt><tt> | signal quality: '68' (recent)</tt><tt><br>
</tt><tt> -------------------------</tt><tt><br>
</tt><tt> Modes | supported: 'allowed: 2g; preferred:
none</tt><tt><br>
</tt><tt> | allowed: 3g; preferred:
none</tt><tt><br>
</tt><tt> | allowed: 2g, 3g;
preferred: none</tt><tt><br>
</tt><tt> | allowed: 2g, 3g;
preferred: 2g</tt><tt><br>
</tt><tt> | allowed: 2g, 3g;
preferred: 3g'</tt><tt><br>
</tt><tt> | current: 'allowed: 2g, 3g;
preferred: 3g'</tt><tt><br>
</tt><tt> -------------------------</tt><tt><br>
</tt><tt> Bands | supported: 'cdma-bc15-aws, dcs, egsm,
pcs, g850, u2100, u1900, u800, u850, u900'</tt><tt><br>
</tt><tt> | current: 'cdma-bc15-aws, dcs, egsm,
pcs, g850, u2100, u1900, u800, u850, u900'</tt><tt><br>
</tt><tt> -------------------------</tt><tt><br>
</tt><tt> IP | supported: 'ipv4, ipv6, ipv4v6'</tt><tt><br>
</tt><tt> -------------------------</tt><tt><br>
</tt><tt> 3GPP | imei: '861075020977922'</tt><tt><br>
</tt><tt> | enabled locks: 'none'</tt><tt><br>
</tt><tt> | operator id: '50501'</tt><tt><br>
</tt><tt> | operator name: 'Telstra'</tt><tt><br>
</tt><tt> | subscription: 'unknown'</tt><tt><br>
</tt><tt> | registration: 'home'</tt><tt><br>
</tt><tt> -------------------------</tt><tt><br>
</tt><tt> SIM | path:
'/org/freedesktop/ModemManager1/SIM/0'</tt><tt><br>
</tt><tt><br>
</tt><tt> -------------------------</tt><tt><br>
</tt><tt> Bearers | paths:
'/org/freedesktop/ModemManager1/Bearer/0'<br>
<br>
<br>
# mmcli -v -m 0 --simple-connect="apn=telstra.internet"<br>
[01 Jan 1970, 00:55:11] [Debug] Forcing request to be run
asynchronously<br>
[01 Jan 1970, 00:55:11] [Debug] Assuming '0' is the modem
index<br>
[01 Jan 1970, 00:55:11] [Debug] ModemManager process found at
':1.2'<br>
[01 Jan 1970, 00:55:11] [Debug] Modem found at
'/org/freedesktop/ModemManager1/Modem/0'<br>
<br>
[01 Jan 1970, 00:55:11] [Debug] Asynchronously connecting the
modem...<br>
successfully connected the modem<br>
<br>
<br>
# ifconfig<br>
eth0 Link encap:Ethernet HWaddr 00:0a:35:00:01:22 <br>
inet addr:10.0.0.194 Bcast:10.0.0.255
Mask:255.255.255.0<br>
inet6 addr: fe80::20a:35ff:fe00:122/64 Scope:Link<br>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:8040 errors:0 dropped:0 overruns:0
frame:0<br>
TX packets:3032 errors:0 dropped:0 overruns:0
carrier:0<br>
collisions:0 txqueuelen:1000 <br>
RX bytes:585787 (572.0 KiB) TX bytes:419965 (410.1
KiB)<br>
Interrupt:34 Base address:0xb000 <br>
<br>
lo Link encap:Local Loopback <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: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:0 <br>
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)<br>
<br>
wwan0 Link encap:Ethernet HWaddr 92:00:b6:f4:ce:10 <br>
inet6 addr: fe80::9000:b6ff:fef4:ce10/64 Scope:Link<br>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:1000 <br>
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)<br>
<br>
</tt><br>
I just can't seem to get an IP address. There must be a
misconfiguration or something not installed, but I can't work
out what it is.<br>
<br>
Thanks, Brendan.<br>
</font></blockquote>
<br>
<font color="#663300">Er, it's now working. Why? Not sure.<br>
<br>
I had to try out a new SD card (Samsung with larger capacity,
32GB, as my Sandisk 32GB cards weren't working), so I recreated my
rootfs, created the disk image, dd to sd card, booted, scp the NM
system-configurations config file from VBox system to target
board, restarted NM (not sure if I had too or not), and ifconfig
shows me an assigned IP address :)<br>
<br>
So, not sure what the heck is going on, but maybe my running
system was out of whack and just needed a reboot. I was
installing some packages directly on the target with aptitude.
Hopefully it's reliable and stable so that the IP connections
always comes up on boot, and stays up. Fingers crossed :)<br>
<br>
Brendan.<br>
</font><br>
</body>
</html>