Re: libmbim 1.24.0 slowing down MM startup

2020-07-09 Thread Aleksander Morgado
Hey Amol,

>
>
> Did you got a chance to see those logs? Please let me know if any other 
> information is needed.
>

Not yet, sorry. Will let you know as soon as I find anything.

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


Re: Sims card informations

2020-07-09 Thread David Khouya
Thanks for the answer Dan.I'll try to find some info about it.

On Thu, Jul 9, 2020 at 10:54 AM Dan Williams  wrote:

> On Wed, 2020-07-08 at 14:43 -0400, David Khouya wrote:
> > Hi,
> >
> > I'm working on an embedded device and I would like to handle
> > correctly the
> > preferred modes with different sim cards. E.g. If I have a 3G sim
> > card, I
> > would like to set preferred mode to 3G instead of 4G.
> > My use case is that I need to support,with the same filesystem, 3G
> > and 4G
> > sims.
> >
> > I was wondering , except ICCID, if there's other information
> > available from
> > the sim card that could help to set the preferred mode.
>
> I'm sure there is that kind of information, but it may not be the case
> that ModemManager or libqmi expose it (yet). We'd need to figure out
> what SIM file has the right information.
> Dan
>
> > Thanks,
> >
> > On Wed, Jul 8, 2020 at 2:31 PM Mrkiko Rs  wrote:
> >
> > > Hello! If I understand this right, you may get the ICCID and
> > > distinguish
> > > SIM cards.
> > > Or do you need something different?
> > >
> > >
> > >
> > > 
> > > Hi,
> > >
> > > Is someone know or have a strategy to select the right mode
> > > (4G/3G/2G) for
> > > a specific sim card? Is it possible from the sim card information?
> > >
> > > Thanks,
> > >
> > > --
> > > *David Khouya*
> > >
> > >
> > > ___
> > > 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
>
>

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


Re: Sims card informations

2020-07-09 Thread Dan Williams
On Wed, 2020-07-08 at 14:43 -0400, David Khouya wrote:
> Hi,
> 
> I'm working on an embedded device and I would like to handle
> correctly the
> preferred modes with different sim cards. E.g. If I have a 3G sim
> card, I
> would like to set preferred mode to 3G instead of 4G.
> My use case is that I need to support,with the same filesystem, 3G
> and 4G
> sims.
> 
> I was wondering , except ICCID, if there's other information
> available from
> the sim card that could help to set the preferred mode.

I'm sure there is that kind of information, but it may not be the case
that ModemManager or libqmi expose it (yet). We'd need to figure out
what SIM file has the right information.
Dan

> Thanks,
> 
> On Wed, Jul 8, 2020 at 2:31 PM Mrkiko Rs  wrote:
> 
> > Hello! If I understand this right, you may get the ICCID and
> > distinguish
> > SIM cards.
> > Or do you need something different?
> > 
> > 
> > 
> > 
> > Hi,
> > 
> > Is someone know or have a strategy to select the right mode
> > (4G/3G/2G) for
> > a specific sim card? Is it possible from the sim card information?
> > 
> > Thanks,
> > 
> > --
> > *David Khouya*
> > 
> > 
> > ___
> > 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


RE: libmbim 1.24.0 slowing down MM startup

2020-07-09 Thread Amol Lad
Hi Aleksander,

Did you got a chance to see those logs? Please let me know if any other 
information is needed.

Amol

From: Amol Lad 
Sent: Wednesday, 8 July 2020 11:41 AM
To: Aleksander Morgado 
Cc: ModemManager (development) 
Subject: RE: libmbim 1.24.0 slowing down MM startup

Hi Aleksander,

The crash was actually when mbim-proxy runs with --verbose. I applied your 
patch to fix it and attached are the requested logs.

Thanks
Amol


-Original Message-
From: Aleksander Morgado 
mailto:aleksan...@aleksander.es>>
Sent: Tuesday, 7 July 2020 6:32 PM
To: Amol Lad mailto:amol@4rf.com>>
Cc: ModemManager (development) 
mailto:modemmanager-devel@lists.freedesktop.org>>
Subject: Re: libmbim 1.24.0 slowing down MM startup

Hey,

>
> I'm testing 1.14.0 and finding that libmbim has significantly slowed down MM 
> startup. I'm using EM7565 in MBIM mode. Please see below snippets from log 
> which highlight the delay. As you can see "couldn't load carrier config; 
> couldn't load SUPL; assistance data" are causing this slowness.
>

This looks like QMI over MBIM indications not working properly, how strange.

Could you retry debug logging but also including mbim-proxy logs? E.g.:

// stop ModemManager and make sure mbim-proxy is not running $ sudo 
/usr/libexec/mbim-proxy --verbose --no-exit // in another terminal, start 
ModemManager in debug mode

--
Aleksander
https://aleksander.es

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).
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Issues registering in network when changing from one operator to another

2020-07-09 Thread Aleksander Morgado
Hey,

>> > I am developing an application making use of libmm-glib high level API and 
>> > I am using a EM7455 Sierra Wireless modem. The modem is working under MBIM 
>> > mode (usb-composition).
>> >
>> > I believe the issue I am experiencing is related to the change of operator 
>> > / SIM card. The scenario is the following:
>> >
>> > The first SIM card I introduce is able to register in the network and 
>> > connect using the APN I specify in order to establish a connection.
>> > I tell the modem to change the SIM card via internal AT command and I 
>> > perform a system reboot (just to ensure everything starts fresh)
>>
>> With system reboot you mean a modem reboot? Or a host system reboot?
>
>
> I have tried both, but the one I usually do is a host system reboot to ensure 
> a system fresh start.
>
>>
>> > After the reboot and after waiting some time (>5-10 minutes) the Modem is 
>> > not able to register in any network and the signal quality is never 
>> > updated.
>>
>> As you said, this should have been automatic. There's no state stored
>> in MM that would affect this IF you did a full host system reboot OR a
>> full modem reset. In both those cases, any state associated with the
>> earlier exposed modem would have gone.
>>
>> To me this looks like a problem with the actual SIM card. Have you
>> tried to start with that 2nd SIM card first, and switch to the
>> original one to see what happens?
>
>
> Ok, it's good to know that the Modem Manager does not store any 
> APN/connection-related information between reboots.
> However, whenever I try to do what you mention I find similar issues. What I 
> experiment is that I am only able to connect using  the SIM I have introduced 
> in the first place.
> It does not matter if I make a reboot, that will be the SIM with which I will 
> be able to connect no matter I try to use it in first place or second (like 
> if the modem stored some APN/connection info)
>
> I will make some more tests but it seems it may be a Modem issue.
>

Instead of doing a full host system, you should do a modem reset
instead, because a full host system does not guarantee a modem reset
implicitly, as the modem may be powered separately.
-- 
Aleksander
https://aleksander.es
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Issues registering in network when changing from one operator to another

2020-07-09 Thread Alejandro Vega
Hello Aleksander,

> I am developing an application making use of libmm-glib high level API
> and I am using a EM7455 Sierra Wireless modem. The modem is working under
> MBIM mode (usb-composition).
> >
> > I believe the issue I am experiencing is related to the change of
> operator / SIM card. The scenario is the following:
> >
> > The first SIM card I introduce is able to register in the network and
> connect using the APN I specify in order to establish a connection.
> > I tell the modem to change the SIM card via internal AT command and I
> perform a system reboot (just to ensure everything starts fresh)
>
> With system reboot you mean a modem reboot? Or a host system reboot?
>

I have tried both, but the one I usually do is a host system reboot to
ensure a system fresh start.


> > After the reboot and after waiting some time (>5-10 minutes) the Modem
> is not able to register in any network and the signal quality is never
> updated.
>
> As you said, this should have been automatic. There's no state stored
> in MM that would affect this IF you did a full host system reboot OR a
> full modem reset. In both those cases, any state associated with the
> earlier exposed modem would have gone.
>
> To me this looks like a problem with the actual SIM card. Have you
> tried to start with that 2nd SIM card first, and switch to the
> original one to see what happens?
>

Ok, it's good to know that the Modem Manager does not store any
APN/connection-related information between reboots.
However, whenever I try to do what you mention I find similar issues. What
I experiment is that I am only able to connect using  the SIM I have
introduced in the first place.
It does not matter if I make a reboot, that will be the SIM with which I
will be able to connect no matter I try to use it in first place or second
(like if the modem stored some APN/connection info)

I will make some more tests but it seems it may be a Modem issue.

-- 
Kind regards,
Alejandro Vega
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Issues registering in network when changing from one operator to another

2020-07-09 Thread Aleksander Morgado
Hey Alejandro,

>
> I am developing an application making use of libmm-glib high level API and I 
> am using a EM7455 Sierra Wireless modem. The modem is working under MBIM mode 
> (usb-composition).
>
> I believe the issue I am experiencing is related to the change of operator / 
> SIM card. The scenario is the following:
>
> The first SIM card I introduce is able to register in the network and connect 
> using the APN I specify in order to establish a connection.
> I tell the modem to change the SIM card via internal AT command and I perform 
> a system reboot (just to ensure everything starts fresh)

With system reboot you mean a modem reboot? Or a host system reboot?

> After the reboot and after waiting some time (>5-10 minutes) the Modem is not 
> able to register in any network and the signal quality is never updated.

As you said, this should have been automatic. There's no state stored
in MM that would affect this IF you did a full host system reboot OR a
full modem reset. In both those cases, any state associated with the
earlier exposed modem would have gone.

To me this looks like a problem with the actual SIM card. Have you
tried to start with that 2nd SIM card first, and switch to the
original one to see what happens?

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


Issues registering in network when changing from one operator to another

2020-07-09 Thread Alejandro Vega
Hello!

I am developing an application making use of libmm-glib high level API and
I am using a EM7455 Sierra Wireless modem. The modem is working under MBIM
mode (usb-composition).

I believe the issue I am experiencing is related to the *change of operator
/ SIM card*. The scenario is the following:

   1. The first SIM card I introduce is able to register in the network and
   connect using the APN I specify in order to establish a connection.
   2. I tell the modem to change the SIM card via internal AT command and I
   perform a system reboot (just to ensure everything starts fresh)
   3. After the reboot and after waiting some time (>5-10 minutes) the
   Modem is not able to register in any network and the signal quality is
   never updated. Modem remains as shown

*  *





*  Status   | lock: sim-pin2   |   unlock
retries: sim-pin (3), sim-pin2 (3), sim-puk (10), sim-puk2 (10)
   |state: enabled   |  power state:
on   |   signal quality: 0% (cached)*
*---*


and it never transitions to a "registered" state, which I understand should
be automatic.
I have tried the following commands in order to force the network
registration
mmcli -m 0 --3gpp-scan --> OK

mmcli -m 0 --3gpp-register-in-operator=x --> Returns: " error: couldn't
register the modem: 'Timeout was reached' "


My questions are:
-   Should signal quality be retrieved independent of the register state?
Does it depend on the modem registration status ?
-  Is there any *connection related configuration* that either the *modem
device or the ModemManager may be storing* ? If this would be the case, how
could this information be erased?
- Is there any way to ensure that the modem connection / register
parameters are reset to factory default ?


Thank you very much, any help will be appreciated.

-- 
Kind regards,

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