root@ZhuoTK:/# insmod qmi_wwan_q.ko qmap_mode=4
[ 1515.180000] usbcore: registered new interface driver qmi_wwan_q
[ 1530.260000] usb 1-1.3: new high-speed USB device number 8 using ehci-platform
[ 1530.500000] qmi_wwan_q 1-1.3:1.4: cdc-wdm0: USB WDM device
[ 1530.500000] qmi_wwan_q 1-1.3:1.4: Quectel Android work on RawIP mode
[ 1530.520000] qmi_wwan_q 1-1.3:1.4: rx_urb_size = 4096
[ 1530.520000] qmi_wwan_q 1-1.3:1.4 wwan0: register 'qmi_wwan_q' at usb-101c0000.ehci-1.3, RMNET/USB device, da:0b:ce:b2:db:21
[ 1530.530000] net wwan0: qmap_register_device wwan0_1
[ 1530.540000] net wwan0: qmap_register_device wwan0_2
[ 1530.550000] net wwan0: qmap_register_device wwan0_3
[ 1530.550000] net wwan0: qmap_register_device wwan0_4

root@ZhuoTK:~# quectel-qmi-proxy &
[04-13_03:44:53:958] Will use cdc-wdm='/dev/cdc-wdm0', proxy='quectel-qmi-proxy0'
[04-13_03:44:53:959] qmi_proxy_init enter
[04-13_03:44:53:960] qmi_proxy_loop enter thread_id 0x77c07530
[04-13_03:44:54:960] qmi_proxy_init succful
[04-13_03:44:54:960] local server: quectel-qmi-proxy0 sockfd = 4
[04-13_03:44:54:960] qmi_proxy_server_fd = 4
[04-13_03:45:04:346] +++ ClientFd=5
[04-13_03:45:04:410] +++ ClientFd=5 QMIType=1 ClientId=4
[04-13_03:45:04:442] +++ ClientFd=5 QMIType=2 ClientId=1
[04-13_03:45:04:474] +++ ClientFd=5 QMIType=3 ClientId=4
[04-13_03:45:04:506] +++ ClientFd=5 QMIType=11 ClientId=1
[04-13_03:45:04:539] +++ ClientFd=5 QMIType=26 ClientId=1
[04-13_03:45:10:770] +++ ClientFd=6
[04-13_03:45:10:811] +++ ClientFd=6 QMIType=1 ClientId=21
[04-13_03:45:10:843] +++ ClientFd=6 QMIType=2 ClientId=2
[04-13_03:45:10:875] +++ ClientFd=6 QMIType=3 ClientId=5
[04-13_03:45:10:907] +++ ClientFd=6 QMIType=11 ClientId=2
[04-13_03:46:31:419] --- ClientFd=6 QMIType=1 ClientId=21
[04-13_03:46:31:451] --- ClientFd=6 QMIType=2 ClientId=2
[04-13_03:46:31:484] --- ClientFd=6 QMIType=3 ClientId=5
[04-13_03:46:31:517] --- ClientFd=6 QMIType=11 ClientId=2
[04-13_03:46:31:518] qmi_proxy_loop poll fd = 6, revents = 0011
[04-13_03:46:31:519] --- ClientFd=6

root@ZhuoTK:/# quectel-CM -n 1 -s cmnet &
root@ZhuoTK:/# [04-13_03:45:04:340] Quectel_QConnectManager_Linux_V1.6.0.25
[04-13_03:45:04:343] Find /sys/bus/usb/devices/1-1.3 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x008
[04-13_03:45:04:344] Auto find qmichannel = /dev/cdc-wdm0
[04-13_03:45:04:344] Auto find usbnet_adapter = wwan0
[04-13_03:45:04:345] netcard driver = qmi_wwan_q, driver version = V1.2.0.23
[04-13_03:45:04:345] qmap_mode = 4, qmap_version = 5, qmap_size = 4096, muxid = 0x81, qmap_netcard = wwan0_1
[04-13_03:45:04:345] Modem works in QMI mode
[04-13_03:45:04:347] connect to quectel-qmi-proxy0 sockfd = 7
[04-13_03:45:04:347] cdc_wdm_fd = 7
[04-13_03:45:04:411] Get clientWDS = 4
[04-13_03:45:04:443] Get clientDMS = 1
[04-13_03:45:04:475] Get clientNAS = 4
[04-13_03:45:04:507] Get clientUIM = 1
[04-13_03:45:04:540] Get clientWDA = 1
[04-13_03:45:04:571] requestBaseBandVersion EC25EFAR06A11M4G
[04-13_03:45:04:602] qmap_settings.rx_urb_size = 4096
[ 1609.700000] net wwan0: ul_data_aggregation_max_datagrams=11, ul_data_aggregation_max_size=4096, dl_minimum_padding=0
[04-13_03:45:04:603] qmap_settings.ul_data_aggregation_max_datagrams  = 11
[04-13_03:45:04:603] qmap_settings.ul_data_aggregation_max_size       = 4096
[04-13_03:45:04:603] qmap_settings.dl_minimum_padding                 = 0
[04-13_03:45:04:731] requestGetSIMStatus SIMStatus: SIM_READY
[04-13_03:45:04:731] requestSetProfile[1] cmnet///0
[04-13_03:45:04:795] requestGetProfile[1] cmnet///0
[04-13_03:45:04:827] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
[04-13_03:45:04:858] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[ 1609.960000] net wwan0: link_state 0x1 -> 0x0
[04-13_03:45:04:865] ifconfig wwan0 down
[04-13_03:45:04:879] ifconfig wwan0_1 0.0.0.0
[04-13_03:45:04:889] ifconfig wwan0_1 down
[04-13_03:45:04:955] requestSetupDataCall WdsConnectionIPv4Handle: 0x87253410
[ 1610.180000] net wwan0: link_state 0x0 -> 0x1
[04-13_03:45:05:087] ifconfig wwan0 up
[ 1610.200000] IPv6: ADDRCONF(NETDEV_UP): wwan0: link is not ready
[04-13_03:45:05:105] ifconfig wwan0_1 up
[ 1610.220000] IPv6: ADDRCONF(NETDEV_CHANGE): wwan0: link becomes ready
[04-13_03:45:05:125] you are use OpenWrt?
[04-13_03:45:05:125] should not calling udhcpc manually?
[04-13_03:45:05:125] should modify /etc/config/network as below?
[04-13_03:45:05:125] config interface wan
[04-13_03:45:05:125] 	option ifname	wwan0_1
[04-13_03:45:05:125] 	option proto	dhcp
[04-13_03:45:05:126] should use "/sbin/ifstaus wan" to check wwan0_1 's status?
[04-13_03:45:05:126] busybox udhcpc -f -n -q -t 5 -i wwan0_1
[04-13_03:45:05:136] udhcpc (v1.23.2) started
[04-13_03:45:05:148] Sending discover...
[04-13_03:45:05:155] Sending select for 10.244.10.206...
[04-13_03:45:05:160] Lease of 10.244.10.206 obtained, lease time 7200
[04-13_03:45:05:165] udhcpc: ifconfig wwan0_1 10.244.10.206 netmask 255.255.255.252 broadcast +
[04-13_03:45:05:174] udhcpc: setting default routers: 10.244.10.205

root@ZhuoTK:/# quectel-CM -n 2 -s 4gnet &
[04-13_03:45:10:764] Quectel_QConnectManager_Linux_V1.6.0.25
[04-13_03:45:10:767] Find /sys/bus/usb/devices/1-1.3 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x008
[04-13_03:45:10:768] Auto find qmichannel = /dev/cdc-wdm0
[04-13_03:45:10:768] Auto find usbnet_adapter = wwan0
[04-13_03:45:10:768] netcard driver = qmi_wwan_q, driver version = V1.2.0.23
[04-13_03:45:10:769] qmap_mode = 4, qmap_version = 5, qmap_size = 4096, muxid = 0x82, qmap_netcard = wwan0_2
[04-13_03:45:10:769] Modem works in QMI mode
[04-13_03:45:10:771] connect to quectel-qmi-proxy0 sockfd = 7
[04-13_03:45:10:771] cdc_wdm_fd = 7
[04-13_03:45:10:812] Get clientWDS = 21
[04-13_03:45:10:844] Get clientDMS = 2
[04-13_03:45:10:876] Get clientNAS = 5
[04-13_03:45:10:908] Get clientUIM = 2
[04-13_03:45:10:971] requestBaseBandVersion EC25EFAR06A11M4G
[04-13_03:45:11:099] requestGetSIMStatus SIMStatus: SIM_READY
[04-13_03:45:11:099] requestSetProfile[2] 4gnet///0
[04-13_03:45:11:163] requestGetProfile[2] 4gnet///0
[04-13_03:45:11:195] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
[04-13_03:45:11:227] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[04-13_03:45:11:227] ifconfig wwan0_2 0.0.0.0
[ 1616.340000] IPv6: ADDRCONF(NETDEV_UP): wwan0_2: link is not ready
[04-13_03:45:11:246] ifconfig wwan0_2 down
[04-13_03:45:11:642] requestSetupDataCall WdsConnectionIPv4Handle: 0x87254580
[ 1616.870000] net wwan0: link_state 0x1 -> 0x3
[04-13_03:45:11:775] ifconfig wwan0 up
[04-13_03:45:11:785] ifconfig wwan0_2 up
[04-13_03:45:11:798] you are use OpenWrt?
[04-13_03:45:11:798] should not calling udhcpc manually?
[04-13_03:45:11:798] should modify /etc/config/network as below?
[04-13_03:45:11:798] config interface wan
[04-13_03:45:11:798] 	option ifname	wwan0_2
[04-13_03:45:11:798] 	option proto	dhcp
[04-13_03:45:11:798] should use "/sbin/ifstaus wan" to check wwan0_2 's status?
[04-13_03:45:11:799] busybox udhcpc -f -n -q -t 5 -i wwan0_2
[04-13_03:45:11:809] udhcpc (v1.23.2) started
[04-13_03:45:11:821] Sending discover...
[04-13_03:45:11:830] Sending select for 10.245.78.212...
[04-13_03:45:11:836] Lease of 10.245.78.212 obtained, lease time 7200
[04-13_03:45:11:842] udhcpc: ifconfig wwan0_2 10.245.78.212 netmask 255.255.255.248 broadcast +
[04-13_03:45:11:852] udhcpc: setting default routers: 10.245.78.213

root@ZhuoTK:/# ifconfig wwan0_1
wwan0_1   Link encap:Ethernet  HWaddr DA:0B:CE:B2:DB:21  
          inet addr:10.244.10.206  Mask:255.255.255.252
          inet6 addr: fe80::d80b:ceff:feb2:db21/64 Scope:Link
          UP RUNNING NOARP  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:640 (640.0 B)  TX bytes:1344 (1.3 KiB)

root@ZhuoTK:/# ifconfig wwan0_2
wwan0_2   Link encap:Ethernet  HWaddr DA:0B:CE:B2:DB:21  
          inet addr:10.245.78.212  Mask:255.255.255.248
          inet6 addr: fe80::d80b:ceff:feb2:db21/64 Scope:Link
          UP RUNNING NOARP  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1193 (1.1 KiB)  TX bytes:1028 (1.0 KiB)

root@ZhuoTK:/# ip ro del 8.8.8.8/32
RTNETLINK answers: No such process

root@ZhuoTK:/# ip ro add 8.8.8.8/32 dev wwan0_1
root@ZhuoTK:/# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=52 time=113.508 ms

root@ZhuoTK:/# ip ro del 8.8.8.8/32
root@ZhuoTK:/# ip ro del 8.8.8.8/32
RTNETLINK answers: No such process

root@ZhuoTK:/# ip ro add 8.8.8.8/32 dev wwan0_2
root@ZhuoTK:/# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=111 time=123.651 ms

root@ZhuoTK:/# quectel-CM -k 2
[04-13_03:46:30:808] Quectel_QConnectManager_Linux_V1.6.0.25
[04-13_03:46:30:811] /proc/2834/cmdline: quectel-CM -n 2 -s 4gnet
[04-13_03:46:30:811] send SIGINT to process 2834
[04-13_03:46:30:811] requestDeactivateDefaultPDP WdsConnectionIPv4Handle
[ 1696.460000] net wwan0: link_state 0x3 -> 0x1
[04-13_03:46:31:361] ifconfig wwan0_2 0.0.0.0
[04-13_03:46:31:373] ifconfig wwan0_2 down
[04-13_03:46:31:516] QmiWwanThread exit
[04-13_03:46:31:516] qmi_main exit

root@ZhuoTK:/# ifconfig wwan0_2
wwan0_2   Link encap:Ethernet  HWaddr DA:0B:CE:B2:DB:21  
          NOARP  MTU:1500  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1865 (1.8 KiB)  TX bytes:1620 (1.5 KiB)
