Skip to content

[BUG] T99W373 MBIM 模式无法自动选择 APN #129

@zzzz0317

Description

@zzzz0317

描述问题
提供模组型号、路由器平台、路由器系统发行版等信息
Describe the Issue
Provide module model, router platform, router system distribution, etc.

模组:T99W373

路由器:NLnet XiGuaPi V3 LEDE master分支自编译


复现方法
Steps to Reproduce

  1. 编译时通过 uci-defaults 指定了
uci set qmodem.main.at_tool='1'
uci set qmodem.main.start_delay='15'
uci set qmodem.main.enable_pcie_scan='1'
uci set qmodem.main.enable_usb_scan='1'
  1. 编译,不保留配置升级
  2. 等待开机自动拨号
  3. 日志出现巨量的 When MBIM mode, must specify APN with '-s', or setup data call may fail!
[2025-11-04 22:02:29] modem_dial:modem_path=/sys/bus/pci/devices/0002:21:00.0/,driver=mhi,interface=mpcie2,at_port=/dev/mhi_DUN,using_sim_slot:1,dns_list: 
[2025-11-04 22:02:34] modem_dial:info sim card is ready 
[2025-11-04 22:02:34] modem_dial:create interface mpcie2 with proto dhcp and metric 11 
[2025-11-04 22:02:34] modem_dial:network reload 
[2025-11-04 22:02:34] modem_dial:firewall reload 
[2025-11-04 22:02:34] modem_dial:interface mpcie2 already set to rmnet_mhi0.1 
[2025-11-04 22:02:34] modem_dial:dialing /sys/bus/pci/devices/0002:21:00.0/ driver mhi 
[2025-11-04 22:02:34] modem_dial:dialing: quectel-CM-M -4 -6  -i rmnet_mhi0 -d -M 11 -f /var/run/qmodem/0002_21_00_0_dir/dial_log 
[11-04_22:02:34:908] network interface 'rmnet_mhi0' or qmidev '' is not exist
[11-04_22:02:34:908] netcard driver = pcie_mhi, driver version = V1.3.8
[11-04_22:02:34:908] mbim_qmap_mode = 1, vlan_id = 0x01, qmap_netcard = rmnet_mhi0.1
[11-04_22:02:34:908] Modem works in MBIM mode
[11-04_22:02:34:908] When MBIM mode, must specify APN with '-s', or setup data call may fail!
[2025-11-04 22:02:34] modem_dial:quectel-CM exited, retrying dial 
[2025-11-04 22:02:34] modem_dial:dialing: quectel-CM-M -4 -6  -i rmnet_mhi0 -d -M 11 -f /var/run/qmodem/0002_21_00_0_dir/dial_log 
[11-04_22:02:34:916] network interface 'rmnet_mhi0' or qmidev '' is not exist
[11-04_22:02:34:916] netcard driver = pcie_mhi, driver version = V1.3.8
[11-04_22:02:34:916] mbim_qmap_mode = 1, vlan_id = 0x01, qmap_netcard = rmnet_mhi0.1
[11-04_22:02:34:916] Modem works in MBIM mode
[11-04_22:02:34:916] When MBIM mode, must specify APN with '-s', or setup data call may fail!
[2025-11-04 22:02:34] modem_dial:quectel-CM exited, retrying dial 
[2025-11-04 22:02:34] modem_dial:dialing: quectel-CM-M -4 -6  -i rmnet_mhi0 -d -M 11 -f /var/run/qmodem/0002_21_00_0_dir/dial_log 
[11-04_22:02:34:926] network interface 'rmnet_mhi0' or qmidev '' is not exist
[11-04_22:02:34:927] netcard driver = pcie_mhi, driver version = V1.3.8
[11-04_22:02:34:927] mbim_qmap_mode = 1, vlan_id = 0x01, qmap_netcard = rmnet_mhi0.1
  1. 手工指定APN,拨号成功

期望行为
描述正常情况下应该是什么行为
Expected Behavior
Describe what the normal behavior should be.

正常拨号上网


屏幕截图
Screenshots

Image

日志信息
请在终端执行以下命令并将结果粘贴到对应的折叠代码块中
Log Information
Please execute the following commands in the terminal and paste the results into the corresponding collapsible code blocks below:

模组配置 (Module Configuration)
uci show qmodem
# 显示模组配置
# Show module configuration

粘贴结果到此处
Paste the output here

qmodem.main=main
qmodem.main.try_preset_usb='1'
qmodem.main.try_preset_pcie='1'
qmodem.main.enable_pcie_scan='1'
qmodem.main.at_tool='1'
qmodem.main.start_delay='15'
qmodem.main.enable_usb_scan='1'
qmodem.main.modem_count='1'
qmodem.main.enable_dial='1'
qmodem.wwan=modem-slot
qmodem.wwan.type='usb'
qmodem.wwan.slot='8-1'
qmodem.wwan.net_led='blue:net'
qmodem.wwan.alias='wwan'
qmodem.mpcie1=modem-slot
qmodem.mpcie1.type='pcie'
qmodem.mpcie1.slot='0001:11:00.0'
qmodem.mpcie1.net_led='blue:net'
qmodem.mpcie1.alias='mpcie1'
qmodem.mpcie2=modem-slot
qmodem.mpcie2.type='pcie'
qmodem.mpcie2.slot='0002:21:00.0'
qmodem.mpcie2.net_led='blue:net'
qmodem.mpcie2.alias='mpcie2'
qmodem.0002_21_00_0=modem-device
qmodem.0002_21_00_0.alias='mpcie2'
qmodem.0002_21_00_0.path='/sys/bus/pci/devices/0002:21:00.0/'
qmodem.0002_21_00_0.data_interface='pcie'
qmodem.0002_21_00_0.enable_dial='1'
qmodem.0002_21_00_0.soft_reboot='1'
qmodem.0002_21_00_0.extend_prefix='1'
qmodem.0002_21_00_0.pdp_type='ipv4v6'
qmodem.0002_21_00_0.state='enabled'
qmodem.0002_21_00_0.metric='11'
qmodem.0002_21_00_0.name='t99w373'
qmodem.0002_21_00_0.network='rmnet_mhi0'
qmodem.0002_21_00_0.manufacturer='foxconn'
qmodem.0002_21_00_0.platform='qualcomm'
qmodem.0002_21_00_0.wcdma_band='null'
qmodem.0002_21_00_0.lte_band='null'
qmodem.0002_21_00_0.nsa_band='null'
qmodem.0002_21_00_0.sa_band='null'
qmodem.0002_21_00_0.at_port='/dev/mhi_DUN'
qmodem.0002_21_00_0.modes='mbim'
qmodem.0002_21_00_0.valid_at_ports='/dev/mhi_DUN'
qmodem.0002_21_00_0.ports='/dev/mhi_DUN'
qmodem.0002_21_00_0.apn='cmnet'
qmodem.0002_21_00_0.auth='none'
网络配置 (Network Configuration)
uci show network
# 显示网络配置
# Show network configuration

粘贴结果到此处
Paste the output here

network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.packet_steering='1'
network.globals.ula_prefix='fdba:5f1:7c44::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='eth0'
network.@device[1]=device
network.@device[1].name='eth0'
network.@device[1].macaddr='2e:6b:81:49:54:26'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.netmask='255.255.255.0'
network.lan.ipaddr='10.0.0.1'
network.lan.ip6class='mpcie1v6' 'mpcie2v6' 'wwanv6' 'wan6'
network.lan.ipv6='1'
network.lan.ip6assign='64'
network.@device[2]=device
network.@device[2].name='eth1'
network.@device[2].macaddr='2e:6b:81:49:54:25'
network.wan=interface
network.wan.device='eth1'
network.wan.proto='dhcp'
network.wan6=interface
network.wan6.device='eth1'
network.wan6.proto='dhcpv6'
network.docker=interface
network.docker.device='docker0'
network.docker.proto='none'
network.docker.auto='0'
network.@device[3]=device
network.@device[3].type='bridge'
network.@device[3].name='docker0'
network.mpcie2=interface
network.mpcie2.modem_config='0002_21_00_0'
network.mpcie2.proto='dhcp'
network.mpcie2.defaultroute='1'
network.mpcie2.metric='11'
network.mpcie2.ifname='rmnet_mhi0.1'
network.mpcie2.device='rmnet_mhi0.1'
network.mpcie2v6=interface
network.mpcie2v6.modem_config='0002_21_00_0'
network.mpcie2v6.proto='dhcpv6'
network.mpcie2v6.ifname='@mpcie2'
network.mpcie2v6.device='@mpcie2'
network.mpcie2v6.metric='11'
network.mpcie2v6.extendprefix='1'
系统日志 (System Logs)
logread
# 查看系统日志
# View system logs

粘贴结果到此处
Paste the output here

超长了贴不进来
内核日志 (Kernel Logs)
dmesg
# 查看内核日志
# View kernel logs

粘贴结果到此处
Paste the output here

超长了贴不进来

如果是USB模组相关的问题,执行以下命令并填写结果:
If the issue is related to USB modules, execute the following command and paste the output:

USB设备信息 (USB Devices)
lsusb
# 列出USB设备
# List USB devices

粘贴结果到此处
Paste the output here

如果是PCIe模组相关的问题,执行以下命令并填写结果:
If the issue is related to PCIe modules, execute the following command and paste the output:

PCIe设备信息 (PCIe Devices)
lspci
# 列出PCIe设备
# List PCIe devices

粘贴结果到此处
Paste the output here

0000:00:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3568 Remote Signal Processor (rev 01)
0001:10:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3568 Remote Signal Processor (rev 01)
0001:11:00.0 Network controller: MEDIATEK Corp. Device 7906
0002:20:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3568 Remote Signal Processor (rev 01)
0002:21:00.0 Unassigned class [ff00]: Foxconn International, Inc. Device e0f5

如果模组扫描存在问题,执行以下命令并填写结果:
If there is an issue with module scanning, execute the following command and paste the output:

模组扫描 (Module Scanning)
/usr/share/qmodem/modem_scan.sh scan
# 扫描模组
# Scan modules

粘贴结果到此处
Paste the output here

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions