No data over cellular connection

Hi, wonder if anyone can give me any pointers what I might be missing.

I have Quectel EC25 on top of RPi OS (Bookworm, RPi4). I followed the instructions on these pages and modem is registered to the network, has IP address and route is set. Ip_raw is Y and so forth.

Still I cannot get any ping to go trough (well actually, if I check tcpdump, ping seems to be leaving but I do not get anything back).

Here’s some basics:

qmicli -d /dev/cdc-wdm0 --nas-get-serving-system
[/dev/cdc-wdm0] Successfully got serving system:
Registration state: ‘registered’
CS: ‘attached’
PS: ‘attached’
Selected network: ‘3gpp’
Radio interfaces: ‘1’
[0]: ‘lte’
….

cat /sys/class/net/wwan0/qmi/raw_ip
Y

udhcpc -q -f -i wwan0
udhcpc: started, v1.35.0
udhcpc: broadcasting discover
udhcpc: broadcasting select for 100.103.226.155, server 100.103.226.156
udhcpc: lease of 100.103.226.155 obtained from 100.103.226.156, lease time 7200

qmicli -d /dev/cdc-wdm0 --wds-get-current-settings
[/dev/cdc-wdm0] Current settings retrieved:
IP Family: IPv4
IPv4 address: 100.103.226.155
IPv4 subnet mask: 255.255.255.248
IPv4 gateway address: 100.103.226.156
IPv4 primary DNS: 124.6.181.26
IPv4 secondary DNS: 124.6.181.25
MTU: 1500
Domains: none

ip route show
default via 100.103.226.156 dev wwan0 proto static metric 50
default via 192.168.1.1 dev wlan0 proto dhcp src 192.168.1.174 metric 600
100.103.226.152/29 dev wwan0 proto kernel scope link src 100.103.226.155 metric 50
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.174 metric 600

but when trying to make a ping → “ping -I wwan0 8.8.8.8”, I do not get a response.

Any ideas what could be the problem are appreciated :slight_smile:

Oh yes, just to mention, sim is prepaid and works ok in an Android phone using same APN.

Hi there,

It looks like your modem is successfully registering to the network and receiving an IP address but the ping issue might be due to routing conflicts or misconfigured settings. Here are a few things you can check and adjust:

  1. USB Mode (usbnet setting)

    • Ensure the USB mode is configured correctly. Run:

      AT+QCFG="usbnet"
      

      It should return 0. If it doesn’t, you can change it by running:

      AT+QCFG="usbnet",0
      AT+CFUN=1,1
      

      After applying this, reboot the module after about 10 seconds.

  2. Verify Raw IP Configuration

    • Check that the raw_ip is set to ‘Y’ before bringing up the interface:

      sudo ip link set wwan0 down
      echo 'Y' | sudo tee /sys/class/net/wwan0/qmi/raw_ip
      sudo ip link set wwan0 up
      
  3. Routing Conflicts

    • It seems there might be a conflict with the default routes. You have two default routes:

      default via 100.103.226.156 dev wwan0 metric 50
      default via 192.168.1.1 dev wlan0 metric 600
      

      To test, try disabling your Wi-Fi interface temporarily to ensure that wwan0 is the default:

      sudo ip link set wlan0 down
      

      Then, try pinging again using ping -I wwan0 8.8.8.8.

  4. Check DNS Settings

    • If you’re still having trouble with DNS resolution, make sure /etc/resolv.conf is correctly configured to use the DNS servers provided:

      124.6.181.26
      124.6.181.25
      
  5. MTU Settings

    • Some networks require a specific MTU size to function correctly. Try adjusting the MTU size on wwan0:

      sudo ip link set wwan0 mtu 1428
      
  6. Reinitialize Connection with qmicli

    • If the above doesn’t resolve the issue, you can reinitialize the connection using qmicli:

      sudo qmicli -p -d /dev/cdc-wdm0 --device-open-net='net-raw-ip|net-no-qos-header' \
        --wds-start-network="apn='YOUR_APN',ip-type=4" --client-no-release-cid
      
      

      Make sure to replace YOUR_APN with the correct APN for your SIM card.


Additional Troubleshooting:

  • Use tcpdump -i wwan0 icmp to monitor if ICMP responses are being received but not routed properly.

  • If no ping responses are received, try testing HTTP or HTTPS connectivity using:

    curl -v --interface wwan0 https://sixfab.com
    

Let us know how it goes, and if you still face issues, feel free to provide more details on any specific error messages or log outputs!

Thanks for a quick response!

I do not know what is going on but today the modem is not recognised by Linux. Cannot see it with lsusb and there is no traces in the logs.

So need to troubleshoot a bit what is going on before I can reply to you. I did try all of those of course except did not put wlan0 link down, I just removed it from the route. Result was the same.

About the modem not found at the moment, in a worst case perhaps there was something wrong with the unit already and that was causing this issue.

Or I also have another theory. My device is actually EC25EU, as I need it in Europe but currently I am in another country where there is both FDD and TDD LTE. When modem was still working I checked, it is camped to TDD site and also TDD is not allowed, at least this is how I read following: +QCFG: “band”,0x93,0x1a0080800c5,0x0

I do not know if there is FDD coverage in the same area where I am but doubt operator would build mixed coverage with FDD and TDD, well who knows. But this would sound logical to me.

Anyway need to come back on this if I get it back in working order.

Thanks again!

Dear @kimmoki

Thanks for the update! We understand that the modem is currently not recognized by Linux and that you need some time to troubleshoot.

Before we proceed further, could you please provide a few details so we can better assist:

  • Can you share the full setup of your device, including Raspberry Pi model, HAT/modem configuration and connection method?

  • Which SIM card are you using?

  • What is the firmware version of the EC25EU module?

  • Did you check the network registration once the modem was initially recognized?

Once the modem is back in working order, please let us know these details so we can help troubleshoot further.

Thanks again for your patience!