<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 class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Hey all,<br>
<br>
I'm running into trouble with ModemManager, there seems to be no way to disable probing for certain devices.<br>
I have found countless threads discussing the lack of this feature, but none of them refer to my specific troubles.<br>
<br>
We have some CDC devices that implement ACM and ether.<br>
We want to communicate on the ttyACM of these devices, but our data keeps getting corrupted.<br>
After many hours we finally found out ModemManager is probing the devices, so we added the udev rules:</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">/etc/udev/rules.d/78-custom-mm-blacklist-internal-modem.rules :<br>
<br>
ACTION!="add|change|move", GOTO="custom_mm_blacklist_internal_modem_end"</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">ATTRS{idVendor}=="[redacted1]" ATTRS{idProduct}=="[redacted2]", ENV{ID_MM_DEVICE_IGNORE}="1"</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">ATTRS{idVendor}=="[redacted1]" ATTRS{idProduct}=="[redacted3]", ENV{ID_MM_DEVICE_IGNORE}="1"</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">LABEL="custom_mm_blacklist_internal_modem_end"</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">but looking at the logs I see:<br>
<br>
ModemManager[3751]: <debug> [filter] (tty/ttyACM0): port filtered: device is blocklisted</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">ModemManager[3751]: <debug> [filter] (net/enxd[redacted4]) port allowed: net device</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">ModemManager[3751]: <debug> [filter] (net/enxd[redacted4]) port allowed: net device</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">ModemManager[3751]: <debug> [filter] (tty/ttyACM0): port allowed: device also exports
 a net interface<br>
<br>
So if ModemManager successfully found the device is blocklisted, why does it continue to probe the port?<br>
What is the recommended mechanism to disable the probing of these devices?<br>
<br>
I would prefer to exclude these specific devices, and not have to resort to heavy handed solutions that alter the global rules.<br>
<br>
Best Regards,<br>
Menno<br>
</span></div>
<br><span style="font-size: 11pt; color: rgb(26, 110, 153);"><b>Menno van der Graaf</b></span><br>
<span style="font-size: 11pt; color: rgb(88, 88, 88);">Software Developer</span><br><br><img src="cid:snom-logo-grey-2022_25389c99-2126-43b6-b3f8-1571393837bf.png" style="width: 70px; height: 18px; aspect-ratio: 70 / 18;" id="0.mnw0ds4jys" alt="Snom-logo" width="70" height="18" border="0"><br>
<span style="font-size: 11pt; color: rgb(88, 88, 88);">Snom Technology GmbH</span><br>
<span style="font-size: 11pt;"><span style="color: rgb(88, 88, 88);">Phone: +49 30 39833 1708</span></span><br>

<span style="font-size: 11pt; color: rgb(88, 88, 88);">Email: <a href="mailto:menno.vandergraaf@snom.com">menno.vandergraaf@snom.com</a></span><br>
<span style="font-size: 11pt; color: rgb(88, 88, 88);">Web: <a href="https://www.snom.com">www.snom.com</a></span><br>
<br><span style="font-size: 11pt; color: rgb(88, 88, 88);">With</span> <b><span style="color: rgb(129, 193, 133); font-size: 11pt;">green</span></b><span style="font-size: 11pt; color: rgb(88, 88, 88);"> in mind, please avoid printing this email. <br><br></span>

<span style="font-size: 9pt; color: rgb(88, 88, 88);"><b>Snom - Connecting your Business</b></span><br>
<span style="font-size: 9pt; color: rgb(88, 88, 88);">Our Social Media:</span><span style="font-size: 9pt;"> <a href="https://www.linkedin.com/company/snom-technology-gmbh/"> LinkedIn </a></span><span style="font-size: 9pt; color: rgb(88, 88, 88);"> I </span><span style="font-size: 9pt;"><a href="https://www.xing.com/pages/snomtechnologygmbh"> XING </a></span><span style="color: rgb(88, 88, 88); font-size: 9pt;"> I </span><span style="font-size: 9pt;"> </span><a href="https://www.facebook.com/snom.VoIP.phones" style="font-size: 9pt;"> Facebook <span style="color: rgb(88, 88, 88); font-size: 9pt;"></span></a><span style="color: rgb(88, 88, 88); font-size: 9pt;"> I </span><span style="font-size: 9pt;">  </span><a href="https://twitter.com/snom" style="font-size: 9pt;"> Twitter </a><span style="font-size: 9pt;"> I </span><a href="https://www.youtube.com/user/snomvoip" style="font-size: 9pt;"> YouTube <span style="color: rgb(88, 88, 88); font-size: 9pt;"></span></a><span style="color: rgb(88, 88, 88); font-size: 9pt;"> I </span><a href="https://www.instagram.com/snom_technology/" style="font-size: 9pt;"> Instagram </a>
<br><span style="color: rgb(88, 88, 88); font-size: 9pt;">Our Service Portals:</span>
<a href="https://academy.snom.com/" style="font-size: 9pt;"> Academy </a><span style="color: rgb(88, 88, 88); font-size: 9pt;"> |</span><a href="https://service.snom.com/" style="font-size: 9pt;"> Service-Hub </a><span style="color: rgb(88, 88, 88); font-size: 9pt;"> | </span><span style="font-size: 9pt;"> </span><a href="https://community.snom.com/" style="font-size: 9pt;"> Community </a><span style="font-size: 9pt;"> </span><span style="color: rgb(88, 88, 88); font-size: 9pt;"> | </span><span style="font-size: 9pt;"> </span><a href="https://partner.snom.com/" style="font-size: 9pt;"> Partner-Portal </a><span style="font-size: 9pt;"> </span><span style="color: rgb(88, 88, 88); font-size: 9pt;">|</span><span style="font-size: 9pt;"> </span><a href="https://helpdesk.snom.com/" style="font-size: 9pt;"> Help-Desk </a><span style="font-size: 9pt;"> </span><span style="color: rgb(88, 88, 88); font-size: 9pt;">|</span><span style="font-size: 9pt;"> </span><a href="https://sraps.snom.com/"><span style="font-size: 9pt;"> SRAPS </span></a><br><br>
<span style="color: rgb(88, 88, 88);"><span style="font-size: 9pt;">Snom Technology GmbH, Aroser Allee 66, 13407 Berlin </span></span><br style="color: rgb(88, 88, 88); font-size: 9pt;"><span style="color: rgb(88, 88, 88); font-size: 9pt;">Registergericht | Court of Registry: Berlin-Charlottenburg, HRB 185429 | </span><br style="color: rgb(88, 88, 88); font-size: 9pt;"><span style="color: rgb(88, 88, 88); font-size: 9pt;">USt-IdNr. | VAT Reg No: DE 185 527 811 | WEEE-Reg.-Nr.: DE 53501255</span><br style="color: rgb(88, 88, 88); font-size: 9pt;"><span style="color: rgb(88, 88, 88);"><span style="font-size: 9pt;">Gesch&#xE4;ftsf&#xFC;hrer | Management Board: Gernot Sagl, Hillson Cheung, Ka Hung Tong, Sze Man LUI
</span></span><br><br>

<hr style="height:1px">
<span style="font-size: 9pt; color: rgb(88, 88, 88);"><b>Disclaimer:</b></span><br style="font-size: 9pt; color: rgb(88, 88, 88);"><span style="font-size: 9pt; color: rgb(88, 88, 88);">This
 email message and the information contained herein is for the sole use 
of the intended recipient(s) and may be privileged, confidential and 
protected from disclosure. If you have received it in error, please 
notify us immediately by return e-mail and then delete this e-mail and 
any attachment from your system and do not copy, forward or use the 
information in this e-mail for any purposes, or disclose to any other 
person. Thank you.</span><br style="font-size: 9pt; color: rgb(88, 88, 88);"><br style="font-size: 9pt; color: rgb(88, 88, 88);"><b style="font-size: 9pt; color: rgb(88, 88, 88);">Haftungsausschluss:</b><br style="font-size: 9pt; color: rgb(88, 88, 88);"><span style="font-size: 9pt; color: rgb(88, 88, 88);">Diese
 E-Mail-Nachricht und die darin enthaltenen Informationen sind f&#xFC;r den 
alleinigen Gebrauch des/der vorgesehenen Empf&#xE4;nger(s) bestimmt und 
k&#xF6;nnen privilegiert, vertraulich und vor Offenlegung gesch&#xFC;tzt sein. 
Sollten Sie sie irrt&#xFC;mlich erhalten haben, benachrichtigen Sie uns bitte
 umgehend per E-Mail und l&#xF6;schen Sie dann diese E-Mail und alle Anh&#xE4;nge 
aus Ihrem System und kopieren Sie die Informationen in dieser E-Mail 
nicht, leiten Sie sie nicht weiter, verwenden Sie sie nicht f&#xFC;r 
irgendwelche Zwecke und geben Sie sie nicht an andere Personen weiter. 
Vielen Dank.<br><br></span><p style="font-size: 9pt;"></p><p style="font-size: 9pt;"></p> <hr style="height:1px"> <span style="font-size: 8pt;"><span style="color: rgb(88, 88, 88);"><span style="font-size: 9pt;">Die Pflichtinformationen nach Art. 12 ff. DSGVO erhalten Sie </span><a href="https://www.snom.com/footer/snom-entdecken/datenschutzhinweise/" title="" style="font-size: 9pt;">hier</a><span style="font-size: 9pt;"> . / Mandatory information pursuant to Article 12 et seq. GDPR can be found </span><a href="https://www.snom.com/en/footer/discover-snom/privacy-policy/" title="" style="font-size: 9pt;">here</a><span style="font-size: 8pt;"> .</span></span></span></body>
</html>