Base HAT not connecting internet

Dear all,

I have been trying to use Raspberry Pi 3G/4G & LTE Base HAT with EC25-A module and Twilio sim card that came with HAT. I have been trying to make QMI Interface work with Base HAT. I registered and activated the sim card via twilio.

I follow the instructions through tutorial. I didnt have any error till the end of process, which is #12 at this tutorial. However, when I tried to connect the internet through terminal buy typing sudo ./quectel-CM -s internet, it doesn’t seem to connect internet and I am getting the following error “udhcpc: no lease, failing”.

I would like to also note that I had problem with activating my Twilio account and registering my simcard. I have communicating with Twilio support to solve the issue. They said I need to give more details regarding to my project. I did and it is activated again, but I am still not able to connect internet. Is there anyone have had the same/similar issues while setting up the Base HAT?

Also, I am getting the blue LED blinking on my Base HAT, I also tried to use my AT&T sim card that I am using for my cell phone, it also didn’t work.

Thanks for the help,
Dervis

@dervis.gursoy ./quectel-CM -s “YOUR APN” , dont put internet if your APN name is not “internet”

@antoine.egho I think the APN must be “wireless.twilio.com” (please correct me if I am wrong), so in this case, I am doing sudo ./quectel-CM -s wireless.twilio.com , but it is giving me exactly the same error as before. Any idea?

Also, I tried twilio sim card with my cell phone, it did connect the internet, so it seems the problem is not because of Twilio.
Thanks

Hi @dervis.gursoy, i’m pretty new to this, but you are right twilio’s apn is indeed wireless.twilio.com

please post the complete log. you can use as well -f “filename.log”

antoine, I am having the same issue. I just received the Raspberry Pi 4G/LTE HAT kit today and have been trying to get it working with Twilio. Here is my log. Can you please help?

[06-09_19:18:09:945] WCDMA&LTE_QConnectManager_Linux&Android_V1.1.45
[06-09_19:18:09:945] ./quectel-CM profile[1] = wireless.twilio.com///0, pincode = (null)
[06-09_19:18:09:947] Find /sys/bus/usb/devices/1-1.4 idVendor=2c7c idProduct=0125
[06-09_19:18:09:947] Find /sys/bus/usb/devices/1-1.4:1.4/net/wwan0
[06-09_19:18:09:947] Find usbnet_adapter = wwan0

[06-09_19:18:09:947] Find /sys/bus/usb/devices/1-1.4:1.4/usbmisc/cdc-wdm0
[06-09_19:18:09:948] Find qmichannel = /dev/cdc-wdm0
[06-09_19:18:09:976] cdc_wdm_fd = 8
[06-09_19:18:10:074] Get clientWDS = 19
[06-09_19:18:10:106] Get clientDMS = 1
[06-09_19:18:10:138] Get clientNAS = 3
[06-09_19:18:10:170] Get clientUIM = 1
[06-09_19:18:10:202] Get clientWDA = 1
[06-09_19:18:10:234] requestBaseBandVersion EC25AFAR05A04M4G
[06-09_19:18:10:364] requestGetSIMStatus SIMStatus: SIM_READY
[06-09_19:18:10:364] requestSetProfile[1] wireless.twilio.com///0
[06-09_19:18:10:427] requestGetProfile[1] wireless.twilio.com///0
[06-09_19:18:10:458] requestRegistrationState2 MCC: 310, MNC: 410, PS: Detached, DataCap: UNKNOW
[06-09_19:18:10:490] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[06-09_19:18:10:554] requestRegistrationState2 MCC: 310, MNC: 410, PS: Detached, DataCap: UNKNOW
[06-09_19:18:15:612] requestRegistrationState2 MCC: 310, MNC: 410, PS: Detached, DataCap: UNKNOW
[06-09_19:18:20:668] requestRegistrationState2 MCC: 310, MNC: 410, PS: Detached, DataCap: UNKNOW
[06-09_19:18:25:725] requestRegistrationState2 MCC: 310, MNC: 410, PS: Detached, DataCap: UNKNOW
[06-09_19:18:30:782] requestRegistrationState2 MCC: 310, MNC: 410, PS: Detached, DataCap: UNKNOW
[06-09_19:18:35:838] requestRegistrationState2 MCC: 310, MNC: 410, PS: Detached, DataCap: UNKNOW
[06-09_19:18:40:895] requestRegistrationState2 MCC: 310, MNC: 410, PS: Detached, DataCap: UNKNOW
[06-09_19:18:45:952] requestRegistrationState2 MCC: 310, MNC: 410, PS: Detached, DataCap: UNKNOW
[06-09_19:18:51:009] requestRegistrationState2 MCC: 310, MNC: 410, PS: Detached, DataCap: UNKNOW
[06-09_19:18:56:129] requestRegistrationState2 MCC: 310, MNC: 410, PS: Detached, DataCap: UNKNOW
[06-09_19:18:56:129] requestSetOperatingMode(1)
[06-09_19:18:56:161] requestSetOperatingMode(0)
[06-09_19:18:56:513] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOW
[06-09_19:18:56:545] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOW
[06-09_19:18:56:577] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOW
[06-09_19:19:01:538] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOW
[06-09_19:19:03:010] QmiWwanThread exit
[06-09_19:19:03:012] main exit

Have you gotten an answer to this yet? I’m having the same issue with the EC25 and Pi 4.

I can’t remember where I found this, but it certainly fixed the problem.

Edit the /etc/dhcpcd.conf file with nano, at the end add denyinterfaces wwan0

This stops udhcpcd arguing with dhcpcd and so makes the GSM module able to get an IP address