RE: LN920: MBIM Bands not shown (MM 1.18.2)

2021-10-13 Thread Amol Lad
Hi,

I've raised a MR: 
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/646

This fixes #BND=? For LN920. I've tested with LN920 and looks ok.

-Original Message-
From: Daniele Palmas  
Sent: Tuesday, 12 October 2021 2:50 PM
To: Amol Lad 
Cc: ModemManager (development) 
Subject: Re: LN920: MBIM Bands not shown (MM 1.18.2)

Il giorno lun 11 ott 2021 alle ore 18:06 Amol Lad  ha scritto:
>
> LIBQMI_WITH_MBIM_QMUX is enabled in libqmi and qmicli reports ok. It seems 
> for some reasons modemmanager is not able to read out the bands. Any input 
> regarding this will be helpful.
>

Currently Telit mbim plugin uses just AT commands for retrieving
bands: maybe a possible improvement could be to use the qmi requests when 
supported by the modem and available in the build. Added on my TODO list...

Anyway, it would be better also to fix #BND=? management for those setups where 
qmi is not used.

Regards,
Daniele

>
>
> # qmicli -d /dev/cdc-wdm0 -p --dms-get-band-capabilities
>
> [/dev/cdc-wdm0] Device band capabilities retrieved:
>
> Bands: 'wcdma-2100, wcdma-pcs-1900, wcdma-dcs-1800, wcdma-1700-us, 
> wcdma-850-us, wcdma-800, wcdma-900, wcdma-1700-japan, wcdma-850-japan'
>
> LTE bands: '1, 2, 3, 4, 5, 7, 8, 12, 13, 14, 17, 18, 19, 20, 25, 26, 
> 28, 29, 30, 38, 39, 40, 41, 42, 43'
>
> LTE bands (extended): '1, 2, 3, 4, 5, 7, 8, 12, 13, 14, 17, 18, 19, 
> 20, 25, 26, 28, 29, 30, 38, 39, 40, 41, 42, 43, 48, 66, 71'
>
>
>
> Thanks
>
> Amol
>
>
>
> From: Amol Lad
> Sent: Monday, 11 October 2021 6:34 PM
> To: 'Daniele Palmas' ; 'ModemManager (development)' 
> 
> Subject: LN920: MBIM Bands not shown (MM 1.18.2)
>
>
>
> Hi Daniele,
>
>
>
> I’m patched my MM 1.18.2 with your MR (LN920 Initial Support) and testing 
> LN920 in MBIM mode. I’m noticing that the “supported” and “current” bands are 
> not shown in “mmcli -m 0” output and below error is seen in the logs:
>
>
>
>   [modem0] couldn't load supported bands: Could not find 4G band 
> flags from response
>
>
>
> Any suggestion what could be going wrong?
>
>
>
> mmcli -m 0 output in both MBIM and QMI is below:
>
>
>
>
>
> MBIM
>
> 
>
>
>
> # mmcli -m 0
>
>   --
>
>   General  |   path: /org/freedesktop/ModemManager1/Modem/0
>
>|  device id: 168c2aa5755860bee3694899a635af0df25e7fcf
>
>   --
>
>   Hardware |   manufacturer: Telit Wireless Solutions
>
>|  model: LN920
>
>|  firmware revision: SDX12.LE.1.0-00085-NBOOT.NEFS.
>
>| carrier config: default
>
>|   h/w revision: LN920A12-WW
>
>|  supported: gsm-umts, lte
>
>|current: gsm-umts, lte
>
>|   equipment id: 354175759991229
>
>   --
>
>   System   | device: 
> /sys/devices/platform/soc/soc:internal-regs/f10f.usb3/usb2/2-1
>
>|drivers: cdc_mbim, option1
>
>| plugin: telit
>
>|   primary port: cdc-wdm0
>
>|  ports: cdc-wdm0 (mbim), ttyUSB0 (ignored), 
> ttyUSB1 (gps),
>
>| ttyUSB2 (at), ttyUSB3 (at), ttyUSB4 
> (ignored), wwan0 (net)
>
>   --
>
>   Numbers  |own: 9108813566
>
>   --
>
>   Status   | unlock retries: sim-pin2 (3)
>
>|  state: connected
>
>|power state: on
>
>|access tech: lte
>
>| signal quality: 12% (recent)
>
>   --
>
>   Modes|  supported: allowed: 3g; preferred: none
>
>| allowed: 4g; preferred: none
>
>| allowed: 3g, 4g; preferred: none
>
>|current: allowed: 4g; preferred: none
>
>   --
>
>   IP   |  supported: ipv4, ipv6, ipv4v6
>
>   --
>
>   3GPP |   imei: 354175759991229
>
>|  enabled locks: fixed-dialing
>
>|operator id: 40445
>
>|  operator name: airtel
>
>|   registration: home
>
>   --

Re: LN920: MBIM Bands not shown (MM 1.18.2)

2021-10-12 Thread Daniele Palmas
Il giorno mar 12 ott 2021 alle ore 14:26 Amol Lad  ha scritto:
>
>
> > Anyway, it would be better also to fix #BND=? management for those
> > setups where qmi is not used.
> >
>
> I've started on this and shall submit a MR in a day or two..
>

Thanks! Meanwhile I'm going to look at the qmi way.

Regards,
Daniele

>
> 
> The information in this email communication (inclusive of attachments) is 
> confidential to 4RF Limited and the intended recipient(s). If you are not the 
> intended recipient(s), please note that any use, disclosure, distribution or 
> copying of this information or any part thereof is strictly prohibited and 
> that the author accepts no liability for the consequences of any action taken 
> on the basis of the information provided. If you have received this email in 
> error, please notify the sender immediately by return email and then delete 
> all instances of this email from your system. 4RF Limited will not accept 
> responsibility for any consequences associated with the use of this email 
> (including, but not limited to, damages sustained as a result of any viruses 
> and/or any action or lack of action taken in reliance on it).


RE: LN920: MBIM Bands not shown (MM 1.18.2)

2021-10-12 Thread Amol Lad

> Anyway, it would be better also to fix #BND=? management for those 
> setups where qmi is not used.
>

I've started on this and shall submit a MR in a day or two..




Re: LN920: MBIM Bands not shown (MM 1.18.2)

2021-10-12 Thread Aleksander Morgado
Hey!

> > LIBQMI_WITH_MBIM_QMUX is enabled in libqmi and qmicli reports ok. It seems 
> > for some reasons modemmanager is not able to read out the bands. Any input 
> > regarding this will be helpful.
> >
>
> Currently Telit mbim plugin uses just AT commands for retrieving
> bands: maybe a possible improvement could be to use the qmi requests
> when supported by the modem and available in the build.

Yes, that would be a fine addition, and possibly not very hard to implement.

> Added on my
> TODO list...
>

The never ending TODO list right? :D

> Anyway, it would be better also to fix #BND=? management for those
> setups where qmi is not used.
>

Yes, I agree

-- 
Aleksander
https://aleksander.es


Re: LN920: MBIM Bands not shown (MM 1.18.2)

2021-10-12 Thread Daniele Palmas
Il giorno lun 11 ott 2021 alle ore 18:06 Amol Lad  ha scritto:
>
> LIBQMI_WITH_MBIM_QMUX is enabled in libqmi and qmicli reports ok. It seems 
> for some reasons modemmanager is not able to read out the bands. Any input 
> regarding this will be helpful.
>

Currently Telit mbim plugin uses just AT commands for retrieving
bands: maybe a possible improvement could be to use the qmi requests
when supported by the modem and available in the build. Added on my
TODO list...

Anyway, it would be better also to fix #BND=? management for those
setups where qmi is not used.

Regards,
Daniele

>
>
> # qmicli -d /dev/cdc-wdm0 -p --dms-get-band-capabilities
>
> [/dev/cdc-wdm0] Device band capabilities retrieved:
>
> Bands: 'wcdma-2100, wcdma-pcs-1900, wcdma-dcs-1800, wcdma-1700-us, 
> wcdma-850-us, wcdma-800, wcdma-900, wcdma-1700-japan, wcdma-850-japan'
>
> LTE bands: '1, 2, 3, 4, 5, 7, 8, 12, 13, 14, 17, 18, 19, 20, 25, 26, 
> 28, 29, 30, 38, 39, 40, 41, 42, 43'
>
> LTE bands (extended): '1, 2, 3, 4, 5, 7, 8, 12, 13, 14, 17, 18, 19, 
> 20, 25, 26, 28, 29, 30, 38, 39, 40, 41, 42, 43, 48, 66, 71'
>
>
>
> Thanks
>
> Amol
>
>
>
> From: Amol Lad
> Sent: Monday, 11 October 2021 6:34 PM
> To: 'Daniele Palmas' ; 'ModemManager (development)' 
> 
> Subject: LN920: MBIM Bands not shown (MM 1.18.2)
>
>
>
> Hi Daniele,
>
>
>
> I’m patched my MM 1.18.2 with your MR (LN920 Initial Support) and testing 
> LN920 in MBIM mode. I’m noticing that the “supported” and “current” bands are 
> not shown in “mmcli -m 0” output and below error is seen in the logs:
>
>
>
>   [modem0] couldn't load supported bands: Could not find 4G band flags 
> from response
>
>
>
> Any suggestion what could be going wrong?
>
>
>
> mmcli -m 0 output in both MBIM and QMI is below:
>
>
>
>
>
> MBIM
>
> 
>
>
>
> # mmcli -m 0
>
>   --
>
>   General  |   path: /org/freedesktop/ModemManager1/Modem/0
>
>|  device id: 168c2aa5755860bee3694899a635af0df25e7fcf
>
>   --
>
>   Hardware |   manufacturer: Telit Wireless Solutions
>
>|  model: LN920
>
>|  firmware revision: SDX12.LE.1.0-00085-NBOOT.NEFS.
>
>| carrier config: default
>
>|   h/w revision: LN920A12-WW
>
>|  supported: gsm-umts, lte
>
>|current: gsm-umts, lte
>
>|   equipment id: 354175759991229
>
>   --
>
>   System   | device: 
> /sys/devices/platform/soc/soc:internal-regs/f10f.usb3/usb2/2-1
>
>|drivers: cdc_mbim, option1
>
>| plugin: telit
>
>|   primary port: cdc-wdm0
>
>|  ports: cdc-wdm0 (mbim), ttyUSB0 (ignored), 
> ttyUSB1 (gps),
>
>| ttyUSB2 (at), ttyUSB3 (at), ttyUSB4 
> (ignored), wwan0 (net)
>
>   --
>
>   Numbers  |own: 9108813566
>
>   --
>
>   Status   | unlock retries: sim-pin2 (3)
>
>|  state: connected
>
>|power state: on
>
>|access tech: lte
>
>| signal quality: 12% (recent)
>
>   --
>
>   Modes|  supported: allowed: 3g; preferred: none
>
>| allowed: 4g; preferred: none
>
>| allowed: 3g, 4g; preferred: none
>
>|current: allowed: 4g; preferred: none
>
>   --
>
>   IP   |  supported: ipv4, ipv6, ipv4v6
>
>   --
>
>   3GPP |   imei: 354175759991229
>
>|  enabled locks: fixed-dialing
>
>|operator id: 40445
>
>|  operator name: airtel
>
>|   registration: home
>
>   --
>
>   3GPP EPS |   ue mode of operation: csps-2
>
>|initial bearer path: /org/freedesktop/ModemManager1/Bearer/0
>
>| initial bearer ip type: ipv4v6
>
>   --
>
>   SIM  |   primary sim path: /org/freedesktop/ModemManager1/SIM/0
>
>

Re: LN920: MBIM Bands not shown (MM 1.18.2)

2021-10-11 Thread Daniele Palmas
Hi Amol,

Il giorno lun 11 ott 2021 alle ore 15:03 Amol Lad  ha scritto:
>
> Hi Daniele,
>
>
>
> I’m patched my MM 1.18.2 with your MR (LN920 Initial Support) and testing 
> LN920 in MBIM mode. I’m noticing that the “supported” and “current” bands are 
> not shown in “mmcli -m 0” output and below error is seen in the logs:
>
>
>
>   [modem0] couldn't load supported bands: Could not find 4G band flags 
> from response
>
>
>
> Any suggestion what could be going wrong?
>

I think this is coming from the failure of the regex for collecting
the supported bands with #BND=?

It should be fixed for LN920 output.

Regards,
Daniele

>
>
> mmcli -m 0 output in both MBIM and QMI is below:
>
>
>
>
>
> MBIM
>
> 
>
>
>
> # mmcli -m 0
>
>   --
>
>   General  |   path: /org/freedesktop/ModemManager1/Modem/0
>
>|  device id: 168c2aa5755860bee3694899a635af0df25e7fcf
>
>   --
>
>   Hardware |   manufacturer: Telit Wireless Solutions
>
>|  model: LN920
>
>|  firmware revision: SDX12.LE.1.0-00085-NBOOT.NEFS.
>
>| carrier config: default
>
>|   h/w revision: LN920A12-WW
>
>|  supported: gsm-umts, lte
>
>|current: gsm-umts, lte
>
>|   equipment id: 354175759991229
>
>   --
>
>   System   | device: 
> /sys/devices/platform/soc/soc:internal-regs/f10f.usb3/usb2/2-1
>
>|drivers: cdc_mbim, option1
>
>| plugin: telit
>
>|   primary port: cdc-wdm0
>
>|  ports: cdc-wdm0 (mbim), ttyUSB0 (ignored), 
> ttyUSB1 (gps),
>
>| ttyUSB2 (at), ttyUSB3 (at), ttyUSB4 
> (ignored), wwan0 (net)
>
>   --
>
>   Numbers  |own: 9108813566
>
>   --
>
>   Status   | unlock retries: sim-pin2 (3)
>
>|  state: connected
>
>|power state: on
>
>|access tech: lte
>
>| signal quality: 12% (recent)
>
>   --
>
>   Modes|  supported: allowed: 3g; preferred: none
>
>| allowed: 4g; preferred: none
>
>| allowed: 3g, 4g; preferred: none
>
>|current: allowed: 4g; preferred: none
>
>   --
>
>   IP   |  supported: ipv4, ipv6, ipv4v6
>
>   --
>
>   3GPP |   imei: 354175759991229
>
>|  enabled locks: fixed-dialing
>
>|operator id: 40445
>
>|  operator name: airtel
>
>|   registration: home
>
>   --
>
>   3GPP EPS |   ue mode of operation: csps-2
>
>|initial bearer path: /org/freedesktop/ModemManager1/Bearer/0
>
>| initial bearer ip type: ipv4v6
>
>   --
>
>   SIM  |   primary sim path: /org/freedesktop/ModemManager1/SIM/0
>
>| sim slot paths: slot 1: 
> /org/freedesktop/ModemManager1/SIM/0 (active)
>
>| slot 2: 
> /org/freedesktop/ModemManager1/SIM/1
>
>   --
>
>   Bearer   |  paths: /org/freedesktop/ModemManager1/Bearer/1
>
>
>
>
>
> QMI
>
> ---
>
>
>
>   --
>
>   General  |   path: /org/freedesktop/ModemManager1/Modem/0
>
>|  device id: 5c1922b03727107842603eccdea2bb4cd26436f5
>
>   --
>
>   Hardware |   manufacturer: Telit
>
>|  model: LN920A12-WW
>
>|  firmware revision: M0L.00-A006
>
>| carrier config: default
>
>|   h/w revision: 10001
>
>|  supported: gsm-umts, lte
>
>|current: gsm-umts, lte
>
>|   equipment id: 354175759991229
>
>   --
>
>   System   | device: 
> /sys/devices/platform/soc/soc:internal-regs/f10f.usb3/usb2/2-1
>
>|drivers: option1, qmi_wwan
>
>| plugin: telit
>
>|   primary port: cdc-wdm0
>
>|  ports: cdc-wdm0 (qmi), ttyUSB0 (ignored), 
> ttyUSB1 (gps),
>
>| ttyUSB2 (at), ttyUSB3 (at), ttyUSB4 
> (ignored), wwan0 (net)
>
>   --
>
>   Numbers  |own: 9108813566
>
>   

RE: LN920: MBIM Bands not shown (MM 1.18.2)

2021-10-11 Thread Amol Lad
LIBQMI_WITH_MBIM_QMUX is enabled in libqmi and qmicli reports ok. It seems for 
some reasons modemmanager is not able to read out the bands. Any input 
regarding this will be helpful.

# qmicli -d /dev/cdc-wdm0 -p --dms-get-band-capabilities
[/dev/cdc-wdm0] Device band capabilities retrieved:
Bands: 'wcdma-2100, wcdma-pcs-1900, wcdma-dcs-1800, wcdma-1700-us, 
wcdma-850-us, wcdma-800, wcdma-900, wcdma-1700-japan, wcdma-850-japan'
LTE bands: '1, 2, 3, 4, 5, 7, 8, 12, 13, 14, 17, 18, 19, 20, 25, 26, 
28, 29, 30, 38, 39, 40, 41, 42, 43'
LTE bands (extended): '1, 2, 3, 4, 5, 7, 8, 12, 13, 14, 17, 18, 19, 20, 
25, 26, 28, 29, 30, 38, 39, 40, 41, 42, 43, 48, 66, 71'

Thanks
Amol

From: Amol Lad
Sent: Monday, 11 October 2021 6:34 PM
To: 'Daniele Palmas' ; 'ModemManager (development)' 

Subject: LN920: MBIM Bands not shown (MM 1.18.2)

Hi Daniele,

I'm patched my MM 1.18.2 with your MR (LN920 Initial Support) and testing LN920 
in MBIM mode. I'm noticing that the "supported" and "current" bands are not 
shown in "mmcli -m 0" output and below error is seen in the logs:

  [modem0] couldn't load supported bands: Could not find 4G band flags 
from response

Any suggestion what could be going wrong?

mmcli -m 0 output in both MBIM and QMI is below:


MBIM


# mmcli -m 0
  --
  General  |   path: /org/freedesktop/ModemManager1/Modem/0
   |  device id: 168c2aa5755860bee3694899a635af0df25e7fcf
  --
  Hardware |   manufacturer: Telit Wireless Solutions
   |  model: LN920
   |  firmware revision: SDX12.LE.1.0-00085-NBOOT.NEFS.
   | carrier config: default
   |   h/w revision: LN920A12-WW
   |  supported: gsm-umts, lte
   |current: gsm-umts, lte
   |   equipment id: 354175759991229
  --
  System   | device: 
/sys/devices/platform/soc/soc:internal-regs/f10f.usb3/usb2/2-1
   |drivers: cdc_mbim, option1
   | plugin: telit
   |   primary port: cdc-wdm0
   |  ports: cdc-wdm0 (mbim), ttyUSB0 (ignored), 
ttyUSB1 (gps),
   | ttyUSB2 (at), ttyUSB3 (at), ttyUSB4 
(ignored), wwan0 (net)
  --
  Numbers  |own: 9108813566
  --
  Status   | unlock retries: sim-pin2 (3)
   |  state: connected
   |power state: on
   |access tech: lte
   | signal quality: 12% (recent)
  --
  Modes|  supported: allowed: 3g; preferred: none
   | allowed: 4g; preferred: none
   | allowed: 3g, 4g; preferred: none
   |current: allowed: 4g; preferred: none
  --
  IP   |  supported: ipv4, ipv6, ipv4v6
  --
  3GPP |   imei: 354175759991229
   |  enabled locks: fixed-dialing
   |operator id: 40445
   |  operator name: airtel
   |   registration: home
  --
  3GPP EPS |   ue mode of operation: csps-2
   |initial bearer path: /org/freedesktop/ModemManager1/Bearer/0
   | initial bearer ip type: ipv4v6
  --
  SIM  |   primary sim path: /org/freedesktop/ModemManager1/SIM/0
   | sim slot paths: slot 1: 
/org/freedesktop/ModemManager1/SIM/0 (active)
   | slot 2: 
/org/freedesktop/ModemManager1/SIM/1
  --
  Bearer   |  paths: /org/freedesktop/ModemManager1/Bearer/1


QMI
---

  --
  General  |   path: /org/freedesktop/ModemManager1/Modem/0
   |  device id: 5c1922b03727107842603eccdea2bb4cd26436f5
  --
  Hardware |   manufacturer: Telit
   |  model: LN920A12-WW
   |  firmware revision: M0L.00-A006
   | carrier config: default
   |   h/w revision: 10001
   |  supported: gsm-umts, lte
   |current: gsm-umts, lte
   |   equipment id: 354175759991229
  --
  System   | device: 
/sys/devices/platform/soc/soc:internal-regs/f10f.usb3/usb2/2-1
   |drivers: option1, qmi_wwan
   | plugin: telit
   |   primary port: cdc-wdm0
 

LN920: MBIM Bands not shown (MM 1.18.2)

2021-10-11 Thread Amol Lad
Hi Daniele,

I'm patched my MM 1.18.2 with your MR (LN920 Initial Support) and testing LN920 
in MBIM mode. I'm noticing that the "supported" and "current" bands are not 
shown in "mmcli -m 0" output and below error is seen in the logs:

  [modem0] couldn't load supported bands: Could not find 4G band flags 
from response

Any suggestion what could be going wrong?

mmcli -m 0 output in both MBIM and QMI is below:


MBIM


# mmcli -m 0
  --
  General  |   path: /org/freedesktop/ModemManager1/Modem/0
   |  device id: 168c2aa5755860bee3694899a635af0df25e7fcf
  --
  Hardware |   manufacturer: Telit Wireless Solutions
   |  model: LN920
   |  firmware revision: SDX12.LE.1.0-00085-NBOOT.NEFS.
   | carrier config: default
   |   h/w revision: LN920A12-WW
   |  supported: gsm-umts, lte
   |current: gsm-umts, lte
   |   equipment id: 354175759991229
  --
  System   | device: 
/sys/devices/platform/soc/soc:internal-regs/f10f.usb3/usb2/2-1
   |drivers: cdc_mbim, option1
   | plugin: telit
   |   primary port: cdc-wdm0
   |  ports: cdc-wdm0 (mbim), ttyUSB0 (ignored), 
ttyUSB1 (gps),
   | ttyUSB2 (at), ttyUSB3 (at), ttyUSB4 
(ignored), wwan0 (net)
  --
  Numbers  |own: 9108813566
  --
  Status   | unlock retries: sim-pin2 (3)
   |  state: connected
   |power state: on
   |access tech: lte
   | signal quality: 12% (recent)
  --
  Modes|  supported: allowed: 3g; preferred: none
   | allowed: 4g; preferred: none
   | allowed: 3g, 4g; preferred: none
   |current: allowed: 4g; preferred: none
  --
  IP   |  supported: ipv4, ipv6, ipv4v6
  --
  3GPP |   imei: 354175759991229
   |  enabled locks: fixed-dialing
   |operator id: 40445
   |  operator name: airtel
   |   registration: home
  --
  3GPP EPS |   ue mode of operation: csps-2
   |initial bearer path: /org/freedesktop/ModemManager1/Bearer/0
   | initial bearer ip type: ipv4v6
  --
  SIM  |   primary sim path: /org/freedesktop/ModemManager1/SIM/0
   | sim slot paths: slot 1: 
/org/freedesktop/ModemManager1/SIM/0 (active)
   | slot 2: 
/org/freedesktop/ModemManager1/SIM/1
  --
  Bearer   |  paths: /org/freedesktop/ModemManager1/Bearer/1


QMI
---

  --
  General  |   path: /org/freedesktop/ModemManager1/Modem/0
   |  device id: 5c1922b03727107842603eccdea2bb4cd26436f5
  --
  Hardware |   manufacturer: Telit
   |  model: LN920A12-WW
   |  firmware revision: M0L.00-A006
   | carrier config: default
   |   h/w revision: 10001
   |  supported: gsm-umts, lte
   |current: gsm-umts, lte
   |   equipment id: 354175759991229
  --
  System   | device: 
/sys/devices/platform/soc/soc:internal-regs/f10f.usb3/usb2/2-1
   |drivers: option1, qmi_wwan
   | plugin: telit
   |   primary port: cdc-wdm0
   |  ports: cdc-wdm0 (qmi), ttyUSB0 (ignored), ttyUSB1 
(gps),
   | ttyUSB2 (at), ttyUSB3 (at), ttyUSB4 
(ignored), wwan0 (net)
  --
  Numbers  |own: 9108813566
  --
  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: lte
   | signal quality: 42% (recent)
  --
  Modes|  supported: allowed: 3g; preferred: none
   | allowed: 4g; preferred: none
   | allowed: 3g, 4g; preferred: 4g
   |