cinterion: Question about udev rules

Girish Mahadevan girish_mahadevan at trimble.com
Tue Oct 6 00:44:46 UTC 2020


Hi,

I'm working with a cinterion, PLS62W module and using PPP. One of the
issues I run into is that in certain scenarios, like sudden loss of
registration(due to poor signal) where MM disconnects the bearer, the
primary data port (and at port) ttyACM0 becomes unusable.
I think somehow MM and the pppd were trying to use the port at the
same time, as a result I end up getting an object removed signal
because MM can't talk to the modem anymore and I end up having to
power cycle the modem.

I was going to add a line to call ppp_off as part of the ppp script.
disconnect /etc/ppp/scripts/ppp_off.sh

In addition another suggestion given to me was to declare ttyACM1 as
the primary and ttyACM0 as the PPP port

ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="005b",
ENV{.MM_USBIFNUM}=="00", ENV{ID_MM_PORT_TYPE_AT_PPP}="1"
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="005b",
ENV{.MM_USBIFNUM}=="02", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1"
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="005b",
ENV{.MM_USBIFNUM}=="04", ENV{ID_MM_PORT_IGNORE}="1"
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="005b",
ENV{.MM_USBIFNUM}=="06", ENV{ID_MM_PORT_IGNORE}="1"
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="005b",
ENV{.MM_USBIFNUM}=="08", ENV{ID_MM_PORT_IGNORE}="1"
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="005b", SUBSYSTEM=="net",
ENV{ID_MM_PORT_IGNORE}="1"
ATTRS{idVendor}=="1e2d", ATTRS{idProduct}=="005b",
SUBSYSTEM=="usbmisc", ENV{ID_MM_PORT_IGNORE}="1"

Any negative impact because of this ? I ran basic sanity and things
seem ok (was still getting periodic connection checks/signal
status/extended signal reports).
But since I hadn't seen too many plugins use this thought I'd check
first before making that change.

Best Regards
Girish

-- 
--
Girish Mahadevan
Firmware Engineer
10368 Westmoor Drive | Westminster, CO 80021


More information about the ModemManager-devel mailing list