<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Unfortunately there doesn't seem to be a way for to write a udev
      rule against a pseudo terminal...  <br>
    </p>
    <div class="moz-cite-prefix">On 3/8/24 11:31, Aleksander Morgado
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAFgFrUiHnmcJ7oGCLGinR6npmfJ6mxH+mycrn6afQ=kga6Kvw@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">Hey Garfield,

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">I have a situation where I have a ublox modem, the LISA u200, wired up using its SPI bus as the communication channel. On the DTE side is a raspberry pi SBC with a custom spi platform driver that exposes a tty device for modem. This driver is not capable of multiplexing and exposing multiple virtual channels.

To overcome this I have a user mode daemon that performs this function by connection to the single tty port exposed by the spi driver and in turn creating 5 pseudo tty's (/dev/ptty1 -> /dev/ptty5) to interact with. These are actually links to /dev/pts/1 to /dev/pts/5.

I want the ublox plugin to manage this device but there seems to be no way to filter/grab those ports.

</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
You should be able to add the ID_MM_PHYSDEV_UID udev tags for all
those pseudo TTYs, so that ModemManager can "bind" all those ports
together to the same modem object, see
<a class="moz-txt-link-freetext" href="https://www.freedesktop.org/software/ModemManager/doc/latest/ModemManager/ModemManager-Common-udev-tags.html#ID-MM-PHYSDEV-UID:CAPS">https://www.freedesktop.org/software/ModemManager/doc/latest/ModemManager/ModemManager-Common-udev-tags.html#ID-MM-PHYSDEV-UID:CAPS</a>

</pre>
    </blockquote>
  </body>
</html>