<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I created an issue on MBIM's GitLab. You can see it here: <a moz-do-not-send="true" href="https://gitlab.freedesktop.org/mobile-broadband/libmbim/issues/6">
https://gitlab.freedesktop.org/mobile-broadband/libmbim/issues/6</a><br>
But I will restate it:<br>
<p data-sourcepos="1:1-1:357" dir="auto">I am working on a device that will have several MBIM devices connected. In order to guarantee persistent device file naming under /dev, I am in the process of writing a udev rule to create symbolic links to the cdc-wdm[n]
 interfaces--you can see it attached to this post. However, invoking <code>mbimcli --device=/dev/SYMLINK-TO-MODEM</code> throws a couple of errors.</p>
<p data-sourcepos="3:1-3:42" dir="auto">Here invoking on the original device file:</p>
<pre class="code highlight js-syntax-highlight plaintext dark" lang="plaintext"><code><span id="LC1" class="line" lang="plaintext"># mbimcli --device-open-proxy --device=/dev/cdc-wdm0 --query-registration-state </span>
<span id="LC2" class="line" lang="plaintext">[/dev/cdc-wdm0] Registration status:</span>
<span id="LC3" class="line" lang="plaintext">                Network error: 'unknown'</span>
<span id="LC4" class="line" lang="plaintext">               Register state: 'home'</span>
<span id="LC5" class="line" lang="plaintext">                Register mode: 'automatic'</span>
<span id="LC6" class="line" lang="plaintext">       Available data classes: 'lte'</span>
<span id="LC7" class="line" lang="plaintext">       Current cellular class: 'gsm'</span>
<span id="LC8" class="line" lang="plaintext">                  Provider ID: '311480'</span>
<span id="LC9" class="line" lang="plaintext">                Provider name: 'Verizon'</span>
<span id="LC10" class="line" lang="plaintext">                Roaming text: 'unknown'</span>
<span id="LC11" class="line" lang="plaintext">          Registration flags: 'packet-service-automatic-attach'</span></code></pre>
<p data-sourcepos="18:1-18:76" dir="auto">and now on the symbolic link to the device file. It hangs and I send SIGINT:</p>
<pre class="code highlight js-syntax-highlight plaintext dark" lang="plaintext"><code><span id="LC1" class="line" lang="plaintext">$ mbimcli --device-open-proxy --device=/dev/cdc-wdm-HL7618-MBIM0 --query-registration-state </span>
<span id="LC2" class="line" lang="plaintext">[01 Jul 2019, 20:47:42] -Warning ** [/dev/cdc-wdm-HL7618-MBIM0] Couldn't find udev device</span>
<span id="LC3" class="line" lang="plaintext">[01 Jul 2019, 20:47:42] -Warning ** [/dev/cdc-wdm-HL7618-MBIM0] Couldn't get descriptors file path</span>
<span id="LC4" class="line" lang="plaintext">^Ccancelling the operation...</span>
<span id="LC5" class="line" lang="plaintext">error: couldn't open the MbimDevice: Operation was cancelled</span></code></pre>
<pre class="code highlight js-syntax-highlight plaintext dark" lang="plaintext"><code><span id="LC1" class="line" lang="plaintext">$ ls -l /dev/cdc*</span>
<span id="LC2" class="line" lang="plaintext">crw------- 1 root root 180, 176 Jul  1 19:03 /dev/cdc-wdm0</span>
<span id="LC3" class="line" lang="plaintext">lrwxrwxrwx 1 root root        8 Jul  1 19:03 /dev/cdc-wdm-HL7618-MBIM0 -> cdc-wdm0</span></code></pre>
<pre class="code highlight js-syntax-highlight plaintext dark" lang="plaintext"><code><span id="LC1" class="line" lang="plaintext">$ mbimcli --version</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext">mbimcli 1.18.0</span>
<span id="LC4" class="line" lang="plaintext">Copyright (C) 2013-2019 Aleksander Morgado</span>
<span id="LC5" class="line" lang="plaintext">License GPLv2+: GNU GPL version 2 or later <a class="moz-txt-link-rfc2396E" href="http://gnu.org/licenses/gpl-2.0.html"><http://gnu.org/licenses/gpl-2.0.html></a></span>
<span id="LC6" class="line" lang="plaintext">This is free software: you are free to change and redistribute it.</span>
<span id="LC7" class="line" lang="plaintext">There is NO WARRANTY, to the extent permitted by law.</span></code></pre>
--------------------------------<br>
<p data-sourcepos="1:1-1:182" dir="auto">Interesting thing: I rebooted and now the symlink works, but the original device file does not. The symlink still shows the error mentioned in my OP. It times out if I try to use it.</p>
<p data-sourcepos="3:1-3:8" dir="auto">Symlink:</p>
<pre class="code highlight js-syntax-highlight plaintext dark" lang="plaintext"><code><span id="LC1" class="line" lang="plaintext">$ mbimcli --device-open-proxy --device=/dev/cdc-wdm-HL7618-MBIM0 --query-registration-state </span>
<span id="LC2" class="line" lang="plaintext">[01 Jul 2019, 21:18:07] -Warning ** [/dev/cdc-wdm-HL7618-MBIM0] Couldn't find udev device</span>
<span id="LC3" class="line" lang="plaintext">[01 Jul 2019, 21:18:07] -Warning ** [/dev/cdc-wdm-HL7618-MBIM0] Couldn't get descriptors file path</span>
<span id="LC4" class="line" lang="plaintext">[/dev/cdc-wdm-HL7618-MBIM0] Registration status:</span>
<span id="LC5" class="line" lang="plaintext">                Network error: 'unknown'</span>
<span id="LC6" class="line" lang="plaintext">               Register state: 'home'</span>
<span id="LC7" class="line" lang="plaintext">                Register mode: 'automatic'</span>
<span id="LC8" class="line" lang="plaintext">       Available data classes: 'lte'</span>
<span id="LC9" class="line" lang="plaintext">       Current cellular class: 'gsm'</span>
<span id="LC10" class="line" lang="plaintext">                 Provider ID: '311480'</span>
<span id="LC11" class="line" lang="plaintext">               Provider name: 'Verizon'</span>
<span id="LC12" class="line" lang="plaintext">                Roaming text: 'unknown'</span>
<span id="LC13" class="line" lang="plaintext">          Registration flags: 'packet-service-automatic-attach'</span>
<span id="LC14" class="line" lang="plaintext"></span></code></pre>
<p data-sourcepos="22:1-22:9" dir="auto">Original:</p>
<pre class="code highlight js-syntax-highlight plaintext dark" lang="plaintext"><code><span id="LC1" class="line" lang="plaintext">$ mbimcli --device-open-proxy --device=/dev/cdc-wdm0 --query-registration-state </span>
<span id="LC2" class="line" lang="plaintext">error: couldn't open the MbimDevice: Transaction timed out</span></code></pre>
<br>
Thank you,<br>
<br>
Ed Peguillan III<br>
<br>
Contents of udev rule (work in progress): <a moz-do-not-send="true" href="https://gist.github.com/yankee14/f361f8b7dee211faaed0e8ea69620ac9">
https://gist.github.com/yankee14/f361f8b7dee211faaed0e8ea69620ac9</a><br>
Whisker.io and D6 Labs are trademarks of Digital Six Laboratories, Inc. This e-mail message, including any attachments, is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged and/or confidential.
 If you are not the intended recipient or the employee or agent responsible for delivering the communication to the intended recipient, please notify us immediately by replying to this message and then delete this message from your system. You are hereby notified
 that any use, dissemination, distribution and/or reproduction of this message and/or any attachments by unintended recipients is unauthorized and may be unlawful. Furthermore, although we have taken precautions to minimize the risk of transmitting software
 viruses, we advise you to perform your own virus checks on any attachment to this message. We do not accept liability for any loss or damage caused by software viruses.
</body>
</html>