Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T99W175 / dw5930e on ZBT Z8102ax: Modem not working #3370

Open
davidohne opened this issue May 22, 2024 · 4 comments
Open

T99W175 / dw5930e on ZBT Z8102ax: Modem not working #3370

davidohne opened this issue May 22, 2024 · 4 comments
Labels

Comments

@davidohne
Copy link

davidohne commented May 22, 2024

Expected Behavior

The modem is detected via lsusb and serial ports are created (ttyUSB0-3) and it should be possible to connect via MBIM protocol and ModemManager. The modem is in USB mode (normal modules are mPCIE only).

Current Behavior

MBIM is not working. Modemmanager does not find the modem. The serial ports are not open and it's not possible to communicate with one of them. In ROOter the modem gets detected and a connection is possible.

Possible Solution

I tried to install nearly everything which is also installed on ROOter, but that did not help. They are using some specific plugins which do not exist on omr like rmbim and rqmi.

In ROOter the modem logs shows the following:

Thu Jan  1 00:00:07 1970 : usb-modeswitch  Delay for boot up
Thu Jan  1 00:00:07 1970 : usb-modeswitch  Delay for boot up
Thu Jan  1 00:00:07 1970 : usb-modeswitch  Delay for boot up
Thu Jan  1 00:00:07 1970 : usb-modeswitch  Delay for boot up
Wed May 22 09:39:55 2024 : ROOter Initialize  Initializing Rooter
Wed May 22 09:39:57 2024 : usb-modeswitch  Ignoring Named Hub
Wed May 22 09:39:57 2024 : usb-modeswitch  Ignoring Named Hub
Wed May 22 09:39:57 2024 : usb-modeswitch  Ignoring Linux Hub
Wed May 22 09:39:57 2024 : usb-modeswitch  Ignoring Linux Hub
Wed May 22 09:39:57 2024 : usb-modeswitch  Device 1-1.2
Wed May 22 09:39:57 2024 : usb-modeswitch  Add : 1-1.2: Manufacturer=Microsoft Product=Generic_Mobile_Broadband_Adapter Serial=db4c1d0b 1e2d 00b3
Wed May 22 09:39:58 2024 : usb-modeswitch 1 *****************************************************************
Wed May 22 09:39:58 2024 : usb-modeswitch 1 *
Wed May 22 09:39:58 2024 : usb-modeswitch 1 * Start of Modem Detection and Connection Information
Wed May 22 09:39:58 2024 : usb-modeswitch 1 *
Wed May 22 09:39:58 2024 : usb-modeswitch 1 * Product=Generic_Mobile_Broadband_Adapter 1e2d 00b3
Wed May 22 09:39:58 2024 : usb-modeswitch 1 *
Wed May 22 09:39:58 2024 : usb-modeswitch 1 *****************************************************************
Wed May 22 09:39:58 2024 : usb-modeswitch 1 Found Modem at 1-1.2 in Cfg#= 1 from 1 available
Wed May 22 09:39:58 2024 : usb-modeswitch 1 *****************************************************************
Wed May 22 09:39:58 2024 : usb-modeswitch 1 *
Wed May 22 09:39:58 2024 : usb-modeswitch 1 * Device at 1-1.2 does not have a switch data file
Wed May 22 09:39:58 2024 : usb-modeswitch 1 *
Wed May 22 09:39:58 2024 : usb-modeswitch 1 *****************************************************************
Wed May 22 09:40:08 2024 : usb-modeswitch 1 *****************************************************************
Wed May 22 09:40:08 2024 : usb-modeswitch 1 *
Wed May 22 09:40:08 2024 : usb-modeswitch 1 * Modem at 1-1.2 switched to : 1e2d:00b3
Wed May 22 09:40:08 2024 : usb-modeswitch 1 *
Wed May 22 09:40:08 2024 : usb-modeswitch 1 *****************************************************************
Wed May 22 09:40:08 2024 : Protofind 1e2d/00b3 Number Interfaces w/drivers : 7
Wed May 22 09:40:08 2024 : Protofind 1e2d/00b3 Driver Name : 0 cdc_mbim
Wed May 22 09:40:08 2024 : Protofind 1e2d/00b3 Driver Name : 1 cdc_mbim
Wed May 22 09:40:08 2024 : Protofind 1e2d/00b3 Driver Name : 2 option
Wed May 22 09:40:08 2024 : Protofind 1e2d/00b3 Driver Name : 3 
Wed May 22 09:40:08 2024 : Protofind 1e2d/00b3 Driver Name : 4 option
Wed May 22 09:40:08 2024 : Protofind 1e2d/00b3 Driver Name : 5 option
Wed May 22 09:40:08 2024 : Protofind 1e2d/00b3 Driver Name : 6 option
Wed May 22 09:40:08 2024 : usb-modeswitch 1 *****************************************************************
Wed May 22 09:40:08 2024 : usb-modeswitch 1 *
Wed May 22 09:40:09 2024 : usb-modeswitch 1 * ProtoFind returns : 3
Wed May 22 09:40:09 2024 : usb-modeswitch 1 *
Wed May 22 09:40:09 2024 : usb-modeswitch 1 *****************************************************************
Wed May 22 09:40:09 2024 : usb-modeswitch 1 Found Modem 1
Wed May 22 09:40:09 2024 : modem-led  1 1-1.2
Wed May 22 09:40:09 2024 : usb-modeswitch 1 Connecting a MBIM Modem
Wed May 22 09:40:09 2024 : Create Connection 1 Start Connection
Wed May 22 09:40:09 2024 : Create Connection 1 Modem 1 WDM Device : cdc-wdm0
Wed May 22 09:40:09 2024 : Create Connection 1 Modem
Wed May 22 09:40:09 2024 : Create Connection 1 Start MBIM Connection
Wed May 22 09:40:14 2024 : Create Connection 1 MBIM Comm Port : /dev/ttyUSB0
Wed May 22 09:40:14 2024 : PreConnect 1 Running PreConnect script
Wed May 22 09:40:16 2024 : Band Mask 1  
Wed May 22 09:40:16 2024 : Band Mask 1 T77 Response : AT^SLBAND?
 WCDMA,Enable Bands :1,2,4,5,6,8,9,19,
 WCDMA,Disable Bands:
 LTE,Enable Bands :1,2,3,4,5,7,8,12,13,14,17,18,19,20,25,26,28,29,30,32,34,38,39,40,41,42,46,48,66,71,
 LTE,Disable Bands:
 NR5G,Enable Bands :1,2,3,5,7,8,12,20,28,38,41,66,71,77,78,79,
 NR5G,Disable Bands:
OK
Wed May 22 09:40:16 2024 : Band Mask 1  
Wed May 22 09:40:16 2024 : Band Mask 1  
Wed May 22 09:40:16 2024 : Band Mask 1 T77 Response : AT^SLBAND?,WCDMA:Enable,Bands,:1:2:4:5:6:8:9:19:,WCDMA:Disable,Bands:,LTE:Enable,Bands,:1:2:3:4:5:7:8:12:13:14:17:18:19:20:25:26:28:29:30:32:34:38:39:40:41:42:46:48:66:71:,LTE:Disable,Bands:,NR5G:Enable,Bands,:1:2:3:5:7:8:12:20:28:38:41:66:71:77:78:79:,NR5G:Disable,Bands:,OK,
Wed May 22 09:40:16 2024 : Band Mask 1  
Wed May 22 09:40:16 2024 : Band Mask 1 WCDMA:Disable
Wed May 22 09:40:16 2024 : Band Mask 1  
Wed May 22 09:40:16 2024 : Band Mask 1 LTE Band Mask : 00000000000000000000000000000000
Wed May 22 09:40:17 2024 : Band Mask 1  
Wed May 22 09:40:29 2024 : Get Profile 1 Modem 1 is  Thales MV31-W
Wed May 22 09:40:29 2024 : Get Profile 1 Default Profile Used
Wed May 22 09:40:30 2024 : SimLock 1 Not Locked
Wed May 22 09:40:30 2024 : Create Connection 1 Profile for Modem 1 sets interface to WAN1
Wed May 22 09:40:30 2024 : Create Connection 1 Modem 1 is using WAN1
Wed May 22 09:40:30 2024 : Create Connection 1 Using Provider assigned DNS
Wed May 22 09:40:30 2024 : Create Connection 1 000000,internet,Default,NIL,1,NIL,0,ipv4v6
Wed May 22 09:40:30 2024 : TTL Settings 1 Deleting TTL/HL on interface wwan0
Wed May 22 09:40:30 2024 : Create Connection 1 000000,internet,Default,NIL,1,NIL,0,ipv4v6
Wed May 22 09:40:30 2024 : Lock Provider Check ISP Lock
Wed May 22 09:40:32 2024 : Create Connection 1 Pincode in script
Wed May 22 09:40:32 2024 : Create Connection 1 Attempting to Connect Modem 1
Wed May 22 09:40:32 2024 : modem-led  2 1-1.2
Wed May 22 09:40:32 2024 : Check Connection 1 Check Conn running
Wed May 22 09:40:32 2024 : Check Connection 1 7
Wed May 22 09:40:33 2024 : Create Connection 1 PDP Type selected in the Connection Profile: "", active: "IPV4V6"
Wed May 22 09:40:34 2024 : Create Connection 1 Using Netifd Method
Wed May 22 09:40:35 2024 : MBIM Connect  Stopping network
Wed May 22 09:40:36 2024 : MBIM Connect 1 Query radio state
Wed May 22 09:40:37 2024 : MBIM Connect 1 Reading capabilities
Wed May 22 09:40:37 2024 : MBIM Connect 1 Checking subscriber
Wed May 22 09:40:37 2024 : MBIM Connect 1 Register with network
Wed May 22 09:40:37 2024 : MBIM Connect 1 Registered
Wed May 22 09:40:38 2024 : MBIM Connect 1 Attach to network
Wed May 22 09:40:38 2024 : MBIM Connect 1 Not Roaming
Wed May 22 09:40:49 2024 : MBIM Connect 1 AT+CGDCONT?
+CGDCONT: 1,"IPV4V6","internet","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0,,,,,,,,,"",,,,0
+CGDCONT: 2,"IPV4V6","ims","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0,,,,,,,,,"",,,,0
OK
Wed May 22 09:40:49 2024 : MBIM Connect 1 Connect to network using internet
Wed May 22 09:40:49 2024 : MBIM Connect 1 ipv4v6: internet none NIL NIL
Wed May 22 09:40:50 2024 : MBIM Connect 1 Save Connect Data
Wed May 22 09:40:50 2024 : MBIM Connect 1 IP config   ipv4address: 10.205.204.57/30
  ipv4gateway: 10.205.204.58
  ipv4mtu: 1500
  ipv4dnsserver: 62.109.121.17
  ipv4dnsserver: 62.109.121.18
  ipv6address: 2a02:3035:b0b:9c2a:2d3a:cc3b:c99f:1444/64
  ipv6gateway: 2a02:3035:b0b:9c2a:c9c:8681:d13d:c9d4
  ipv6mtu: 1500
  ipv6dnsserver: 2a02:3018:0:40ff:0:0:0:aaaa
  ipv6dnsserver: 2a02:3018:0:40ff:0:0:0:bbbb
Wed May 22 09:40:50 2024 : MBIM Connect 1 Connected, setting IP
Wed May 22 09:40:50 2024 : modem-led  3 1-1.2
Wed May 22 09:40:51 2024 : MBIM Connect 1 Modem 1 Connected
Wed May 22 09:40:51 2024 : PostConnect 1 Running PostConnect script
Wed May 22 09:40:51 2024 : MBIM Connect 1 Check IPv6 Only
Wed May 22 09:40:52 2024 : Check Connection 1 Normal Exit

These packages are installed on ROOter:

464xlat - 13
base-files - 3-r0-7889ceaf
block-mount - 2023-05-28-3a07943e-1
busybox - 1.36.1-1
bwmon - 1.000-1
ca-bundle - 20230311-1
ca-certificates - 20230311-1
cgi-io - 2022-08-10-901b0f04-21
chat - 2.4.9.git-2021-01-04-5
comgt - 0.32-35
coreutils - 9.3-1
coreutils-date - 9.3-1
curl - 8.4.0-2
ddns-scripts - 2.8.2-42
ddns-scripts-services - 2.8.2-42
dnsmasq-full - 2.89-7
dropbear - 2022.82-5
eip197-mini-firmware - 20230804-1
eoip - 0.5-1
etherwake - 1.09-5
ethtool - 6.5-1
ext-buttons - 1.000-1
ext-command - 4.500-1
ext-extra - 1.000-1
ext-login - 1.000-1
ext-logo - 4.500-1
ext-p910nd - 1.000-1
ext-rooter-basic - 4.500-1
ext-rspeedtest - 1.000-1
ext-simplegps - 1.000-1
ext-sms - 1.000-1
ext-speedtest - 1.000-1
ext-splash - 1.000-1
ext-splashconfig - 1.000-1
ext-theme - 1.000-1
ext-wireguard - 4.500-1
fdisk - 2.39.2-1
firewall4 - 2023-11-03-698a5335-1
fstools - 2023-05-28-3a07943e-1
fwtool - 2019-11-12-8f7fe925-1
getrandom - 2022-08-13-4c7b720b-2
hd-idle - 1.05-2
hostapd-common - 2023-09-08-e5ccbfc6-6
httping - 2.5-1
ip-full - 6.5.0-1
ip6tables-nft - 1.8.8-2
ipset - 7.17-1
iptables-mod-conntrack-extra - 1.8.8-2
iptables-mod-ipopt - 1.8.8-2
iptables-nft - 1.8.8-2
iw - 5.19-1
iwinfo - 2023-07-01-ca79f641-1
jansson4 - 2.14-3
jshn - 2023-05-23-75a3b870-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 5.15.139-1-d61e93b727ae469d0c3e38bb79d08cd0
kmod-asn1-decoder - 5.15.139-1
kmod-cdrom - 5.15.139-1
kmod-cfg80211 - 5.15.139+6.5-1
kmod-crypto-aead - 5.15.139-1
kmod-crypto-authenc - 5.15.139-1
kmod-crypto-ccm - 5.15.139-1
kmod-crypto-cmac - 5.15.139-1
kmod-crypto-crc32c - 5.15.139-1
kmod-crypto-ctr - 5.15.139-1
kmod-crypto-des - 5.15.139-1
kmod-crypto-ecb - 5.15.139-1
kmod-crypto-gcm - 5.15.139-1
kmod-crypto-gf128 - 5.15.139-1
kmod-crypto-ghash - 5.15.139-1
kmod-crypto-hash - 5.15.139-1
kmod-crypto-hmac - 5.15.139-1
kmod-crypto-hw-safexcel - 5.15.139-1
kmod-crypto-lib-chacha20 - 5.15.139-1
kmod-crypto-lib-chacha20poly1305 - 5.15.139-1
kmod-crypto-lib-curve25519 - 5.15.139-1
kmod-crypto-lib-poly1305 - 5.15.139-1
kmod-crypto-manager - 5.15.139-1
kmod-crypto-md4 - 5.15.139-1
kmod-crypto-md5 - 5.15.139-1
kmod-crypto-null - 5.15.139-1
kmod-crypto-rng - 5.15.139-1
kmod-crypto-seqiv - 5.15.139-1
kmod-crypto-sha1 - 5.15.139-1
kmod-crypto-sha256 - 5.15.139-1
kmod-crypto-sha512 - 5.15.139-1
kmod-fs-exfat - 5.15.139-1
kmod-fs-ext4 - 5.15.139-1
kmod-fs-hfs - 5.15.139-1
kmod-fs-ksmbd - 5.15.139-1
kmod-fs-smbfs-common - 5.15.139-1
kmod-fs-vfat - 5.15.139-1
kmod-fuse - 5.15.139-1
kmod-gpio-button-hotplug - 5.15.139-3
kmod-hwmon-core - 5.15.139-1
kmod-ifb - 5.15.139-1
kmod-ip6tables - 5.15.139-1
kmod-ipt-conntrack - 5.15.139-1
kmod-ipt-conntrack-extra - 5.15.139-1
kmod-ipt-core - 5.15.139-1
kmod-ipt-ipopt - 5.15.139-1
kmod-ipt-ipset - 5.15.139-1
kmod-leds-gpio - 5.15.139-1
kmod-lib-crc-ccitt - 5.15.139-1
kmod-lib-crc16 - 5.15.139-1
kmod-lib-crc32c - 5.15.139-1
kmod-mac80211 - 5.15.139+6.5-1
kmod-mii - 5.15.139-1
kmod-mt76-connac - 5.15.139+2023-09-18-2afc7285-1
kmod-mt76-core - 5.15.139+2023-09-18-2afc7285-1
kmod-mt7915e - 5.15.139+2023-09-18-2afc7285-1
kmod-mt7981-firmware - 5.15.139+2023-09-18-2afc7285-1
kmod-nat46 - 5.15.139+2022-09-19-4c5beee2-1
kmod-nf-conncount - 5.15.139-1
kmod-nf-conntrack - 5.15.139-1
kmod-nf-conntrack-netlink - 5.15.139-1
kmod-nf-conntrack6 - 5.15.139-1
kmod-nf-flow - 5.15.139-1
kmod-nf-ipt - 5.15.139-1
kmod-nf-ipt6 - 5.15.139-1
kmod-nf-log - 5.15.139-1
kmod-nf-log6 - 5.15.139-1
kmod-nf-nat - 5.15.139-1
kmod-nf-reject - 5.15.139-1
kmod-nf-reject6 - 5.15.139-1
kmod-nfnetlink - 5.15.139-1
kmod-nft-bridge - 5.15.139-1
kmod-nft-compat - 5.15.139-1
kmod-nft-core - 5.15.139-1
kmod-nft-fib - 5.15.139-1
kmod-nft-nat - 5.15.139-1
kmod-nft-netdev - 5.15.139-1
kmod-nft-offload - 5.15.139-1
kmod-nls-base - 5.15.139-1
kmod-nls-cp437 - 5.15.139-1
kmod-nls-iso8859-1 - 5.15.139-1
kmod-nls-utf8 - 5.15.139-1
kmod-oid-registry - 5.15.139-1
kmod-ppp - 5.15.139-1
kmod-pppoe - 5.15.139-1
kmod-pppox - 5.15.139-1
kmod-rt2800-lib - 5.15.139+6.5-1
kmod-rt2800-usb - 5.15.139+6.5-1
kmod-rt2x00-lib - 5.15.139+6.5-1
kmod-rt2x00-usb - 5.15.139+6.5-1
kmod-sched-cake - 5.15.139-1
kmod-sched-core - 5.15.139-1
kmod-scsi-core - 5.15.139-1
kmod-slhc - 5.15.139-1
kmod-tcp-bbr - 5.15.139-1
kmod-thermal - 5.15.139-1
kmod-tun - 5.15.139-1
kmod-udptunnel4 - 5.15.139-1
kmod-udptunnel6 - 5.15.139-1
kmod-usb-acm - 5.15.139-1
kmod-usb-core - 5.15.139-1
kmod-usb-ehci - 5.15.139-1
kmod-usb-net - 5.15.139-1
kmod-usb-net-cdc-ether - 5.15.139-1
kmod-usb-net-cdc-mbim - 5.15.139-1
kmod-usb-net-cdc-ncm - 5.15.139-1
kmod-usb-net-huawei-cdc-ncm - 5.15.139-1
kmod-usb-net-ipheth - 5.15.139-1
kmod-usb-net-qmi-wwan - 5.15.139-1
kmod-usb-net-rndis - 5.15.139-1
kmod-usb-net-sierrawireless - 5.15.139-1
kmod-usb-ohci - 5.15.139-1
kmod-usb-printer - 5.15.139-1
kmod-usb-serial - 5.15.139-1
kmod-usb-serial-option - 5.15.139-1
kmod-usb-serial-qualcomm - 5.15.139-1
kmod-usb-serial-sierrawireless - 5.15.139-1
kmod-usb-serial-wwan - 5.15.139-1
kmod-usb-storage - 5.15.139-1
kmod-usb-uhci - 5.15.139-1
kmod-usb-wdm - 5.15.139-1
kmod-usb-xhci-hcd - 5.15.139-1
kmod-usb-xhci-mtk - 5.15.139-1
kmod-usb2 - 5.15.139-1
kmod-usb3 - 5.15.139-1
kmod-wireguard - 5.15.139-1
ksmbd-server - 3.4.8-1
libatomic1 - 12.3.0-4
libblkid1 - 2.39.2-1
libblobmsg-json20230523 - 2023-05-23-75a3b870-1
libbpf1 - 1.2.2-1
libc - 1.2.4-4
libcap-ng - 0.8.3-2
libcurl4 - 8.4.0-2
libelf1 - 0.189-1
libevdev - 1.13.0-1
libfdisk1 - 2.39.2-1
libgcc1 - 12.3.0-4
libgmp10 - 6.3.0-1
libgnutls - 3.8.0-3
libimobiledevice - 1.3.0-2
libimobiledevice-utils - 1.3.0-2
libipset13 - 7.17-1
libiptext-nft0 - 1.8.8-2
libiptext0 - 1.8.8-2
libiptext6-0 - 1.8.8-2
libiwinfo-data - 2023-07-01-ca79f641-1
libiwinfo20230701 - 2023-07-01-ca79f641-1
libjson-c5 - 0.17-1
libjson-script20230523 - 2023-05-23-75a3b870-1
liblua5.1.5 - 5.1.5-10
liblucihttp-lua - 2023-03-15-9b5b683f-1
liblucihttp-ucode - 2023-03-15-9b5b683f-1
liblucihttp0 - 2023-03-15-9b5b683f-1
liblz4-1 - 1.9.4-1
liblzo2 - 2.10-4
libmbedtls12 - 2.28.5-2
libmnl0 - 1.0.5-1
libncurses6 - 6.4-2
libnetfilter-conntrack3 - 1.0.9-2
libnettle8 - 3.9.1-1
libnfnetlink0 - 1.0.2-1
libnftnl11 - 1.2.6-1
libnghttp2-14 - 1.57.0-1
libnl-core200 - 3.8.0-1
libnl-genl200 - 3.8.0-1
libnl-tiny1 - 2023-07-27-bc92a280-1
libopenssl-conf - 3.0.12-1
libopenssl3 - 3.0.12-1
libplist - 2.2.0-3
libpthread - 1.2.4-4
librt - 1.2.4-4
libsmartcols1 - 2.39.2-1
libspeedtestcpp - 1.20.3-1
libstdcpp6 - 12.3.0-4
libubox20230523 - 2023-05-23-75a3b870-1
libubus-lua - 2023-11-14-b3e8c4ef-1
libubus20231114 - 2023-11-14-b3e8c4ef-1
libuci20130104 - 2023-08-10-5781664d-1
libuclient20201210 - 2023-04-13-007d9454-1
libucode20230711 - 2023-11-07-a6e75e02-1
libudebug - 2023-11-20-759d9404
libudev-zero - 1.0.3-1
libusb-1.0-0 - 1.0.26-3
libusbmuxd - 2.0.2-1
libusbmuxd-utils - 2.0.2-1
libustream-mbedtls20201210 - 2023-11-26-263b9a97-1
libuuid1 - 2.39.2-1
libxml2 - 2.11.4-1
libxtables12 - 1.8.8-2
logd - 2022-08-13-4c7b720b-2
lua - 5.1.5-10
luci - git-23.343.76611-7509953
luci-app-ddns - git-23.343.76611-7509953
luci-app-dnsmasq-ipset - 1.000-1
luci-app-firewall - git-23.343.76611-7509953
luci-app-guestwifi - 1.000-1
luci-app-hotspot - 1.000-1
luci-app-ksmbd - git-23.343.76611-7509953
luci-app-mwan3 - git-23.343.76611-7509953
luci-app-nft-qos - git-23.343.76611-7509953
luci-app-nlbwmon - git-23.343.76611-7509953
luci-app-opkg - git-23.343.76611-7509953
luci-app-pbr - 1.1.1-7
luci-app-rootervpn - 1.000-1
luci-app-sqm - git-23.343.76611-7509953
luci-app-wol - git-23.343.76611-7509953
luci-base - git-23.343.76611-7509953
luci-compat - git-23.343.76611-7509953
luci-lib-base - git-23.343.76611-7509953
luci-lib-ip - git-23.343.76611-7509953
luci-lib-ipkg - git-23.343.76611-7509953
luci-lib-jsonc - git-23.343.76611-7509953
luci-lib-nixio - git-23.343.76611-7509953
luci-light - git-23.343.76611-7509953
luci-lua-runtime - git-23.343.76611-7509953
luci-mod-admin-full - git-23.343.76611-7509953
luci-mod-network - git-23.343.76611-7509953
luci-mod-status - git-23.343.76611-7509953
luci-mod-system - git-23.343.76611-7509953
luci-proto-3g - git-23.343.76611-7509953
luci-proto-3x - 1.0-1
luci-proto-ipv6 - git-23.343.76611-7509953
luci-proto-mbim - git-23.343.76611-7509953
luci-proto-ppp - git-23.343.76611-7509953
luci-proto-qmi - git-23.343.76611-7509953
luci-proto-wireguard - git-23.343.76611-7509953
luci-ssl - git-23.343.76611-7509953
luci-theme-argon - 2.2.5
luci-theme-argondark - 1.000-1
luci-theme-bootstrap - git-23.343.76611-7509953
luci-theme-material - 1.000-1
luci-theme-openwrt-2020 - git-23.343.76611-7509953
luci-theme-tomato - 1.000-1
minicom - 2.9-r1
msmtp - 1.8.24-1
mt7981-wo-firmware - 20230804-1
mtd - 26
mwan3 - 2.11.12-1
nano - 7.2-3
netifd - 2023-11-20-f3e06e81-1
nft-qos - 1.0.6-4
nftables-json - 1.0.9-1
nlbwmon - 2021-09-01-d82c910c-1
ntfs-3g - 2022.5.17-1-fuseint
odhcp6c - 2023-05-12-bcd28363-20
odhcpd-ipv6only - 2023-10-24-d8118f6e-1
openssl-util - 3.0.12-1
openvpn-easy-rsa - 3.1.3-1
openvpn-openssl - 2.6.8-1
openwrt-keyring - 2022-03-25-62471e69-2
opkg - 2022-02-24-d038e5b6-2
p910nd - 0.97-9
pbr - 1.1.1-7
picocom - 3.1-5
pingtest - 1.000-1
ppp - 2.4.9.git-2021-01-04-5
ppp-mod-pppoe - 2.4.9.git-2021-01-04-5
procd - 2023-06-25-2db83655-3
procd-seccomp - 2023-06-25-2db83655-3
procd-ujail - 2023-06-25-2db83655-3
px5g-mbedtls - 10
qfirehose - 1.4.9-1
qlog - 1
resolveip - 2
rmbim - 2021-08-18-de562310-3
rpcd - 2023-07-01-c07ab2f9-1
rpcd-mod-file - 2023-07-01-c07ab2f9-1
rpcd-mod-iwinfo - 2023-07-01-c07ab2f9-1
rpcd-mod-luci - 20230123-1
rpcd-mod-rrdns - 20170710
rpcd-mod-ucode - 2023-07-01-c07ab2f9-1
rqmi - 2022-05-04-56cb2d40-5
rt2800-usb-firmware - 20230804-1
speedtestcpp - 1.20.3-1
sqm-scripts - 1.6.0-1
tc-tiny - 6.5.0-1
terminfo - 6.4-2
ubi-utils - 2.1.6-1
uboot-envtools - 2023.07.02-2
ubox - 2022-08-13-4c7b720b-2
ubus - 2023-11-14-b3e8c4ef-1
ubusd - 2023-11-14-b3e8c4ef-1
uci - 2023-08-10-5781664d-1
uclient-fetch - 2023-04-13-007d9454-1
ucode - 2023-11-07-a6e75e02-1
ucode-mod-fs - 2023-11-07-a6e75e02-1
ucode-mod-html - 1
ucode-mod-lua - 1
ucode-mod-math - 2023-11-07-a6e75e02-1
ucode-mod-nl80211 - 2023-11-07-a6e75e02-1
ucode-mod-rtnl - 2023-11-07-a6e75e02-1
ucode-mod-ubus - 2023-11-07-a6e75e02-1
ucode-mod-uci - 2023-11-07-a6e75e02-1
ucode-mod-uloop - 2023-11-07-a6e75e02-1
udp-tunnel - 1
uhttpd - 2023-06-25-34a8a74d-1
uhttpd-mod-ubus - 2023-06-25-34a8a74d-1
urandom-seed - 3
urngd - 2023-11-01-44365eb1-1
usb-modeswitch - 2022-02-24-3c8595a4-1
usb-storage - 1.000-1
usbmuxd - 1.1.1-1
usbutils - 014-1
usign - 2020-05-23-f1f65026-1
webconsole - 1.000-1
wireguard-tools - 1.0.20210914-2
wireless-regdb - 2023.09.01-1
wireless-tools - 29-6
wpad-basic-mbedtls - 2023-09-08-e5ccbfc6-6
wsdd2 - 2022-04-25-e37443ac-3
wwan - 2019-04-29-6
xtables-nft - 1.8.8-2
xxd - 9.0-1
z8102v2 - 1.000-1
zlib - 1.3-1

Context (Environment)

lsusb:

root@OpenMPTCProuter:~# lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci-mtk/1p, 480M
    |__ Port 001: Dev 002, If 0, Class=[unknown], Driver=hub/4p, 480M
        |__ Port 002: Dev 004, If 0, Class=[unknown], Driver=cdc_mbim, 480M
        |__ Port 002: Dev 004, If 1, Class=[unknown], Driver=cdc_mbim, 480M
        |__ Port 002: Dev 004, If 2, Class=[unknown], Driver=option, 480M
        |__ Port 002: Dev 004, If 3, Class=[unknown], Driver=[none], 480M
        |__ Port 002: Dev 004, If 4, Class=[unknown], Driver=option, 480M
        |__ Port 002: Dev 004, If 5, Class=[unknown], Driver=option, 480M
        |__ Port 002: Dev 004, If 6, Class=[unknown], Driver=option, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci-mtk/1p, 20000M/x2
    |__ Port 001: Dev 002, If 0, Class=[unknown], Driver=hub/4p, 5000M/x2
root@OpenMPTCProuter:~#lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux 6.6.30 xhci-hcd xHCI Host Controller
Bus 001 Device 002: ID 05e3:0610 GenesysLogic USB2.1 Hub
Bus 001 Device 004: ID 1e2d:00b3 Microsoft Generic Mobile Broadband Adapter
Bus 002 Device 001: ID 1d6b:0003 Linux 6.6.30 xhci-hcd xHCI Host Controller
Bus 002 Device 002: ID 05e3:0626 GenesysLogic USB3.1 Hub

OpenMPTCPRouter System log shows the following:

May 22 10:14:36 OpenMPTCProuter daemon.notice ttyd[23984]: [2024/05/22 10:14:36:1975] N: ttyd 1.7.3 (libwebsockets 4.3.2-unknown)
May 22 10:14:36 OpenMPTCProuter daemon.notice ttyd[23984]: [2024/05/22 10:14:36:1977] N: tty configuration:
May 22 10:14:36 OpenMPTCProuter daemon.notice ttyd[23984]: [2024/05/22 10:14:36:1979] N:   start command: /bin/login
May 22 10:14:36 OpenMPTCProuter daemon.notice ttyd[23984]: [2024/05/22 10:14:36:1980] N:   close signal: SIGHUP (1)
May 22 10:14:36 OpenMPTCProuter daemon.notice ttyd[23984]: [2024/05/22 10:14:36:1981] N:   terminal type: xterm-256color
May 22 10:14:36 OpenMPTCProuter daemon.notice ttyd[23984]: [2024/05/22 10:14:36:2139] N:    /usr/lib/libwebsockets-evlib_uv.so
May 22 10:14:36 OpenMPTCProuter daemon.notice ttyd[23984]: [2024/05/22 10:14:36:2142] N: lws_create_context: LWS: 4.3.2-unknown, NET CLI SRV H1 H2 WS ConMon IPV6-off
May 22 10:14:36 OpenMPTCProuter daemon.notice ttyd[23984]: [2024/05/22 10:14:36:2145] N: elops_init_pt_uv:  Using foreign event loop...
May 22 10:14:36 OpenMPTCProuter daemon.notice ttyd[23984]: [2024/05/22 10:14:36:2147] N: __lws_lc_tag:  ++ [wsi|0|pipe] (1)
May 22 10:14:36 OpenMPTCProuter daemon.notice ttyd[23984]: [2024/05/22 10:14:36:2149] N: __lws_lc_tag:  ++ [vh|0|netlink] (1)
May 22 10:14:36 OpenMPTCProuter daemon.notice ttyd[23984]: [2024/05/22 10:14:36:2152] N: __lws_lc_tag:  ++ [vh|1|default|eth1|eth1|7681] (2)
May 22 10:14:36 OpenMPTCProuter daemon.notice ttyd[23984]: [2024/05/22 10:14:36:2165] N: [vh|1|default|eth1|eth1|7681]: lws_socket_bind: source ads 192.168.100.1
May 22 10:14:36 OpenMPTCProuter daemon.notice ttyd[23984]: [2024/05/22 10:14:36:2168] N: __lws_lc_tag:  ++ [wsi|1|listen|default|eth1|7681] (2)
May 22 10:14:36 OpenMPTCProuter daemon.notice ttyd[23984]: [2024/05/22 10:14:36:2170] N:  Listening on port: 7681
May 22 10:14:36 OpenMPTCProuter user.notice z8102: Enable SIMs and reboot modems...
May 22 10:14:37 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372877.388456] [ttyUSB3/at] open blocked by driver for more than 7 seconds!
May 22 10:14:37 OpenMPTCProuter user.notice NET: hotplug (iface): action='remove' interface='wwan0'
May 22 10:14:37 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372877.850464] [plugin-manager] task 0,ttyUSB1: error when checking support with plugin 'telit': (tty/ttyUSB1) failed to open port: Could not open serial device ttyUSB1: No such file or directory
May 22 10:14:37 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372877.851293] [plugin-manager] task 0,ttyUSB0: error when checking support with plugin 'telit': (tty/ttyUSB0) failed to open port: Could not open serial device ttyUSB0: No such file or directory
May 22 10:14:37 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372877.852209] [plugin-manager] task 0,ttyUSB1: error when checking support with plugin 'quectel': (tty/ttyUSB1) failed to open port: Could not open serial device ttyUSB1: No such file or directory
May 22 10:14:37 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372877.853025] [plugin-manager] task 0,ttyUSB0: error when checking support with plugin 'quectel': (tty/ttyUSB0) failed to open port: Could not open serial device ttyUSB0: No such file or directory
May 22 10:14:37 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372877.853923] [plugin-manager] task 0,ttyUSB1: error when checking support with plugin 'generic': (tty/ttyUSB1) failed to open port: Could not open serial device ttyUSB1: No such file or directory
May 22 10:14:37 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372877.854838] [plugin-manager] task 0,ttyUSB0: error when checking support with plugin 'generic': (tty/ttyUSB0) failed to open port: Could not open serial device ttyUSB0: No such file or directory
May 22 10:14:37 OpenMPTCProuter daemon.info ModemManager[24678]: hotplug: remove network interface wwan0: event processed
May 22 10:14:38 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372878.099261] [plugin-manager] task 0,ttyUSB2: error when checking support with plugin 'quectel': (tty/ttyUSB2) failed to open port: Could not open serial device ttyUSB2: No such device or address
May 22 10:14:38 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372878.106527] [plugin-manager] task 0,ttyUSB2: error when checking support with plugin 'generic': (tty/ttyUSB2) failed to open port: Could not open serial device ttyUSB2: No such file or directory
May 22 10:14:38 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372878.107810] [plugin-manager] task 0,ttyUSB3: error when checking support with plugin 'generic': (tty/ttyUSB3) failed to open port: Could not open serial device ttyUSB3: No such file or directory
May 22 10:14:38 OpenMPTCProuter daemon.notice [20479]: <msg> [1716372878.124616] [base-manager] port wwan0 released by device '/sys/devices/platform/soc/11200000.usb/usb1/1-1/1-1.2'
May 22 10:14:38 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372878.125883] [plugin-manager] task 0,wwan0: failed: Operation was cancelled
May 22 10:14:38 OpenMPTCProuter daemon.info ModemManager[24678]: hotplug: remove cdc interface cdc-wdm0: custom event processed
May 22 10:14:38 OpenMPTCProuter daemon.notice [20479]: <msg> [1716372878.211462] [base-manager] port cdc-wdm0 released by device '/sys/devices/platform/soc/11200000.usb/usb1/1-1/1-1.2'
May 22 10:14:38 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372878.213049] [plugin-manager] task 0,cdc-wdm0: error when checking support with plugin 'cinterion': Operation was cancelled
May 22 10:14:38 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372878.216604] [plugin-manager] task 0,cdc-wdm0: failed: Operation was cancelled
May 22 10:14:38 OpenMPTCProuter daemon.notice [20479]: <msg> [1716372878.217100] [base-manager] couldn't check support for device '/sys/devices/platform/soc/11200000.usb/usb1/1-1/1-1.2': Operation was cancelled
May 22 10:14:38 OpenMPTCProuter daemon.info procd: - init complete -
May 22 10:14:38 OpenMPTCProuter daemon.info ModemManager[25184]: hotplug: remove serial interface ttyUSB0: event processed
May 22 10:14:39 OpenMPTCProuter daemon.info ModemManager[25636]: hotplug: remove serial interface ttyUSB1: event processed
May 22 10:14:40 OpenMPTCProuter user.notice firewall.omr-server: Firewall reload, set server part firewall reloading
May 22 10:14:40 OpenMPTCProuter daemon.info ModemManager[26011]: hotplug: remove serial interface ttyUSB2: event processed
May 22 10:14:41 OpenMPTCProuter daemon.info ModemManager[26255]: hotplug: remove serial interface ttyUSB3: event processed
May 22 10:14:43 OpenMPTCProuter user.notice firewall.omr-server: Firewall reload, set server part firewall reloading
May 22 10:14:43 OpenMPTCProuter user.notice post-tracking-001-post-tracking: modem2 () switched off (interface up status: false - Tracker status: ERROR)
May 22 10:14:43 OpenMPTCProuter user.notice post-tracking-001-post-tracking: modem1 () switched off (interface up status: false - Tracker status: ERROR)
May 22 10:14:49 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Can't find modem2 in ModemManager
May 22 10:14:50 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Can't find modem1 in ModemManager
May 22 10:14:54 OpenMPTCProuter user.notice NET: hotplug (iface): action='add' interface='wwan0'
May 22 10:14:54 OpenMPTCProuter daemon.info ModemManager[28802]: hotplug: add network interface wwan0: event processed
May 22 10:14:54 OpenMPTCProuter daemon.info ModemManager[28802]: hotplug: add cdc interface cdc-wdm0: custom event processed
May 22 10:14:55 OpenMPTCProuter daemon.info ModemManager[29297]: hotplug: add serial interface ttyUSB0: event processed
May 22 10:14:55 OpenMPTCProuter daemon.info ModemManager[29663]: hotplug: add serial interface ttyUSB1: event processed
May 22 10:14:56 OpenMPTCProuter daemon.info ModemManager[30137]: hotplug: add serial interface ttyUSB2: event processed
May 22 10:14:57 OpenMPTCProuter daemon.info ModemManager[30266]: hotplug: add serial interface ttyUSB3: event processed
May 22 10:15:01 OpenMPTCProuter user.notice omr-schedule-010-services: Can't find omr-bypass rules, restart omr-bypass...
May 22 10:15:01 OpenMPTCProuter user.notice omr-bypass: Starting OMR-ByPass...
May 22 10:15:08 OpenMPTCProuter user.notice firewall.omr-server: Firewall reload, set server part firewall reloading
May 22 10:15:09 OpenMPTCProuter user.notice omr-bypass: OMR-ByPass is running
May 22 10:15:09 OpenMPTCProuter daemon.info unbound: [7698:0] info: service stopped (unbound 1.19.3).
May 22 10:15:09 OpenMPTCProuter daemon.info unbound: [7698:0] info: server stats for thread 0: 12 queries, 1 answers from cache, 11 recursions, 0 prefetch, 0 rejected by ip ratelimiting
May 22 10:15:09 OpenMPTCProuter daemon.info unbound: [7698:0] info: server stats for thread 0: requestlist max 9 avg 2.81818 exceeded 0 jostled 0
May 22 10:15:09 OpenMPTCProuter daemon.info unbound: [7698:0] info: average recursion processing time 0.175871 sec
May 22 10:15:09 OpenMPTCProuter daemon.info unbound: [7698:0] info: histogram of recursion processing times
May 22 10:15:09 OpenMPTCProuter daemon.info unbound: [7698:0] info: [25%]=0.047104 median[50%]=0.098304 [75%]=0.283989
May 22 10:15:09 OpenMPTCProuter daemon.info unbound: [7698:0] info: lower(secs) upper(secs) recursions
May 22 10:15:09 OpenMPTCProuter daemon.info unbound: [7698:0] info:    0.016384    0.032768 1
May 22 10:15:09 OpenMPTCProuter daemon.info unbound: [7698:0] info:    0.032768    0.065536 4
May 22 10:15:09 OpenMPTCProuter daemon.info unbound: [7698:0] info:    0.065536    0.131072 1
May 22 10:15:09 OpenMPTCProuter daemon.info unbound: [7698:0] info:    0.131072    0.262144 2
May 22 10:15:09 OpenMPTCProuter daemon.info unbound: [7698:0] info:    0.262144    0.524288 3
May 22 10:15:10 OpenMPTCProuter daemon.notice unbound: [472:0] notice: init module 0: validator
May 22 10:15:10 OpenMPTCProuter daemon.notice unbound: [472:0] notice: init module 1: iterator
May 22 10:15:10 OpenMPTCProuter daemon.info unbound: [472:0] info: start of service (unbound 1.19.3).
May 22 10:15:28 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Can't find modem2 in ModemManager
May 22 10:15:28 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Can't find modem1 in ModemManager
May 22 10:16:00 OpenMPTCProuter daemon.info unbound: [472:0] info: generate keytag query _ta-4f66. NULL IN
May 22 10:16:15 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Can't find modem2 in ModemManager
May 22 10:16:15 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Can't find modem1 in ModemManager
May 22 10:16:37 OpenMPTCProuter daemon.notice [20479]: <msg> [1716372997.381566] [device /sys/devices/platform/soc/11200000.usb/usb1/1-1/1-1.2] creating modem with plugin 'cinterion' and '6' ports
May 22 10:16:37 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372997.386516] [plugin/cinterion] could not grab port ttyUSB3: Cannot add port 'tty/ttyUSB3', unhandled port type
May 22 10:16:37 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372997.386669] [plugin/cinterion] could not grab port ttyUSB2: Cannot add port 'tty/ttyUSB2', unhandled port type
May 22 10:16:37 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372997.386747] [plugin/cinterion] could not grab port ttyUSB1: Cannot add port 'tty/ttyUSB1', unhandled port type
May 22 10:16:37 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372997.386819] [plugin/cinterion] could not grab port ttyUSB0: Cannot add port 'tty/ttyUSB0', unhandled port type
May 22 10:16:37 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372997.386890] [plugin/cinterion] could not grab port cdc-wdm0: Cannot add port 'usbmisc/cdc-wdm0', unhandled port type
May 22 10:16:37 OpenMPTCProuter daemon.warn [20479]: <wrn> [1716372997.387388] [base-manager] couldn't create modem for device '/sys/devices/platform/soc/11200000.usb/usb1/1-1/1-1.2': Failed to find primary AT port

Specifications

  • OpenMPTCProuter version: openmptcprouter v0.61-snapshot-6.6 r0+26308-4341901f05 on Linux OpenMPTCProuter 6.6.30 #0 SMP Tue May 14 11:23:57 2024 aarch64 GNU/Linux
  • OpenMPTCProuter platform: ZBT Z8102AX
@davidohne davidohne added the bug label May 22, 2024
@davidohne
Copy link
Author

davidohne commented May 22, 2024

Something else, I've found in the dmesg:

[  107.728300] usb 1-1.2: new high-speed USB device number 4 using xhci-mtk
[  107.889981] usb 1-1.2: no of_node; not parsing pinctrl DT
[  107.897656] cdc_mbim 1-1.2:1.0: no of_node; not parsing pinctrl DT
[  107.921588] cdc_mbim 1-1.2:1.0: setting rx_max = 16384
[  107.927443] cdc_mbim 1-1.2:1.0: cdc-wdm0: USB WDM device
[  107.933456] cdc_mbim 1-1.2:1.0 wwan0: register 'cdc_mbim' at usb-11200000.usb-1.2, CDC MBIM, 26:75:fd:89:cc:2f
[  107.945692] option 1-1.2:1.2: no of_node; not parsing pinctrl DT
[  107.945813] option 1-1.2:1.2: GSM modem (1-port) converter detected
[  107.952286] option1 ttyUSB0: no of_node; not parsing pinctrl DT
[  107.953729] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[  107.962469] option 1-1.2:1.3: no of_node; not parsing pinctrl DT
[  107.962911] option 1-1.2:1.4: no of_node; not parsing pinctrl DT
[  107.963028] option 1-1.2:1.4: GSM modem (1-port) converter detected
[  107.969540] option1 ttyUSB1: no of_node; not parsing pinctrl DT
[  107.970620] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[  107.978012] option 1-1.2:1.5: no of_node; not parsing pinctrl DT
[  107.978127] option 1-1.2:1.5: GSM modem (1-port) converter detected
[  107.984617] option1 ttyUSB2: no of_node; not parsing pinctrl DT
[  107.992969] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[  108.006555] option 1-1.2:1.6: no of_node; not parsing pinctrl DT
[  108.006681] option 1-1.2:1.6: GSM modem (1-port) converter detected
[  108.013207] option1 ttyUSB3: no of_node; not parsing pinctrl DT
[  108.017597] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3

I've changed distfeeds.conf to the following to avoid errors:

    src/gz openmptcprouter_core https://snapshots.openmptcprouter.com/6.6/z8102ax_128m/targets/mediatek/filogic/packages
    src/gz openmptcprouter_base https://snapshots.openmptcprouter.com/6.6/z8102ax_128m/packages/aarch64_cortex-a53/base
    src/gz openmptcprouter_luci https://snapshots.openmptcprouter.com/6.6/z8102ax_128m/packages/aarch64_cortex-a53/luci
    src/gz openmptcprouter_openmptcprouter https://snapshots.openmptcprouter.com/6.6/z8102ax_128m/packages/aarch64_cortex-a53/openmptcprouter
    src/gz openmptcprouter_packages https://snapshots.openmptcprouter.com/6.6/z8102ax_128m/packages/aarch64_cortex-a53/packages
    

@davidohne
Copy link
Author

Okay, some more progress:
When removing modemmanager, I'm able to connect to ttyUSB0 with minicom and I'm able to send AT+commands.

Installing modemmanager again results in the following. Don't know if this is a modem manager related problem or omr :-/
AT+commands can not be sent to the modem anymore. Even with "cat -e ..." and just monitoring the output with cat /dev/ttyUSB0

May 22 10:48:04 OpenMPTCProuter user.notice z8102: Enable SIMs and reboot modems...
May 22 10:48:04 OpenMPTCProuter daemon.notice [23294]: <msg> [1716374884.909059] ModemManager (version 1.23.7) starting in system bus...
May 22 10:48:05 OpenMPTCProuter daemon.info ModemManager[23227]: hotplug: Checking if ModemManager is available...
May 22 10:48:05 OpenMPTCProuter daemon.info ModemManager[23283]: hotplug: checking if ModemManager is available...
May 22 10:48:06 OpenMPTCProuter user.notice NET: hotplug (iface): action='remove' interface='wwan0'
May 22 10:48:06 OpenMPTCProuter daemon.info ModemManager[23527]: hotplug: remove network interface wwan0: event processed
May 22 10:48:06 OpenMPTCProuter daemon.info procd: - init complete -
May 22 10:48:06 OpenMPTCProuter daemon.info ModemManager[23527]: hotplug: remove cdc interface cdc-wdm0: custom event processed
May 22 10:48:08 OpenMPTCProuter daemon.info ModemManager[24234]: hotplug: remove serial interface ttyUSB0: event processed
May 22 10:48:09 OpenMPTCProuter daemon.info ModemManager[25051]: hotplug: remove serial interface ttyUSB1: event processed
May 22 10:48:09 OpenMPTCProuter user.notice firewall.omr-server: Firewall reload, set server part firewall reloading
May 22 10:48:10 OpenMPTCProuter daemon.warn [23294]: <wrn> [1716374890.119812] [wwan0] invalid sysfs path read for net/wwan0
May 22 10:48:10 OpenMPTCProuter daemon.warn [23294]: <wrn> [1716374890.120124] [base-manager] couldn't handle kernel event: device net/wwan0 not found
May 22 10:48:10 OpenMPTCProuter daemon.err ModemManager[23283]: hotplug: Couldn't report kernel event: error: couldn't report kernel event: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.InvalidArgs: Invalid arguments: device net/wwan0 not found'
May 22 10:48:10 OpenMPTCProuter daemon.warn [23294]: <wrn> [1716374890.342945] [cdc-wdm0] invalid sysfs path read for usbmisc/cdc-wdm0
May 22 10:48:10 OpenMPTCProuter daemon.warn [23294]: <wrn> [1716374890.343548] [base-manager] couldn't handle kernel event: device usbmisc/cdc-wdm0 not found
May 22 10:48:10 OpenMPTCProuter daemon.err ModemManager[23283]: hotplug: Couldn't report kernel event: error: couldn't report kernel event: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.InvalidArgs: Invalid arguments: device usbmisc/cdc-wdm0 not found'
May 22 10:48:10 OpenMPTCProuter daemon.warn [23294]: <wrn> [1716374890.554898] [ttyUSB0] invalid sysfs path read for tty/ttyUSB0
May 22 10:48:10 OpenMPTCProuter daemon.warn [23294]: <wrn> [1716374890.555577] [base-manager] couldn't handle kernel event: device tty/ttyUSB0 not found
May 22 10:48:10 OpenMPTCProuter daemon.err ModemManager[23283]: hotplug: Couldn't report kernel event: error: couldn't report kernel event: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.InvalidArgs: Invalid arguments: device tty/ttyUSB0 not found'
May 22 10:48:10 OpenMPTCProuter daemon.info ModemManager[25526]: hotplug: remove serial interface ttyUSB2: event processed
May 22 10:48:10 OpenMPTCProuter daemon.warn [23294]: <wrn> [1716374890.793856] [ttyUSB1] invalid sysfs path read for tty/ttyUSB1
May 22 10:48:10 OpenMPTCProuter daemon.warn [23294]: <wrn> [1716374890.795346] [base-manager] couldn't handle kernel event: device tty/ttyUSB1 not found
May 22 10:48:10 OpenMPTCProuter daemon.err ModemManager[23283]: hotplug: Couldn't report kernel event: error: couldn't report kernel event: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.InvalidArgs: Invalid arguments: device tty/ttyUSB1 not found'
May 22 10:48:10 OpenMPTCProuter daemon.warn [23294]: <wrn> [1716374890.980175] [ttyUSB2] invalid sysfs path read for tty/ttyUSB2
May 22 10:48:10 OpenMPTCProuter daemon.warn [23294]: <wrn> [1716374890.980528] [base-manager] couldn't handle kernel event: device tty/ttyUSB2 not found
May 22 10:48:11 OpenMPTCProuter daemon.err ModemManager[23283]: hotplug: Couldn't report kernel event: error: couldn't report kernel event: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.InvalidArgs: Invalid arguments: device tty/ttyUSB2 not found'
May 22 10:48:11 OpenMPTCProuter daemon.warn [23294]: <wrn> [1716374891.155179] [ttyUSB3] invalid sysfs path read for tty/ttyUSB3
May 22 10:48:11 OpenMPTCProuter daemon.warn [23294]: <wrn> [1716374891.155556] [base-manager] couldn't handle kernel event: device tty/ttyUSB3 not found
May 22 10:48:11 OpenMPTCProuter daemon.err ModemManager[23283]: hotplug: Couldn't report kernel event: error: couldn't report kernel event: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.InvalidArgs: Invalid arguments: device tty/ttyUSB3 not found'
May 22 10:48:11 OpenMPTCProuter daemon.info ModemManager[25944]: hotplug: remove serial interface ttyUSB3: event processed
May 22 10:48:13 OpenMPTCProuter user.notice post-tracking-001-post-tracking: modem2 () switched off (interface up status: false - Tracker status: ERROR)
May 22 10:48:13 OpenMPTCProuter user.notice post-tracking-001-post-tracking: modem1 () switched off (interface up status: false - Tracker status: ERROR)
May 22 10:48:14 OpenMPTCProuter user.notice firewall.omr-server: Firewall reload, set server part firewall reloading
May 22 10:48:19 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Can't find modem1 in ModemManager
May 22 10:48:19 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Can't find modem2 in ModemManager
May 22 10:48:22 OpenMPTCProuter user.notice NET: hotplug (iface): action='add' interface='wwan0'
May 22 10:48:23 OpenMPTCProuter daemon.info ModemManager[28482]: hotplug: add network interface wwan0: event processed
May 22 10:48:23 OpenMPTCProuter daemon.info ModemManager[28482]: hotplug: add cdc interface cdc-wdm0: custom event processed
May 22 10:48:23 OpenMPTCProuter daemon.info ModemManager[28787]: hotplug: add serial interface ttyUSB0: event processed
May 22 10:48:24 OpenMPTCProuter daemon.info ModemManager[28991]: hotplug: add serial interface ttyUSB1: event processed
May 22 10:48:24 OpenMPTCProuter daemon.info ModemManager[29118]: hotplug: add serial interface ttyUSB2: event processed
May 22 10:48:24 OpenMPTCProuter daemon.info ModemManager[29245]: hotplug: add serial interface ttyUSB3: event processed
May 22 10:48:35 OpenMPTCProuter daemon.info unbound: [7368:0] info: service stopped (unbound 1.19.3).
May 22 10:48:35 OpenMPTCProuter daemon.info unbound: [7368:0] info: server stats for thread 0: 12 queries, 1 answers from cache, 11 recursions, 0 prefetch, 0 rejected by ip ratelimiting
May 22 10:48:35 OpenMPTCProuter daemon.info unbound: [7368:0] info: server stats for thread 0: requestlist max 5 avg 1.09091 exceeded 0 jostled 0
May 22 10:48:35 OpenMPTCProuter daemon.info unbound: [7368:0] info: average recursion processing time 0.199942 sec
May 22 10:48:35 OpenMPTCProuter daemon.info unbound: [7368:0] info: histogram of recursion processing times
May 22 10:48:35 OpenMPTCProuter daemon.info unbound: [7368:0] info: [25%]=0.045056 median[50%]=0.114688 [75%]=0.371371
May 22 10:48:35 OpenMPTCProuter daemon.info unbound: [7368:0] info: lower(secs) upper(secs) recursions
May 22 10:48:35 OpenMPTCProuter daemon.info unbound: [7368:0] info:    0.016384    0.032768 2
May 22 10:48:35 OpenMPTCProuter daemon.info unbound: [7368:0] info:    0.032768    0.065536 2
May 22 10:48:35 OpenMPTCProuter daemon.info unbound: [7368:0] info:    0.065536    0.131072 2
May 22 10:48:35 OpenMPTCProuter daemon.info unbound: [7368:0] info:    0.131072    0.262144 1
May 22 10:48:35 OpenMPTCProuter daemon.info unbound: [7368:0] info:    0.262144    0.524288 3
May 22 10:48:35 OpenMPTCProuter daemon.info unbound: [7368:0] info:    0.524288    1.000000 1
May 22 10:48:36 OpenMPTCProuter daemon.notice unbound: [31453:0] notice: init module 0: validator
May 22 10:48:36 OpenMPTCProuter daemon.notice unbound: [31453:0] notice: init module 1: iterator
May 22 10:48:36 OpenMPTCProuter daemon.info unbound: [31453:0] info: start of service (unbound 1.19.3).
May 22 10:48:55 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Can't find modem1 in ModemManager
May 22 10:48:55 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Can't find modem2 in ModemManager
May 22 10:49:00 OpenMPTCProuter daemon.info unbound: [31453:0] info: generate keytag query _ta-4f66. NULL IN
May 22 10:49:01 OpenMPTCProuter user.notice omr-schedule-010-services: Can't find omr-bypass rules, restart omr-bypass...
May 22 10:49:01 OpenMPTCProuter user.notice omr-bypass: Starting OMR-ByPass...
May 22 10:49:08 OpenMPTCProuter user.notice firewall.omr-server: Firewall reload, set server part firewall reloading
May 22 10:49:09 OpenMPTCProuter user.notice omr-bypass: OMR-ByPass is running
May 22 10:49:30 OpenMPTCProuter daemon.notice [23294]: <msg> [1716374970.587458] [device /sys/devices/platform/soc/11200000.usb/usb1/1-1/1-1.2] creating modem with plugin 'cinterion' and '2' ports
May 22 10:49:30 OpenMPTCProuter daemon.warn [23294]: <wrn> [1716374970.904434] [plugin/cinterion] could not grab port cdc-wdm0: Cannot add port 'usbmisc/cdc-wdm0', unhandled port type
May 22 10:49:30 OpenMPTCProuter daemon.warn [23294]: <wrn> [1716374970.913432] [base-manager] couldn't create modem for device '/sys/devices/platform/soc/11200000.usb/usb1/1-1/1-1.2': Failed to find primary AT port
May 22 10:49:31 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Can't find modem1 in ModemManager
May 22 10:49:31 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Can't find modem2 in ModemManager
May 22 10:50:07 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Can't find modem1 in ModemManager
May 22 10:50:07 OpenMPTCProuter user.notice post-tracking-001-post-tracking: Can't find modem2 in ModemManager

@davidohne
Copy link
Author

Okay. I've found a solution. The problem is because of modemmanager. Modemmanager does not map the ports correctly.
I've added the following to /lib/udev/rules.d/77-mm-cinterion-port-types.rules and the modem is detected, I will have to do further testing. The ports are definetly not mapped correctly but ttyUSB0 is accessable:

# T99W175
#  ttyACM0 (if #0): AT port
#  ttyACM1 (if #2): AT port
#  ttyACM2 (if #4): can be AT or GNSS in some models
#  ttyACM3 (if #6): AT port (but just ignore)
#  ttyACM4 (if #8): DIAG/QCDM
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="00b3", ENV{.MM_USBIFNUM}=="00", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1"
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="00b3", ENV{.MM_USBIFNUM}=="02", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_SECONDARY}="1"
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="00b3", ENV{.MM_USBIFNUM}=="04", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_GPS}="1"
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="00b3", ENV{.MM_USBIFNUM}=="06", ENV{ID_MM_PORT_IGNORE}="1"
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="00b3", ENV{.MM_USBIFNUM}=="08", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_QCDM}="1"

@schreiberstein
Copy link

Okay. I've found a solution. The problem is because of modemmanager. Modemmanager does not map the ports correctly. I've added the following to /lib/udev/rules.d/77-mm-cinterion-port-types.rules and the modem is detected, I will have to do further testing. The ports are definetly not mapped correctly but ttyUSB0 is accessable:

# T99W175
#  ttyACM0 (if #0): AT port
#  ttyACM1 (if #2): AT port
#  ttyACM2 (if #4): can be AT or GNSS in some models
#  ttyACM3 (if #6): AT port (but just ignore)
#  ttyACM4 (if #8): DIAG/QCDM
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="00b3", ENV{.MM_USBIFNUM}=="00", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1"
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="00b3", ENV{.MM_USBIFNUM}=="02", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_SECONDARY}="1"
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="00b3", ENV{.MM_USBIFNUM}=="04", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_GPS}="1"
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="00b3", ENV{.MM_USBIFNUM}=="06", ENV{ID_MM_PORT_IGNORE}="1"
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="00b3", ENV{.MM_USBIFNUM}=="08", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_QCDM}="1"

Thank you for this hint!

I am using the USB enclosure "ID 1e2d:00b7 Gemalto M2M GmbH Generic Mobile Broadband Adapter" (or rather: ADT.LINK WS18-02) with a DELL-branded T99W175 on Debian Bookworm amd64 and constantly got "Failed to find primary AT port" among other errors.

Using this Udev rule (while changing 1e2d:00b3 to 1e2d:00b7 on all rules), I was finally able to let ModemManager find this modem.
I leave this here for anyone who might be looking for a solution for the same adapter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants