> Could you edit the huawei port type rules file and add these three lines > somewhere in the middle of the other rules? > $ vim /lib/udev/rules.d/77-mm-huawei-net-port-types.rules > SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*", > ENV{.MM_USBIFNUM}="$attr{bInterfaceNumber}" > ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="15c1", ENV{.MM_USBIFNUM}=="02", > ENV{ID_MM_PORT_TYPE_PPP}="1" > ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="15c1", ENV{.MM_USBIFNUM}=="04", > ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1"
I think you misspelled ID_MM_PORT_TYPE_PPP. Should it be named ID_MM_PORT_TYPE_AT_PPP? I have changed the rules file and restarted mm and nm in debug mode. Waiting for disconnection issues. > You could try to test that running this: > > $ sudo usb_modeswitch -v 12d1 -p 15c1 --configuration 3 I issued that command on a different device without the mm patch you gave me. I get this: root@f14c40f:~# usb_modeswitch -v 12d1 -p 15c1 --configuration 3 Look for default devices ... product ID matched Get the current device configuration ... Found devices in default mode (1) Access device 004 on bus 001 Get the current device configuration ... Current configuration number is 2 Use interface number 0 with class 2 USB description data (for identification) ------------------------- Manufacturer: Huawei Technologies Co., Ltd. Product: HUAWEI Mobile V7R11 Serial No.: 0123456789ABCDEF ------------------------- Change configuration to 3 ... Device is busy, try to detach kernel driver Looking for active driver ... No active driver found. Detached before or never attached Device is busy, try to detach kernel driver Looking for active driver ... No active driver found. Detached before or never attached Device is busy, try to detach kernel driver Looking for active driver ... No active driver found. Detached before or never attached Device is busy, try to detach kernel driver Looking for active driver ... No active driver found. Detached before or never attached Changing the configuration failed (error -6). Try to continue -> Run lsusb to note any changes. Bye! > After that, the module should re-enumerate using MBIM. How could I check that? The modeswitch output looked like a failure. > I assume your setup has libmbim and ModemManager installed with MBIM support > as well, right? I have ./usr/lib/libmbim-glib.so.4 ./usr/lib/libmbim-glib.so.4.4.0 Merry Christmas Bruno -- Aleksander https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Faleksander.es&data=02%7C01%7C%7C16c4d3d9a796431839b808d78781e9f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637126864354256369&sdata=q4e81CnjdIE0p5OiMJd777pMwioLoJSsBB0Z1Ydlq5w%3D&reserved=0
_______________________________________________ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel