<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#663300" bgcolor="#FFFFFF">
    On 29/4/19 2:57 pm, Lars Melin wrote:<br>
    <blockquote type="cite"
      cite="mid:7795e593-39cf-21b5-6818-54f1c1d3cc1e@gmail.com">On
      4/29/2019 11:12, Brendan Simon (eTRIX) wrote:
      <br>
      <blockquote type="cite">I can't get the u-blox LARA R2 device
        working with ModemManager 1.10.
        <br>
        <br>
        I've tried a Debian Buster (aka Testing) distro that uses
        ModemManager 1.10 (and kernel 4.19).  The serial devices are
        present but `mmcli -L` does not show any modems.
        <br>
        <br>
        I've also tried the latest Ubuntu 19.04 Disco release (VM image
        from osboxes.org).  It also has ModemManager 1.10 (and kernel
        5.0.0) and it also does not work.  i.e. the serial devices are
        present but `mmcli -L` does not show any modems.
        <br>
        <br>
        The only system that I've got to work is Ubuntu 18.10 Cosmic,
        which uses ModemManager 1.8.2 (and kernel 4.18.0).
        <br>
        <br>
        My guess is that something is broken in ModemManager 1.10 (or
        some related package or dependency).  Can someone confirm that
        please. Is there anything I can do to test or provide debug info
        for this. I need to get this working with Debian Buster and MM
        1.10.
        <br>
        <br>
        Thanks,
        <br>
        Brendan.
        <br>
      </blockquote>
      <br>
      Check your dmesg log for creation of ttyACM devices right after
      the LARA R2 is found and probed on the USB bus, you should get 5
      of them.
      <br>
      <br>
      If not then check that cdc_acm is loaded (lsmod) it may have been
      compiled into the kernel in the working system but may have been
      compiled as a module in the non-working systems in which case you
      have to manually load it with "modprobe cdc_acm".
      <br>
      <br>
      When you have the ttyACM devices and it still doesn't work then is
      the time to check what modemmanager does, the kernel or
      networkmanager is the least likely to be the cause of your
      problem.
    </blockquote>
    <br>
    Thanks Lars.<br>
    <br>
    On Ubuntu 18.10 Cosmic (MM 1.8.2) I get the following.<br>
    <br>
    <blockquote><tt># ls /dev/ttyACM*</tt><tt><br>
      </tt><tt>/dev/ttyACM0  /dev/ttyACM2  /dev/ttyACM4</tt><tt><br>
      </tt><tt>/dev/ttyACM1  /dev/ttyACM3  /dev/ttyACM5</tt><tt><br>
      </tt><tt><br>
      </tt><tt># lsmod | grep acm</tt><tt><br>
      </tt><tt>cdc_acm                32768  4</tt><tt><br>
      </tt><tt><br>
      </tt><tt># mmcli -L</tt><tt><br>
      </tt><tt><br>
      </tt><tt>Found 1 modems:</tt><tt><br>
      </tt><tt>    /org/freedesktop/ModemManager1/Modem/1 [u-blox]
        LARA-R280</tt><tt><br>
      </tt><tt><br>
      </tt><tt># nmcli d</tt><tt><br>
      </tt><tt>DEVICE   TYPE      STATE         CONNECTION         </tt><tt><br>
      </tt><tt>enp0s3   ethernet  connected     Wired connection 1 </tt><tt><br>
      </tt><tt>ttyACM0  gsm       disconnected  --                 </tt><tt><br>
      </tt><tt>lo       loopback  unmanaged     --                 </tt><tt><br>
      </tt><tt><br>
      </tt><tt># nmcli d connect ttyACM0</tt><tt><br>
      </tt><tt>Device 'ttyACM0' successfully activated with
        'f1ec8522-2a76-4e31-938d-87101f2aeb27'.</tt><tt><br>
      </tt><tt><br>
      </tt><tt># lsmod | grep acm</tt><tt><br>
      </tt><tt>cdc_acm                32768  5</tt><br>
    </blockquote>
    <br>
    On Ubuntu 19.04 Cosmic (MM 1.10.1) I get the following.<br>
    <br>
    <blockquote><tt># ls -l /dev/ttyACM*</tt><tt><br>
      </tt><tt>crw-rw---- 1 root dialout 166, 0 Apr 29 03:02
        /dev/ttyACM0</tt><tt><br>
      </tt><tt>crw-rw---- 1 root dialout 166, 1 Apr 29 03:02
        /dev/ttyACM1</tt><tt><br>
      </tt><tt>crw-rw---- 1 root dialout 166, 2 Apr 29 03:02
        /dev/ttyACM2</tt><tt><br>
      </tt><tt>crw-rw---- 1 root dialout 166, 3 Apr 29 03:02
        /dev/ttyACM3</tt><tt><br>
      </tt><tt>crw-rw---- 1 root dialout 166, 4 Apr 29 03:02
        /dev/ttyACM4</tt><tt><br>
      </tt><tt>crw-rw---- 1 root dialout 166, 5 Apr 29 03:02
        /dev/ttyACM5</tt><tt><br>
      </tt><br>
      <tt># lsmod | grep acm</tt><tt><br>
      </tt><tt>cdc_acm                32768  0</tt><tt><br>
      </tt><br>
      <tt># mmcli -L</tt><tt><br>
      </tt><tt>No modems were found<br>
        <br>
        # dmesg | grep acm<br>
        [  557.815621] cdc_acm 1-1:1.0: ttyACM0: USB ACM device<br>
        [  557.823421] cdc_acm 1-1:1.2: ttyACM1: USB ACM device<br>
        [  557.831399] cdc_acm 1-1:1.4: ttyACM2: USB ACM device<br>
        [  557.840190] cdc_acm 1-1:1.6: ttyACM3: USB ACM device<br>
        [  557.848698] cdc_acm 1-1:1.8: ttyACM4: USB ACM device<br>
        [  557.856181] cdc_acm 1-1:1.10: ttyACM5: USB ACM device<br>
        <br>
        <br>
        # journalctl | grep -i modemmanager<br>
        Apr 29 03:09:10 osboxes ModemManager[631]: <info>  [device
        /sys/devices/pci0000:00/0000:00:0b.0/usb1/1-1] creating modem
        with plugin 'u-blox' and '6' ports<br>
        Apr 29 03:09:10 osboxes ModemManager[631]: <info>  Modem
        for device '/sys/devices/pci0000:00/0000:00:0b.0/usb1/1-1'
        successfully created<br>
        Apr 29 03:09:16 osboxes ModemManager[631]: <warn> 
        (tty/ttyACM1) at port timed out 2 consecutive times<br>
        Apr 29 03:09:19 osboxes ModemManager[631]: <warn> 
        (tty/ttyACM1) at port timed out 3 consecutive times<br>
        Apr 29 03:09:22 osboxes ModemManager[631]: <warn> 
        (tty/ttyACM1) at port timed out 4 consecutive times<br>
        Apr 29 03:09:25 osboxes ModemManager[631]: <warn> 
        (tty/ttyACM1) at port timed out 5 consecutive times<br>
        Apr 29 03:09:28 osboxes ModemManager[631]: <warn> 
        (tty/ttyACM1) at port timed out 6 consecutive times<br>
        Apr 29 03:09:31 osboxes ModemManager[631]: <warn> 
        (tty/ttyACM1) at port timed out 7 consecutive times<br>
        Apr 29 03:09:33 osboxes ModemManager[631]: <warn> 
        (tty/ttyACM1) at port timed out 8 consecutive times<br>
        Apr 29 03:09:34 osboxes ModemManager[631]: <warn> 
        (tty/ttyACM1) at port timed out 9 consecutive times<br>
        Apr 29 03:09:35 osboxes ModemManager[631]: <error>
        (tty/ttyACM1) at port timed out 10 consecutive times, marking
        modem '(null)' as invalid<br>
        Apr 29 03:09:35 osboxes ModemManager[631]: <warn>  Modem
        couldn't be initialized: couldn't load current capabilities: AT
        sequence was cancelled<br>
        Apr 29 03:09:35 osboxes ModemManager[631]: <warn> 
        couldn't initialize the modem: 'Operation was cancelled'<br>
        <br>
      </tt></blockquote>
    To me everything looks ok from the kernel perspective.  I figure
    ModemManager is the more likely culprit.<br>
    <br>
    Brendan.<br>
    <br>
  </body>
</html>