I purchased this kit including the Quectel EC25. I followed the instructions from Sixfab, softwarewise, it all works well, but I fail to acquire an IP address using the script quectel-CM.
Dear Bruce,
Thanks for your inquiry in Quectel forum.
Please check the following error information.
Please check whether the path of resolv.conf is right, the default is /usr/share/udhcpc/default.script, and confirm you have the right permission to call it. Thanks!
Thanks for the suggestion, but I do not understand. Are you saying to change the RESOLV_CONF to have the path to the actual script “/usr/share/udhcpc/default.script”?
Changing that path did not change for me. Because it seems that script is not getting executed, unless I disable dhcpcd.service. Then the script, unmodified, runs and I sometimes obtain an IP address from your scripting calling busybox udhcpc.
But this is not a solution, because now my eth0 device has no IP address.
There seems to be some conflict when using both dhcp and udhcp. Someone please help!
Dear Bruce,
If it still cannot solve your issue, it may need to catch debug log to analyze the root reason. And normally you should enable dhcp service after the module dial up.And please email to support@quectel to get the tool to catch module debug log. Thanks!
I am having the exact same issue. I was once able to get an ip address, and confirmed that it was working with ping -I wwan0 to a known working machine, and it worked fine. I had to go, and when I got back, I used the same commands from my history and was not able to reconnect. I had the resolv.conf error in the session that did work, so that doesn’t appear to be an issue.
See session details below.
I am hoping you will make the solution public, because I don’t think it is an individual problem.
qmicli -d /dev/cdc-wdm0 ‘–wds-start-network=apn=’’‘MY APN,ip-type=4’’’’ --client-no-release-cid
[/dev/cdc-wdm0] Network started
Packet data handle: ‘2267820544’
[/dev/cdc-wdm0] Client ID not released:
Service: ‘wds’
CID: ‘18’
sleep 1
sleep 1
qmi-network /dev/cdc-wdm0 status
Loading profile at /etc/qmi-network.conf…
APN: MY APN
APN user: unset
APN password: unset
qmi-proxy: no
Getting status with 'qmicli -d /dev/cdc-wdm0 --wds-get-packet-service-status '…
Status: connected
sleep 2
udhcpc -q -f -n -i wwan0
udhcpc: started, v1.30.1
No resolv.conf for interface wwan0.udhcpc
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: no lease, failing
The session that did work looked like this:
qmi-network /dev/cdc-wdm0 status
Loading profile at /etc/qmi-network.conf…
APN: MY APN
APN user: unset
APN password: unset
qmi-proxy: no
Loading previous state from /tmp/qmi-network-state-cdc-wdm0…
Previous CID: 18
Previous PDH: 2267385008
Getting status with 'qmicli -d /dev/cdc-wdm0 --wds-get-packet-service-status --client-cid=18 --client-no-release-cid '…
Status: connected
udhcpc -q -f -n -i wwan0
udhcpc: started, v1.30.1
No resolv.conf for interface wwan0.udhcpc
udhcpc: sending discover
udhcpc: sending select for CORRECT IP
udhcpc: sending select for CORRECT IP
udhcpc: sending select for CORRECT IP
udhcpc: lease of CORRECT IP obtained, lease time 7200
ip: RTNETLINK answers: File exists
Too few arguments.