Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning

The exact command to create a new connection depends on the 3G card model used and the sim card provider. Different cards will use different interfaces (ifname) and different sim providers will use different apn, user an password.

To check the port to be used execute the command 'sudo mmcli -m 0' and check the System / Primary Port

Code Block
languagebash
root@Nexcom-Master:~# mmcli -m 0

/org/freedesktop/ModemManager1/Modem/0 (device id '09bb10c02c0912032e41d6402c4178eac5ee9594')
  -------------------------
  Hardware |   manufacturer: 'QUALCOMM INCORPORATED'
           |          model: '0'
           |       revision: 'UC20GQBR03A07E1G  1  [2014/05/05 9:00:00]'
           |      supported: 'gsm-umts'
           |        current: 'gsm-umts'
           |   equipment id: '861075021729728'
  -------------------------
  System   |         device: '/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.2'
           |        drivers: 'qmi_wwan, option1'
           |         plugin: 'Generic'
           |   primary port: 'cdc-wdm0'
           |          ports: 'wwp0s29u1u2i4 (net), ttyUSB0 (qcdm), ttyUSB2 (at), ttyUSB3 (at), cdc-wdm0 (qmi)'



  1. Create a new connection

    1. Sierra Wireless MC8090

      Code Block
      languagebash
      root@Nexcom-Master:~# nmcli con add type gsm ifname ttyUSB3 con-name TELEKOM_GSMDEMO apn internet.t-mobile user t-mobile password tm
      Connection 'TELEKOM_GSMDEMO' (e2321f56-3d77-46c0-8e52-a7dcda87b0d8) successfully added.


    2. Quectel UC20GB

      Code Block
      languagebash
      root@Nexcom-Master:~# nmcli con add type gsm ifname cdc-wdm0 con-name TELEKOM_QUACTEL apn internet.t-mobile user t-mobile password tm
      Connection 'TELEKOM_QUACTEL' (2f98d139-2442-4f51-b554-b13da3216a3c) successfully added.


      Quectel UC20GB


  2. Activate the connection

    Code Block
    languagebash
    admin@localhost:~$ nmcli con up TELEKOM_GSMDEMO
    Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6)


...