Hey all,

I'm running into trouble with ModemManager, there seems to be no way to disable 
probing for certain devices.
I have found countless threads discussing the lack of this feature, but none of 
them refer to my specific troubles.

We have some CDC devices that implement ACM and ether.
We want to communicate on the ttyACM of these devices, but our data keeps 
getting corrupted.
After many hours we finally found out ModemManager is probing the devices, so 
we added the udev rules:

/etc/udev/rules.d/78-custom-mm-blacklist-internal-modem.rules :

ACTION!="add|change|move", GOTO="custom_mm_blacklist_internal_modem_end"
ATTRS{idVendor}=="[redacted1]" ATTRS{idProduct}=="[redacted2]", 
ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="[redacted1]" ATTRS{idProduct}=="[redacted3]", 
ENV{ID_MM_DEVICE_IGNORE}="1"
LABEL="custom_mm_blacklist_internal_modem_end"

but looking at the logs I see:

ModemManager[3751]: <debug> [filter] (tty/ttyACM0): port filtered: device is 
blocklisted
ModemManager[3751]: <debug> [filter] (net/enxd[redacted4]) port allowed: net 
device
ModemManager[3751]: <debug> [filter] (net/enxd[redacted4]) port allowed: net 
device
ModemManager[3751]: <debug> [filter] (tty/ttyACM0): port allowed: device also 
exports a net interface

So if ModemManager successfully found the device is blocklisted, why does it 
continue to probe the port?
What is the recommended mechanism to disable the probing of these devices?

I would prefer to exclude these specific devices, and not have to resort to 
heavy handed solutions that alter the global rules.

Best Regards,
Menno

Menno van der Graaf
Software Developer

[cid:snom-logo-grey-2022_25389c99-2126-43b6-b3f8-1571393837bf.png]
Snom Technology GmbH
Phone: +49 30 39833 1708
Email: menno.vandergr...@snom.com<mailto:menno.vandergr...@snom.com>
Web: www.snom.com<https://www.snom.com>

With green in mind, please avoid printing this email.

Snom - Connecting your Business
Our Social Media: LinkedIn 
<https://www.linkedin.com/company/snom-technology-gmbh/> I XING 
<https://www.xing.com/pages/snomtechnologygmbh> I Facebook 
<https://www.facebook.com/snom.VoIP.phones> I Twitter 
<https://twitter.com/snom> I YouTube <https://www.youtube.com/user/snomvoip> I 
Instagram <https://www.instagram.com/snom_technology/>
Our Service Portals: Academy <https://academy.snom.com/> | Service-Hub 
<https://service.snom.com/> | Community <https://community.snom.com/> | 
Partner-Portal <https://partner.snom.com/> | Help-Desk 
<https://helpdesk.snom.com/> | SRAPS <https://sraps.snom.com/>

Snom Technology GmbH, Aroser Allee 66, 13407 Berlin
Registergericht | Court of Registry: Berlin-Charlottenburg, HRB 185429 |
USt-IdNr. | VAT Reg No: DE 185 527 811 | WEEE-Reg.-Nr.: DE 53501255
Geschäftsführer | Management Board: Gernot Sagl, Hillson Cheung, Ka Hung Tong, 
Sze Man LUI

________________________________
Disclaimer:
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.

Haftungsausschluss:
Diese E-Mail-Nachricht und die darin enthaltenen Informationen sind für den 
alleinigen Gebrauch des/der vorgesehenen Empfänger(s) bestimmt und können 
privilegiert, vertraulich und vor Offenlegung geschützt sein. Sollten Sie sie 
irrtümlich erhalten haben, benachrichtigen Sie uns bitte umgehend per E-Mail 
und löschen Sie dann diese E-Mail und alle Anhänge aus Ihrem System und 
kopieren Sie die Informationen in dieser E-Mail nicht, leiten Sie sie nicht 
weiter, verwenden Sie sie nicht für irgendwelche Zwecke und geben Sie sie nicht 
an andere Personen weiter. Vielen Dank.


________________________________
Die Pflichtinformationen nach Art. 12 ff. DSGVO erhalten Sie 
hier<https://www.snom.com/footer/snom-entdecken/datenschutzhinweise/> . / 
Mandatory information pursuant to Article 12 et seq. GDPR can be found 
here<https://www.snom.com/en/footer/discover-snom/privacy-policy/> .

Reply via email to