Followed the QMI setup tutorial and got error of udhcpc: no lease, failing. Running on Kernel version 5.4.51. Raspberry Pi 3.
Here is the terminal log:
pi@raspberrypi:~/files/quectel-CM $ sudo ./quectel-CM -s vzwinternet
[08-11_17:41:03:931] Quectel_QConnectManager_Linux_V1.5.9
[08-11_17:41:03:932] Find /sys/bus/usb/devices/1-1.1.2 idVendor=0x2c7c idProduct=0x296, bus=0x001, dev=0x007
[08-11_17:41:03:933] Auto find qmichannel = /dev/cdc-wdm0
[08-11_17:41:03:933] Auto find usbnet_adapter = wwan0
[08-11_17:41:03:933] netcard driver = qmi_wwan, driver version = 22-Aug-2005
[08-11_17:41:03:933] Modem works in QMI mode
[08-11_17:41:03:952] cdc_wdm_fd = 7
[08-11_17:41:04:086] Get clientWDS = 1
[08-11_17:41:04:088] Get clientDMS = 1
[08-11_17:41:04:090] Get clientNAS = 1
[08-11_17:41:04:092] Get clientUIM = 1
[08-11_17:41:04:094] Get clientWDA = 1
[08-11_17:41:04:096] requestBaseBandVersion BG96MAR04A03M1G
[08-11_17:41:04:106] requestGetSIMStatus SIMStatus: SIM_READY
[08-11_17:41:04:106] requestSetProfile[1] vzwinternet///0
[08-11_17:41:04:116] requestGetProfile[1] vzwinternet///0
[08-11_17:41:04:118] requestRegistrationState2 MCC: 311, MNC: 480, PS: Attached, DataCap: LTE
[08-11_17:41:04:120] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[08-11_17:41:04:120] ifconfig wwan0 down
[08-11_17:41:04:134] ifconfig wwan0 0.0.0.0
[08-11_17:41:04:156] requestSetupDataCall WdsConnectionIPv4Handle: 0x833d9050
[08-11_17:41:04:164] ifconfig wwan0 up
[08-11_17:41:04:176] busybox udhcpc -f -n -q -t 5 -i wwan0
udhcpc: started, v1.30.1
No resolv.conf for interface wwan0.udhcpc
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: no lease, failing
[08-11_17:41:19:855] File:ql_raw_ip_mode_check Line:105 udhcpc fail to get ip address, try next:
[08-11_17:41:19:855] ifconfig wwan0 down
[08-11_17:41:19:868] echo Y > /sys/class/net/wwan0/qmi/raw_ip
[08-11_17:41:19:868] ifconfig wwan0 up
[08-11_17:41:19:880] busybox udhcpc -f -n -q -t 5 -i wwan0
udhcpc: started, v1.30.1
No resolv.conf for interface wwan0.udhcpc
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: no lease, failing
^C[08-11_18:00:07:564] requestDeactivateDefaultPDP WdsConnectionIPv4Handle
[08-11_18:00:07:569] ifconfig wwan0 down
[08-11_18:00:07:587] ifconfig wwan0 0.0.0.0
[08-11_18:00:07:609] QmiWwanThread exit
[08-11_18:00:07:610] qmi_main exit
Also, I ran sudo ./qmi_install.sh again and got the following output with warning message. Maybe there are some error in āDevice.cā?
Checking Kernel
5.4.51-v7+ based kernel contains driver
Installing udhcpc
Reading package listsā¦ Done
Building dependency tree
Reading state informationā¦ Done
udhcpc is already the newest version (1:1.30.1-4).
The following package was automatically installed and is no longer required:
rpi-eeprom-images
Use āsudo apt autoremoveā to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Copying udhcpc default script
Change directory to /home/pi/files/quectel-CM
rm -rf quectel-CM *~
rm -rf quectel-qmi-proxy
gcc -Wall -s quectel-qmi-proxy.c -o quectel-qmi-proxy -lpthread -ldl
gcc -Wall -s QmiWwanCM.c GobiNetCM.c main.c MPQMUX.c QMIThread.c util.c qmap_bridge_mode.c mbim-cm.c device.c udhcpc.c -o quectel-CM -lpthread -ldl
device.c: In function ācatch_logā:
device.c:380:55: warning: ā%sā directive writing up to 255 bytes into a region of size between 184 and 236 [-Wformat-overflow=]
sprintf(tbuff, ā%04d/%02d/%02d_%02d:%02d:%02d %sā,
^~
tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, buff);
~~~~
device.c:380:9: note: āsprintfā output between 21 and 328 bytes into a destination of size 256
sprintf(tbuff, ā%04d/%02d/%02d_%02d:%02d:%02d %sā,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, buff);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
After reboot please follow commands mentioned below
go to /home/pi/files/quectel-CM and run sudo ./quectel-CM -s [YOUR APN]