I am trying to debug an LTE connexion and pulling my hair a bit.
So far the modem seems to be properly detected and I can talk to the 4G card using AT commands.
But I don't seem to be able to pass the point where I can connect.
My provider is Orange in France.
SIM has been bypassed and is "ok" (= not causing problem anymore).
From the PoV of the modem things seems quite ok AFAICT :
Everything seems quite "OK"… ??
AT+CPIN?
+CPIN: READY
OK
AT+CGDCONT=1,"IP","orange.fr"
OK
AT+CPIN?
+CPIN: READY
OK
AT+COPS?
+COPS: 0,0,"Orange F Orange F",2
OK
AT+CGREG?
+CGREG: 0,2
OK
AT+CGDCONT?
+CGDCONT: 1,"IP","orange.fr","0.0.0.0",0,0,0,0
+CGDCONT: 4,"IPV4V6","orange","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
OK
AT+CGATT?
+CGATT: 0
OK
AT+CGACT?
+CGACT: 1,0
+CGACT: 4,0
OK
But still when I am trying to connect, I got :
root@OpenWrt:/# uqmi -d /dev/cdc-wdm0 --start-network internet --autoconnect
"No effect"
You need to add --apn infront of your apn:
uqmi -d /dev/cdc-wdm0 --start-network --apn internet
This has no effect unfortunately :
root@OpenWrt:/# uqmi -d /dev/cdc-wdm0 --start-network --apn internet
"No effect"
My version of OpenWRT is the following : OpenWrt 21.02.1, r16325-88151b8303
I have never been able to start the modem using the GUI or to get it connected in any way.
But all commands seems to go through using direct access to the modem on /dev/ttyUSB2.
If you think that your modified kernel has a chance to solve my issue, I'd be happy to give it a try.
I have uploaded a x86_64 version to https://github.com/mrhaav/openwrt. Install luci-proto-qmi first.
Download and then install it manually with opkg install uqmi_2021-12-22-0.3_x86_64.ipk.
You may need to add --force-downgrade to opkg command.
Then configure your wwan interface from Luci - Network - Interfaces. Restart interface.
You will see what happens in the System Log or logread | grep 'netifd: wwan'
I have uploaded a new compiled file. I tried it in my in my PC Engines APU1 and it was OK.
root@OpenWrt:/tmp# opkg install uqmi_2021-12-22-0.3_x86_64.ipk
Upgrading uqmi on root from 2020-11-22-0a19b5b7-3 to 2021-12-22-0.3...
root@OpenWrt:/tmp# uname -a
Linux OpenWrt 5.4.154 #0 SMP Sun Oct 24 09:01:35 2021 x86_64 GNU/Linux
Just a last try. I updated my "compiling" machine and a new version is uploaded.
What will you get if you add -V2, or higher, to opkg? This will change the verbosity level of opkg.