TL-MR6400 v5 LTE modem not working

Hi folks,

I have a problem trying to setup LTE modem in MR6400 v5.

I've tried to use uqmi package from @mrhaav uqmi_2022-04-22-0.4_mipsel_24kc.ipk in branch 21.02 freshly installed that I've seen some people installed from this post:

The error that I've got is a Permission Denied, not sure why:

Fri Apr 29 19:50:18 2022 daemon.notice netifd: wwan (7086): PINcode disabled
Fri Apr 29 19:50:18 2022 daemon.notice netifd: wwan (7086): Data format set to raw-ip
Fri Apr 29 19:50:18 2022 daemon.notice netifd: wwan (7086): Default profile number: 1
Fri Apr 29 19:50:19 2022 daemon.notice netifd: wwan (7086): Initiate airplane mode
Fri Apr 29 19:50:20 2022 daemon.notice netifd: wwan (7086): Change default profile
Fri Apr 29 19:50:20 2022 daemon.notice netifd: wwan (7086): authentication: PAP to pap
Fri Apr 29 19:50:20 2022 daemon.notice netifd: wwan (7086): Configure profile for dual-stack
Fri Apr 29 19:50:20 2022 daemon.notice netifd: wwan (7086): Dual-stack profile number: 2
Fri Apr 29 19:50:20 2022 daemon.notice netifd: wwan (7086): Airplane mode off
Fri Apr 29 19:50:22 2022 daemon.notice netifd: wwan (7086): registered on 21403
Fri Apr 29 19:50:23 2022 daemon.notice netifd: wwan (7086): Registered to ?t;? on LTE
Fri Apr 29 19:50:24 2022 daemon.notice netifd: wwan (7086): Unable to connect with ipv4, check APN settnings
Fri Apr 29 19:50:24 2022 daemon.notice netifd: wwan (7228): Stopping network wwan
Fri Apr 29 19:50:24 2022 daemon.notice netifd: wwan (7228): Command failed: Permission denied```

Any clue how I can check what I'm doing wrong?

Thanks.

This is the real problem. The network has rejected your connection attempt.

The "permission denied" is not important, it happens after the connection attempt has already failed and the wwan was shut down.

Hi

Can you print your configuration?

uci show network.wwan

Hi folks, thanks for your quick reply.

This is the configuration output:

network.wwan=interface
network.wwan.proto='qmi'
network.wwan.device='/dev/cdc-wdm0'
network.wwan.apn='orangeworld'
network.wwan.auth='pap'
network.wwan.username='orange'
network.wwan.password='orange'
network.wwan.delay='20'
network.wwan.dhcp='0'
network.wwan.default_profile='1'
network.wwan.dualstack_profile='2'
network.wwan.pdptype='ipv4'

And this is the APN that I got from my Android Phone:

https://imgur.com/a/efbc3rE

All values match with what's configured in the interface but it's still not working.

Any idea?

Thanks!

Hi

Your settings looks OK. But, can you try with Authentication Type = None?

Hi, still no luck.

Sat Apr 30 01:21:43 2022 daemon.notice netifd: Interface 'wwan' is setting up now
Sat Apr 30 01:22:04 2022 daemon.notice netifd: wwan (14177): PINcode disabled
Sat Apr 30 01:22:04 2022 daemon.notice netifd: wwan (14177): Data format set to raw-ip
Sat Apr 30 01:22:04 2022 daemon.notice netifd: wwan (14177): Default profile number: 1
Sat Apr 30 01:22:04 2022 daemon.notice netifd: wwan (14177): Initiate airplane mode
Sat Apr 30 01:22:06 2022 daemon.notice netifd: wwan (14177): Change default profile
Sat Apr 30 01:22:06 2022 daemon.notice netifd: wwan (14177): username: orange to
Sat Apr 30 01:22:06 2022 daemon.notice netifd: wwan (14177): password changed
Sat Apr 30 01:22:06 2022 daemon.notice netifd: wwan (14177): authentication: PAP to none
Sat Apr 30 01:22:06 2022 daemon.notice netifd: wwan (14177): Airplane mode off
Sat Apr 30 01:22:07 2022 daemon.notice netifd: wwan (14177): registered on 21403
Sat Apr 30 01:22:09 2022 daemon.notice netifd: wwan (14177): Registered to ?t;? on LTE
Sat Apr 30 01:22:10 2022 daemon.notice netifd: wwan (14177): Unable to connect with ipv4, check APN settnings
Sat Apr 30 01:22:10 2022 daemon.notice netifd: wwan (14445): Stopping network wwan
Sat Apr 30 01:22:10 2022 daemon.notice netifd: wwan (14445): Command failed: Permission denied

Current settings:

network.wwan=interface
network.wwan.proto='qmi'
network.wwan.device='/dev/cdc-wdm0'
network.wwan.apn='orangeworld'
network.wwan.delay='20'
network.wwan.dhcp='0'
network.wwan.default_profile='1'
network.wwan.dualstack_profile='2'
network.wwan.pdptype='ipv4'
network.wwan.auth='none'

I've tried to change pdptype to ipv6 and ipv4/ipv6 and does not work too.

Ipv6 logs:

Sat Apr 30 01:26:42 2022 daemon.notice netifd: Interface 'wwan' is setting up now
Sat Apr 30 01:27:03 2022 daemon.notice netifd: wwan (16614): PINcode disabled
Sat Apr 30 01:27:04 2022 daemon.notice netifd: wwan (16614): Data format set to raw-ip
Sat Apr 30 01:27:04 2022 daemon.notice netifd: wwan (16614): Default profile number: 1
Sat Apr 30 01:27:04 2022 daemon.notice netifd: wwan (16614): Initiate airplane mode
Sat Apr 30 01:27:05 2022 daemon.notice netifd: wwan (16614): Change default profile
Sat Apr 30 01:27:05 2022 daemon.notice netifd: wwan (16614): pdp-type: ipv4 to ipv6
Sat Apr 30 01:27:06 2022 daemon.notice netifd: wwan (16614): Airplane mode off
Sat Apr 30 01:27:07 2022 daemon.notice netifd: wwan (16614): searching on 21403
Sat Apr 30 01:27:10 2022 daemon.notice netifd: wwan (16614): searching on 21403
Sat Apr 30 01:27:13 2022 daemon.notice netifd: wwan (16614): searching on 21403
Sat Apr 30 01:27:16 2022 daemon.notice netifd: wwan (16614): searching on 21403
Sat Apr 30 01:27:19 2022 daemon.notice netifd: wwan (16614): searching on 21403
Sat Apr 30 01:27:23 2022 daemon.notice netifd: wwan (16614): searching on 21403
Sat Apr 30 01:27:26 2022 daemon.notice netifd: wwan (16614): searching on 21403
Sat Apr 30 01:27:29 2022 daemon.notice netifd: wwan (16614): registered on 21403
Sat Apr 30 01:27:29 2022 daemon.notice netifd: wwan (16614): Registered to ?t;? on WCDMA
Sat Apr 30 01:27:31 2022 daemon.notice netifd: wwan (16614): Unable to connect with ipv6, check APN settnings
Sat Apr 30 01:27:31 2022 daemon.notice netifd: wwan (17029): Stopping network wwan
Sat Apr 30 01:27:31 2022 daemon.notice netifd: wwan (17029): Command failed: Permission denied

Ipv4/ipv6 logs:

Sat Apr 30 01:28:01 2022 daemon.notice netifd: Interface 'wwan' is setting up now
Sat Apr 30 01:28:22 2022 daemon.notice netifd: wwan (17374): PINcode disabled
Sat Apr 30 01:28:22 2022 daemon.notice netifd: wwan (17374): Data format set to raw-ip
Sat Apr 30 01:28:22 2022 daemon.notice netifd: wwan (17374): Default profile number: 1
Sat Apr 30 01:28:23 2022 daemon.notice netifd: wwan (17374): Initiate airplane mode
Sat Apr 30 01:28:24 2022 daemon.notice netifd: wwan (17374): Change default profile
Sat Apr 30 01:28:24 2022 daemon.notice netifd: wwan (17374): pdp-type: ipv6 to ipv4
Sat Apr 30 01:28:24 2022 daemon.notice netifd: wwan (17374): Configure profile for dual-stack
Sat Apr 30 01:28:24 2022 daemon.notice netifd: wwan (17374): Dual-stack profile number: 2
Sat Apr 30 01:28:24 2022 daemon.notice netifd: wwan (17374): Airplane mode off
Sat Apr 30 01:28:26 2022 daemon.notice netifd: wwan (17374): registered on 21403
Sat Apr 30 01:28:26 2022 daemon.notice netifd: wwan (17374): Registered to ?t;? on LTE
Sat Apr 30 01:28:27 2022 daemon.notice netifd: wwan (17374): Unable to connect with ipv4, check APN settnings
Sat Apr 30 01:28:27 2022 daemon.notice netifd: wwan (17622): Stopping network wwan
Sat Apr 30 01:28:28 2022 daemon.notice netifd: wwan (17622): Command failed: Permission denied

Thanks

Hi
Have you check that the SIMcard is working in your cell phone? :wink:

Hi

Can you try this and show the result? This will try to use network initiated APN.
You may need to wait a few seconds before you run the last command.

uqmi -d /dev/cdc-wdm0 --set-device-operating-mode low_power
uqmi -d /dev/cdc-wdm0 --modify-profile 3gpp,1 --apn "" --pdp-type=ipv4 --username="" --password="" --auth="none"
uqmi -d /dev/cdc-wdm0 --get-profile-settings 3gpp,1
uqmi -d /dev/cdc-wdm0 --set-device-operating-mode online
uqmi -d /dev/cdc-wdm0 --get-serving-system

Or take the APN line out of your config, to use the default APN from the SIM card.

Often the fewer things you configure the better it works.

1 Like

Hy there, very similar problem here with a TL-MR6400 v5 after

firstboot

and replacing the qmi with https://github.com/mrhaav/openwrt with

wget https://github.com/mrhaav/openwrt/raw/master/21.02.1/uqmi_2021-12-22-0.4_mipsel_24kc.ipk

and

opkg install uqmi_2021-12-22-0.4_mipsel_24kc.ipk

i was not able to initiate a connection. The simcard is working fine in a cell phone. i tried several different and even empty apn settings but it is not working.

# uqmi -d /dev/cdc-wdm0 --get-serving-system
{
	"registration": "registering_denied",
	"plmn_description": "",
	"plmn_mcc": 344,
	"plmn_mnc": 3,
	"mnc_length": 2,
	"roaming": true
}

i am on roaming, is it necessary to change the setting?

# uqmi -d /dev/cdc-wdm0 --set-network-roaming off
"Invalid arguments given"

thanks for your help!

1 Like

Hi
Can you provide your config,

uci show network.<your interface name>

modem setup from systmelog

logread -e netifd

and print the result of a network scan

uqmi -d /dev/cdc-wdm0 --network-scan

hy mr haav,

and thanks for your reply!
Of course:

# uci show network.LTE
network.LTE=interface
network.LTE.proto='qmi'
network.LTE.device='/dev/cdc-wdm0'
network.LTE.pdptype='ipv4'
network.LTE.apn='digicel'
network.LTE.auth='none'
logread | grep LTE
Thu May  5 20:04:02 2022 daemon.notice netifd: Interface 'LTE' is setting up now
Thu May  5 20:04:03 2022 daemon.notice netifd: LTE (4646): PINcode disabled
Thu May  5 20:04:03 2022 daemon.notice netifd: LTE (4646): Data format set to raw-ip
Thu May  5 20:04:03 2022 daemon.notice netifd: LTE (4646): Default profile number: 1
Thu May  5 20:04:03 2022 daemon.notice netifd: LTE (4646): Airplane mode off
Thu May  5 20:04:03 2022 daemon.notice netifd: LTE (4646): "Invalid transition"
Thu May  5 20:04:04 2022 daemon.notice netifd: LTE (4646): registering_denied on
# uqmi -d /dev/cdc-wdm0 --network-scan
"Invalid arguments given"

Thanks again, Martial

Can you run this?

uqmi -d /dev/cdc-wdm0 --get-device-operating-mode
# uqmi -d /dev/cdc-wdm0 --get-device-operating-mode
"offline"

don't know if this is useful:

# uqmi -d /dev/cdc-wdm0 --set-device-operating-mode online
"Invalid transition"

Will this work?

uqmi -d /dev/cdc-wdm0 --set-device-operating-mode low_power

Try to power reset our router as well.

Unfortunatly not. After reboot i got "invalid transition"

# uqmi -d /dev/cdc-wdm0 --set-device-operating-mode low_power
"Invalid transition"

After i power reset it seems to accept the command but no output on screen.

What is the result of after the power reset:

uqmi -d /dev/cdc-wdm0 --get-device-operating-mode
BusyBox v1.33.2 (2022-02-16 20:29:10 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 21.02.2, r16495-bf0c965af0
 -----------------------------------------------------
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --get-device-operating-mode
"online"
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --set-device-operating-mode low_power
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --get-device-operating-mode
"low_power"
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --network-scan
"Invalid arguments given"
root@openwrt:~# uci show network.LTE
network.LTE=interface
network.LTE.proto='qmi'
network.LTE.device='/dev/cdc-wdm0'
network.LTE.auth='none'
network.LTE.pdptype='ipv4'

root@openwrt:~# uqmi -d /dev/cdc-wdm0 --get-plmn
{
	"mode": "automatic"
}
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --get-signal-info
"Information unavailable"
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --get-lte-cphy-ca-info
"Invalid QMI command"
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --get-tx-rx-info gsm
"No radio"
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --get-tx-rx-info umts
"No radio"
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --get-tx-rx-info lte
"No radio"
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --network-scan
"Invalid arguments given"
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --network-register
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --network-scan
"Invalid arguments given"

root@openwrt:~# uqmi -d /dev/cdc-wdm0 --get-serving-system
{
	"registration": "not_registered"
}
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --set-network-roaming any

root@openwrt:~# uqmi -d /dev/cdc-wdm0 --get-capabilities
{
	"max_tx_channel_rate": 50000000,
	"max_rx_channel_rate": 100000000,
	"data_service": "non_simultaneous_cs_ps",
	"sim": "supported",
	"networks": [
		"umts",
		"lte"
	]
}
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --get-current-settings

After this, no respond and console is hanging. After 'CTRL-C' "Failed to connect to service", i did a Power reset again.

root@openwrt:~# logread | grep LTE
Sat May  7 13:23:00 2022 daemon.notice netifd: Interface 'LTE' is setting up now
Sat May  7 13:23:00 2022 daemon.notice netifd: LTE (2418): PINcode disabled
Sat May  7 13:23:00 2022 daemon.notice netifd: LTE (2418): Data format set to raw-ip
Sat May  7 13:23:00 2022 daemon.notice netifd: LTE (2418): Default profile number: 1
Sat May  7 13:23:01 2022 daemon.notice netifd: LTE (2418): Airplane mode off
Sat May  7 13:23:02 2022 daemon.notice netifd: LTE (2418): searching on
Sat May  7 13:23:05 2022 daemon.notice netifd: LTE (2418): searching on
Sat May  7 13:23:08 2022 daemon.notice netifd: LTE (2418): searching on
Sat May  7 13:23:11 2022 daemon.notice netifd: LTE (2418): searching on
Sat May  7 13:23:14 2022 daemon.notice netifd: LTE (2418): searching on
Sat May  7 13:23:18 2022 daemon.notice netifd: LTE (2418): searching on
Sat May  7 13:23:21 2022 daemon.notice netifd: LTE (2418): searching on
Sat May  7 13:23:24 2022 daemon.notice netifd: LTE (2418): searching on
Sat May  7 13:23:27 2022 daemon.notice netifd: LTE (2418): searching on
Sat May  7 13:23:30 2022 daemon.notice netifd: LTE (2418): searching on
Sat May  7 13:23:33 2022 daemon.notice netifd: LTE (2418): searching on
Sat May  7 13:23:36 2022 daemon.notice netifd: LTE (2418): searching on
Sat May  7 13:23:39 2022 daemon.notice netifd: LTE (2418): searching on
Sat May  7 13:23:42 2022 daemon.notice netifd: LTE (2418): not_registered on
Sat May  7 13:23:46 2022 daemon.notice netifd: LTE (2418): not_registered on
Sat May  7 13:23:49 2022 daemon.notice netifd: LTE (2418): not_registered on
Sat May  7 13:23:52 2022 daemon.notice netifd: LTE (2418): not_registered on
Sat May  7 13:23:55 2022 daemon.notice netifd: LTE (2418): not_registered on
Sat May  7 13:23:58 2022 daemon.notice netifd: LTE (2418): not_registered on
Sat May  7 13:24:01 2022 daemon.notice netifd: LTE (2418): not_registered on

Hi
uqmi -d /dev/cdc-wdm0 --get-device-operating-mode should be in "online". Sorry if I was unclear.
After uqmi -d /dev/cdc-wdm0 --set-device-operating-mode online run
uqmi -d /dev/cdc-wdm0 --network-scan

Thanks for your patience!

# uqmi -d /dev/cdc-wdm0 --set-device-operating-mode online
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --get-device-operating-mode
"online"
root@openwrt:~# uqmi -d /dev/cdc-wdm0 --network-scan
{
	"network_info": [
		
	]
}