RPI 3B+ with base-hat and EC25 with quectel.CM -s <internetAPN> fails. message "udhcpc: no lease, failing"

Hello,

RPI hardware revision a020d3, Pi 3 Model B Plus Rev 1.3
uname -r returns 5.4.51-v7+
cat /etc/debian_version
10.4

Running the quectel.CM command I get “udhcpc: no lease, failing”

[08-10_15:11:07:346] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[08-10_15:11:07:346] ifconfig wwan0 down
[08-10_15:11:07:359] ifconfig wwan0 0.0.0.0
[08-10_15:11:07:409] requestSetupDataCall WdsConnectionIPv4Handle: 0x87202b30
[08-10_15:11:07:538] ifconfig wwan0 up
[08-10_15:11:07:545] 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-10_15:11:23:169] requestDeactivateDefaultPDP WdsConnectionIPv4Handle
[08-10_15:11:23:186] ifconfig wwan0 down
[08-10_15:11:23:204] ifconfig wwan0 0.0.0.0
[08-10_15:11:23:377] QmiWwanThread exit
[08-10_15:11:23:378] qmi_main exit

syslog has more information here…

Aug 10 15:11:04 P8 dhcpcd[408]: wwan0: carrier lost
Aug 10 15:11:04 P8 avahi-daemon[363]: Interface wwan0.IPv6 no longer relevant for mDNS.
Aug 10 15:11:04 P8 avahi-daemon[363]: Leaving mDNS multicast group on interface wwan0.IPv6 with address fe80::6537:2f20:eb0b:f3e8.
Aug 10 15:11:04 P8 avahi-daemon[363]: Interface wwan0.IPv4 no longer relevant for mDNS.
Aug 10 15:11:04 P8 avahi-daemon[363]: Leaving mDNS multicast group on interface wwan0.IPv4 with address 169.254.48.151.
Aug 10 15:11:04 P8 avahi-daemon[363]: Withdrawing address record for fe80::6537:2f20:eb0b:f3e8 on wwan0.
Aug 10 15:11:04 P8 avahi-daemon[363]: Withdrawing address record for 169.254.48.151 on wwan0.
Aug 10 15:11:04 P8 dhcpcd[408]: wwan0: deleting address fe80::6537:2f20:eb0b:f3e8
Aug 10 15:11:04 P8 dhcpcd[408]: wwan0: deleting route to 169.254.0.0/16
Aug 10 15:11:04 P8 dhcpcd[408]: wwan0: carrier acquired
Aug 10 15:11:04 P8 dhcpcd[408]: wwan0: IAID c6:df:1f:5b
Aug 10 15:11:04 P8 dhcpcd[408]: wwan0: adding address fe80::6537:2f20:eb0b:f3e8
Aug 10 15:11:04 P8 avahi-daemon[363]: Joining mDNS multicast group on interface wwan0.IPv6 with address fe80::6537:2f20:eb0b:f3e8.
Aug 10 15:11:04 P8 avahi-daemon[363]: New relevant interface wwan0.IPv6 for mDNS.
Aug 10 15:11:04 P8 avahi-daemon[363]: Registering new address record for fe80::6537:2f20:eb0b:f3e8 on wwan0..
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:14:568] Quectel_QConnectManager_Linux_V1.5.9
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:14:569] Find /sys/bus/usb/devices/1-1.1.2 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x004
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:14:569] Auto find qmichannel = /dev/cdc-wdm0
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:14:570] Auto find usbnet_adapter = wwan0
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:14:570] netcard driver = qmi_wwan, driver version = 22-Aug-2005
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:14:570] Modem works in QMI mode
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:14:591] /proc/1542/fd/7 -> /dev/cdc-wdm0
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:14:591] /proc/1542/exe -> /home/pi/files/quectel-CM/quectel-CM
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:23:593] cdc_wdm_fd = 7
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:24:625] Get clientWDS = 19
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:24:657] Get clientDMS = 1
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:24:690] Get clientNAS = 3
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:24:722] Get clientUIM = 1
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:24:754] Get clientWDA = 1
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:24:785] requestBaseBandVersion EC25AFAR05A04M4G
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:24:913] requestGetSIMStatus SIMStatus: SIM_READY
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:24:913] requestSetProfile[1] m2mglobal///0
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:24:977] requestGetProfile[1] m2mglobal///0
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:25:010] requestRegistrationState2 MCC: 310, MNC: 260, PS: Attached, DataCap: LTE
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:25:041] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:25:042] ifconfig wwan0 down
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:25:059] ifconfig wwan0 0.0.0.0
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:25:105] requestSetupDataCall WdsConnectionIPv4Handle: 0x87202b30
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:25:233] ifconfig wwan0 up
Aug 10 15:11:04 P8 sh[458]: [08-10_15:01:25:241] busybox udhcpc -f -n -q -t 5 -i wwan0
Aug 10 15:11:04 P8 sh[458]: [08-10_15:11:04:567] requestDeactivateDefaultPDP WdsConnectionIPv4Handle
Aug 10 15:11:04 P8 sh[458]: [08-10_15:11:04:594] ifconfig wwan0 down
Aug 10 15:11:04 P8 sh[458]: [08-10_15:11:04:604] ifconfig wwan0 0.0.0.0
Aug 10 15:11:04 P8 sh[458]: [08-10_15:11:04:785] QmiWwanThread exit
Aug 10 15:11:04 P8 sh[458]: [08-10_15:11:04:786] qmi_main exit
Aug 10 15:11:05 P8 dhcpcd[408]: wwan0: soliciting a DHCP lease
Aug 10 15:11:05 P8 dhcpcd[408]: wwan0: soliciting an IPv6 router
Aug 10 15:11:05 P8 sh[458]: ping: Warning: source address might be selected on device other than wwan0.
Aug 10 15:11:07 P8 dhcpcd[408]: wwan0: carrier lost
Aug 10 15:11:07 P8 avahi-daemon[363]: Interface wwan0.IPv6 no longer relevant for mDNS.
Aug 10 15:11:07 P8 avahi-daemon[363]: Leaving mDNS multicast group on interface wwan0.IPv6 with address fe80::6537:2f20:eb0b:f3e8.
Aug 10 15:11:07 P8 avahi-daemon[363]: Withdrawing address record for fe80::6537:2f20:eb0b:f3e8 on wwan0.
Aug 10 15:11:07 P8 dhcpcd[408]: wwan0: deleting address fe80::6537:2f20:eb0b:f3e8
Aug 10 15:11:07 P8 dhcpcd[408]: wwan0: carrier acquired
Aug 10 15:11:07 P8 dhcpcd[408]: wwan0: IAID c6:df:1f:5b
Aug 10 15:11:07 P8 dhcpcd[408]: wwan0: adding address fe80::6537:2f20:eb0b:f3e8
Aug 10 15:11:07 P8 avahi-daemon[363]: Joining mDNS multicast group on interface wwan0.IPv6 with address fe80::6537:2f20:eb0b:f3e8.
Aug 10 15:11:07 P8 avahi-daemon[363]: New relevant interface wwan0.IPv6 for mDNS.
Aug 10 15:11:07 P8 avahi-daemon[363]: Registering new address record for fe80::6537:2f20:eb0b:f3e8 on wwan0.
.
Aug 10 15:11:07 P8 udhcpc[1856]: wwan0: deconfigured
Aug 10 15:11:08 P8 dhcpcd[408]: wwan0: soliciting a DHCP lease
Aug 10 15:11:08 P8 dhcpcd[408]: wwan0: soliciting an IPv6 router
Aug 10 15:11:13 P8 dhcpcd[408]: wwan0: probing for an IPv4LL address
Aug 10 15:11:15 P8 sh[458]: PING 8.8.8.8 (8.8.8.8) from 192.168.42.7 wwan0: 56(84) bytes of data.
Aug 10 15:11:15 P8 sh[458]: — 8.8.8.8 ping statistics —
Aug 10 15:11:15 P8 sh[458]: 1 packets transmitted, 0 received, 100% packet loss, time 0ms
Aug 10 15:11:15 P8 sh[458]: Connection down, reconnecting…
Aug 10 15:11:17 P8 dhcpcd[408]: wwan0: using IPv4LL address 169.254.48.151
Aug 10 15:11:17 P8 dhcpcd[408]: wwan0: adding route to 169.254.0.0/16
Aug 10 15:11:17 P8 avahi-daemon[363]: Joining mDNS multicast group on interface wwan0.IPv4 with address 169.254.48.151.
Aug 10 15:11:17 P8 avahi-daemon[363]: New relevant interface wwan0.IPv4 for mDNS.
Aug 10 15:11:17 P8 avahi-daemon[363]: Registering new address record for 169.254.48.151 on wwan0.IPv4.
Aug 10 15:11:21 P8 dhcpcd[408]: wwan0: no IPv6 Routers available
Aug 10 15:11:23 P8 udhcpc[1856]: wwan0: configuration failed: leasefail:
Aug 10 15:11:23 P8 dhcpcd[408]: wwan0: carrier lost
Aug 10 15:11:23 P8 avahi-daemon[363]: Interface wwan0.IPv6 no longer relevant for mDNS.
Aug 10 15:11:23 P8 avahi-daemon[363]: Leaving mDNS multicast group on interface wwan0.IPv6 with address fe80::6537:2f20:eb0b:f3e8.
Aug 10 15:11:23 P8 avahi-daemon[363]: Interface wwan0.IPv4 no longer relevant for mDNS.
Aug 10 15:11:23 P8 avahi-daemon[363]: Leaving mDNS multicast group on interface wwan0.IPv4 with address 169.254.48.151.
Aug 10 15:11:23 P8 avahi-daemon[363]: Withdrawing address record for fe80::6537:2f20:eb0b:f3e8 on wwan0.
Aug 10 15:11:23 P8 avahi-daemon[363]: Withdrawing address record for 169.254.48.151 on wwan0.
Aug 10 15:11:23 P8 dhcpcd[408]: wwan0: deleting address fe80::6537:2f20:eb0b:f3e8
Aug 10 15:11:23 P8 dhcpcd[408]: wwan0: deleting route to 169.254.0.0/16
Aug 10 15:11:23 P8 dhcpcd[408]: wwan0: carrier acquired
Aug 10 15:11:23 P8 dhcpcd[408]: wwan0: IAID c6:df:1f:5b
Aug 10 15:11:23 P8 dhcpcd[408]: wwan0: adding address fe80::6537:2f20:eb0b:f3e8
Aug 10 15:11:23 P8 avahi-daemon[363]: Joining mDNS multicast group on interface wwan0.IPv6 with address fe80::6537:2f20:eb0b:f3e8.
Aug 10 15:11:23 P8 avahi-daemon[363]: New relevant interface wwan0.IPv6 for mDNS.
Aug 10 15:11:23 P8 avahi-daemon[363]: Registering new address record for fe80::6537:2f20:eb0b:f3e8 on wwan0..
Aug 10 15:11:23 P8 dhcpcd[408]: wwan0: soliciting an IPv6 router
Aug 10 15:11:24 P8 dhcpcd[408]: wwan0: soliciting a DHCP lease
Aug 10 15:11:25 P8 avahi-daemon[363]: Interface wwan0.IPv6 no longer relevant for mDNS.
Aug 10 15:11:25 P8 avahi-daemon[363]: Leaving mDNS multicast group on interface wwan0.IPv6 with address fe80::6537:2f20:eb0b:f3e8.
Aug 10 15:11:25 P8 dhcpcd[408]: wwan0: carrier lost
Aug 10 15:11:25 P8 avahi-daemon[363]: Withdrawing address record for fe80::6537:2f20:eb0b:f3e8 on wwan0.
Aug 10 15:11:25 P8 dhcpcd[408]: wwan0: deleting address fe80::6537:2f20:eb0b:f3e8
Aug 10 15:11:26 P8 dhcpcd[408]: wwan0: carrier acquired
Aug 10 15:11:26 P8 dhcpcd[408]: wwan0: IAID c6:df:1f:5b
Aug 10 15:11:26 P8 dhcpcd[408]: wwan0: adding address fe80::6537:2f20:eb0b:f3e8
Aug 10 15:11:26 P8 avahi-daemon[363]: Joining mDNS multicast group on interface wwan0.IPv6 with address fe80::6537:2f20:eb0b:f3e8.
Aug 10 15:11:26 P8 avahi-daemon[363]: New relevant interface wwan0.IPv6 for mDNS.
Aug 10 15:11:26 P8 avahi-daemon[363]: Registering new address record for fe80::6537:2f20:eb0b:f3e8 on wwan0.
.
Aug 10 15:11:26 P8 sh[458]: udhcpc: started, v1.30.1
Aug 10 15:11:26 P8 sh[458]: No resolv.conf for interface wwan0.udhcpc
Aug 10 15:11:26 P8 udhcpc[1930]: wwan0: deconfigured
Aug 10 15:11:26 P8 sh[458]: udhcpc: sending discover
Aug 10 15:11:26 P8 dhcpcd[408]: wwan0: soliciting an IPv6 router
Aug 10 15:11:26 P8 dhcpcd[408]: wwan0: soliciting a DHCP lease
Aug 10 15:11:29 P8 sh[458]: udhcpc: sending discover
Aug 10 15:11:31 P8 dhcpcd[408]: wwan0: probing for an IPv4LL address
Aug 10 15:11:33 P8 sh[458]: udhcpc: sending discover
Aug 10 15:11:36 P8 sh[458]: udhcpc: sending discover
Aug 10 15:11:37 P8 dhcpcd[408]: wwan0: using IPv4LL address 169.254.48.151
Aug 10 15:11:37 P8 avahi-daemon[363]: Joining mDNS multicast group on interface wwan0.IPv4 with address 169.254.48.151.
Aug 10 15:11:37 P8 avahi-daemon[363]: New relevant interface wwan0.IPv4 for mDNS.
Aug 10 15:11:37 P8 avahi-daemon[363]: Registering new address record for 169.254.48.151 on wwan0.IPv4.
Aug 10 15:11:37 P8 dhcpcd[408]: wwan0: adding route to 169.254.0.0/16
Aug 10 15:11:39 P8 sh[458]: udhcpc: sending discover
Aug 10 15:11:39 P8 dhcpcd[408]: wwan0: no IPv6 Routers available
Aug 10 15:11:42 P8 udhcpc[1930]: wwan0: configuration failed: leasefail:
Aug 10 15:11:42 P8 sh[458]: udhcpc: no lease, failing
Aug 10 15:17:01 P8 CRON[2003]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)

Please advise.

Thanks!

Here is my /etc/resolv.conf file,

pi@P3:/etc $ cat resolv.conf
domain hsd1.ca.comcast.net
nameserver 75.75.75.75
nameserver 75.75.76.76
nameserver 2001:558:feed::1
nameserver 2001:558:feed::2
pi@P3:/etc $

Any help out there???

had the same problem with my RPI - found a solution here.

when executing these two line before calling quectel.CM the connection succeeds:

sudo ifconfig wwan0 down
sudo echo ‘Y’ | sudo tee /sys/class/net/wwan0/qmi/raw_ip

I added these two lines to the top of /usr/share/udhcpc/default.script

sudo ifconfig wwan0 down
sudo echo ‘Y’ | sudo tee /sys/class/net/wwan0/qmi/raw_ip

1 Like

Awesome. I got an error:
pi@raspAP:~/files/quectel-CM $ sudo echo ‘Y’ | sudo tee /sys/class/net/wwan0/qmi/raw_ip
‘Y’
tee: /sys/class/net/wwan0/qmi/raw_ip: Invalid argument

Manually editing the file works though. :slight_smile:

awesome, these two lines solved my problem