Please show the
route -n
Please show the
route -n
ip route
default via 10.190.42.137 dev wwp195s0f3u4
10.190.42.128/28 dev wwp195s0f3u4 proto kernel scope link src 10.190.42.136
OK I see.
[03-26_12:43:27:027] /proc/62467/fd/7 → /dev/cdc-wdm0
[03-26_12:43:27:027] /proc/62467/exe → /usr/libexec/mbim-proxy
Make sure the ModemManager is stopped.
If so, please check the AT command and test whether modem could ping the 8.8.8.8.
Do not start the ModemManager and quectel-CM. Just try the AT command
AT+CGDCONT=1,“IP”,“internet.t-mobile.cz”
AT+QIACT=1
AT+QIACT?
AT+QPING=1,“8.8.8.8”
socat - /dev/ttyUSB0,crnl
AT+CGDCONT=1,"IP","internet.t-mobile.cz"
OK
AT+QIACT=1
ERROR
AT+QIACT?
+QIACT: 1,1,1,"100.78.1.13"
OK
AT+QPING=1,"8.8.8.8"
OK
+QPING: 0,"8.8.8.8",32,35,255
+QPING: 0,"8.8.8.8",32,24,255
+QPING: 0,"8.8.8.8",32,25,255
+QPING: 0,"8.8.8.8",32,30,255
+QPING: 0,4,4,0,24,35,27
i accidently run quectel-CM again, so IP has changed
but it seems that QPING
is working?
Yes. QPING is working and it means that at least there is no problem with the SIM card.
quectel-CM -s internet.t-mobile.cz -n 1
fix it with cid 1.
quectel-CM -s internet.t-mobile.cz -n 1
[03-26_13:46:43:733] QConnectManager_Linux_V1.6.5.1
[03-26_13:46:43:734] Find /sys/bus/usb/devices/1-4 idVendor=0x2c7c idProduct=0x30a, bus=0x001, dev=0x006
[03-26_13:46:43:734] Auto find qmichannel = /dev/cdc-wdm0
[03-26_13:46:43:734] Auto find usbnet_adapter = wwp195s0f3u4
[03-26_13:46:43:734] netcard driver = cdc_mbim, driver version = 6.6.10-gentoo-minimal
[03-26_13:46:43:734] Modem works in MBIM mode
[03-26_13:46:43:752] /proc/197775/fd/7 -> /dev/cdc-wdm0
[03-26_13:46:43:752] /proc/197775/exe -> /usr/libexec/mbim-proxy
[03-26_13:46:45:754] cdc_wdm_fd = 7
[03-26_13:46:45:754] mbim_open_device()
[03-26_13:46:45:851] mbim_device_caps_query()
[03-26_13:46:45:882] DeviceId: 016176006002208
[03-26_13:46:45:882] FirmwareInfo: EM05GFAR07A07M1G
[03-26_13:46:45:882] HardwareInfo: QUECTEL Mobile Broadband Modul
[03-26_13:46:45:882] mbim_device_services_query()
[03-26_13:46:45:916] mbim_set_radio_state( 1 )
[03-26_13:46:45:947] HwRadioState: 1, SwRadioState: 1
[03-26_13:46:45:947] mbim_subscriber_status_query()
[03-26_13:46:45:979] SubscriberId: 230015010603460
[03-26_13:46:45:979] SimIccId: 8942001240298835147F
[03-26_13:46:45:979] SubscriberReadyState NotInitialized -> Initialized
[03-26_13:46:45:979] mbim_register_state_query()
[03-26_13:46:46:011] RegisterState Unknown -> Home
[03-26_13:46:46:011] mbim_packet_service_query()
[03-26_13:46:46:042] PacketServiceState Unknown -> Attached
[03-26_13:46:46:042] mbim_query_connect(sessionID=0)
[03-26_13:46:46:075] ActivationState Unknown -> Deactivated
[03-26_13:46:46:075] ip addr flush dev wwp195s0f3u4
[03-26_13:46:46:077] ip link set dev wwp195s0f3u4 down
[03-26_13:46:46:079] mbim_set_connect(onoff=1, sessionID=0)
[03-26_13:46:46:139] ActivationState Deactivated -> Activated
[03-26_13:46:46:139] mbim_ip_config(sessionID=0)
[03-26_13:46:46:170] < SessionId = 0
[03-26_13:46:46:171] < IPv4ConfigurationAvailable = 0xf
[03-26_13:46:46:171] < IPv6ConfigurationAvailable = 0x0
[03-26_13:46:46:171] < IPv4AddressCount = 0x1
[03-26_13:46:46:171] < IPv4AddressOffset = 0x3c
[03-26_13:46:46:171] < IPv6AddressCount = 0x0
[03-26_13:46:46:171] < IPv6AddressOffset = 0x0
[03-26_13:46:46:171] < IPv4 = 100.79.186.183/28
[03-26_13:46:46:171] < gw = 100.79.186.184
[03-26_13:46:46:171] < dns1 = 62.141.16.177
[03-26_13:46:46:171] < dns2 = 62.141.16.161
[03-26_13:46:46:171] < ipv4 mtu = 1500
[03-26_13:46:46:202] ip link set dev wwp195s0f3u4 up
[03-26_13:46:46:205] ip -4 address flush dev wwp195s0f3u4
[03-26_13:46:46:207] ip -4 address add 100.79.186.183/28 dev wwp195s0f3u4
[03-26_13:46:46:208] ip -4 route add default via 100.79.186.184 dev wwp195s0f3u4
and result from ip command
ip a
3: wwp195s0f3u4: <BROADCAST,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether d6:58:48:d7:4d:76 brd ff:ff:ff:ff:ff:ff
inet 100.79.186.183/28 scope global wwp195s0f3u4
valid_lft forever preferred_lft forever
ip route
default via 100.79.186.184 dev wwp195s0f3u4
100.79.186.176/28 dev wwp195s0f3u4 proto kernel scope link src 100.79.186.183
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4111ms
There is some process that has open the /dev/cdc-wdm0.
[03-26_13:46:43:752] /proc/197775/fd/7 -> /dev/cdc-wdm0
[03-26_13:46:43:752] /proc/197775/exe -> /usr/libexec/mbim-proxy
If it still doesn’t work. Maybe you could try any other solution such at qmi.
weird, tryied again and output is without such lines
quectel-CM -s internet.t-mobile.cz -n 1
[03-26_14:16:31:960] QConnectManager_Linux_V1.6.5.1
[03-26_14:16:31:961] Find /sys/bus/usb/devices/1-4 idVendor=0x2c7c idProduct=0x30a, bus=0x001, dev=0x006
[03-26_14:16:31:961] Auto find qmichannel = /dev/cdc-wdm0
[03-26_14:16:31:961] Auto find usbnet_adapter = wwp195s0f3u4
[03-26_14:16:31:961] netcard driver = cdc_mbim, driver version = 6.6.10-gentoo-minimal
[03-26_14:16:31:961] Modem works in MBIM mode
[03-26_14:16:31:984] cdc_wdm_fd = 7
[03-26_14:16:31:984] mbim_open_device()
[03-26_14:16:32:068] mbim_device_caps_query()
[03-26_14:16:32:101] DeviceId: 016176006002208
[03-26_14:16:32:101] FirmwareInfo: EM05GFAR07A07M1G
[03-26_14:16:32:101] HardwareInfo: QUECTEL Mobile Broadband Modul
[03-26_14:16:32:101] mbim_device_services_query()
[03-26_14:16:32:132] mbim_set_radio_state( 1 )
[03-26_14:16:32:164] HwRadioState: 1, SwRadioState: 1
[03-26_14:16:32:164] mbim_subscriber_status_query()
[03-26_14:16:32:197] SubscriberId: 230015010603460
[03-26_14:16:32:197] SimIccId: 8942001240298835147F
[03-26_14:16:32:197] SubscriberReadyState NotInitialized -> Initialized
[03-26_14:16:32:197] mbim_register_state_query()
[03-26_14:16:32:229] RegisterState Unknown -> Home
[03-26_14:16:32:229] mbim_packet_service_query()
[03-26_14:16:32:261] PacketServiceState Unknown -> Attached
[03-26_14:16:32:261] mbim_query_connect(sessionID=0)
[03-26_14:16:32:292] ActivationState Unknown -> Deactivated
[03-26_14:16:32:292] ip addr flush dev wwp195s0f3u4
[03-26_14:16:32:294] ip link set dev wwp195s0f3u4 down
[03-26_14:16:32:296] mbim_set_connect(onoff=1, sessionID=0)
[03-26_14:16:32:357] ActivationState Deactivated -> Activated
[03-26_14:16:32:357] mbim_ip_config(sessionID=0)
[03-26_14:16:32:390] < SessionId = 0
[03-26_14:16:32:390] < IPv4ConfigurationAvailable = 0xf
[03-26_14:16:32:390] < IPv6ConfigurationAvailable = 0x0
[03-26_14:16:32:390] < IPv4AddressCount = 0x1
[03-26_14:16:32:390] < IPv4AddressOffset = 0x3c
[03-26_14:16:32:390] < IPv6AddressCount = 0x0
[03-26_14:16:32:390] < IPv6AddressOffset = 0x0
[03-26_14:16:32:390] < IPv4 = 100.84.247.228/29
[03-26_14:16:32:390] < gw = 100.84.247.229
[03-26_14:16:32:390] < dns1 = 62.141.16.161
[03-26_14:16:32:390] < dns2 = 62.141.16.177
[03-26_14:16:32:390] < ipv4 mtu = 1500
[03-26_14:16:32:421] ip link set dev wwp195s0f3u4 up
[03-26_14:16:32:423] ip -4 address flush dev wwp195s0f3u4
[03-26_14:16:32:426] ip -4 address add 100.84.247.228/29 dev wwp195s0f3u4
[03-26_14:16:32:427] ip -4 route add default via 100.84.247.229 dev wwp195s0f3u4
ip a
3: wwp195s0f3u4: <BROADCAST,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether d6:58:48:d7:4d:76 brd ff:ff:ff:ff:ff:ff
inet 100.84.247.228/29 scope global wwp195s0f3u4
valid_lft forever preferred_lft forever
ip route
default via 100.84.247.229 dev wwp195s0f3u4
100.84.247.224/29 dev wwp195s0f3u4 proto kernel scope link src 100.84.247.228
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1025ms
unfortunately i dont know much about this, how to switch to qmi
?
also weird is for me that it was working three days ago, and hasn’t since…
Make sure there is no any other process then try the quectel-CM. You do not follow what I requst.
To set the modem to QMI way:
AT+QCFG=“usbnet”,0
I am sure that ModemManager service is stopped, i think that no other process is accessing modem device
socat - /dev/ttyUSB0,crnl
AT+QCFG="usbnet",0
OK
but quectel-CM
is not running anymore, because /dev/cdc-wdm0
not exists
i tryied to reboot laptop, but it not helped
quectel-CM -s internet.t-mobile.cz -n 1
[03-27_09:38:54:281] QConnectManager_Linux_V1.6.5.1
[03-27_09:38:54:283] Find /sys/bus/usb/devices/1-4 idVendor=0x2c7c idProduct=0x30a, bus=0x001, dev=0x02b
[03-27_09:38:54:285] network interface '' or qmidev '' is not exist
[03-27_09:38:54:285] atdevice_detect failed
[03-27_09:38:54:285] qmidevice_detect failed
please show the
cat /sys/kernel/debug/usb/devices
T: Bus=01 Lev=01 Prnt=01 Port=03 Cnt=04 Dev#= 10 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=2c7c ProdID=030a Rev= 3.18
S: Manufacturer=Quectel
S: Product=Quectel EM05-G
C:* #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=500mA
A: FirstIf#= 7 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=82(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 7 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether
E: Ad=84(I) Atr=03(Int.) MxPS= 16 Ivl=32ms
I: If#= 8 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
I:* If#= 8 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
Are you sure that you have set the modem with
AT+QCFG=“usbnet”,0
Please check
AT+QCFG=“usbnet”
I guess that you have set it to 1.
And there should be an network interface that has got IP like 192.168.225.x
You can check whether it works.
socat - /dev/ttyUSB0,crnl
AT+QCFG="usbnet"
AT+QCFG="usbnet"
+QCFG: "usbnet",0
OK
ERROR
but no network device for modem exists
howto set previous configuration, to have /dev/cdc-wdm0
device?
Previous it is 2.
AT+QCFG=“usbnet”,2 // MBIM mode
it seems that AT+QCFG=“usbnet”,2
and laptop reboot did something
it started working again
quectel-CM -s internet.t-mobile.cz
[03-27_10:18:32:117] QConnectManager_Linux_V1.6.5.1
[03-27_10:18:32:118] Find /sys/bus/usb/devices/1-4 idVendor=0x2c7c idProduct=0x30a, bus=0x001, dev=0x005
[03-27_10:18:32:119] Auto find qmichannel = /dev/cdc-wdm0
[03-27_10:18:32:119] Auto find usbnet_adapter = wwp195s0f3u4
[03-27_10:18:32:119] netcard driver = cdc_mbim, driver version = 6.6.10-gentoo-minimal
[03-27_10:18:32:119] Modem works in MBIM mode
[03-27_10:18:32:127] /proc/2409/fd/7 -> /dev/cdc-wdm0
[03-27_10:18:32:127] /proc/2409/exe -> /usr/libexec/mbim-proxy
[03-27_10:18:34:128] cdc_wdm_fd = 7
[03-27_10:18:34:129] mbim_open_device()
[03-27_10:18:34:221] mbim_device_caps_query()
[03-27_10:18:34:251] DeviceId: 016176006002208
[03-27_10:18:34:251] FirmwareInfo: EM05GFAR07A07M1G
[03-27_10:18:34:251] HardwareInfo: QUECTEL Mobile Broadband Modul
[03-27_10:18:34:251] mbim_device_services_query()
[03-27_10:18:34:284] mbim_set_radio_state( 1 )
[03-27_10:18:34:315] HwRadioState: 1, SwRadioState: 1
[03-27_10:18:34:315] mbim_subscriber_status_query()
[03-27_10:18:34:380] SubscriberId: 230015010603460
[03-27_10:18:34:381] SimIccId: 8942001240298835147F
[03-27_10:18:34:381] SubscriberReadyState NotInitialized -> Initialized
[03-27_10:18:34:381] mbim_register_state_query()
[03-27_10:18:34:412] RegisterState Unknown -> Home
[03-27_10:18:34:412] mbim_packet_service_query()
[03-27_10:18:34:443] PacketServiceState Unknown -> Attached
[03-27_10:18:34:443] mbim_query_connect(sessionID=0)
[03-27_10:18:34:474] ActivationState Unknown -> Deactivated
[03-27_10:18:34:475] ip addr flush dev wwp195s0f3u4
[03-27_10:18:34:490] ip link set dev wwp195s0f3u4 down
[03-27_10:18:34:492] mbim_set_connect(onoff=1, sessionID=0)
[03-27_10:18:34:572] ActivationState Deactivated -> Activated
[03-27_10:18:34:572] mbim_ip_config(sessionID=0)
[03-27_10:18:34:603] < SessionId = 0
[03-27_10:18:34:603] < IPv4ConfigurationAvailable = 0xf
[03-27_10:18:34:603] < IPv6ConfigurationAvailable = 0x0
[03-27_10:18:34:603] < IPv4AddressCount = 0x1
[03-27_10:18:34:603] < IPv4AddressOffset = 0x3c
[03-27_10:18:34:603] < IPv6AddressCount = 0x0
[03-27_10:18:34:603] < IPv6AddressOffset = 0x0
[03-27_10:18:34:603] < IPv4 = 100.98.220.7/28
[03-27_10:18:34:603] < gw = 100.98.220.8
[03-27_10:18:34:603] < dns1 = 62.141.16.177
[03-27_10:18:34:603] < dns2 = 62.141.16.161
[03-27_10:18:34:603] < ipv4 mtu = 1500
[03-27_10:18:34:635] ip link set dev wwp195s0f3u4 up
[03-27_10:18:34:637] ip -4 address flush dev wwp195s0f3u4
[03-27_10:18:34:639] ip -4 address add 100.98.220.7/28 dev wwp195s0f3u4
[03-27_10:18:34:640] ip -4 route add default via 100.98.220.8 dev wwp195s0f3u4
and IP
ip a
3: wwp195s0f3u4: <BROADCAST,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether d6:58:48:d7:4d:76 brd ff:ff:ff:ff:ff:ff
inet 100.98.220.7/28 scope global wwp195s0f3u4
valid_lft forever preferred_lft forever
inet6 fe80::d458:48ff:fed7:4d76/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
ip route
default via 100.98.220.8 dev wwp195s0f3u4
100.98.220.0/28 dev wwp195s0f3u4 proto kernel scope link src 100.98.220.7
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=120 time=145 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=120 time=23.5 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=120 time=23.4 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=120 time=22.4 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=120 time=23.3 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=120 time=20.4 ms
^C
--- 8.8.8.8 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5010ms
rtt min/avg/max/mdev = 20.370/42.927/144.562/45.465 ms
That’s interesting.
Maybe the previous setting is not 2.
Please help to check:
AT+QCFG=?