How to do mobile broadband from command line

Eric Johnson eric at minutekey.com
Thu Mar 13 10:28:44 PDT 2014


Hi,
I'm working on a kiosk system that has no GUI, and hope to use mmcli to get
my mobile broadband modems working.  Happily, according to a recent thread,
that can be done: "I can now initialise and obtain an IP connection
"woohooo"" fromhttp://lists.freedesktop.org/archives/modemmanager-devel/2013-December/000682.html

I am able to enable, connect, and list a bearer with mmcli (great job to
the MM team, by the way, for the hard work that makes that possible).

When I run wvdialconf, to make the PPP connection the bearer info says is
necessary, no modem is found.  I'm initially trying to connect to Sprint's
network in the US, with mmcli version 1.0.0, on openSUSE 13.1, and to
Verizon down the road.

The commands I ran are included below, I erred on the side of more info.
Thanks,
Eric


[eric at linux-vn1z ~]$ mmcli -V

mmcli 1.0.0
Copyright (2011) Aleksander Morgado
License GPLv2+: GNU GPL version 2 or later <
http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

[eric at linux-vn1z ~]$ mmcli -m 0

/org/freedesktop/ModemManager1/Modem/0 (device id
'1b626896f91de15cc1d4466754f5ca4f2c65f909')
  -------------------------
  Hardware |   manufacturer: 'Sierra Wireless, Inc.'
           |          model: 'AC250U Rev 1.0 (3)'
           |       revision: 'p3012801,60764 [Apr 20 2010 16:48:57]
           |                  QCOM: SWI6085_FP.01.28
           |                  BOOT: SWI6085_PP.01.28.01 2010/04/20 19:26:34
           |                  APPL: SWI6085_PP.01.28.01 2010/04/20 19:26:34
           |                  USBD: SWI6085_GENERIC.00.01
           |                  USB VID: 0x1199 PID: 0x0301'
           |      supported: 'cdma-evdo'
           |        current: 'cdma-evdo'
           |   equipment id: '60ACB38B'
  -------------------------
  System   |         device:
'/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.2'
           |        drivers: 'sierra'
           |         plugin: 'Sierra'
           |   primary port: 'ttyUSB0'
           |          ports: 'ttyUSB0 (at), ttyUSB3 (qcdm)'
  -------------------------
  Numbers  |           own : '3033568131'
  -------------------------
  Status   |           lock: 'none'
           | unlock retries: 'unknown'
           |          state: 'disabled'
           |    power state: 'on'
           |    access tech: 'unknown'
           | signal quality: '0' (cached)
  -------------------------
  Modes    |      supported: 'allowed: 2g, 3g; preferred: none'
           |        current: 'allowed: 2g, 3g; preferred: none'
  -------------------------
  Bands    |      supported: 'unknown'
           |        current: 'unknown'
  -------------------------
  IP       |      supported: 'ipv4'
  -------------------------
  CDMA     |           meid: 'unknown'
           |            esn: '60ACB38B'
           |            sid: 'unknown'
           |            nid: 'unknown'
           |   registration: CDMA1x 'unknown'
           |                 EV-DO  'unknown'
           |     activation: 'unknown'
  -------------------------
  SIM      |           path: 'none'

[eric at linux-vn1z ~]$ mmcli -m 0 -e
successfully enabled the modem
[eric at linux-vn1z ~]$ mmcli -m 0

/org/freedesktop/ModemManager1/Modem/0 (device id
'1b626896f91de15cc1d4466754f5ca4f2c65f909')
  -------------------------
  Hardware |   manufacturer: 'Sierra Wireless, Inc.'
           |          model: 'AC250U Rev 1.0 (3)'
           |       revision: 'p3012801,60764 [Apr 20 2010 16:48:57]
           |                  QCOM: SWI6085_FP.01.28
           |                  BOOT: SWI6085_PP.01.28.01 2010/04/20 19:26:34
           |                  APPL: SWI6085_PP.01.28.01 2010/04/20 19:26:34
           |                  USBD: SWI6085_GENERIC.00.01
           |                  USB VID: 0x1199 PID: 0x0301'
           |      supported: 'cdma-evdo'
           |        current: 'cdma-evdo'
           |   equipment id: '60ACB38B'
  -------------------------
  System   |         device:
'/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.2'
           |        drivers: 'sierra'
           |         plugin: 'Sierra'
           |   primary port: 'ttyUSB0'
           |          ports: 'ttyUSB0 (at), ttyUSB3 (qcdm)'
  -------------------------
  Numbers  |           own : '3033568131'
  -------------------------
  Status   |           lock: 'none'
           | unlock retries: 'unknown'
           |          state: 'registered'
           |    power state: 'on'
           |    access tech: 'evdoa'
           | signal quality: '38' (recent)
  -------------------------
  Modes    |      supported: 'allowed: 2g, 3g; preferred: none'
           |        current: 'allowed: 2g, 3g; preferred: none'
  -------------------------
  Bands    |      supported: 'unknown'
           |        current: 'unknown'
  -------------------------
  IP       |      supported: 'ipv4'
  -------------------------
  CDMA     |           meid: 'unknown'
           |            esn: '60ACB38B'
           |            sid: '0'
           |            nid: '0'
           |   registration: CDMA1x 'home'
           |                 EV-DO  'home'
           |     activation: 'unknown'
  -------------------------
  SIM      |           path: 'none'

[eric at linux-vn1z ~]$ mmcli -m 0 --simple-connect="number=#777"
successfully connected the modem
[eric at linux-vn1z ~]$ mmcli -m 0

/org/freedesktop/ModemManager1/Modem/0 (device id
'1b626896f91de15cc1d4466754f5ca4f2c65f909')
  -------------------------
  Hardware |   manufacturer: 'Sierra Wireless, Inc.'
           |          model: 'AC250U Rev 1.0 (3)'
           |       revision: 'p3012801,60764 [Apr 20 2010 16:48:57]
           |                  QCOM: SWI6085_FP.01.28
           |                  BOOT: SWI6085_PP.01.28.01 2010/04/20 19:26:34
           |                  APPL: SWI6085_PP.01.28.01 2010/04/20 19:26:34
           |                  USBD: SWI6085_GENERIC.00.01
           |                  USB VID: 0x1199 PID: 0x0301'
           |      supported: 'cdma-evdo'
           |        current: 'cdma-evdo'
           |   equipment id: '60ACB38B'
  -------------------------
  System   |         device:
'/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.2'
           |        drivers: 'sierra'
           |         plugin: 'Sierra'
           |   primary port: 'ttyUSB0'
           |          ports: 'ttyUSB0 (at), ttyUSB3 (qcdm)'
  -------------------------
  Numbers  |           own : '3033568131'
  -------------------------
  Status   |           lock: 'none'
           | unlock retries: 'unknown'
           |          state: 'connected'
           |    power state: 'on'
           |    access tech: 'evdoa'
           | signal quality: '56' (recent)
  -------------------------
  Modes    |      supported: 'allowed: 2g, 3g; preferred: none'
           |        current: 'allowed: 2g, 3g; preferred: none'
  -------------------------
  Bands    |      supported: 'unknown'
           |        current: 'unknown'
  -------------------------
  IP       |      supported: 'ipv4'
  -------------------------
  CDMA     |           meid: 'unknown'
           |            esn: '60ACB38B'
           |            sid: '4121'
           |            nid: '4'
           |   registration: CDMA1x 'registered'
           |                 EV-DO  'registered'
           |     activation: 'unknown'
  -------------------------
  SIM      |           path: 'none'

[eric at linux-vn1z ~]$ mmcli -b 0
Bearer '/org/freedesktop/ModemManager1/Bearer/0'
  -------------------------
  Status             |   connected: 'yes'
                     |   suspended: 'no'
                     |   interface: 'ttyUSB0'
                     |  IP timeout: '20'
  -------------------------
  Properties         |         apn: 'none'
                     |     roaming: 'allowed'
                     |     IP type: 'none'
                     |        user: 'none'
                     |    password: 'none'
                     |      number: '#777'
                     | Rm protocol: 'unknown'
  -------------------------
  IPv4 configuration |   method: 'ppp'
  -------------------------
  IPv6 configuration |   method: 'unknown'

[eric at linux-vn1z ~]$ mmcli -m 0 --list-bearers

Found 1 bearers:

    /org/freedesktop/ModemManager1/Bearer/0

[eric at linux-vn1z ~]$ wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyS0<Info>: Device or resource busy
Modem Port Scan<*1>: S0
ttyS1<Info>: Device or resource busy
Modem Port Scan<*1>: S1
ttyS2<Info>: Device or resource busy
Modem Port Scan<*1>: S2
ttyS3<Info>: Device or resource busy
Modem Port Scan<*1>: S3
ttyS4<Info>: Device or resource busy
Modem Port Scan<*1>: S4
ttyS5<Info>: Device or resource busy
Modem Port Scan<*1>: S5
ttyS6<Info>: Device or resource busy
Modem Port Scan<*1>: S6
ttyS7<Info>: Device or resource busy
Modem Port Scan<*1>: S7
ttyS8<Info>: Device or resource busy
Modem Port Scan<*1>: S8
ttyS9<Info>: Device or resource busy
Modem Port Scan<*1>: S9
ttyS10<Info>: Device or resource busy
Modem Port Scan<*1>: S10
ttyS11<Info>: Device or resource busy
Modem Port Scan<*1>: S11
ttyS12<Info>: Device or resource busy
Modem Port Scan<*1>: S12
ttyS13<Info>: Device or resource busy
Modem Port Scan<*1>: S13
ttyS14<Info>: Device or resource busy
Modem Port Scan<*1>: S14
ttyS15<Info>: Device or resource busy
Modem Port Scan<*1>: S15
ttyS16<Info>: Device or resource busy
Modem Port Scan<*1>: S16
ttyS17<Info>: Device or resource busy
Modem Port Scan<*1>: S17
ttyS18<Info>: Device or resource busy
Modem Port Scan<*1>: S18
ttyS19<Info>: Device or resource busy
Modem Port Scan<*1>: S19
ttyS20<Info>: Device or resource busy
Modem Port Scan<*1>: S20
ttyS21<Info>: Device or resource busy
Modem Port Scan<*1>: S21
ttyS22<Info>: Device or resource busy
Modem Port Scan<*1>: S22
ttyS23<Info>: Device or resource busy
Modem Port Scan<*1>: S23
ttyS24<Info>: Device or resource busy
Modem Port Scan<*1>: S24
ttyS25<Info>: Device or resource busy
Modem Port Scan<*1>: S25
ttyS26<Info>: Device or resource busy
Modem Port Scan<*1>: S26
ttyS27<Info>: Device or resource busy
Modem Port Scan<*1>: S27
ttyS28<Info>: Device or resource busy
Modem Port Scan<*1>: S28
ttyS29<Info>: Device or resource busy
Modem Port Scan<*1>: S29
ttyS30<Info>: Device or resource busy
Modem Port Scan<*1>: S30
ttyS31<Info>: Device or resource busy
Modem Port Scan<*1>: S31
ttyUSB0<Info>: Device or resource busy
Modem Port Scan<*1>: USB0
ttyUSB1<Info>: Device or resource busy
Modem Port Scan<*1>: USB1
ttyUSB2<Info>: Device or resource busy
Modem Port Scan<*1>: USB2
ttyUSB3<Info>: Device or resource busy
Modem Port Scan<*1>: USB3


Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://alumnit.ca/wiki/?WvDial
[eric at linux-vn1z ~]$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/modemmanager-devel/attachments/20140313/035f1fd5/attachment-0001.html>


More information about the ModemManager-devel mailing list