[RFC] Initial support for the new MC74XX modules

Bjørn Mork bjorn at mork.no
Sat Jan 2 14:39:39 PST 2016


Aleksander Morgado <aleksander at aleksander.es> writes:

> Hey,
>
> The new Sierra MC74XX modules are very very different to all previous
> Sierra modules. Among other things, they always work in raw-ip mode,
> and they also don't implement "DMS UIM" commands.
>
> This series of patches introduces some initial support for these
> modules, by trying to modify the expected link layer protocol in the
> kernel to the one reported via WDA (if any), and also by implementing
> the "unlock required" check using "UIM Get Card Status" instead of
> "DMS UIM Get PIN status". There are multiple other operations based on
> "DMS UIM" that should be updated to use "UIM" service operations, but
> this one at least allows using the module when the SIM card has PIN
> request disabled.
>
> There's also another patch which ends up requesting Static IP
> configuration on the newly connected Bearer if raw-ip is used; for now
> to avoid needing a DHCP client with raw-ip support.
>
> Comments welcome!

Looking good to me.  This does of course also work with PIN1 enabled,
if it is verified before starting MM (e.g. by AT+CPIN).  


bjorn at nemi:~$ mmcli -m 0 

/org/freedesktop/ModemManager1/Modem/0 (device id '096b48f54b3ad0d4c73c1306ac8765a8fd9ad2ce')
  -------------------------
  Hardware |   manufacturer: 'Sierra Wireless, Incorporated'
           |          model: 'MC7455'
           |       revision: 'SWI9X30C_01.09.06.00 r4004 CARMD-EV-FRMWR2 2015/09/01 20:44:43'
           |      supported: 'gsm-umts
           |                  lte
           |                  gsm-umts, lte'
           |        current: 'gsm-umts, lte'
           |   equipment id: '359072060005556'
  -------------------------
  System   |         device: '/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-4'
           |        drivers: 'qcserial, qmi_wwan'
           |         plugin: 'Sierra'
           |   primary port: 'cdc-wdm0'
           |          ports: 'ttyUSB0 (qcdm), ttyUSB2 (at), cdc-wdm0 (qmi), cdc-wdm1 (qmi), wwan0 (net), wwan1 (net)'
  -------------------------
  Numbers  |           own : 'unknown'
  -------------------------
  Status   |           lock: 'sim-pin2'
           | unlock retries: 'unknown'
           |          state: 'connected'
           |    power state: 'on'
           |    access tech: 'lte'
           | signal quality: '71' (recent)
  -------------------------
  Modes    |      supported: 'allowed: 2g, 3g, 4g; preferred: none'
           |        current: 'allowed: 2g, 3g, 4g; preferred: none'
  -------------------------
  Bands    |      supported: 'cdma-bc15-aws, u2100, u1800, u1900, u17iv, u850, u900, eutran-i, eutran-ii, eutran-iii, eutran-iv, eutran-v, eutran-vii, eutran-viii, eutran-xii, eutran-xiii, eutran-xx, eutran-xxv, eutran-xli'
           |        current: 'cdma-bc15-aws, u2100, u1800, u1900, u17iv, u850, u900, eutran-i, eutran-ii, eutran-iii, eutran-iv, eutran-v, eutran-vii, eutran-viii, eutran-xii, eutran-xiii, eutran-xx, eutran-xxv, eutran-xli'
  -------------------------
  IP       |      supported: 'ipv4, ipv6, ipv4v6'
  -------------------------
  3GPP     |           imei: '359072060005556'
           |  enabled locks: 'none'
           |    operator id: '24201'
           |  operator name: 'TELENOR'
           |   subscription: 'unknown'
           |   registration: 'home'
  -------------------------
  SIM      |           path: '/org/freedesktop/ModemManager1/SIM/0'

  -------------------------
  Bearers  |          paths: '/org/freedesktop/ModemManager1/Bearer/0'


bjorn at nemi:~$ mmcli -b 0
Bearer '/org/freedesktop/ModemManager1/Bearer/0'
  -------------------------
  Status             |   connected: 'yes'
                     |   suspended: 'no'
                     |   interface: 'wwan0'
                     |  IP timeout: '20'
  -------------------------
  Properties         |         apn: 'telenor.smart'
                     |     roaming: 'allowed'
                     |     IP type: 'ipv4v6'
                     |        user: 'none'
                     |    password: 'none'
                     |      number: 'none'
                     | Rm protocol: 'unknown'
  -------------------------
  IPv4 configuration |   method: 'static'
                     |  address: '10.140.238.5'
                     |   prefix: '30'
                     |  gateway: '10.140.238.6'
                     |      DNS: '193.213.112.4', '130.67.15.198'
                     |      MTU: '1500'
  -------------------------
  IPv6 configuration |   method: 'static'
                     |  address: '2a02:2121:89:d271:449e:ddb0:b67d:8df0'
                     |   prefix: '64'
                     |  gateway: '2a02:2121:89:d271:ad94:af45:b837:b93e'
                     |      DNS: '2001:4600:4:fff::52', '2001:4600:4:1fff::52'
                     |      MTU: '1500'
  -------------------------
  Stats              |          Duration: '449'
                     |    Bytes received: '78993957'
                     | Bytes transmitted: '142234208'


Bjørn


More information about the ModemManager-devel mailing list