EC25 Connects to provider but no IP/DNS is given to wwan0

Hi there

I hope I can get some advice here. I have a development board from quectel with the EC25-E chiset mounted.
Now I am trying to set up a connection on my linux pc running kernel 4.15.0-130-generic using GobiNet.

I connected the module and checked that the GobiNet driver was loaded using lsmod, so far all seems fine.
Then I ran the quectel CM. The CM console output is not 100% clear to me. It looks like its somehow using qmi_wwan and not gobinet??? Well at least it can lease an IP from my provider. But somehow that IP is never set on the wwan0 interface nor is any DNS.

I am quite confused right now, having multiple different manuals from quectel on how to build/install the gobinet kernel module and so on. Which one should i use for my 4.15.0 linux?

I would appreciate any help!
Bests, André

Output form quectel CM:

[01-23_13:19:03:596] WCDMA&LTE_QConnectManager_Linux&Android_V1.1.45
[01-23_13:19:03:596] ./quectel-CM profile[1] = gprs.swisscom.ch///0, pincode = (null)
[01-23_13:19:03:597] Find /sys/bus/usb/devices/2-3 idVendor=2c7c idProduct=0125
[01-23_13:19:03:597] Find /sys/bus/usb/devices/2-3:1.4/net/wwan0
[01-23_13:19:03:597] Find usbnet_adapter = wwan0
[01-23_13:19:03:597] Find /sys/bus/usb/devices/2-3:1.4/usbmisc/cdc-wdm0
[01-23_13:19:03:597] Find qmichannel = /dev/cdc-wdm0
[01-23_13:19:03:604] cdc_wdm_fd = 8
[01-23_13:19:03:672] Get clientWDS = 19
[01-23_13:19:03:704] Get clientDMS = 2
[01-23_13:19:03:737] Get clientNAS = 3
[01-23_13:19:03:769] Get clientUIM = 1
[01-23_13:19:03:800] Get clientWDA = 1
[01-23_13:19:03:832] requestBaseBandVersion EC25EFAR02A08M4G
[01-23_13:19:03:960] requestGetSIMStatus SIMStatus: SIM_READY
[01-23_13:19:03:960] requestSetProfile[1] gprs.swisscom.ch///0
[01-23_13:19:04:024] requestGetProfile[1] gprs.swisscom.ch///0
[01-23_13:19:04:057] requestRegistrationState2 MCC: 228, MNC: 1, PS: Attached, DataCap: LTE
[01-23_13:19:04:089] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[01-23_13:19:04:153] requestRegistrationState2 MCC: 228, MNC: 1, PS: Attached, DataCap: LTE
[01-23_13:19:04:185] requestSetupDataCall WdsConnectionIPv4Handle: 0x871f6310
[01-23_13:19:04:249] requestQueryDataCall IPv4ConnectionStatus: CONNECTED
[01-23_13:19:04:281] ifconfig wwan0 up
[01-23_13:19:04:284] busybox udhcpc -f -n -q -t 5 -i wwan0
[01-23_13:19:20:745] requestDeactivateDefaultPDP err = 0
[01-23_13:19:20:745] ifconfig wwan0 down
[01-23_13:19:20:751] ifconfig wwan0 0.0.0.0
[01-23_13:19:20:952] QmiWwanThread exit
[01-23_13:19:20:952] main exit
[01-23_13:21:17:601] WCDMA&LTE_QConnectManager_Linux&Android_V1.1.45
[01-23_13:21:17:601] ./quectel-CM profile[1] = gprs.swisscom.ch///0, pincode = (null)
[01-23_13:21:17:601] Find /sys/bus/usb/devices/2-3 idVendor=2c7c idProduct=0125
[01-23_13:21:17:601] Find /sys/bus/usb/devices/2-3:1.4/net/wwan0
[01-23_13:21:17:601] Find usbnet_adapter = wwan0
[01-23_13:21:17:601] Find /sys/bus/usb/devices/2-3:1.4/usbmisc/cdc-wdm0
[01-23_13:21:17:601] Find qmichannel = /dev/cdc-wdm0
[01-23_13:21:17:607] cdc_wdm_fd = 8
[01-23_13:21:17:688] Get clientWDS = 19
[01-23_13:21:17:720] Get clientDMS = 2
[01-23_13:21:17:752] Get clientNAS = 3
[01-23_13:21:17:784] Get clientUIM = 1
[01-23_13:21:17:816] Get clientWDA = 1
[01-23_13:21:17:848] requestBaseBandVersion EC25EFAR02A08M4G
[01-23_13:21:17:975] requestGetSIMStatus SIMStatus: SIM_READY
[01-23_13:21:17:976] requestSetProfile[1] gprs.swisscom.ch///0
[01-23_13:21:18:040] requestGetProfile[1] gprs.swisscom.ch///0
[01-23_13:21:18:072] requestRegistrationState2 MCC: 228, MNC: 1, PS: Attached, DataCap: LTE
[01-23_13:21:18:103] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[01-23_13:21:18:168] requestRegistrationState2 MCC: 228, MNC: 1, PS: Attached, DataCap: LTE
[01-23_13:21:18:200] requestSetupDataCall WdsConnectionIPv4Handle: 0x871f6310
[01-23_13:21:18:263] requestQueryDataCall IPv4ConnectionStatus: CONNECTED
[01-23_13:21:18:295] ifconfig wwan0 up
[01-23_13:21:18:299] busybox udhcpc -f -n -q -t 5 -i wwan0
[01-23_13:22:14:589] requestDeactivateDefaultPDP err = 0
[01-23_13:22:14:590] ifconfig wwan0 down
[01-23_13:22:14:595] ifconfig wwan0 0.0.0.0
[01-23_13:22:14:807] QmiWwanThread exit
[01-23_13:22:14:807] main exit
[01-23_13:22:16:869] WCDMA&LTE_QConnectManager_Linux&Android_V1.1.45
[01-23_13:22:16:869] ./quectel-CM profile[1] = gprs.swisscom.ch///0, pincode = (null)
[01-23_13:22:16:869] Find /sys/bus/usb/devices/2-3 idVendor=2c7c idProduct=0125
[01-23_13:22:16:869] Find /sys/bus/usb/devices/2-3:1.4/net/wwan0
[01-23_13:22:16:869] Find usbnet_adapter = wwan0
[01-23_13:22:16:870] Find /sys/bus/usb/devices/2-3:1.4/usbmisc/cdc-wdm0
[01-23_13:22:16:870] Find qmichannel = /dev/cdc-wdm0
[01-23_13:22:16:880] cdc_wdm_fd = 8
[01-23_13:22:16:952] Get clientWDS = 19
[01-23_13:22:16:984] Get clientDMS = 2
[01-23_13:22:17:016] Get clientNAS = 3
[01-23_13:22:17:048] Get clientUIM = 1
[01-23_13:22:17:080] Get clientWDA = 1
[01-23_13:22:17:111] requestBaseBandVersion EC25EFAR02A08M4G
[01-23_13:22:17:240] requestGetSIMStatus SIMStatus: SIM_READY
[01-23_13:22:17:240] requestSetProfile[1] gprs.swisscom.ch///0
[01-23_13:22:17:304] requestGetProfile[1] gprs.swisscom.ch///0
[01-23_13:22:17:336] requestRegistrationState2 MCC: 228, MNC: 1, PS: Attached, DataCap: LTE
[01-23_13:22:17:367] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[01-23_13:22:17:432] requestRegistrationState2 MCC: 228, MNC: 1, PS: Attached, DataCap: LTE
[01-23_13:22:17:464] requestSetupDataCall WdsConnectionIPv4Handle: 0x871f6310
[01-23_13:22:17:528] requestQueryDataCall IPv4ConnectionStatus: CONNECTED
[01-23_13:22:17:560] ifconfig wwan0 up
[01-23_13:22:17:563] busybox udhcpc -f -n -q -t 5 -i wwan0
[01-23_13:27:09:009] requestDeactivateDefaultPDP err = 0
[01-23_13:27:09:009] ifconfig wwan0 down
[01-23_13:27:09:015] ifconfig wwan0 0.0.0.0
[01-23_13:27:09:236] QmiWwanThread exit
[01-23_13:27:09:236] main exit
[01-23_13:27:48:869] WCDMA&LTE_QConnectManager_Linux&Android_V1.1.45
[01-23_13:27:48:869] ./quectel-CM profile[1] = gprs.swisscom.ch///0, pincode = (null)
[01-23_13:27:48:869] Find /sys/bus/usb/devices/2-3 idVendor=2c7c idProduct=0125
[01-23_13:27:48:869] Find /sys/bus/usb/devices/2-3:1.4/net/wwan0
[01-23_13:27:48:869] Find usbnet_adapter = wwan0
[01-23_13:27:48:869] Find /sys/bus/usb/devices/2-3:1.4/usbmisc/cdc-wdm0
[01-23_13:27:48:869] Find qmichannel = /dev/cdc-wdm0
[01-23_13:27:48:876] cdc_wdm_fd = 8
[01-23_13:27:48:949] Get clientWDS = 19
[01-23_13:27:48:981] Get clientDMS = 2
[01-23_13:27:49:012] Get clientNAS = 3
[01-23_13:27:49:044] Get clientUIM = 1
[01-23_13:27:49:076] Get clientWDA = 1
[01-23_13:27:49:109] requestBaseBandVersion EC25EFAR02A08M4G
[01-23_13:27:49:237] requestGetSIMStatus SIMStatus: SIM_READY
[01-23_13:27:49:237] requestSetProfile[1] gprs.swisscom.ch///0
[01-23_13:27:49:301] requestGetProfile[1] gprs.swisscom.ch///0
[01-23_13:27:49:332] requestRegistrationState2 MCC: 228, MNC: 1, PS: Attached, DataCap: LTE
[01-23_13:27:49:365] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[01-23_13:27:49:429] requestRegistrationState2 MCC: 228, MNC: 1, PS: Attached, DataCap: LTE
[01-23_13:27:49:460] requestSetupDataCall WdsConnectionIPv4Handle: 0x871f6310
[01-23_13:27:49:525] requestQueryDataCall IPv4ConnectionStatus: CONNECTED
[01-23_13:27:49:556] ifconfig wwan0 up
[01-23_13:27:49:558] busybox udhcpc -f -n -q -t 5 -i wwan0

**here I pressed ctrl - c***

[01-23_13:30:22:740] requestDeactivateDefaultPDP err = 0
[01-23_13:30:22:740] ifconfig wwan0 down
[01-23_13:30:22:745] ifconfig wwan0 0.0.0.0
[01-23_13:30:22:964] QmiWwanThread exit
[01-23_13:30:22:965] main exit

Please execute commands as follow:

systemctl stop ModemManager
systemctl disable ModemManager
dos2unix default.script
chmod 777 default.script
// if /etc/udhcpc/ does not exist. mkdir /etc/udhcpc
cp default.script /etc/udhcpc/
cp default.script /usr/share/udhcpc/

the default.script is in the directory of quectel-CM

Hi Bean.Wang

Thanks a lot!
With your support I was able to get it up and running on my linux test pc!

That made me very confident and I immediately jumped into building the kernel modules for the acctual target. I ran in to another problem there tho.

As soon as the module is booted my linux creates a wwan0 interface(even without adding the quectel drivers) by itselfe without me running quectel-CM, look here:

pi@TestClient-0002:~/quectel/kernel/linux-rpi-5.4.y $ ifconfig
wwan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.84.49 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::9a2a:bd58:41b8:2708 prefixlen 64 scopeid 0x20
ether de:de:f5:88:07:f8 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 27 bytes 4425 (4.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

I do not understand the IP that it sets and more importantly WHO starts this wwan0? I dont want that because when I now run quectel-CM this is what happens, leading me to the thinking that it has already connected to my APN:

pi@TestClient-0002:~/quectel-CM $ sudo ./quectel-CM -s gprs.swisscom.ch
[01-31_17:46:05:537] Quectel_QConnectManager_Linux_V1.5
[01-31_17:46:05:539] Find /sys/bus/usb/devices/1-1.1 idVendor=0x2c7c idProduct=0x125
[01-31_17:46:05:539] Auto find qmichannel = /dev/cdc-wdm0
[01-31_17:46:05:539] Auto find usbnet_adapter = wwan0
[01-31_17:46:05:540] Modem works in QMI mode
[01-31_17:46:05:552] cdc_wdm_fd = 7
[01-31_17:46:05:650] Get clientWDS = 19
[01-31_17:46:05:681] Get clientDMS = 1
[01-31_17:46:05:713] Get clientNAS = 3
[01-31_17:46:05:745] Get clientUIM = 1
[01-31_17:46:05:778] Get clientWDA = 1
[01-31_17:46:05:812] requestBaseBandVersion EC25EFAR02A08M4G
[01-31_17:46:05:938] requestGetSIMStatus SIMStatus: SIM_READY
[01-31_17:46:05:938] requestSetProfile[1] gprs.swisscom.ch///0
[01-31_17:46:06:003] requestGetProfile[1] gprs.swisscom.ch///0
[01-31_17:46:06:035] requestRegistrationState2 MCC: 228, MNC: 1, PS: Attached, DataCap: LTE
[01-31_17:46:06:067] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[01-31_17:46:06:067] ifconfig wwan0 down
[01-31_17:46:06:085] ifconfig wwan0 0.0.0.0
[01-31_17:46:06:162] requestSetupDataCall WdsConnectionIPv4Handle: 0x87986160
[01-31_17:46:06:291] ifconfig wwan0 up
[01-31_17:46:06:301] busybox udhcpc -f -n -q -t 5 -i wwan0
udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
[01-31_17:46:21:814] /etc/udhcpc/default.script: Lease failed:
udhcpc: no lease, failing

^C[01-31_17:48:14:313] requestDeactivateDefaultPDP WdsConnectionIPv4Handle
[01-31_17:48:14:320] ifconfig wwan0 down
[01-31_17:48:14:338] ifconfig wwan0 0.0.0.0
[01-31_17:48:14:512] QmiWwanThread exit
[01-31_17:48:14:513] qmi_main exit

I appreciate your support.
Bests André

EC25 works fine on RaspberryPi ,3B, 4B and CM4.

inet 169.254.84.49 is not a valid IP address.
I guess some program might already try access the Internet trough the wwan0.
Or some systemd service have tried set up data call for wwan0. It might be another quectel-CM process or mmcli、qmicli.

My advice is

1.ModemManager also exists on RaspberryPi. Stop and disable it.
2. Make sure only one quectel-CM is running.
3.Before you start quectel-CM, ifconfig down the wwan0.

If it is still not working.,please email to support@quectel.com.