EC25AF USB LTE Modem on Orange Pi with Armbian 23.8.1 Bullseye Linux 5.15.93-sunxi

Hi there. I have an EC25AF USB LTE Modem on Orange Pi with Armbian 23.8.1 Bullseye Linux 5.15.93-sunxi.

at+qgmr gives this firmware: EC25AFFAR07A14M4G_01.003.01.003

I want to try to get gpsd to work with the GPS/GNSS of this modem.

When I issue this command:

at+qgpsloc?

I get the below data suggesting the GPS is working.
+QGPSLOC: 030352.0,1940.4502N,15558.7274W,0.6,324.4,3,222.43,0.0,0.0,070324,10

OK

I have installed gpsd (apt install gpsd gpsd-clients). But I cannot figure out how to get gpsd to connect tto the device.

I also would like to know how to see what the Internet WAN connection information is - like its IP address etc and how to test if it is connected.

I have this modem connected in ECM mode and have an IP address of 192.168.225.xx/24 assigned which I can see.

When I issue this command:
at+cgdcont?

I get this - CGDCONT: 1 is the correct APN using IP 4 and 6 which is what I need.
+CGDCONT: 1,“IPV4V6”,“fast.t-mobile.com”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0
+CGDCONT: 2,“IPV4V6”,“ims”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0
+CGDCONT: 3,“IPV4V6”,“sos”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,1
+CGDCONT: 4,“IPV4V6”,“tmus”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0

OK

Any help would be great. Thanks

As far as I know, the T-mobile does not support the IPV4 by default.

You could try

AT$QCPRFMOD=PID:1,OVRRIDEHOPDP:"IPV4V6"

Thanks Bean. How can I check to see if I have internet access through the modem?
Somethink like
ping -I <name_of_interface> google.com

which gives me:

paulysa@OPi02ADSBUATVHF:/tmp/# ping -I enx8254e8dbb6fc www.google.com
PING www.google.com (142.251.33.100) from 192.168.221.21 enx8254e8dbb6fc: 56(84) bytes of data.

but times out

  1. Please try
    ping 8.8.8.8 first. Maybe the DNS is not valid.

  2. Please also check the Linux route table first. Maybe the usbnet interface is not in the default route.
    Try
    route -n
    to check the route .

I have set the manual IP settings for that interface named enx8254e8dbb6fc as:
Fixed IP: 192.168.225.21/24 OR ::ffff:192.168.225.21/64)
Gateway: 192.168.225.1 OR ::ffff:192.168.225.1
DNS (IP4) 8.8.8.8 / 8.8.4.4
DNS (IP6) 2001:4860:4860::8888 / 2001:4860:4860::8844

If I could figure out what the Internet/WAN IP address was I could maybe enter manual DNS settings like the above for this, but I do not know what the WAN IP address is or how to get my Armbian BullsEye OS to tell me this.

When I ping 8.8.8.8 or 8.8.4.4 or dns.google.com it works but it is using my other interface.

This is my routing table displayed form route -n

paulysa@OPi02ADSBUATVHF:/tmp# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.50.1 0.0.0.0 UG 101 0 0 eth0
0.0.0.0 192.168.221.1 0.0.0.0 UG 102 0 0 enx8254e8dbb6fc
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enx8254e8dbb6fc
192.168.50.0 0.0.0.0 255.255.255.0 U 101 0 0 eth0
192.168.221.0 0.0.0.0 255.255.255.0 U 102 0 0 enx8254e8dbb6fc

eth0 is my Ethernet address which is also fixed and this works.

enx8254e8dbb6fc is my virtual Ethernet address exposed by my LTE modem setup in ECM mode.

That means eth0 has much higher priority than enx8254e8dbb6fc.

Please also check the AT command:

AT+CGPADDR

AT+CGPADDR
+CGPADDR: 1,“38.7.251.144.116.22.73.129.172.57.159.17.101.227.34.130”
+CGPADDR: 2,“38.7.252.32.116.18.169.212.172.57.143.170.75.239.254.226”
+CGPADDR: 3,“0.0.0.0,0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”
+CGPADDR: 4,“0.0.0.0,0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”

OK

Have you set it?

Seems that the modem could only get the ipv6 address.

Yes I did this.

at$qcprfmod=pid:1,ovrridehopdp:“ipv4v6”
OK

And now what is problem?
If possible I think you could diconnect the eth0 and try test the internet connection.

Ok pulled eth cable and connected crossover ethernet cable to ssh

ping -I enx8254e8dbb6fc 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 192.168.221.21 enx8254e8dbb6fc: 56(84) bytes of data.

Still timing out

route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.221.1 0.0.0.0 UG 100 0 0 enx8254e8dbb6fc
0.0.0.0 192.168.50.1 0.0.0.0 UG 101 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enx8254e8dbb6fc
192.168.50.0 0.0.0.0 255.255.255.0 U 101 0 0 eth0
192.168.221.0 0.0.0.0 255.255.255.0 U 100 0 0 enx8254e8dbb6fc

But I have my laptop plugged in using a cross over ethernet cable and both laptop and Orange PI have fixed IP’s

If you connect with the device via ssh. It’s no need to unplug the ethernet cable.
You could remove the eth0 from the default route.

route del default dev eth0 gw 192.168.50.1

OK I will put eth cable back in from WiFi router and delete the route