Use a specific device ?

Dan Williams dcbw at redhat.com
Tue May 26 08:59:46 PDT 2015


On Tue, 2015-05-26 at 16:37 +0200, Aleksander Morgado wrote:
> On Tue, May 26, 2015 at 12:19 AM, Jean-Christian de Rivaz <jc at eclis.ch> wrote:
> > I have a system where the modem have multiple /dev/ttyACMx ports where x is
> > not constant because of the dynamic nature of others serial devices.
> > ModemManager always detect the rights ttyACMx of the modem but
> > NetworkManager only allow to configure a connection for a fixed device. I
> > tried to solve this problem by adding udev rules to fix the device name of
> > the modem, but it's only possible to add a fixed symbolic link. ModemManager
> > seem to ignore the fixed symbolic link and only use the dynamic ttyACMx.
> >
> > Is there a way to force ModemManager to only use a specific symbolic link to
> > control the modem, so that NetworkManger can be configured using a fix
> > device name ?
> 
> There's no current way to do that; instead, the NM settings should be
> bound to either the SIM ICCID (if SIM available) or otherwise to the
> Equipment ID (built from e.g. the IMEI).

NM 1.0+ has the ability to match on interface name now, so you can tie
an NM connection to a specific ModemManager "control" port.  But yes, NM
should (but does not currently) support locking based on DeviceID and
SimID.

Dan



More information about the ModemManager-devel mailing list