Can't get Quectel UC20 modem working on Embedded Board
Brendan Simon (eTRIX)
brendan.simon at etrix.com.au
Sat Dec 12 04:09:07 PST 2015
More info below.
On 12/12/2015 10:53 PM, Brendan Simon (eTRIX) wrote:
> Hi,
>
> 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.
>
> 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).
>
> 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.
>
> 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.
> I copied the /etc/NetworkManager/system-connections/<myisp> file from
> the VB system. I presume that is ok and MM should work.
>
> 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.
>
> Is there a nice/easy way of adding a new Mobile Broadband connection
> with the cli tools ?
>
> # cat /etc/NetworkManager/system-connections/Telstra\ Telstra\
> \(Next\ G\)\ 1
> [connection]
> id=Telstra Telstra (Next G) 1
> uuid=5ee505f2-e161-436b-9b00-b36cab43ebfc
> type=gsm
>
> [gsm]
> number=*99#
> password-flags=1
> apn=telstra.internet
> network-type=4
>
> [ipv6]
> method=auto
>
> [ipv4]
> method=auto
>
> [serial]
> baud=115200
>
>
> # lsmod
> Module Size Used by
> cp210x 7582 0
> qmi_wwan 10608 0
> cdc_wdm 8788 2 qmi_wwan
> usbnet 17174 1 qmi_wwan
> mii 3417 1 usbnet
> ipv6 262886 24
>
>
> # cat /boot/config-4.0.0-g0fa909f-dirty | grep -v '#' | grep
> 'WWAN\|QMI\|USB_SERIAL\|PPP\|QUALCOM'
> CONFIG_NET_VENDOR_QUALCOMM=y
> CONFIG_PPP=m
> CONFIG_PPP_BSDCOMP=m
> CONFIG_PPP_DEFLATE=m
> CONFIG_PPP_FILTER=y
> CONFIG_PPP_MPPE=m
> CONFIG_PPP_MULTILINK=y
> CONFIG_PPPOE=m
> CONFIG_PPP_ASYNC=m
> CONFIG_PPP_SYNC_TTY=m
> CONFIG_USB_NET_QMI_WWAN=m
> CONFIG_USB_SERIAL=y
> CONFIG_USB_SERIAL_GENERIC=y
> CONFIG_USB_SERIAL_CP210X=m
> CONFIG_USB_SERIAL_FTDI_SIO=y
> CONFIG_USB_SERIAL_PL2303=m
> CONFIG_USB_SERIAL_QCAUX=m
> CONFIG_USB_SERIAL_QUALCOMM=m
> CONFIG_USB_SERIAL_WWAN=m
> CONFIG_USB_SERIAL_OPTION=m
>
# mmcli -L
Found 1 modems:
/org/freedesktop/ModemManager1/Modem/0 [QUALCOMM INCORPORATED] 0
# mmcli -m 0
/org/freedesktop/ModemManager1/Modem/0 (device id
'a6620fb85776960b03a5848959ac4607cf6922dc')
-------------------------
Hardware | manufacturer: 'QUALCOMM INCORPORATED'
| model: '0'
| revision: 'UC20GQAR03A05M1024 1 [2014/05/05 9:00:00]'
| supported: 'gsm-umts'
| current: 'gsm-umts'
| equipment id: '861075020977922'
-------------------------
System | device:
'/sys/devices/soc0/amba at 0/e0002000.usb/ci_hdrc.0/usb1/1-1/1-1.4'
| drivers: 'qmi_wwan'
| plugin: 'Generic'
| primary port: 'cdc-wdm0'
| ports: 'cdc-wdm0 (qmi), wwan0 (net)'
-------------------------
Numbers | own : 'unknown'
-------------------------
Status | lock: 'sim-pin2'
| unlock retries: 'sim-pin (3), sim-pin2 (3), sim-puk (10),
sim-puk2 (10)'
| state: 'connected'
| power state: 'on'
| access tech: 'umts'
| signal quality: '68' (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: 3g'
-------------------------
Bands | supported: 'cdma-bc15-aws, dcs, egsm, pcs, g850,
u2100, u1900, u800, u850, u900'
| current: 'cdma-bc15-aws, dcs, egsm, pcs, g850,
u2100, u1900, u800, u850, u900'
-------------------------
IP | supported: 'ipv4, ipv6, ipv4v6'
-------------------------
3GPP | imei: '861075020977922'
| enabled locks: 'none'
| operator id: '50501'
| operator name: 'Telstra'
| subscription: 'unknown'
| registration: 'home'
-------------------------
SIM | path: '/org/freedesktop/ModemManager1/SIM/0'
-------------------------
Bearers | paths: '/org/freedesktop/ModemManager1/Bearer/0'
# mmcli -v -m 0 --simple-connect="apn=telstra.internet"
[01 Jan 1970, 00:55:11] [Debug] Forcing request to be run asynchronously
[01 Jan 1970, 00:55:11] [Debug] Assuming '0' is the modem index
[01 Jan 1970, 00:55:11] [Debug] ModemManager process found at ':1.2'
[01 Jan 1970, 00:55:11] [Debug] Modem found at
'/org/freedesktop/ModemManager1/Modem/0'
[01 Jan 1970, 00:55:11] [Debug] Asynchronously connecting the modem...
successfully connected the modem
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0a:35:00:01:22
inet addr:10.0.0.194 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::20a:35ff:fe00:122/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8040 errors:0 dropped:0 overruns:0 frame:0
TX packets:3032 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:585787 (572.0 KiB) TX bytes:419965 (410.1 KiB)
Interrupt:34 Base address:0xb000
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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wwan0 Link encap:Ethernet HWaddr 92:00:b6:f4:ce:10
inet6 addr: fe80::9000:b6ff:fef4:ce10/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:648 (648.0 B)
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.
Thanks, Brendan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/modemmanager-devel/attachments/20151212/f4c2e85c/attachment-0001.html>
More information about the ModemManager-devel
mailing list