Re: u-blox SARA R410M CAT M1 modem

2019-06-05 Thread Tim Harvey
On Tue, Jun 4, 2019 at 2:34 PM Dan Williams  wrote:
>
> On Tue, 2019-06-04 at 14:11 -0700, Tim Harvey wrote:
> > On Fri, Oct 26, 2018 at 3:17 PM Tim Harvey 
> > wrote:
> > > Greetings,
> > >
> > > I'm working with a u-blox SARA R410M CAT M1 modem
> > > (https://www.u-blox.com/en/product/sara-r4n4-series) using Linux
> > > 4.15
> > > and modem-manager-1.9.0 / libqmi-utils-1.21.4 from Aleksander's
> > > next
> > > PPA. My SIM is a Verizon 4G LTE Cat M1 SIM Card from Nibelink
> > > (
> > > https://nimbelink.com/Documentation/Sim_Cards/NL-SIM-VER-M1/1001410_NL-SIM-VER-M1_Datasheet.pdf
> > > )
> > > and I've activated it with Nibelink.
> > >
> > > While modemmanager is able to detect, enable, and successfully scan
> > > it
> > > won't connect.
> > >
> > > root@bionic-armhf:~# uname -r
> > > 4.15.0-36-generic
> > > root@bionic-armhf:~# cat /etc/lsb-release
> > > DISTRIB_ID=Ubuntu
> > > DISTRIB_RELEASE=18.04
> > > DISTRIB_CODENAME=bionic
> > > DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
> > > root@bionic-armhf:~# dpkg -s modemmanager | grep Version
> > > Version: 1.9.0.next-20181010-1-0aleksander1
> > > root@bionic-armhf:~# dpkg -s libqmi-utils | grep Version
> > > Version: 1.21.4.next-20181010-1-0aleksander1
> > >
> > > root@bionic-armhf:~# mmcli --list-modems
> > >
> > > Found 1 modems:
> > > /org/freedesktop/ModemManager1/Modem/0 [u-blox] SARA-R410M-52B
> > >
> > > root@bionic-armhf:~# mmcli -m 0
> > >
> > > /org/freedesktop/ModemManager1/Modem/0 (device id
> > > '9469a10655ec4f4d00c5ebad896376291d2a563b')
> > >   -
> > >   Hardware |   manufacturer: 'u-blox'
> > >|  model: 'SARA-R410M-52B'
> > >|   revision: 'L0.0.00.00.06.05  1  [Aug 01 2018
> > > 14:05:07]'
> > >|   H/W revision: '1'
> > >|  supported: 'lte'
> > >|current: 'lte'
> > >|   equipment id: '357812090839082'
> > >   -
> > >   System   | device:
> > > '/sys/devices/soc0/soc/210.aips-
> > > bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.2/1-1.2.3'
> > >|drivers: 'qmi_wwan, option1'
> > >| plugin: 'Generic'
> > >|   primary port: 'cdc-wdm0'
> > >|  ports: 'ttyUSB1 (qcdm), ttyUSB2 (at), cdc-
> > > wdm0
> > > (qmi), wwan0 (net)'
> > >   -
> > >   Numbers  |   own : 'unknown'
> > >   -
> > >   Status   |   lock: 'sim-pin2'
> > >| unlock retries: 'sim-pin (3), sim-pin2 (3), sim-puk
> > > (10),
> > > sim-puk2 (10)'
> > >|  state: 'disabled'
> > >|power state: 'on'
> > >|access tech: 'unknown'
> > >| signal quality: '0' (cached)
> > >   -
> > >   Modes|  supported: 'allowed: 4g; preferred: none'
> > >|current: 'allowed: 4g; preferred: none'
> > >   -
> > >   Bands|  supported: 'eutran-1, eutran-2, eutran-3, eutran-
> > > 4,
> > > eutran-5, eutran-8, eutran-12, eutran-13, eutran-17, eutran-18,
> > > eutran-19, eutran-20, eutran-39'
> > >|current: 'eutran-1, eutran-2, eutran-3, eutran-
> > > 4,
> > > eutran-5, eutran-8, eutran-12, eutran-13, eutran-17, eutran-18,
> > > eutran-19, eutran-20, eutran-39'
> > >   -
> > >   IP   |  supported: 'ipv4, ipv6, ipv4v6'
> > >   -
> > >   3GPP |   imei: '357812090839082'
> > >|  enabled locks: 'none'
> > >|operator id: 'unknown'
> > >|  operator name: 'unknown'
> > >|   subscription: 'unknown'
> > >|   registration: 'unknown'
> > >|EPS UE mode: 'csps-2'
> > >|PCO: 'n/a'
> > >   -
> > >   SIM  |   path: '/org/freedesktop/ModemManager1/SIM/0'
> > >
> > >   -
> > >   Bearers  |  paths: 'none'
> > >
> > > root@bionic-armhf:~# mmcli -m 

Re: u-blox SARA R410M CAT M1 modem

2019-06-04 Thread Dan Williams
On Tue, 2019-06-04 at 14:11 -0700, Tim Harvey wrote:
> On Fri, Oct 26, 2018 at 3:17 PM Tim Harvey 
> wrote:
> > Greetings,
> > 
> > I'm working with a u-blox SARA R410M CAT M1 modem
> > (https://www.u-blox.com/en/product/sara-r4n4-series) using Linux
> > 4.15
> > and modem-manager-1.9.0 / libqmi-utils-1.21.4 from Aleksander's
> > next
> > PPA. My SIM is a Verizon 4G LTE Cat M1 SIM Card from Nibelink
> > (
> > https://nimbelink.com/Documentation/Sim_Cards/NL-SIM-VER-M1/1001410_NL-SIM-VER-M1_Datasheet.pdf
> > )
> > and I've activated it with Nibelink.
> > 
> > While modemmanager is able to detect, enable, and successfully scan
> > it
> > won't connect.
> > 
> > root@bionic-armhf:~# uname -r
> > 4.15.0-36-generic
> > root@bionic-armhf:~# cat /etc/lsb-release
> > DISTRIB_ID=Ubuntu
> > DISTRIB_RELEASE=18.04
> > DISTRIB_CODENAME=bionic
> > DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
> > root@bionic-armhf:~# dpkg -s modemmanager | grep Version
> > Version: 1.9.0.next-20181010-1-0aleksander1
> > root@bionic-armhf:~# dpkg -s libqmi-utils | grep Version
> > Version: 1.21.4.next-20181010-1-0aleksander1
> > 
> > root@bionic-armhf:~# mmcli --list-modems
> > 
> > Found 1 modems:
> > /org/freedesktop/ModemManager1/Modem/0 [u-blox] SARA-R410M-52B
> > 
> > root@bionic-armhf:~# mmcli -m 0
> > 
> > /org/freedesktop/ModemManager1/Modem/0 (device id
> > '9469a10655ec4f4d00c5ebad896376291d2a563b')
> >   -
> >   Hardware |   manufacturer: 'u-blox'
> >|  model: 'SARA-R410M-52B'
> >|   revision: 'L0.0.00.00.06.05  1  [Aug 01 2018
> > 14:05:07]'
> >|   H/W revision: '1'
> >|  supported: 'lte'
> >|current: 'lte'
> >|   equipment id: '357812090839082'
> >   -
> >   System   | device:
> > '/sys/devices/soc0/soc/210.aips-
> > bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.2/1-1.2.3'
> >|drivers: 'qmi_wwan, option1'
> >| plugin: 'Generic'
> >|   primary port: 'cdc-wdm0'
> >|  ports: 'ttyUSB1 (qcdm), ttyUSB2 (at), cdc-
> > wdm0
> > (qmi), wwan0 (net)'
> >   -
> >   Numbers  |   own : 'unknown'
> >   -
> >   Status   |   lock: 'sim-pin2'
> >| unlock retries: 'sim-pin (3), sim-pin2 (3), sim-puk
> > (10),
> > sim-puk2 (10)'
> >|  state: 'disabled'
> >|power state: 'on'
> >|access tech: 'unknown'
> >| signal quality: '0' (cached)
> >   -
> >   Modes|  supported: 'allowed: 4g; preferred: none'
> >|current: 'allowed: 4g; preferred: none'
> >   -
> >   Bands|  supported: 'eutran-1, eutran-2, eutran-3, eutran-
> > 4,
> > eutran-5, eutran-8, eutran-12, eutran-13, eutran-17, eutran-18,
> > eutran-19, eutran-20, eutran-39'
> >|current: 'eutran-1, eutran-2, eutran-3, eutran-
> > 4,
> > eutran-5, eutran-8, eutran-12, eutran-13, eutran-17, eutran-18,
> > eutran-19, eutran-20, eutran-39'
> >   -
> >   IP   |  supported: 'ipv4, ipv6, ipv4v6'
> >   -
> >   3GPP |   imei: '357812090839082'
> >|  enabled locks: 'none'
> >|operator id: 'unknown'
> >|  operator name: 'unknown'
> >|   subscription: 'unknown'
> >|   registration: 'unknown'
> >|EPS UE mode: 'csps-2'
> >|PCO: 'n/a'
> >   -
> >   SIM  |   path: '/org/freedesktop/ModemManager1/SIM/0'
> > 
> >   -
> >   Bearers  |  paths: 'none'
> > 
> > root@bionic-armhf:~# mmcli -m 0 --enable
> > successfully enabled the modem
> > root@bionic-armhf:~# mmcli --modem 0 --3gpp-scan --timeout=300
> > 
> > Found 3 networks:
> > 311480 - 311 480 (lte, current)
> > 313100 - 313 100 (lte, available)
> > 310410 - 310 410 (lte, available)
> > 
> > root@bionic-armhf:~# mmcli --modem 0 --simple-
> > connect="apn=vzwinternet"
> > 
> > Stopping ModemManager and using qmicli in every way I currently
> > know
> > how yields this:
> > 
&g

Re: u-blox SARA R410M CAT M1 modem

2019-06-04 Thread Tim Harvey
On Fri, Oct 26, 2018 at 3:17 PM Tim Harvey  wrote:
>
> Greetings,
>
> I'm working with a u-blox SARA R410M CAT M1 modem
> (https://www.u-blox.com/en/product/sara-r4n4-series) using Linux 4.15
> and modem-manager-1.9.0 / libqmi-utils-1.21.4 from Aleksander's next
> PPA. My SIM is a Verizon 4G LTE Cat M1 SIM Card from Nibelink
> (https://nimbelink.com/Documentation/Sim_Cards/NL-SIM-VER-M1/1001410_NL-SIM-VER-M1_Datasheet.pdf)
> and I've activated it with Nibelink.
>
> While modemmanager is able to detect, enable, and successfully scan it
> won't connect.
>
> root@bionic-armhf:~# uname -r
> 4.15.0-36-generic
> root@bionic-armhf:~# cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=18.04
> DISTRIB_CODENAME=bionic
> DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
> root@bionic-armhf:~# dpkg -s modemmanager | grep Version
> Version: 1.9.0.next-20181010-1-0aleksander1
> root@bionic-armhf:~# dpkg -s libqmi-utils | grep Version
> Version: 1.21.4.next-20181010-1-0aleksander1
>
> root@bionic-armhf:~# mmcli --list-modems
>
> Found 1 modems:
> /org/freedesktop/ModemManager1/Modem/0 [u-blox] SARA-R410M-52B
>
> root@bionic-armhf:~# mmcli -m 0
>
> /org/freedesktop/ModemManager1/Modem/0 (device id
> '9469a10655ec4f4d00c5ebad896376291d2a563b')
>   -
>   Hardware |   manufacturer: 'u-blox'
>|  model: 'SARA-R410M-52B'
>|   revision: 'L0.0.00.00.06.05  1  [Aug 01 2018 14:05:07]'
>|   H/W revision: '1'
>|  supported: 'lte'
>|current: 'lte'
>|   equipment id: '357812090839082'
>   -
>   System   | device:
> '/sys/devices/soc0/soc/210.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.2/1-1.2.3'
>|drivers: 'qmi_wwan, option1'
>| plugin: 'Generic'
>|   primary port: 'cdc-wdm0'
>|  ports: 'ttyUSB1 (qcdm), ttyUSB2 (at), cdc-wdm0
> (qmi), wwan0 (net)'
>   -
>   Numbers  |   own : 'unknown'
>   -
>   Status   |   lock: 'sim-pin2'
>| unlock retries: 'sim-pin (3), sim-pin2 (3), sim-puk (10),
> sim-puk2 (10)'
>|  state: 'disabled'
>|power state: 'on'
>|access tech: 'unknown'
>| signal quality: '0' (cached)
>   -
>   Modes|  supported: 'allowed: 4g; preferred: none'
>|current: 'allowed: 4g; preferred: none'
>   -
>   Bands|  supported: 'eutran-1, eutran-2, eutran-3, eutran-4,
> eutran-5, eutran-8, eutran-12, eutran-13, eutran-17, eutran-18,
> eutran-19, eutran-20, eutran-39'
>|current: 'eutran-1, eutran-2, eutran-3, eutran-4,
> eutran-5, eutran-8, eutran-12, eutran-13, eutran-17, eutran-18,
> eutran-19, eutran-20, eutran-39'
>   -
>   IP   |  supported: 'ipv4, ipv6, ipv4v6'
>   -
>   3GPP |   imei: '357812090839082'
>|  enabled locks: 'none'
>|operator id: 'unknown'
>|  operator name: 'unknown'
>|   subscription: 'unknown'
>|   registration: 'unknown'
>|EPS UE mode: 'csps-2'
>|PCO: 'n/a'
>   -
>   SIM  |   path: '/org/freedesktop/ModemManager1/SIM/0'
>
>   -
>   Bearers  |  paths: 'none'
>
> root@bionic-armhf:~# mmcli -m 0 --enable
> successfully enabled the modem
> root@bionic-armhf:~# mmcli --modem 0 --3gpp-scan --timeout=300
>
> Found 3 networks:
> 311480 - 311 480 (lte, current)
> 313100 - 313 100 (lte, available)
> 310410 - 310 410 (lte, available)
>
> root@bionic-armhf:~# mmcli --modem 0 --simple-connect="apn=vzwinternet"
>
> Stopping ModemManager and using qmicli in every way I currently know
> how yields this:
>
> root@bionic-armhf:~# systemctl stop ModemManager
> root@bionic-armhf:~# qmicli -d /dev/cdc-wdm0 --uim-get-card-status
> [/dev/cdc-wdm0] Successfully got card status
> Provisioning applications:
> Primary GW:   slot '0', application '2'
> Primary 1X:   session doesn't exist
> Secondary GW: session doesn't exist
> Secondary 1X: session doesn't exist
> Card [0]:
> Card state: 'present'
> UPIN state: 'not-initialized'
> UPIN retries: '0'
> UPUK retries: '0'
> Application [0]:
> Application type:  'csim (4)'
> Application state: 'detected'
> Application ID:
> A0:00:00:03:43:10:02:F3:10:FF:FF:89:02:00:00:FF
> Personalization state: 'unknown'
> UPIN replac

u-blox SARA R410M CAT M1 modem

2018-10-26 Thread Tim Harvey
Greetings,

I'm working with a u-blox SARA R410M CAT M1 modem
(https://www.u-blox.com/en/product/sara-r4n4-series) using Linux 4.15
and modem-manager-1.9.0 / libqmi-utils-1.21.4 from Aleksander's next
PPA. My SIM is a Verizon 4G LTE Cat M1 SIM Card from Nibelink
(https://nimbelink.com/Documentation/Sim_Cards/NL-SIM-VER-M1/1001410_NL-SIM-VER-M1_Datasheet.pdf)
and I've activated it with Nibelink.

While modemmanager is able to detect, enable, and successfully scan it
won't connect.

root@bionic-armhf:~# uname -r
4.15.0-36-generic
root@bionic-armhf:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
root@bionic-armhf:~# dpkg -s modemmanager | grep Version
Version: 1.9.0.next-20181010-1-0aleksander1
root@bionic-armhf:~# dpkg -s libqmi-utils | grep Version
Version: 1.21.4.next-20181010-1-0aleksander1

root@bionic-armhf:~# mmcli --list-modems

Found 1 modems:
/org/freedesktop/ModemManager1/Modem/0 [u-blox] SARA-R410M-52B

root@bionic-armhf:~# mmcli -m 0

/org/freedesktop/ModemManager1/Modem/0 (device id
'9469a10655ec4f4d00c5ebad896376291d2a563b')
  -
  Hardware |   manufacturer: 'u-blox'
   |  model: 'SARA-R410M-52B'
   |   revision: 'L0.0.00.00.06.05  1  [Aug 01 2018 14:05:07]'
   |   H/W revision: '1'
   |  supported: 'lte'
   |current: 'lte'
   |   equipment id: '357812090839082'
  -
  System   | device:
'/sys/devices/soc0/soc/210.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.2/1-1.2.3'
   |drivers: 'qmi_wwan, option1'
   | plugin: 'Generic'
   |   primary port: 'cdc-wdm0'
   |  ports: 'ttyUSB1 (qcdm), ttyUSB2 (at), cdc-wdm0
(qmi), wwan0 (net)'
  -
  Numbers  |   own : 'unknown'
  -
  Status   |   lock: 'sim-pin2'
   | unlock retries: 'sim-pin (3), sim-pin2 (3), sim-puk (10),
sim-puk2 (10)'
   |  state: 'disabled'
   |power state: 'on'
   |access tech: 'unknown'
   | signal quality: '0' (cached)
  -
  Modes|  supported: 'allowed: 4g; preferred: none'
   |current: 'allowed: 4g; preferred: none'
  -
  Bands|  supported: 'eutran-1, eutran-2, eutran-3, eutran-4,
eutran-5, eutran-8, eutran-12, eutran-13, eutran-17, eutran-18,
eutran-19, eutran-20, eutran-39'
   |current: 'eutran-1, eutran-2, eutran-3, eutran-4,
eutran-5, eutran-8, eutran-12, eutran-13, eutran-17, eutran-18,
eutran-19, eutran-20, eutran-39'
  -
  IP   |  supported: 'ipv4, ipv6, ipv4v6'
  -
  3GPP |   imei: '357812090839082'
   |  enabled locks: 'none'
   |operator id: 'unknown'
   |  operator name: 'unknown'
   |   subscription: 'unknown'
   |   registration: 'unknown'
   |EPS UE mode: 'csps-2'
   |PCO: 'n/a'
  -
  SIM  |   path: '/org/freedesktop/ModemManager1/SIM/0'

  -
  Bearers  |  paths: 'none'

root@bionic-armhf:~# mmcli -m 0 --enable
successfully enabled the modem
root@bionic-armhf:~# mmcli --modem 0 --3gpp-scan --timeout=300

Found 3 networks:
311480 - 311 480 (lte, current)
313100 - 313 100 (lte, available)
310410 - 310 410 (lte, available)

root@bionic-armhf:~# mmcli --modem 0 --simple-connect="apn=vzwinternet"

Stopping ModemManager and using qmicli in every way I currently know
how yields this:

root@bionic-armhf:~# systemctl stop ModemManager
root@bionic-armhf:~# qmicli -d /dev/cdc-wdm0 --uim-get-card-status
[/dev/cdc-wdm0] Successfully got card status
Provisioning applications:
Primary GW:   slot '0', application '2'
Primary 1X:   session doesn't exist
Secondary GW: session doesn't exist
Secondary 1X: session doesn't exist
Card [0]:
Card state: 'present'
UPIN state: 'not-initialized'
UPIN retries: '0'
UPUK retries: '0'
Application [0]:
Application type:  'csim (4)'
Application state: 'detected'
Application ID:
A0:00:00:03:43:10:02:F3:10:FF:FF:89:02:00:00:FF
Personalization state: 'unknown'
UPIN replaces PIN1: 'no'
PIN1 state: 'not-initialized'
PIN1 retries: '0'
PUK1 retries: '0'
PIN2 state: 'not-initialized'
PIN2 retries: '0'
PUK2 retries: '0'
Application [1]:
Application type:  'isim (5)'
Application state: 'detected'
Application ID:
A0:00:00:00:87:10:04:F3:10:FF:FF:89:08:00:00:FF
Personalization state: 'unknown'
UPIN replaces PIN1: 'no'
PIN1 state: 'not-initialized'
PIN1 retries: '0'
PUK1 retries: '0'
PIN2 state: 'not-initialized'
PIN2 retries: '0'
PUK2 retries: '0'
Application [2]:
Application type:  'usim (2)'
Application state: 'ready'
Application ID:
A0:00:00:00:87:10:02:F3:10:FF:FF:89:08:00:00:FF
Personalization state: '