<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">> Could you edit the huawei port type rules file and add these three lines somewhere in the middle of the other rules?<br>
> $ vim /lib/udev/rules.d/77-mm-huawei-net-port-types.rules<br>
> SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*", ENV{.MM_USBIFNUM}="$attr{bInterfaceNumber}"<br>
> ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="15c1", ENV{.MM_USBIFNUM}=="02", ENV{<span style="caret-color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; background-color: rgb(255, 255, 255); display: inline !important">ID_MM_PORT_TYPE_PPP</span>}="1"<br>
> ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="15c1", ENV{.MM_USBIFNUM}=="04", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1"<br>
<br>
I think you misspelled <span style="caret-color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; background-color: rgb(255, 255, 255); display: inline !important">ID_MM_PORT_TYPE_PPP.
Should it be named <span style="caret-color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; background-color: rgb(255, 255, 255); display: inline !important">ID_MM_PORT_TYPE_AT_PPP?</span></span></div>
<div class="PlainText"><span style="caret-color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; background-color: rgb(255, 255, 255); display: inline !important"></span>I
have changed the rules file and restarted mm and nm in debug mode. Waiting for disconnection issues.<br>
<br>
<br>
> You could try to test that running this:<br>
> <br>
> $ sudo usb_modeswitch -v 12d1 -p 15c1 --configuration 3</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">I issued that command on a different device without the mm patch you gave me. I get this:</div>
<div class="PlainText"><span>root@f14c40f:~# usb_modeswitch -v 12d1 -p 15c1 --configuration 3<br>
</span>
<div>Look for default devices ...<br>
</div>
<div> product ID matched<br>
</div>
<div>Get the current device configuration ...<br>
</div>
<div> Found devices in default mode (1)<br>
</div>
<div>Access device 004 on bus 001<br>
</div>
<div>Get the current device configuration ...<br>
</div>
<div>Current configuration number is 2<br>
</div>
<div>Use interface number 0<br>
</div>
<div> with class 2<br>
</div>
<div><br>
</div>
<div>USB description data (for identification)<br>
</div>
<div>-------------------------<br>
</div>
<div>Manufacturer: Huawei Technologies Co., Ltd.<br>
</div>
<div> Product: HUAWEI Mobile V7R11<br>
</div>
<div> Serial No.: 0123456789ABCDEF<br>
</div>
<div>-------------------------<br>
</div>
<div>Change configuration to 3 ...<br>
</div>
<div> Device is busy, try to detach kernel driver<br>
</div>
<div>Looking for active driver ...<br>
</div>
<div> No active driver found. Detached before or never attached<br>
</div>
<div> Device is busy, try to detach kernel driver<br>
</div>
<div>Looking for active driver ...<br>
</div>
<div> No active driver found. Detached before or never attached<br>
</div>
<div> Device is busy, try to detach kernel driver<br>
</div>
<div>Looking for active driver ...<br>
</div>
<div> No active driver found. Detached before or never attached<br>
</div>
<div> Device is busy, try to detach kernel driver<br>
</div>
<div>Looking for active driver ...<br>
</div>
<div> No active driver found. Detached before or never attached<br>
</div>
<div> Changing the configuration failed (error -6). Try to continue<br>
</div>
<span>-> Run lsusb to note any changes. Bye!</span><br>
<br>
> After that, the module should re-enumerate using MBIM.</div>
<div class="PlainText">How could I check that? The modeswitch output looked like a failure.</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">> I assume your setup has libmbim and ModemManager installed with MBIM support as well, right?</div>
<div class="PlainText">I have</div>
<div class="PlainText"><span>./usr/lib/libmbim-glib.so.4<br>
</span><span>./usr/lib/libmbim-glib.so.4.4.0</span></div>
<div class="PlainText"><br>
</div>
<div class="PlainText">Merry Christmas</div>
<div class="PlainText">Bruno<br>
<br>
<br>
-- <br>
Aleksander<br>
<a href="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">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</a><br>
</div>
</span></font></div>
</div>
</body>
</html>