I've been struggling since yesterday trying to configure a wwan interface that I get when I plug in a huawei modem into my rpi. This is what I have on /etc/network/interfaces but it just doesn't work (I'm in Costa Rica and the SIM provider is Movistar):
allow-hotplug wwan0
iface wwan0 inet dhcp
wwan_apn "internet.movistar.cr"
wwan_user "movistarcr"
wwan_pw "movistarcr"
When I try to bring it up, I don't get anything from it:
$ sudo ifup wwan0
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wwan0/58:2c:80:13:92:63
Sending on LPF/wwan0/58:2c:80:13:92:63
Sending on Socket/fallback
DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Also tried with qmi-network but it also fails:
$ sudo qmi-network /dev/cdc-wdm0 start
Loading profile at /etc/qmi-network.conf...
APN: internet.movistar.cr
APN user: movistarcr
APN password: movistarcr
qmi-proxy: no
Checking data format with 'qmicli -d /dev/cdc-wdm0 --wda-get-data-format '...
[23 May 2018, 15:47:10] -Warning ** [/dev/cdc-wdm0] QMI framing error detected
[23 May 2018, 15:47:10] -Warning ** [/dev/cdc-wdm0] QMI framing error detected
[23 May 2018, 15:47:10] -Warning ** [/dev/cdc-wdm0] QMI framing error detected
[23 May 2018, 15:47:10] -Warning ** [/dev/cdc-wdm0] QMI framing error detected
[23 May 2018, 15:47:10] -Warning ** [/dev/cdc-wdm0] QMI framing error detected
[23 May 2018, 15:47:10] -Warning ** [/dev/cdc-wdm0] QMI framing error detected
[23 May 2018, 15:47:10] -Warning ** [/dev/cdc-wdm0] QMI framing error detected
[23 May 2018, 15:47:10] -Warning ** [/dev/cdc-wdm0] QMI framing error detected
[23 May 2018, 15:47:10] -Warning ** [/dev/cdc-wdm0] QMI framing error detected
[23 May 2018, 15:47:10] -Warning ** [/dev/cdc-wdm0] QMI framing error detected
[23 May 2018, 15:47:10] -Warning ** [/dev/cdc-wdm0] QMI framing error detected
[23 May 2018, 15:47:10] -Warning ** [/dev/cdc-wdm0] QMI framing error detected
[23 May 2018, 15:47:10] -Warning ** [/dev/cdc-wdm0] QMI framing error detected
error: couldn't create client for the 'wda' service: CID allocation failed in the CTL client: Transaction timed out
Device link layer protocol not retrieved: WDA unsupported
Starting network with 'qmicli -d /dev/cdc-wdm0 --wds-start-network=apn='internet.movistar.cr',username='movistarcr',password='movistarcr' --client-no-release-cid '...
error: couldn't create client for the 'wds' service: CID allocation failed in the CTL client: Transaction timed out
error: network start failed, client not allocated
Just as a test, I'm able to send SMSs by echoing into /dev/ttyUSB2 and reading from it so it's not like I don't have access to provider's network or that the device is locked down.
If I try to go down and dirty and echo a ATD or ATDT command into /dev/ttyUSB2, I get a NO CARRIER reply from the modem and so trying to run wvdial against /dev/ttyUSB2 fails miserably as well, just as I expected.
Modem is Huawei E303C (taken from sending ATI command to modem):
Manufacturer: huawei
Model: E303C
Revision: 21.157.01.01.18
IMEI: xxxxxxxxxxx
+GCAP: +CGSM,+DS,+ES
AT^SETPORT? output:
^SETPORT:A1,A2;16,3,2,1,A1,A2