<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font color="#663300">I have a embedded linux system, which has been
      used with a Quectel UC20 device without any issues, but moving to
      the Quectel EC21 is proving problematic.<br>
      <br>
      Setup is:<br>
    </font>
    <blockquote><font color="#000099"><tt>Zynq 7000 ARM SOC<br>
          EC21 dev-kit (connected via USB)<br>
        </tt><tt>Analog Devices linux kernel 4.4 -- monkey patched for
          EC21 using:<br>
        </tt></font>
      <blockquote><font color="#000099"><tt><a class="moz-txt-link-freetext" href="https://www.quectel.com/UploadImage/Downlad/Quectel_WCDMA&LTE_Linux_USB_Driver_User_Guide_V1.8.pdf">https://www.quectel.com/UploadImage/Downlad/Quectel_WCDMA&LTE_Linux_USB_Driver_User_Guide_V1.8.pdf</a></tt><br>
        </font></blockquote>
      <font color="#663300"><font color="#000099"><tt>Debian Jessie
            (8.10)</tt><tt><br>
          </tt><tt>ii  modemmanager     1.4.0-1     armhf</tt><tt><br>
          </tt><tt>ii  network-manager  0.9.10.0-7  armhf</tt></font><tt><br>
        </tt></font></blockquote>
    <font color="#663300"><br>
      After the patches were applied, the device is recognise on the USB
      bus and MM also recongises the modem.  However I'm getting a
      failed status of SIM not found ("sim-missing"), but the SIM is
      present the dev-kit is known to work using a Windows box (i.e.
      gets an IP address from the 4G service).<br>
      <br>
      In linux, after power up, MM shows the "sim-missing" failure
      reason.<br>
      <br>
      Interestingly, after I press the reset button on the dev-kit, MM
      recognises a new modem and shows a "registered" status.<br>
      <br>
    </font>
    <div class="moz-text-html" lang="x-unicode"><font color="#663300">I
        system now recognises the modem (/dev/cdc-wdm0 is registered as
        well as some /dev/ttyUSB* devices).<br>
        <br>
        However, nmcli shows the device as a ttyUSB instead of cdc-wdm0
        !!  Looking at mmcli outupt, it seems the "primary port" changes
        from "cdc-wdm0" to "ttyUSB8".<br>
        <br>
        Is this normal?  Can I force it to only use cdc-wdm?<br>
        <br>
        Why does the SIM get recognised after pressing the reset button
        and using the ttyUSB interface, and not recongised after powerup
        and using the cdc-wdm0 interface?<br>
        <br>
        I also tried connecting the dev-kit to a Debian 9 VM, but I
        couldn't get MM to recognise it at all.  The ttyUSB and cdc-wdm0
        interfaces were present, but "mmcli -L" shows nothing ("No
        modems found")<br>
        <br>
        Could this be related or is it a different problem altogether?<br>
        <br>
        How can I get MM to recognise the modem in the Debian 9 setup?<br>
      </font>
      <blockquote><font color="#000099"><tt>linux k</tt><tt>ernel    
            4.9.65-3</tt><tt><br>
          </tt><tt>modemmanager     1.6.4-</tt><tt>1</tt><tt><br>
          </tt><tt>network-manager  1.6.2-3</tt></font><font
          color="#663300"><br>
          <br>
        </font></blockquote>
      <font color="#663300">Any help greatly appreciated :)<br>
        <br>
        Brendan.<br>
      </font> <font color="#663300"><br>
      </font>
      <hr size="2" width="100%"><font color="#663300"><br>
        <u><b>Output of ModemManager CLI (mmcli) after power up (show</b></u><u><b>s
            "sim-missing")</b></u></font><br>
      <blockquote><font color="#000099"><tt># mmcli -m 6</tt><br>
          <tt> </tt><br>
          <tt> </tt><tt>/org/freedesktop/ModemManager1/Modem/6 (device
            id 'cf405e3ef544de99803c75ef99bcee51b6560e65')</tt><br>
          <tt> </tt><tt>  -------------------------</tt><br>
          <tt> </tt><tt>  Hardware |   manufacturer: 'QUALCOMM
            INCORPORATED'</tt><br>
          <tt> </tt><tt>           |          model: '0'</tt><br>
          <tt> </tt><tt>           |       revision:
            'EC21AUTFAR02A03M4G  1  [Mar 21 2016 11:00:00]'</tt><br>
          <tt> </tt><tt>           |      supported: 'gsm-umts</tt><br>
          <tt> </tt><tt>           |                  lte</tt><br>
          <tt> </tt><tt>           |                  gsm-umts, lte'</tt><br>
          <tt> </tt><tt>           |        current: 'lte'</tt><br>
          <tt> </tt><tt>           |   equipment id: '864430010001091'</tt><br>
          <tt> </tt><tt>  -------------------------</tt><br>
          <tt> </tt><tt>  System   |         device:
            '/sys/devices/soc0/amba/e0002000.usb/ci_hdrc.0/usb1/1-1'</tt><br>
          <tt> </tt><tt>           |        drivers: 'option1,
            qmi_wwan'</tt><br>
          <tt> </tt><tt>           |         plugin: 'Generic'</tt><br>
          <tt> </tt><tt>           |   primary port: 'cdc-wdm0'</tt><br>
          <tt> </tt><tt>           |          ports: 'ttyUSB8 (at),
            ttyUSB9 (at), cdc-wdm0 (qmi), ttyUSB4 (qcdm), wwan0 (net)'</tt><br>
          <tt> </tt><tt>  -------------------------</tt><br>
          <tt> </tt><tt>  Numbers  |           own : 'unknown'</tt><br>
          <tt> </tt><tt>  -------------------------</tt><br>
          <tt> </tt><tt>  Status   |           lock: 'unknown'</tt><br>
          <tt> </tt><tt>           | unlock retries: 'unknown'</tt><br>
          <b><tt> </tt><font color="#ff0000"><tt>           |         
                state: 'failed'</tt></font></b><font color="#ff0000"><br>
            <b><tt> </tt><tt>           |  failed reason: 'sim-missing'</tt></b></font><br>
          <tt> </tt><tt>           |    power state: 'unknown'</tt><br>
          <tt> </tt><tt>           |    access tech: 'unknown'</tt><br>
          <tt> </tt><tt>           | signal quality: '0' (cached)</tt><br>
          <tt> </tt><tt>  -------------------------</tt><br>
          <tt> </tt><tt>  Modes    |      supported: 'allowed: 4g;
            preferred: none'</tt><br>
          <tt> </tt><tt>           |        current: 'allowed: any;
            preferred: none'</tt><br>
          <tt> </tt><tt>  -------------------------</tt><br>
          <tt> </tt><tt>  Bands    |      supported: 'unknown'</tt><br>
          <tt> </tt><tt>           |        current: 'unknown'</tt><br>
          <tt> </tt><tt>  -------------------------</tt><br>
          <tt> </tt><tt>  IP       |      supported: 'ipv4, ipv6,
            ipv4v6'</tt><br>
          <tt> </tt><tt>  -------------------------</tt><br>
          <tt> </tt><tt>  SIM      |           path: 'none'</tt><br>
          <tt> </tt><br>
          <tt> </tt><tt>  -------------------------</tt><br>
          <tt> </tt><tt>  Bearers  |          paths: 'none'</tt></font><br>
      </blockquote>
      <font color="#663300"><u><b><br>
            Output of ModemManager CLI (mmcli) after pressing reset
            button (show</b></u><u><b>s "sim-missing")</b></u></font><br>
      <blockquote><font color="#000099"><tt># mmcli -m 7</tt><tt><br>
          </tt><tt><br>
          </tt><tt>/org/freedesktop/ModemManager1/Modem/7 (device id
            '6b3daac3d42eca119fcfa4462b377af7398551d4')</tt><tt><br>
          </tt><tt>  -------------------------</tt><tt><br>
          </tt><tt>  Hardware |   manufacturer: 'Quectel'</tt><tt><br>
          </tt><tt>           |          model: 'EC21'</tt><tt><br>
          </tt><tt>           |       revision: 'EC21AUTFAR02A03M4G'</tt><tt><br>
          </tt><tt>           |      supported: 'lte'</tt><tt><br>
          </tt><tt>           |        current: 'lte'</tt><tt><br>
          </tt><tt>           |   equipment id: '864430010001091'</tt><tt><br>
          </tt><tt>  -------------------------</tt><tt><br>
          </tt><tt>  System   |         device:
            '/sys/devices/soc0/amba/e0002000.usb/ci_hdrc.0/usb1/1-1'</tt><tt><br>
          </tt><tt>           |        drivers: 'qmi_wwan, option1'</tt><tt><br>
          </tt><tt>           |         plugin: 'Generic'</tt><tt><br>
          </tt><tt>           |   primary port: 'ttyUSB8'</tt><tt><br>
          </tt><tt>           |          ports: 'ttyUSB8 (at), ttyUSB9
            (at), ttyUSB4 (qcdm), wwan0 (net)'</tt><tt><br>
          </tt><tt>  -------------------------</tt><tt><br>
          </tt><tt>  Numbers  |           own : 'unknown'</tt><tt><br>
          </tt><tt>  -------------------------</tt><tt><br>
          </tt><tt>  Status   |           lock: 'none'</tt><tt><br>
          </tt><tt>           | unlock retries: 'unknown'</tt><tt><br>
            <font color="#006600"><b> </b></font></tt><font
            color="#006600"><b><tt>           |          state:
                'registered'</tt></b></font><tt><br>
          </tt><tt>           |    power state: 'on'</tt><tt><br>
          </tt><tt>           |    access tech: 'lte'</tt><tt><br>
          </tt><tt>           | signal quality: '100' (recent)</tt><tt><br>
          </tt><tt>  -------------------------</tt><tt><br>
          </tt><tt>  Modes    |      supported: 'allowed: 2g, 3g, 4g;
            preferred: none'</tt><tt><br>
          </tt><tt>           |        current: 'allowed: 2g, 3g, 4g;
            preferred: none'</tt><tt><br>
          </tt><tt>  -------------------------</tt><tt><br>
          </tt><tt>  Bands    |      supported: 'unknown'</tt><tt><br>
          </tt><tt>           |        current: 'unknown'</tt><tt><br>
          </tt><tt>  -------------------------</tt><tt><br>
          </tt><tt>  IP       |      supported: 'none'</tt><tt><br>
          </tt><tt>  -------------------------</tt><tt><br>
          </tt><tt>  3GPP     |           imei: '864430010001091'</tt><tt><br>
          </tt><tt>           |  enabled locks: 'none'</tt><tt><br>
          </tt><tt>           |    operator id: '50501'</tt><tt><br>
          </tt><tt>           |  operator name: 'Telstra Mobile Telstra'</tt><tt><br>
          </tt><tt>           |   subscription: 'unknown'</tt><tt><br>
          </tt><tt>           |   registration: 'home'</tt><tt><br>
          </tt><tt>  -------------------------</tt><tt><br>
          </tt><tt>  SIM      |           path:
            '/org/freedesktop/ModemManager1/SIM/2'</tt><tt><br>
          </tt><tt><br>
          </tt><tt>  -------------------------</tt><tt><br>
          </tt><tt>  Bearers  |          paths: 'none'</tt></font><tt><br>
        </tt></blockquote>
      <br>
      <font color="#663300">Regards,<br>
        Brendan<br>
      </font><font color="#999900"><font size="-2"></font></font> </div>
  </body>
</html>