Open davidohne opened 4 months ago
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
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
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"
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.
Hi @davidohne What is the achieved aggregation speed you have with these two 5G modems?
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:
These packages are installed on ROOter:
Context (Environment)
lsusb:
OpenMPTCPRouter System log shows the following:
Specifications