<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Roboto Flex Normal";
        panose-1:2 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Roboto Flex Normal";
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#2D8DAB;
        text-decoration:underline;}
span.E-MailFormatvorlage46
        {mso-style-type:personal-compose;
        font-family:"Arial",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Roboto Flex Normal";
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#2D8DAB" vlink="black" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">Good evening,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">my name is Dominik Nille and I am currently trying to work with a 5G modem (Quectel RM520N-GL) to log into a cellular network.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">I am able to connect the Modem when using Windows or a Raspberry Pi. But somehow my current system to set up a development environment does not work.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-family:"Arial",sans-serif">My setup:<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">I use a laptop with operating system:           Windows 10 Enterprise<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">To run Linux in a virtual machine I use:        Oracle Virtualbox<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">My Linux:                                                       Debian GNU/Linux 12 (Kernel Version: 6.1.0-20-amd64 (64-bit)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">Version of ModemManager:                          1.20.4<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">Version of NetworkManager:                        1.42.4<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">I try to connect an Evaluation Board, named “RMU500EK 5G Development-Kit” (
<a href="https://shop.tekmodul.de/RMU500EK-p541645397with">https://shop.tekmodul.de/RMU500EK-p541645397with</a> ) with integrated antennas via USB. Therefore, I set an USB-Filter to connect USB devices from Quectel to the Linux VM automatically.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">I’ve now tried Multiple of those Boards with multiple of 5G modems and I also updated the firmware of the different modems. I tried different power supplying methods. With different
 connectors and also different USB-cables. I don’t think that the problem is a hardware setup problem, because I can run the modem without a problem on the windows host.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-family:"Arial",sans-serif">Investigating the problem in linux:<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">When I run
<b>lsusb</b> following output is displayed:<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-family:"Arial",sans-serif">Bus 002 Device 006: ID 2c7c:0801 Quectel Wireless Solutions Co., Ltd. RM520N-GL<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">When I run
<b>ls /dev</b>, there are listed the 4 serial devices and 1 modem device.<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-family:"Arial",sans-serif">cdc-wdm0, ttyUSB0, ttyUSB1, ttyUSB2, ttyUSB3<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">Previously, I used the NetworkManager in combination with the ModemManager to get a connection on the same setup to monitor my cellular connections. Maybe I updated some packages
 or changed something else on the system.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">However, I am currently not able to access the Modem with the ModemManager, but I don’t know the reason.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">When I run
<b>mmcli -m any</b> there is displayed the following output</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif">:<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif">error: couldn't find modem<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif">If I investigate the journalctl I see, that some outputs. The following are some main outputs:<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><warn>  [plugin/quectel] could not grab port ttyUSB0: Cannot add port 'tty/ttyUSB0', unhandled port type<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif">..<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><warn>  [modem1] couldn't load carrier config: Operation timed out<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif">..<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><error> [modem1] port cdc-wdm0 timed out 25 consecutive times, marking modem as invalid<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><warn>  [modem1] couldn't load hardware revision: QMI operation failed: Transaction timed out<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><warn>  [modem1] couldn't load equipment identifier: QMI operation failed: Transaction timed out<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><warn>  [modem1] couldn't load device identifier: Modem interface skeleton unavailable<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><warn>  [modem1] couldn't load supported bands: Couldn't peek QMI port<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><warn>  [modem1] couldn't load power state: Couldn't peek QMI port<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><warn>  [modem1] couldn't load current allowed/preferred modes: Couldn't peek QMI port<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><warn>  [modem1] couldn't load current bands: Couldn't peek QMI port<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><warn>  [modem1] (quectel) failed to initialize SIM hot swap ports context: Couldn't get primary port<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><warn>  [modem1] couldn't query SIM slots: Couldn't peek QMI port<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><warn>  [modem1] modem couldn't be initialized: Couldn't check unlock status: Couldn't get interface skeleton<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><warn>  [modem1] error initializing: Operation was cancelled<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif">Do you have any Idea, why the ModemManager is not able to grab the serial port? This happens very often with multiple ports.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif">And do you have any idea, why the port cdc-wdm0 is timing out 25 consecutive times? Is there any present issue with bridging USB-Ports of Virtualbox maybe?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif">Maybe the given information is already enough for you, to see the problem.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif">If not, I investigated further:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif">I also ran the ModemManager in
<b>Debug mode</b> and captured the output in a <b>log.txt</b>, which is <b>attached</b>. I just cut off some beginning when the ModemManager was dealing with ethernetports. I plugged in the Modem after starting it in debug mode. And the attached output were
 captured.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif">Thank you very much for your help.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial",sans-serif">Dominik<o:p></o:p></span></p>
</div>
<br>
<font face="Arial" size="2">
<div><b>Dominik Nille</b><br>
</font><font face="Arial" size="1" color="#999999">Technology<br>
Innovation Management<br>
</font><font face="Arial" size="1" color="#000000"><br>
<br>
<img alt="" hspace="0" src="http://assets.balluff.com/JPG_original_size/E-Mail-Footer_Vertrieb_Logo.jpg" align="baseline" border="0"><br>
<br>
<b>Balluff GmbH</b> · Schurwaldstrasse 9 · 73765 Neuhausen a.d.F. · Germany<br>
<b>Phone</b> +497158173-8020 · <b>Fax</b> +4971585010 · <a href="mailto:Dominik.Nille@balluff.de" style="color: black">
Dominik.Nille@balluff.de</a> · <a href="http://www.balluff.com" target="_blank" style="color: black">
www.balluff.com</a> <br>
<br>
<a href="https://de-de.facebook.com/balluff.gmbh" target="_blank" style="color: black"><img height="26" border="0" src="https://assets.balluff.com/raw-approved/ic/on/facebook_icon.png" alt="Facebook"></a> 
<a href="https://www.linkedin.com/company/balluff-gmbh-germany" target="_blank" style="color: black">
<img height="26" border="0" src="https://assets.balluff.com/raw-approved/ic/on/linkedin_icon.png" alt="LinkedIn"></a> 
<a href="https://twitter.com/balluff?lang=de" target="_blank" style="color: black">
<img height="26" border="0" src="https://assets.balluff.com/raw-approved/ic/on/twitter_icon.png" alt="Twitter"></a> 
<a href="https://www.youtube.com/user/BalluffSensors" target="_blank" style="color: black">
<img height="26" border="0" src="https://assets.balluff.com/raw-approved/ic/on/youtube_icon.png" alt="Youtube"></a> 
<a href="https://www.xing.com/companies/balluffgmbh" target="_blank" style="color: black">
<img height="26" border="0" src="https://assets.balluff.com/raw-approved/ic/on/xing_icon.png" alt="Xing"></a> 
<a href="https://www.innovating-automation.blog/?lang=de" target="_blank" style="color: black">
<img height="26" border="0" src="https://assets.balluff.com/raw-approved/ic/on/blog_icon.png" alt="Blog"></a> 
<br>
<br>
<br>
Place of incorporation/Sitz der Gesellschaft: Neuhausen a.d.F., Germany · Register court/Registergericht: Amtsgericht Stuttgart, Germany<br>
Trade register/Handelsregister: HRB 214038 · Managing directors/Geschäftsführer: Katrin Stegmaier-Hermle, Florian Hermle, Frank Nonnenmann<br>
Chairman board of directors/Vorsitzender des Aufsichtsrats: Michael Unger · VAT ID/USt-ID: DE213 402 337<br>
<br>
<img alt="" hspace="0" src="http://assets.balluff.com/JPG_original_size/E-Mail-Footer_Vertrieb_Claim.jpg" align="baseline" border="0"><br>
</div>
</font>
</body>
</html>