root@OpenWrt:/# cat /sys/class/net/rmnet_mhi0/qmap_mode 
1
root@OpenWrt:/# cat /sys/module/pcie_mhi/parameters/mhi_mbim_enabled 
0
root@OpenWrt:/# dmesg | grep mhi
[   18.442226] mhi_init Quectel_Linux_PCIE_MHI_Driver_V1.3.0.17
[   18.443032] mhi_pci_probe pci_dev->name = 0000:01:00.0, domain=0, bus=1, slot=0, vendor=17CB, device=0306
[   18.447488] mhi_q 0000:01:00.0: BAR 0: assigned [mem 0x48000000-0x48000fff 64bit]
[   18.456563] mhi_q 0000:01:00.0: enabling device (0140 -> 0142)
[   18.464184] [I][mhi_init_pci_dev] msi_required = 5, msi_allocated = 5, msi_irq = 197
[   18.464215] [I][mhi_power_up] dev_state:RESET
[   18.464225] [I][mhi_async_power_up] Requested to power on
[   18.464432] [I][mhi_alloc_coherent] size = 114688, dma_handle = 8d400000
[   18.464445] [I][mhi_init_dev_ctxt] mhi_ctxt->ctrl_seg = d1766000
[   18.466003] [I][mhi_async_power_up] dev_state:RESET ee:AMSS
[   18.466080] [I][mhi_pm_st_worker] Transition to state:READY
[   18.466109] [I][mhi_pm_st_worker] INVALID_EE -> AMSS
[   18.466135] [I][mhi_ready_state_transition] Waiting to enter READY state
[   18.466224] [I][mhi_async_power_up] Power on setup success
[   18.466265] [I][mhi_pci_probe] Return successful
[   18.577299] [I][mhi_intvec_threaded_handlr] device ee:AMSS dev_state:READY, pm_state:POR
[   18.577312] [I][mhi_ready_state_transition] Device in READY State
[   18.577325] [I][mhi_intvec_threaded_handlr] device ee:AMSS dev_state:READY, INVALID_EE
[   18.577329] [I][mhi_tryset_pm_state] Transition to pm state from:POR to:POR
[   18.577337] [I][mhi_init_mmio] Initializing MMIO
[   18.577344] [I][mhi_init_mmio] CHDBOFF:0x300
[   18.577361] [I][mhi_init_mmio] ERDBOFF:0x700
[   18.577372] [I][mhi_init_mmio] Programming all MMIO values.
[   18.690834] [I][mhi_dump_tre] carl_ev evt_state_change mhistate=2
[   18.690854] [I][mhi_process_ctrl_ev_ring] MHI state change event to state:M0
[   18.690866] [I][mhi_pm_m0_transition] Entered With State:READY PM_STATE:POR
[   18.690879] [I][mhi_tryset_pm_state] Transition to pm state from:POR to:M0
[   18.694229] [I][mhi_dump_tre] carl_ev evt_ee_state execenv=2
[   18.694241] [I][mhi_process_ctrl_ev_ring] MHI EE received event:AMSS
[   18.694293] [I][mhi_pm_st_worker] Transition to state:MISSION MODE
[   18.694310] [I][mhi_pm_st_worker] INVALID_EE -> AMSS
[   18.694319] [I][mhi_pm_mission_mode_transition] Processing Mission Mode Transition
[   18.694341] [I][mhi_init_timesync] No timesync capability found
[   18.694350] [I][mhi_pm_mission_mode_transition] Adding new devices
[   18.696365] [I][mhi_dtr_probe] Enter for DTR control channel
[   18.696383] [I][__mhi_prepare_channel] Entered: preparing channel:18
[   18.703113] [I][mhi_dump_tre] carl_ev evt_cmd_comp code=1, type=33
[   18.703164] [I][__mhi_prepare_channel] Chan:18 successfully moved to start state
[   18.703174] [I][__mhi_prepare_channel] Entered: preparing channel:19
[   18.710681] [I][mhi_dump_tre] carl_ev evt_cmd_comp code=1, type=33
[   18.710734] [I][__mhi_prepare_channel] Chan:19 successfully moved to start state
[   18.710804] [I][mhi_dtr_probe] Exit with ret:0
[   18.711774] [I][mhi_netdev_enable_iface] Prepare the channels for transfer
[   18.711811] [I][__mhi_prepare_channel] Entered: preparing channel:100
[   18.732097] [I][mhi_dump_tre] carl_ev evt_cmd_comp code=1, type=33
[   18.732151] [I][__mhi_prepare_channel] Chan:100 successfully moved to start state
[   18.732162] [I][__mhi_prepare_channel] Entered: preparing channel:101
[   18.744170] [I][mhi_dump_tre] carl_ev evt_cmd_comp code=1, type=33
[   18.744219] [I][__mhi_prepare_channel] Chan:101 successfully moved to start state
[   18.749132] [I][mhi_netdev_enable_iface] Exited.
[   18.750306] rmnet_vnd_register_device(rmnet_mhi0.1)=0
[   18.752927] [I][mhi_pm_mission_mode_transition] Exit with ret:0

root@OpenWrt:/# busybox microcom /dev/mhi_DUN 
at+cpin?
+CPIN: READY

OK
at+cops?
+COPS: 0,0,"CHINA MOBILE",13

OK
at+csq
+csq: 23,99

OK

root@OpenWrt:/# quectel-CM -s cmnet &
[04-13_09:26:58:077] Quectel_QConnectManager_Linux_V1.6.0.25
[04-13_09:26:58:078] network interface '' or qmidev '' is not exist
[04-13_09:26:58:079] netcard driver = pcie_mhi, driver version = V1.3.0.17
[04-13_09:26:58:080] qmap_mode = 1, qmap_version = 9, qmap_size = 16384, muxid = 0x81, qmap_netcard = rmnet_mhi0.1
[04-13_09:26:58:080] Modem works in QMI mode
[04-13_09:26:58:131] cdc_wdm_fd = 7
[04-13_09:26:59:132] QmiWwanInit message timeout
[04-13_09:27:00:140] Get clientWDS = 15
[04-13_09:27:00:144] Get clientDMS = 1
[04-13_09:27:00:147] Get clientNAS = 4
[04-13_09:27:00:151] Get clientUIM = 1
[04-13_09:27:00:155] Get clientWDA = 1
[04-13_09:27:00:158] requestBaseBandVersion RM500QGLABR10A03M4G
[04-13_09:27:00:161] qmap_settings.rx_urb_size = 16384
[04-13_09:27:00:162] qmap_settings.ul_data_aggregation_max_datagrams  = 11
[04-13_09:27:00:162] qmap_settings.ul_data_aggregation_max_size       = 8192
[04-13_09:27:00:163] qmap_settings.dl_minimum_padding                 = 0
[04-13_09:27:00:176] requestGetSIMStatus SIMStatus: SIM_READY
[04-13_09:27:00:177] requestSetProfile[1] cmnet///0
[04-13_09:27:00:190] requestGetProfile[1] cmnet///0
[04-13_09:27:00:193] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: 5G_NSA
[04-13_09:27:00:197] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[04-13_09:27:00:198] ifconfig rmnet_mhi0 down
[04-13_09:27:00:222] ifconfig rmnet_mhi0.1 0.0.0.0
[04-13_09:27:00:247] ifconfig rmnet_mhi0.1 down
[04-13_09:27:00:281] requestSetupDataCall WdsConnectionIPv4Handle: 0x1228bb20
[  245.284909] net rmnet_mhi0: link_state 0x0 -> 0x1
[04-13_09:27:00:293] ifconfig rmnet_mhi0 up
[  245.308696] [I][mhi_netdev_open] Opened net dev interface
[04-13_09:27:00:318] ifconfig rmnet_mhi0.1 up
[04-13_09:27:00:353] you are use OpenWrt?
[04-13_09:27:00:354] should not calling udhcpc manually?
[04-13_09:27:00:354] should modify /etc/config/network as below?
[04-13_09:27:00:355] config interface wan
[04-13_09:27:00:355] 	option ifname	rmnet_mhi0.1
[04-13_09:27:00:355] 	option proto	dhcp
[04-13_09:27:00:356] should use "/sbin/ifstaus wan" to check rmnet_mhi0.1 's status?
[04-13_09:27:00:356] busybox udhcpc -f -n -q -t 5 -i rmnet_mhi0.1
udhcpc: started, v1.28.3
udhcpc: sending discover
udhcpc: sending select for 10.128.73.23
udhcpc: lease of 10.128.73.23 obtained, lease time 7200
[04-13_09:27:00:710] udhcpc: ifconfig rmnet_mhi0.1 10.128.73.23 netmask 255.255.255.240 broadcast +
[04-13_09:27:00:742] udhcpc: setting default routers: 10.128.73.24

root@OpenWrt:/# ifconfig rmnet_mhi0.1
rmnet_mhi0.1 Link encap:Ethernet  HWaddr 02:50:F4:00:00:00  
          inet addr:10.128.73.23  Mask:255.255.255.240
          inet6 addr: fe80::50:f4ff:fe00:0/64 Scope:Link
          UP RUNNING NOARP  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:612 (612.0 B)  TX bytes:684 (684.0 B)
