TP-Link Archer MR200 - Connection Status: Disconnected

I don't get mobile internet with my data sim see screenshot. The data sim works on my tablet.

I followed the installation instructions on the wiki, AndrewZ says that Everything looks good.

The wiki: https://openwrt.org/toh/tp-link/archer_mr200#installation

Does someone know why there is no connection?

This screenshot shows that you're not using OpenWrt.

1 Like

The picture is of the Modem Web Console at ip -> 192.168.225.1/login.html
I have openwrt 23.05 installed, it is at ip -> 192.168.1.1/cgi-bin/luci

Please show the output of cat /sys/kernel/debug/usb/devices
and responses to the following commands from the terminal (picocom):

AT+CGDCONT?
AT+CGPADDR

cat:

root@OpenWrt:~# cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.15
S:  Manufacturer=Linux 5.15.134 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=101c0000.ehci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.01 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=2357 ProdID=000d Rev= 2.28
S:  Manufacturer=TP-LINK Technologies Co., Ltd.
S:  Product=MR200
S:  SerialNumber=d463fa838b8d
C:* #Ifs= 7 Cfg#= 1 Atr=a0 MxPwr=500mA
A:  FirstIf#= 0 IfCount= 2 Cls=e0(wlcon) Sub=01 Prot=03
I:* If#= 0 Alt= 0 #EPs= 1 Cls=e0(wlcon) Sub=01 Prot=03 Driver=rndis_host
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=32ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=rndis_host
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=usbfs
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=86(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=88(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=125us
root@OpenWrt:~#

picocom:

root@OpenWrt:~# picocom /dev/ttyUSB0 -b 115200
picocom v3.1

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
hangup is      : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        :
omap is        :
emap is        : crcrlf,delbs,
logfile is     : none
initstring     : none
exit_after is  : not set
exit is        : no

!! Settings mismatch !! Type [C-a] [C-v] to see actual port settings
Type [C-a] [C-h] to see available commands
Terminal ready
AT+CGDCONT?
+CGDCONT: 1,"IPV4V6","","0.0.0.0",0,0

OK
AT+CGPADDR
+CGPADDR: 1,100.125.1.45,42.2.24.8.0.3.5.251.0.0.0.0.0.0.0.1

OK

Your modem has both IPv4 and IPv6 addresses assigned/obtained, so technically it is connected.
At the same time I would configure the proper APN either manually or through the modem GUI.
For manual configuration: AT+CGDCONT=1,"IPV4V6","APN name"
Please validate your configuration against the wiki: https://openwrt.org/docs/guide-user/network/wan/wwan/ethernetoverusb_rndis

I read the wiki and checked the configuration and it seems right to me.

  • usb0 is registered
  • I added ifname option
  • my modem ip range is different
  • Sim has been unlocked

When I do manual configuration I get ERROR

Terminal ready
AT+CGDCONT=1,"IPV4V6","default"
ERROR

I suppose default is wrong, you probably misread the instructions.
It looks like you cannot change the active context, so you can send AT+CFUN=4 before and AT+CFUN=1 after the change.
Do you see usb0 as up and properly configured?
Run ifconfig usb0 and share the result. (ifconfig is obsolete and I should not advise using it).

I suppose default is wrong, you probably misread the instructions.
I tried 'telenetwap.be' as APN name aswell but also ERROR response ISP website

Terminal ready
AT+CFUN=4
ERROR
AT+CFUN=1
OK

the ipconfig command wasn't found so I used another command

ipconfig usb0
-ash: ipconfig: not found
root@OpenWrt:~# ip addr show usb0
4: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN qlen 1000
link/ether 98:de:d0:ec:5d:76 brd ff:ff:ff:ff:ff:ff
inet 192.168.225.170/24 brd 192.168.225.255 scope global usb0
valid_lft forever preferred_lft forever
inet6 fe80::9ade:d0ff:feec:5d76/64 scope link
valid_lft forever preferred_lft forever

ipconfig is not the command you need, it is ifconfig

Anyway, you have usb0 looking good, so what if you ping something from the router, by the name and/or IP address?

It looks like your carrier is not sensitive to the APN, but you can try this and see if it will pass through:

AT+CGACT=0,1
AT+CGDCONT=1,"IPV4V6","telenetwap.be"
AT+CGACT=1,1

ping to the internet doesn't work, I can ping to my own pc though

ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
^C
--- 8.8.8.8 ping statistics ---
44 packets transmitted, 0 packets received, 100% packet loss
root@OpenWrt:~# ping google.com
ping: bad address 'google.com'

I executed the commands you said

Terminal ready
AT+CGACT=0,1
ERROR
AT+CGDCONT=1,"IPV4V6","telenetwap.be"
OK
AT+CGACT=1,1
OK

Then I would check what configuration options are available on the modem itself, for example, the Dial-up Settings noticed on the screenshot above.
Generally speaking, everything looks good already. The modem has IPs from the carrier, router has IP from the modem. Do you see 192.168.225.1 as your default gateway? (run ip r)

these are the dial-up settings, I have tried these before but couldn't get that to work

ip r
default via 192.168.225.1 dev usb0  src 192.168.225.170
192.168.1.0/24 dev br-lan scope link  src 192.168.1.1
192.168.225.0/24 dev usb0 scope link  src 192.168.225.170

I would change APN type to static and enter the APN name.
Then reboot and re-check everything.

1 Like

Set it like this but still disconnected.
afbeelding

Well, then the only option I see is to switch from RNDIS to QMI (and lose the modem web interface).
I don't think the process was ever described here in details, so I'll probably need to write some sort of the step-by-step guide.

Please check something while the modem is still in RNDIS mode:

adb shell
uci show | grep connect_mode
1 Like

Changing the modem from RNDIS to QMI:

First install luci-proto-qmi

Initially all the changes will be temporary and active until the next reboot.

adb shell
usb_composition 9025 n n y
exit       ; only if adb session is not closed automatically

Check with cat /sys/kernel/debug/usb/devices and look for Driver=qmi_wwan
If QMI interface is there, add a new modem id to the serial driver:
echo "05c6 9025 ff" > /sys/bus/usb-serial/drivers/option1/new_id
Check with cat /sys/kernel/debug/usb/devices and look for Driver=option

Configure the interface as shown here: https://openwrt.org/docs/guide-user/network/wan/wwan/ltedongle#with_luci_web_interface

Once the interface is added through Luci, edit the network config file and add option dhcp '0' to this interface. Restart the interface from Luci when done.

If connection is established, all the changes can be made on a permanent basis. In case of failure check the System Log from the moment the QMI interface was added or restarted.

2 Likes