AW: Set allowed mode to 2G, 3G, 4G not working

2019-11-21 Thread Stelling2 Carsten
Hi Daniele,

sorry for answering late. I'm very busy this week.
I'll test it next week and provide the debug logs.

Thank you very much so far.

Carsten

-Ursprüngliche Nachricht-
Von: Daniele Palmas [mailto:dnl...@gmail.com] 
Gesendet: Mittwoch, 20. November 2019 14:01
An: Stelling2 Carsten
Cc: modemmanager-devel@lists.freedesktop.org
Betreff: Re: Set allowed mode to 2G, 3G, 4G not working

Hi Carsten,

Il giorno mar 19 nov 2019 alle ore 14:24 Daniele Palmas
 ha scritto:
>
> Hi Carsten,
>
> Il giorno mar 19 nov 2019 alle ore 10:10 Stelling2 Carsten
>  ha scritto:
> >
> > Hi,
> >
> > I've just updated MM from 1.10.0 to 1.12.0 with the result, that my 
> > application fails when setting the mode ('2G|4G') for Telit LE910-EU1. It 
> > also fails when using mmcli.
> > My version 1.10.0 contains Daniele's patches mentioned here 
> > https://lists.freedesktop.org/archives/modemmanager-devel/2019-February/007044.html
> >  and in following messages.
> >
> > I assume, that Daniele's patches didn't go mainline.
> >
>
> odd, they should be there, see commits 3921c120 and c7be4af5.
>
> I'll try to verify the feature on my LE910-EU1 by this week and give
> you some feedback.
>

I double-checked with 1.12.0, but I did not find any issue, see the following:

ModemManager[25584]:   [1574254091.241979] ModemManager (version
1.12.0) starting in system bus...

danielepa@danielepa-ThinkCentre-M93p:~/git/gitlab/ModemManager$ sudo mmcli -m 0
  
  General  |dbus path: /org/freedesktop/ModemManager1/Modem/0
   |device id: e3d2345d529078ca9387c8f81a844f19097127ca
  
  Hardware | manufacturer: Telit
   |model: FIH7160
   | revision: 20.00.414
   | h/w revision: XMM7160_V1.2_HWID790_MBIM_NAND
   |supported: gsm-umts, lte
   |  current: gsm-umts, lte
   | equipment id: 356611070026426
  
  System   |   device: /sys/devices/pci:00/:00:14.0/usb3/3-7
   |  drivers: cdc_acm, cdc_mbim
   |   plugin: Telit
   | primary port: cdc-wdm0
   |ports: ttyACM3 (at), wwp0s20u7i12 (net),
cdc-wdm0 (mbim)
  
  Status   |   unlock retries: sim-pin2 (3)
   |state: enabling
   |  power state: on
   |   signal quality: 0% (cached)
  
  Modes|supported: allowed: 2g; preferred: none
   |   allowed: 4g; preferred: none
   |   allowed: 2g, 4g; preferred: none
   |  current: allowed: 2g, 4g; preferred: none
  
  Bands|supported: egsm, dcs, eutran-1, eutran-3,
eutran-7, eutran-8, eutran-20
   |  current: egsm, dcs, eutran-1
  
  IP   |supported: ipv4, ipv6, ipv4v6
  
  3GPP | imei: 356611070026426
   |enabled locks: fixed-dialing
  
  3GPP EPS | ue mode of operation: csps-1
  
  SIM  |dbus path: /org/freedesktop/ModemManager1/SIM/0

danielepa@danielepa-ThinkCentre-M93p:~/git/ModemManager$ sudo
./cli/mmcli -m 0 --set-allowed-modes="2G"
successfully set current modes in the modem

ModemManager[25584]:  [1574254264.636226] (ttyACM3) device open
count is 3 (open)
ModemManager[25584]:  [1574254264.636294] (ttyACM3): --> 'AT+WS46=12'
ModemManager[25584]:  [1574254266.556383] (ttyACM3): <--
'OK'
ModemManager[25584]:  [1574254266.556495] (ttyACM3) device open
count is 4 (open)
ModemManager[25584]:  [1574254266.556532] (ttyACM3) device open
count is 3 (close)
ModemManager[25584]:  [1574254266.556559] (ttyACM3): --> 'AT+WS46?'
ModemManager[25584]:  [1574254266.568991] (ttyACM3): <-- ''
ModemManager[25584]:  [1574254266.569435] (ttyACM3): <--
'+WS46: 12OK'
ModemManager[25584]:  [1574254266.569582] Periodic signal check
refresh requested
ModemManager[25584]: [/dev/cdc-wdm0] Sent message...

danielepa@danielepa-ThinkCentre-M93p:~/git/ModemManager$ sudo ./cli/mmcli -m 0

  
  Modes|supported: allowed: 2g; preferred: none
   |   allowed: 4g; preferred: none
   |   allowed: 2g, 4g; preferred: none
   |  current: allowed: 2g; preferred: none


danielepa@danielepa-ThinkCentre-M93p:~/git/ModemManager$ sudo
./cli/mmcli -m 0 --set-allowed-modes="2G|4G"
successfully set current modes in the modem

ModemManager[25584]:  [1574254329.741936] (ttyACM3) device open
count is 3 (open)
ModemManager[25584]:  [1574254329.741979] (ttyACM3): --> 

Re: AW: Set allowed mode to 2G, 3G, 4G not working

2019-11-19 Thread Enrico Mioso




On Tue, 19 Nov 2019, Daniele Palmas wrote:


Date: Tue, 19 Nov 2019 14:25:52
From: Daniele Palmas 
To: Enrico Mioso 
Cc: Stelling2 Carsten ,
"modemmanager-devel@lists.freedesktop.org"

Subject: Re: AW: Set allowed mode to 2G, 3G, 4G not working

Hi Enrico,

Il giorno mar 19 nov 2019 alle ore 10:52 Enrico Mioso
 ha scritto:


I am experiencing similar issues when trying to set allowed mode to all modes, and 
preferred to "none in particular" :) .
Simply doesn't work - even with a success message then settings remain so that 
preferred mode looks to be 4G. Would like very much to solve this.



are you using LE910-EU1 as well?


Hi Daniele!
Sorry, hasn't been as specific as needed, that's bad. Sorry.
No, i experienced this with a Quectel EC25 modem... Didn't solve this even 
after factory reset, but at this point I don't know what's going on. Thank you 
very much.
Enrico


Regards,
Daniele


Enrico



On Tue, 19 Nov 2019, Stelling2 Carsten wrote:


Date: Tue, 19 Nov 2019 10:10:44
From: Stelling2 Carsten 
To: "modemmanager-devel@lists.freedesktop.org"
,
"Daniele Palmas (dnl...@gmail.com)" 
Subject: AW: Set allowed mode to 2G, 3G, 4G not working

Hi,

I've just updated MM from 1.10.0 to 1.12.0 with the result, that my application 
fails when setting the mode ('2G|4G') for Telit LE910-EU1. It also fails when 
using mmcli.
My version 1.10.0 contains Daniele's patches mentioned here 
https://lists.freedesktop.org/archives/modemmanager-devel/2019-February/007044.html
 and in following messages.

I assume, that Daniele's patches didn't go mainline.

Daniele, can you send a merge request, containing your patches for the master 
branch?
I'll test them as soon as possible with Telit LE910-EU1 and give you feedback, 
such that this feature can be released.

Thank you for your help.

Carsten

-Ursprüngliche Nachricht-
Von: ModemManager-devel 
[mailto:modemmanager-devel-boun...@lists.freedesktop.org] Im Auftrag von 
Stelling2 Carsten
Gesendet: Mittwoch, 27. Februar 2019 10:16
An: Daniele Palmas
Cc: modemmanager-devel@lists.freedesktop.org; Reinhard Speyerer; Aleksander 
Morgado
Betreff: AW: Set allowed mode to 2G, 3G, 4G not working

Hi Daniele,

Thank you. Yes, I'll give it a try tomorrow.

Following patches from your commits should be applied to MM 1.10.0

4089726c1fbdc90ecec8737f9ea287784708ca7f
90cb911437538d5b6bd681aa1d7e1be2e1700227

Is this right?

Best regards,

Carsten

-Ursprüngliche Nachricht-
Von: Daniele Palmas [mailto:dnl...@gmail.com]
Gesendet: Dienstag, 26. Februar 2019 14:59
An: Stelling2 Carsten
Cc: Aleksander Morgado; Reinhard Speyerer; 
modemmanager-devel@lists.freedesktop.org
Betreff: Re: Set allowed mode to 2G, 3G, 4G not working

Hi Carsten,

Il giorno ven 22 feb 2019 alle ore 12:12 Stelling2 Carsten
 ha scritto:


Hi,

I must correct me, modem type is LE910-EU1 as Reinhard assumed. Sorry for this 
confusion.
As a workaround for testing, we send AT+WS46 commands via D-Bus, but that seems 
possible only, if MM runs in debug mode.
If we need this feature for production in the future, I understand that we can 
add it to the Telit plugin.


at the following link

https://gitlab.freedesktop.org/dnlplm/ModemManager.git

you can find a fork with two additional commits that should implement
what needed.

Before sending to Aleksander a merge request would you like to give it a try?

Regards,
Daniele


I'd be very happy, if you can support me during implementation at a later point 
in time.

Thank you Aleksander and Reinhard for your support.

Carsten

-Ursprüngliche Nachricht-
Von: Aleksander Morgado [mailto:aleksan...@aleksander.es]
Gesendet: Freitag, 22. Februar 2019 09:59
An: Reinhard Speyerer
Cc: modemmanager-devel@lists.freedesktop.org; Stelling2 Carsten
Betreff: Re: Set allowed mode to 2G, 3G, 4G not working


Within the debug output I found the following line
ModemManager[623]:  [1550762368.321591] MBIM-powered Telit modem found...
which points out, that calling
if (mm_port_probe_list_is_xmm (probes))
did not find the XMM support.


It didn't find it, because the XACT=? check failed:
ModemManager[623]:  [1550762359.960165] (ttyACM0): --> 'AT+XACT=?'
ModemManager[623]:  [1550762360.882668] (ttyACM0): <--
'ERROR'

So I assume the XMM support that we have in the xmm plugin isn't ready
to handle this specific device.

The inability to switch modes in this device is not a bug, it's just
not implemented I'm afraid.


Hi Aleksander,

the Telit-preferred way seems to be to handle this with AT+WS46.
I haven't checked the code in detail but based on the AT+WS46
references in the Telit plugin I would have expected for
ModemManager to already use it.



If the modem is managed with MBIM, the generic MBIM implementation is
used for the Telit modem, so no AT+WS46 based mode switching will be
done. For this kind of cases, where we have MBIM for generic control
plus AT for other features, we would need to have a
"MMBr

Re: AW: Set allowed mode to 2G, 3G, 4G not working

2019-11-19 Thread Daniele Palmas
Hi Enrico,

Il giorno mar 19 nov 2019 alle ore 10:52 Enrico Mioso
 ha scritto:
>
> I am experiencing similar issues when trying to set allowed mode to all 
> modes, and preferred to "none in particular" :) .
> Simply doesn't work - even with a success message then settings remain so 
> that preferred mode looks to be 4G. Would like very much to solve this.
>

are you using LE910-EU1 as well?

Regards,
Daniele

> Enrico
>
>
>
> On Tue, 19 Nov 2019, Stelling2 Carsten wrote:
>
> > Date: Tue, 19 Nov 2019 10:10:44
> > From: Stelling2 Carsten 
> > To: "modemmanager-devel@lists.freedesktop.org"
> > ,
> >     "Daniele Palmas (dnl...@gmail.com)" 
> > Subject: AW: Set allowed mode to 2G, 3G, 4G not working
> >
> > Hi,
> >
> > I've just updated MM from 1.10.0 to 1.12.0 with the result, that my 
> > application fails when setting the mode ('2G|4G') for Telit LE910-EU1. It 
> > also fails when using mmcli.
> > My version 1.10.0 contains Daniele's patches mentioned here 
> > https://lists.freedesktop.org/archives/modemmanager-devel/2019-February/007044.html
> >  and in following messages.
> >
> > I assume, that Daniele's patches didn't go mainline.
> >
> > Daniele, can you send a merge request, containing your patches for the 
> > master branch?
> > I'll test them as soon as possible with Telit LE910-EU1 and give you 
> > feedback, such that this feature can be released.
> >
> > Thank you for your help.
> >
> > Carsten
> >
> > -Ursprüngliche Nachricht-
> > Von: ModemManager-devel 
> > [mailto:modemmanager-devel-boun...@lists.freedesktop.org] Im Auftrag von 
> > Stelling2 Carsten
> > Gesendet: Mittwoch, 27. Februar 2019 10:16
> > An: Daniele Palmas
> > Cc: modemmanager-devel@lists.freedesktop.org; Reinhard Speyerer; Aleksander 
> > Morgado
> > Betreff: AW: Set allowed mode to 2G, 3G, 4G not working
> >
> > Hi Daniele,
> >
> > Thank you. Yes, I'll give it a try tomorrow.
> >
> > Following patches from your commits should be applied to MM 1.10.0
> >
> > 4089726c1fbdc90ecec8737f9ea287784708ca7f
> > 90cb911437538d5b6bd681aa1d7e1be2e1700227
> >
> > Is this right?
> >
> > Best regards,
> >
> > Carsten
> >
> > -Ursprüngliche Nachricht-
> > Von: Daniele Palmas [mailto:dnl...@gmail.com]
> > Gesendet: Dienstag, 26. Februar 2019 14:59
> > An: Stelling2 Carsten
> > Cc: Aleksander Morgado; Reinhard Speyerer; 
> > modemmanager-devel@lists.freedesktop.org
> > Betreff: Re: Set allowed mode to 2G, 3G, 4G not working
> >
> > Hi Carsten,
> >
> > Il giorno ven 22 feb 2019 alle ore 12:12 Stelling2 Carsten
> >  ha scritto:
> >>
> >> Hi,
> >>
> >> I must correct me, modem type is LE910-EU1 as Reinhard assumed. Sorry for 
> >> this confusion.
> >> As a workaround for testing, we send AT+WS46 commands via D-Bus, but that 
> >> seems possible only, if MM runs in debug mode.
> >> If we need this feature for production in the future, I understand that we 
> >> can add it to the Telit plugin.
> >
> > at the following link
> >
> > https://gitlab.freedesktop.org/dnlplm/ModemManager.git
> >
> > you can find a fork with two additional commits that should implement
> > what needed.
> >
> > Before sending to Aleksander a merge request would you like to give it a 
> > try?
> >
> > Regards,
> > Daniele
> >
> >> I'd be very happy, if you can support me during implementation at a later 
> >> point in time.
> >>
> >> Thank you Aleksander and Reinhard for your support.
> >>
> >> Carsten
> >>
> >> -Ursprüngliche Nachricht-
> >> Von: Aleksander Morgado [mailto:aleksan...@aleksander.es]
> >> Gesendet: Freitag, 22. Februar 2019 09:59
> >> An: Reinhard Speyerer
> >> Cc: modemmanager-devel@lists.freedesktop.org; Stelling2 Carsten
> >> Betreff: Re: Set allowed mode to 2G, 3G, 4G not working
> >>
> >>>>> Within the debug output I found the following line
> >>>>> ModemManager[623]:  [1550762368.321591] MBIM-powered Telit modem 
> >>>>> found...
> >>>>> which points out, that calling
> >>>>> if (mm_port_probe_list_is_xmm (probes))
> >>>>> did not find the XMM support.
> >>>>
> >>>> It didn't find it, because the XACT=? check failed:
> >>>> ModemManager[623

Re: AW: Set allowed mode to 2G, 3G, 4G not working

2019-11-19 Thread Enrico Mioso

I am experiencing similar issues when trying to set allowed mode to all modes, and 
preferred to "none in particular" :) .
Simply doesn't work - even with a success message then settings remain so that 
preferred mode looks to be 4G. Would like very much to solve this.

Enrico



On Tue, 19 Nov 2019, Stelling2 Carsten wrote:


Date: Tue, 19 Nov 2019 10:10:44
From: Stelling2 Carsten 
To: "modemmanager-devel@lists.freedesktop.org"
,
"Daniele Palmas (dnl...@gmail.com)" 
Subject: AW: Set allowed mode to 2G, 3G, 4G not working

Hi,

I've just updated MM from 1.10.0 to 1.12.0 with the result, that my application 
fails when setting the mode ('2G|4G') for Telit LE910-EU1. It also fails when 
using mmcli.
My version 1.10.0 contains Daniele's patches mentioned here 
https://lists.freedesktop.org/archives/modemmanager-devel/2019-February/007044.html
 and in following messages.

I assume, that Daniele's patches didn't go mainline.

Daniele, can you send a merge request, containing your patches for the master 
branch?
I'll test them as soon as possible with Telit LE910-EU1 and give you feedback, 
such that this feature can be released.

Thank you for your help.

Carsten

-Ursprüngliche Nachricht-
Von: ModemManager-devel 
[mailto:modemmanager-devel-boun...@lists.freedesktop.org] Im Auftrag von 
Stelling2 Carsten
Gesendet: Mittwoch, 27. Februar 2019 10:16
An: Daniele Palmas
Cc: modemmanager-devel@lists.freedesktop.org; Reinhard Speyerer; Aleksander 
Morgado
Betreff: AW: Set allowed mode to 2G, 3G, 4G not working

Hi Daniele,

Thank you. Yes, I'll give it a try tomorrow.

Following patches from your commits should be applied to MM 1.10.0

4089726c1fbdc90ecec8737f9ea287784708ca7f
90cb911437538d5b6bd681aa1d7e1be2e1700227

Is this right?

Best regards,

Carsten

-Ursprüngliche Nachricht-
Von: Daniele Palmas [mailto:dnl...@gmail.com]
Gesendet: Dienstag, 26. Februar 2019 14:59
An: Stelling2 Carsten
Cc: Aleksander Morgado; Reinhard Speyerer; 
modemmanager-devel@lists.freedesktop.org
Betreff: Re: Set allowed mode to 2G, 3G, 4G not working

Hi Carsten,

Il giorno ven 22 feb 2019 alle ore 12:12 Stelling2 Carsten
 ha scritto:


Hi,

I must correct me, modem type is LE910-EU1 as Reinhard assumed. Sorry for this 
confusion.
As a workaround for testing, we send AT+WS46 commands via D-Bus, but that seems 
possible only, if MM runs in debug mode.
If we need this feature for production in the future, I understand that we can 
add it to the Telit plugin.


at the following link

https://gitlab.freedesktop.org/dnlplm/ModemManager.git

you can find a fork with two additional commits that should implement
what needed.

Before sending to Aleksander a merge request would you like to give it a try?

Regards,
Daniele


I'd be very happy, if you can support me during implementation at a later point 
in time.

Thank you Aleksander and Reinhard for your support.

Carsten

-Ursprüngliche Nachricht-
Von: Aleksander Morgado [mailto:aleksan...@aleksander.es]
Gesendet: Freitag, 22. Februar 2019 09:59
An: Reinhard Speyerer
Cc: modemmanager-devel@lists.freedesktop.org; Stelling2 Carsten
Betreff: Re: Set allowed mode to 2G, 3G, 4G not working


Within the debug output I found the following line
ModemManager[623]:  [1550762368.321591] MBIM-powered Telit modem found...
which points out, that calling
if (mm_port_probe_list_is_xmm (probes))
did not find the XMM support.


It didn't find it, because the XACT=? check failed:
ModemManager[623]:  [1550762359.960165] (ttyACM0): --> 'AT+XACT=?'
ModemManager[623]:  [1550762360.882668] (ttyACM0): <--
'ERROR'

So I assume the XMM support that we have in the xmm plugin isn't ready
to handle this specific device.

The inability to switch modes in this device is not a bug, it's just
not implemented I'm afraid.


Hi Aleksander,

the Telit-preferred way seems to be to handle this with AT+WS46.
I haven't checked the code in detail but based on the AT+WS46
references in the Telit plugin I would have expected for
ModemManager to already use it.



If the modem is managed with MBIM, the generic MBIM implementation is
used for the Telit modem, so no AT+WS46 based mode switching will be
done. For this kind of cases, where we have MBIM for generic control
plus AT for other features, we would need to have a
"MMBroadbandModemMbimTelit" implementation that inherits from
MMBroadbandModemMbim but then shares features with the Telit-specific
AT modem object. So, it's totally possible to do this, but needs to be
done.

--
Aleksander
https://aleksander.es


___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel



___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

AW: Set allowed mode to 2G, 3G, 4G not working

2019-11-19 Thread Stelling2 Carsten
Hi,

I've just updated MM from 1.10.0 to 1.12.0 with the result, that my application 
fails when setting the mode ('2G|4G') for Telit LE910-EU1. It also fails when 
using mmcli.
My version 1.10.0 contains Daniele's patches mentioned here 
https://lists.freedesktop.org/archives/modemmanager-devel/2019-February/007044.html
 and in following messages.

I assume, that Daniele's patches didn't go mainline.

Daniele, can you send a merge request, containing your patches for the master 
branch?
I'll test them as soon as possible with Telit LE910-EU1 and give you feedback, 
such that this feature can be released.

Thank you for your help.

Carsten

-Ursprüngliche Nachricht-
Von: ModemManager-devel 
[mailto:modemmanager-devel-boun...@lists.freedesktop.org] Im Auftrag von 
Stelling2 Carsten
Gesendet: Mittwoch, 27. Februar 2019 10:16
An: Daniele Palmas
Cc: modemmanager-devel@lists.freedesktop.org; Reinhard Speyerer; Aleksander 
Morgado
Betreff: AW: Set allowed mode to 2G, 3G, 4G not working

Hi Daniele,

Thank you. Yes, I'll give it a try tomorrow.

Following patches from your commits should be applied to MM 1.10.0

4089726c1fbdc90ecec8737f9ea287784708ca7f
90cb911437538d5b6bd681aa1d7e1be2e1700227

Is this right?

Best regards,

Carsten

-Ursprüngliche Nachricht-
Von: Daniele Palmas [mailto:dnl...@gmail.com] 
Gesendet: Dienstag, 26. Februar 2019 14:59
An: Stelling2 Carsten
Cc: Aleksander Morgado; Reinhard Speyerer; 
modemmanager-devel@lists.freedesktop.org
Betreff: Re: Set allowed mode to 2G, 3G, 4G not working

Hi Carsten,

Il giorno ven 22 feb 2019 alle ore 12:12 Stelling2 Carsten
 ha scritto:
>
> Hi,
>
> I must correct me, modem type is LE910-EU1 as Reinhard assumed. Sorry for 
> this confusion.
> As a workaround for testing, we send AT+WS46 commands via D-Bus, but that 
> seems possible only, if MM runs in debug mode.
> If we need this feature for production in the future, I understand that we 
> can add it to the Telit plugin.

at the following link

https://gitlab.freedesktop.org/dnlplm/ModemManager.git

you can find a fork with two additional commits that should implement
what needed.

Before sending to Aleksander a merge request would you like to give it a try?

Regards,
Daniele

> I'd be very happy, if you can support me during implementation at a later 
> point in time.
>
> Thank you Aleksander and Reinhard for your support.
>
> Carsten
>
> -Ursprüngliche Nachricht-
> Von: Aleksander Morgado [mailto:aleksan...@aleksander.es]
> Gesendet: Freitag, 22. Februar 2019 09:59
> An: Reinhard Speyerer
> Cc: modemmanager-devel@lists.freedesktop.org; Stelling2 Carsten
> Betreff: Re: Set allowed mode to 2G, 3G, 4G not working
>
> > > > Within the debug output I found the following line
> > > > ModemManager[623]:  [1550762368.321591] MBIM-powered Telit modem 
> > > > found...
> > > > which points out, that calling
> > > > if (mm_port_probe_list_is_xmm (probes))
> > > > did not find the XMM support.
> > >
> > > It didn't find it, because the XACT=? check failed:
> > > ModemManager[623]:  [1550762359.960165] (ttyACM0): --> 
> > > 'AT+XACT=?'
> > > ModemManager[623]:  [1550762360.882668] (ttyACM0): <--
> > > 'ERROR'
> > >
> > > So I assume the XMM support that we have in the xmm plugin isn't ready
> > > to handle this specific device.
> > >
> > > The inability to switch modes in this device is not a bug, it's just
> > > not implemented I'm afraid.
> >
> > Hi Aleksander,
> >
> > the Telit-preferred way seems to be to handle this with AT+WS46.
> > I haven't checked the code in detail but based on the AT+WS46
> > references in the Telit plugin I would have expected for
> > ModemManager to already use it.
> >
>
> If the modem is managed with MBIM, the generic MBIM implementation is
> used for the Telit modem, so no AT+WS46 based mode switching will be
> done. For this kind of cases, where we have MBIM for generic control
> plus AT for other features, we would need to have a
> "MMBroadbandModemMbimTelit" implementation that inherits from
> MMBroadbandModemMbim but then shares features with the Telit-specific
> AT modem object. So, it's totally possible to do this, but needs to be
> done.
>
> --
> Aleksander
> https://aleksander.es
>
>
> ___
> ModemManager-devel mailing list
> ModemManager-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

AW: Set allowed mode to 2G, 3G, 4G not working

2019-02-27 Thread Stelling2 Carsten
Hi,

Thanks for clarification. This means, Daniele's patches work like expected.

Additional note: To make Daniele's patches work, I had to revert Aleksander's 
patch
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/merge_requests/72
to enable XMM features for Telit.

Thank you for your support.

Carsten

-Ursprüngliche Nachricht-
Von: Daniele Palmas [mailto:dnl...@gmail.com] 
Gesendet: Mittwoch, 27. Februar 2019 11:28
An: Aleksander Morgado
Cc: Stelling2 Carsten; modemmanager-devel@lists.freedesktop.org; Reinhard 
Speyerer
Betreff: Re: Set allowed mode to 2G, 3G, 4G not working

Il giorno mer 27 feb 2019 alle ore 11:22 Aleksander Morgado
 ha scritto:
>
> >
> > But setting the preferred mode fails.
> >
> > mmcli -m 0 --set-preferred-mode=2G
> > error: setting preferred mode requires list of allowed modes
> >
>
> This is expected; you only want to set a "preferred mode" if you're
> configuring multiple "allowed modes".
>
> E.g. if you just want 2G, you would do:
>   --set-allowed-modes=2G
> If you want 2G+3G with 3G preferred, you would do:
>   --set-allowed-modes="2G|3G" --set-preferred-mode=3G
>

Let me add also that preferred mode setting is not supported at the AT
command level for Telit modems (see comment in set_current_modes).

Regards,
Daniele

> --
> Aleksander
> https://aleksander.es


___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

AW: Set allowed mode to 2G, 3G, 4G not working

2019-02-27 Thread Stelling2 Carsten
Hi Daniele,

I applied both patches, and can successfully switch from 2G to 4G and vice 
versa.

mmcli -m 0 --set-allowed-modes=2G
successfully set current modes in the modem

mmcli -m 0 shows in the Modes section:
supported: allowed: 2g; preferred: none
   allowed: 4g; preferred: none
   allowed: 2g, 4g; preferred: none
current: allowed: 2g; preferred: none

And in the Status section:
access tech: edge

But setting the preferred mode fails.

mmcli -m 0 --set-preferred-mode=2G
error: setting preferred mode requires list of allowed modes

Regards,

Carsten

-Ursprüngliche Nachricht-
Von: ModemManager-devel 
[mailto:modemmanager-devel-boun...@lists.freedesktop.org] Im Auftrag von 
Stelling2 Carsten
Gesendet: Mittwoch, 27. Februar 2019 10:16
An: Daniele Palmas
Cc: modemmanager-devel@lists.freedesktop.org; Reinhard Speyerer; Aleksander 
Morgado
Betreff: AW: Set allowed mode to 2G, 3G, 4G not working

Hi Daniele,

Thank you. Yes, I'll give it a try tomorrow.

Following patches from your commits should be applied to MM 1.10.0

4089726c1fbdc90ecec8737f9ea287784708ca7f
90cb911437538d5b6bd681aa1d7e1be2e1700227

Is this right?

Best regards,

Carsten

-Ursprüngliche Nachricht-
Von: Daniele Palmas [mailto:dnl...@gmail.com] 
Gesendet: Dienstag, 26. Februar 2019 14:59
An: Stelling2 Carsten
Cc: Aleksander Morgado; Reinhard Speyerer; 
modemmanager-devel@lists.freedesktop.org
Betreff: Re: Set allowed mode to 2G, 3G, 4G not working

Hi Carsten,

Il giorno ven 22 feb 2019 alle ore 12:12 Stelling2 Carsten
 ha scritto:
>
> Hi,
>
> I must correct me, modem type is LE910-EU1 as Reinhard assumed. Sorry for 
> this confusion.
> As a workaround for testing, we send AT+WS46 commands via D-Bus, but that 
> seems possible only, if MM runs in debug mode.
> If we need this feature for production in the future, I understand that we 
> can add it to the Telit plugin.

at the following link

https://gitlab.freedesktop.org/dnlplm/ModemManager.git

you can find a fork with two additional commits that should implement
what needed.

Before sending to Aleksander a merge request would you like to give it a try?

Regards,
Daniele

> I'd be very happy, if you can support me during implementation at a later 
> point in time.
>
> Thank you Aleksander and Reinhard for your support.
>
> Carsten
>
> -Ursprüngliche Nachricht-
> Von: Aleksander Morgado [mailto:aleksan...@aleksander.es]
> Gesendet: Freitag, 22. Februar 2019 09:59
> An: Reinhard Speyerer
> Cc: modemmanager-devel@lists.freedesktop.org; Stelling2 Carsten
> Betreff: Re: Set allowed mode to 2G, 3G, 4G not working
>
> > > > Within the debug output I found the following line
> > > > ModemManager[623]:  [1550762368.321591] MBIM-powered Telit modem 
> > > > found...
> > > > which points out, that calling
> > > > if (mm_port_probe_list_is_xmm (probes))
> > > > did not find the XMM support.
> > >
> > > It didn't find it, because the XACT=? check failed:
> > > ModemManager[623]:  [1550762359.960165] (ttyACM0): --> 
> > > 'AT+XACT=?'
> > > ModemManager[623]:  [1550762360.882668] (ttyACM0): <--
> > > 'ERROR'
> > >
> > > So I assume the XMM support that we have in the xmm plugin isn't ready
> > > to handle this specific device.
> > >
> > > The inability to switch modes in this device is not a bug, it's just
> > > not implemented I'm afraid.
> >
> > Hi Aleksander,
> >
> > the Telit-preferred way seems to be to handle this with AT+WS46.
> > I haven't checked the code in detail but based on the AT+WS46
> > references in the Telit plugin I would have expected for
> > ModemManager to already use it.
> >
>
> If the modem is managed with MBIM, the generic MBIM implementation is
> used for the Telit modem, so no AT+WS46 based mode switching will be
> done. For this kind of cases, where we have MBIM for generic control
> plus AT for other features, we would need to have a
> "MMBroadbandModemMbimTelit" implementation that inherits from
> MMBroadbandModemMbim but then shares features with the Telit-specific
> AT modem object. So, it's totally possible to do this, but needs to be
> done.
>
> --
> Aleksander
> https://aleksander.es
>
>
> ___
> ModemManager-devel mailing list
> ModemManager-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

AW: Set allowed mode to 2G, 3G, 4G not working

2019-02-27 Thread Stelling2 Carsten
Hi Daniele,

Thank you. Yes, I'll give it a try tomorrow.

Following patches from your commits should be applied to MM 1.10.0

4089726c1fbdc90ecec8737f9ea287784708ca7f
90cb911437538d5b6bd681aa1d7e1be2e1700227

Is this right?

Best regards,

Carsten

-Ursprüngliche Nachricht-
Von: Daniele Palmas [mailto:dnl...@gmail.com] 
Gesendet: Dienstag, 26. Februar 2019 14:59
An: Stelling2 Carsten
Cc: Aleksander Morgado; Reinhard Speyerer; 
modemmanager-devel@lists.freedesktop.org
Betreff: Re: Set allowed mode to 2G, 3G, 4G not working

Hi Carsten,

Il giorno ven 22 feb 2019 alle ore 12:12 Stelling2 Carsten
 ha scritto:
>
> Hi,
>
> I must correct me, modem type is LE910-EU1 as Reinhard assumed. Sorry for 
> this confusion.
> As a workaround for testing, we send AT+WS46 commands via D-Bus, but that 
> seems possible only, if MM runs in debug mode.
> If we need this feature for production in the future, I understand that we 
> can add it to the Telit plugin.

at the following link

https://gitlab.freedesktop.org/dnlplm/ModemManager.git

you can find a fork with two additional commits that should implement
what needed.

Before sending to Aleksander a merge request would you like to give it a try?

Regards,
Daniele

> I'd be very happy, if you can support me during implementation at a later 
> point in time.
>
> Thank you Aleksander and Reinhard for your support.
>
> Carsten
>
> -Ursprüngliche Nachricht-
> Von: Aleksander Morgado [mailto:aleksan...@aleksander.es]
> Gesendet: Freitag, 22. Februar 2019 09:59
> An: Reinhard Speyerer
> Cc: modemmanager-devel@lists.freedesktop.org; Stelling2 Carsten
> Betreff: Re: Set allowed mode to 2G, 3G, 4G not working
>
> > > > Within the debug output I found the following line
> > > > ModemManager[623]:  [1550762368.321591] MBIM-powered Telit modem 
> > > > found...
> > > > which points out, that calling
> > > > if (mm_port_probe_list_is_xmm (probes))
> > > > did not find the XMM support.
> > >
> > > It didn't find it, because the XACT=? check failed:
> > > ModemManager[623]:  [1550762359.960165] (ttyACM0): --> 
> > > 'AT+XACT=?'
> > > ModemManager[623]:  [1550762360.882668] (ttyACM0): <--
> > > 'ERROR'
> > >
> > > So I assume the XMM support that we have in the xmm plugin isn't ready
> > > to handle this specific device.
> > >
> > > The inability to switch modes in this device is not a bug, it's just
> > > not implemented I'm afraid.
> >
> > Hi Aleksander,
> >
> > the Telit-preferred way seems to be to handle this with AT+WS46.
> > I haven't checked the code in detail but based on the AT+WS46
> > references in the Telit plugin I would have expected for
> > ModemManager to already use it.
> >
>
> If the modem is managed with MBIM, the generic MBIM implementation is
> used for the Telit modem, so no AT+WS46 based mode switching will be
> done. For this kind of cases, where we have MBIM for generic control
> plus AT for other features, we would need to have a
> "MMBroadbandModemMbimTelit" implementation that inherits from
> MMBroadbandModemMbim but then shares features with the Telit-specific
> AT modem object. So, it's totally possible to do this, but needs to be
> done.
>
> --
> Aleksander
> https://aleksander.es
>
>
> ___
> ModemManager-devel mailing list
> ModemManager-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

AW: Set allowed mode to 2G, 3G, 4G not working

2019-02-22 Thread Stelling2 Carsten
Hi,

I must correct me, modem type is LE910-EU1 as Reinhard assumed. Sorry for this 
confusion.
As a workaround for testing, we send AT+WS46 commands via D-Bus, but that seems 
possible only, if MM runs in debug mode.
If we need this feature for production in the future, I understand that we can 
add it to the Telit plugin.
I'd be very happy, if you can support me during implementation at a later point 
in time.

Thank you Aleksander and Reinhard for your support.

Carsten

-Ursprüngliche Nachricht-
Von: Aleksander Morgado [mailto:aleksan...@aleksander.es] 
Gesendet: Freitag, 22. Februar 2019 09:59
An: Reinhard Speyerer
Cc: modemmanager-devel@lists.freedesktop.org; Stelling2 Carsten
Betreff: Re: Set allowed mode to 2G, 3G, 4G not working

> > > Within the debug output I found the following line
> > > ModemManager[623]:  [1550762368.321591] MBIM-powered Telit modem 
> > > found...
> > > which points out, that calling
> > > if (mm_port_probe_list_is_xmm (probes))
> > > did not find the XMM support.
> >
> > It didn't find it, because the XACT=? check failed:
> > ModemManager[623]:  [1550762359.960165] (ttyACM0): --> 
> > 'AT+XACT=?'
> > ModemManager[623]:  [1550762360.882668] (ttyACM0): <--
> > 'ERROR'
> >
> > So I assume the XMM support that we have in the xmm plugin isn't ready
> > to handle this specific device.
> >
> > The inability to switch modes in this device is not a bug, it's just
> > not implemented I'm afraid.
>
> Hi Aleksander,
>
> the Telit-preferred way seems to be to handle this with AT+WS46.
> I haven't checked the code in detail but based on the AT+WS46
> references in the Telit plugin I would have expected for
> ModemManager to already use it.
>

If the modem is managed with MBIM, the generic MBIM implementation is
used for the Telit modem, so no AT+WS46 based mode switching will be
done. For this kind of cases, where we have MBIM for generic control
plus AT for other features, we would need to have a
"MMBroadbandModemMbimTelit" implementation that inherits from
MMBroadbandModemMbim but then shares features with the Telit-specific
AT modem object. So, it's totally possible to do this, but needs to be
done.

-- 
Aleksander
https://aleksander.es


___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

AW: Set allowed mode to 2G, 3G, 4G not working

2019-02-21 Thread Stelling2 Carsten
Hi Aleksander,

Thank you for your fast response.
With your patch applied to 1.10.0, the error message is still the same.
Is there anything I can provide for debugging?

Carsten

-Ursprüngliche Nachricht-
Von: Aleksander Morgado [mailto:aleksan...@aleksander.es] 
Gesendet: Mittwoch, 20. Februar 2019 19:07
An: Stelling2 Carsten
Cc: modemmanager-devel@lists.freedesktop.org
Betreff: Re: Set allowed mode to 2G, 3G, 4G not working

Hey,

> I'm using ModemManager 1.10.0, and libmbim 1.18.0 in conjunction with Telit 
> LE910-EU V2.
> It all works fine, but I'm not able to set the preferred GSM mode or access 
> technology.
> I'm confused by this error message "Cannot change modes: only one combination 
> supported', because only one mode is given.
>
> Thank you for your help.
>
> Carsten
>
>
> root@test:~ mmcli -L
> /org/freedesktop/ModemManager1/Modem/0 [Telit] FIH7160
> root@test:~ mmcli -m 0 -e
> successfully enabled the modem
> root@test:~ mmcli -m 0 --set-allowed-modes=2G
> error: couldn't set current modes: 
> 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unsupported: Cannot 
> change modes: only one combination supported'
> root@test:~ mmcli -m 0 --set-allowed-modes=3G
> error: couldn't set current modes: 
> 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unsupported: Cannot 
> change modes: only one combination supported'
> root@test:~ mmcli -m 0 --set-allowed-modes=4G
> error: couldn't set current modes: 
> 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unsupported: Cannot 
> change modes: only one combination supported'
> root@test:~ mmcli -m 0 --set-preferred-mode=2G
> error: setting preferred mode requires list of allowed modes
> root@test:~ mmcli -m 0
>

Could you try with the patch here?
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/merge_requests/72
Totally untested!

-- 
Aleksander
https://aleksander.es


___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel