Tag: NMCLI

HSPA: Sierra Wireless MC8705 Linux Install

HSPA: Sierra Wireless MC8705 Linux Install

Required Dependencies

  • 3G Modem
    • Sierra Wireless MC8705
  • Working Sim Card with PIN
  • Bearer Configuration
  • Linux OS
    • Mageia release 6 (Official) for x86_64
  • Linux Package’s
    • Modem Manager
      • modemmanager-1.6.4-2.mga6.x86_64
    • Network Manager
      • networkmanager-1.8.6-1.mga6.x86_64

Install the required packages:

yum install modemmanager*
yum install NetworkManager

Install optional packages:

yum install modem-manager-gui

Start the network manager service:

service networkmanager status

List Modem in Modem Manager:

mmcli --list-modems 

Example Output:

Found 1 modems:
        /org/freedesktop/ModemManager1/Modem/2 [Sierra Wireless, Incorporated] MC8705

Check Modem Status:

mmcli -m 2

Example Output:

/org/freedesktop/ModemManager1/Modem/2 (device id 'a73e17b10025bb088b82c54a853abac6b958b0d7')
  -------------------------
  Hardware |   manufacturer: 'Sierra Wireless, Incorporated'
           |          model: 'MC8705'
           |       revision: 'T3_5_4_1AP R604 CNSZXD00000155 2013/03/15 10:05:05'
           |      supported: 'gsm-umts'
           |        current: 'gsm-umts'
           |   equipment id: '353567041946246'
  -------------------------
  System   |         device: '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1'
           |        drivers: 'sierra, sierra_net'
           |         plugin: 'Sierra (legacy)'
           |   primary port: 'ttyUSB3'
           |          ports: 'ttyUSB3 (at), wwp0s20f0u1i7 (net), ttyUSB4 (at)'
  -------------------------
  Numbers  |           own : 'unknown'
  -------------------------
  Status   |           lock: 'none'
           | unlock retries: 'sim-pin (3), sim-pin2 (3), sim-puk (10), sim-puk2 (10)'
           |          state: 'connected'
           |    power state: 'on'
           |    access tech: 'hsdpa, hsupa'
           | signal quality: '80' (recent)
  -------------------------
  Modes    |      supported: 'allowed: 2g; preferred: none
           |                  allowed: 3g; preferred: none
           |                  allowed: 2g, 3g; preferred: none
           |                  allowed: 2g, 3g; preferred: 2g
           |                  allowed: 2g, 3g; preferred: 3g'
           |        current: 'allowed: 2g, 3g; preferred: none'
  -------------------------
  Bands    |      supported: 'unknown'
           |        current: 'unknown'
  -------------------------
  IP       |      supported: 'ipv4, ipv6'
  -------------------------
  3GPP     |           imei: '353567041946246'
           |  enabled locks: 'none'
           |    operator id: '22601'
           |  operator name: 'Vodafone RO'
           |   subscription: 'unknown'
           |   registration: 'home'
  -------------------------
  SIM      |           path: '/org/freedesktop/ModemManager1/SIM/1'

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

Unlock SIM: (Optional)

mmcli -i <SIM Path Here> --pin="<SIM PIN Here>"

Example:

mmcli -i 0 --pin="1234"

Create Bearer:

mmcli -m 2 --create-bearer="apn=<APN Address Here>,user=<User Name Here>,password=<Password Here>"

Example:

mmcli -m 2 --create-bearer="apn=live.vodafone.com,user=live,password=vodafone"

List Bearer’s:

mmcli -m 2 --list-bearers

Example Output:

Found 1 bearers:

        /org/freedesktop/ModemManager1/Bearer/1

View Bearer Configuration:

 mmcli -b <Bearer ID Here>

Example Output:

Bearer '/org/freedesktop/ModemManager1/Bearer/1'
  -------------------------
  Status             |   connected: 'yes'
                     |   suspended: 'no'
                     |   interface: 'wwp0s20f0u1i7'
                     |  IP timeout: '20'
  -------------------------
  Properties         |         apn: 'live.vodafone.com'
                     |     roaming: 'allowed'
                     |     IP type: 'ipv4'
                     |        user: 'none'
                     |    password: 'none'
                     |      number: '*99#'
                     | Rm protocol: 'unknown'
  -------------------------
  IPv4 configuration |   method: 'dhcp'
                     |  address: 'unknown'
                     |   prefix: '0'
                     |  gateway: 'unknown'
                     |      DNS: none
  -------------------------
  IPv6 configuration |   method: 'unknown'
  -------------------------
  Stats              |          Duration: '3240'
                     |    Bytes received: 'N/A'
                     | Bytes transmitted: 'N/A'

Connect Bearer:

mmcli -m 1 --bearer 1 --connect 

Configure Network Connection:

nmcli connection add type gsm ifname <Modem Interface Here> con-name <Connection Name Here> apn <APN Address Here>
nmcli connection modify <Connection Name Here> autoconnect yes 
nmcli connection up <Connection Name Here>

Example:

user]# nmcli connection add type gsm ifname cdc-wdm0 con-name HSPA apn live.vodafone.com 
Connection 'HPSA' (13d46ec4-78c1-4da3-9f7c-65b3531a2aaf) successfully added.
user]# nmcli connection modify HSPA autoconnect yes
user]# nmcli connection up HSPA
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/16)

LTE: Sierra Wireless MC7710 Linux Install

LTE: Sierra Wireless MC7710 Linux Install

Required Dependencies

  • 4G LTE Modem
  • Working Sim Card with PIN
  • Bearer Configuration
  • Linux OS
    • Mageia release 6 (Official) for x86_64
  • Linux Package’s
    • Modem Manager
      • modemmanager-1.6.4-2.mga6.x86_64
    • Network Manager
      • networkmanager-1.8.6-1.mga6.x86_64

Install the required packages:

yum install modemmanager*
yum install NetworkManager

Install optional packages:

yum install modem-manager-gui

Start the network manager service:

service networkmanager status

List Modem in Modem Manager:

mmcli --list-modems 

Example Output:

Found 1 modems:
        /org/freedesktop/ModemManager1/Modem/1 [Sierra Wireless, Incorporated] MC7710

Check Modem Status:

mmcli -m 1

Example Output:

/org/freedesktop/ModemManager1/Modem/1 (device id '21d19dcdb88f7e128f6e377989785fd71c6ebe4c')
  -------------------------
  Hardware |   manufacturer: 'Sierra Wireless, Incorporated'
           |          model: 'MC7710'
           |       revision: 'SWI9200X_03.05.24.00ap r5792 carmd-en-10527 2013/05/02 13:35:47'
           |      supported: 'gsm-umts
           |                  lte
           |                  gsm-umts, lte'
           |        current: 'gsm-umts, lte'
           |   equipment id: '358178042438756'
  -------------------------
  System   |         device: '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1'
           |        drivers: 'qmi_wwan, qcserial'
           |         plugin: 'Sierra'
           |   primary port: 'cdc-wdm0'
           |          ports: 'ttyUSB0 (qcdm), ttyUSB2 (at), cdc-wdm0 (qmi), wwp0s20f0u1i8 (net)'
  -------------------------
  Numbers  |           own : 'unknown'
  -------------------------
  Status   |           lock: 'sim-pin2'
           | unlock retries: 'sim-pin (3), sim-pin2 (3), sim-puk (10), sim-puk2 (10)'
           |          state: 'connected'
           |    power state: 'on'
           |    access tech: 'unknown'
           | signal quality: '0' (cached)
  -------------------------
  Modes    |      supported: 'allowed: 2g, 3g, 4g; preferred: none'
           |        current: 'allowed: 2g, 3g, 4g; preferred: none'
  -------------------------
  Bands    |      supported: 'dcs, egsm, pcs, u2100, u900, eutran-i, eutran-iii, eutran-vii, eutran-viii, eutran-xx'
           |        current: 'dcs, egsm, pcs, u2100, u900, eutran-i, eutran-iii, eutran-vii, eutran-viii, eutran-xx'
  -------------------------
  IP       |      supported: 'ipv4, ipv6, ipv4v6'
  -------------------------
  3GPP     |           imei: '358178042438756'
           |  enabled locks: 'none'
           |    operator id: '22601'
           |  operator name: 'Vodafone RO'
           |   subscription: 'unknown'                                                                                                                                                                                                       
           |   registration: 'home'                                                                                                                                                                                                          
  -------------------------                                                                                                                                                                                                                  
  SIM      |           path: '/org/freedesktop/ModemManager1/SIM/0'                                                                                                                                                                          
                                                                                                                                                                                                                                             
  -------------------------                                                                                                                                                                                                                  
  Bearers  |          paths: '/org/freedesktop/ModemManager1/Bearer/1'

Unlock SIM: (Optional)

mmcli -i <SIM Path Here> --pin="<SIM PIN Here>"

Example:

mmcli -i 0 --pin="1234"

Create Bearer:

mmcli -m 1 --create-bearer="apn=<APN Address Here>,user=<User Name Here>,password=<Password Here>"

Example:

mmcli -m 1 --create-bearer="apn=live.vodafone.com,user=live,password=vodafone"

List Bearer’s:

mmcli -m 1 --list-bearers

Example Output:

Found 1 bearers:

        /org/freedesktop/ModemManager1/Bearer/1

View Bearer Configuration:

 mmcli -b <Bearer ID Here>

Example Output:

Bearer '/org/freedesktop/ModemManager1/Bearer/1'
  -------------------------
  Status             |   connected: 'yes'
                     |   suspended: 'no'
                     |   interface: 'wwp0s20f0u1i8'
                     |  IP timeout: '20'
  -------------------------
  Properties         |         apn: 'live.vodafone.com'
                     |     roaming: 'allowed'
                     |     IP type: 'ipv4v6'
                     |        user: 'none'
                     |    password: 'none'
                     |      number: '*99#'
                     | Rm protocol: 'unknown'
  -------------------------
  IPv4 configuration |   method: 'dhcp'
                     |  address: '10.106.174.57'
                     |   prefix: '30'
                     |  gateway: '10.106.174.58'
                     |      DNS: '46.97.158.169', '46.97.158.74'
                     |      MTU: '1500'
  -------------------------
  IPv6 configuration |   method: 'unknown'
  -------------------------
  Stats              |          Duration: '56370'
                     |    Bytes received: '77077714'
                     | Bytes transmitted: '331058441'

Connect Bearer:

mmcli -m 1 --bearer 0 --connect 

Configure Network Connection:

nmcli connection add type gsm ifname <Modem Interface Here> con-name <Connection Name Here> apn <APN Address Here>
nmcli connection modify <Connection Name Here> autoconnect yes 
nmcli connection up <Connection Name Here>

Example:

user]# nmcli connection add type gsm ifname cdc-wdm0 con-name LTE apn live.vodafone.com 
Connection 'LTE' (13d46ec4-78c1-4da3-9f7c-65b3531a2aaf) successfully added.
user]# nmcli connection modify LTE autoconnect yes
user]# nmcli connection up LTE
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/16)