RE: u-blox TOBY-R200 Intermittent Long Registration on Simple Connect

2018-04-30 Thread Matthew Starr
> -Original Message- > From: Aleksander Morgado [mailto:aleksan...@aleksander.es] > > > > > I don't understand why there is a 20 second timeout. Couldn't you just test > the AT interface right away with 'AT' instead of waiting a timeout and then > trying it. Also 20 seconds is a long

Re: u-blox TOBY-R200 Intermittent Long Registration on Simple Connect

2018-04-30 Thread Aleksander Morgado
On Mon, Apr 30, 2018 at 10:45 PM, Dan Williams wrote: > On Mon, 2018-04-30 at 20:09 +, Matthew Starr wrote: >> > -Original Message- >> > From: Aleksander Morgado [mailto:aleksan...@aleksander.es] >> > >> > > >> > > I don't understand why there is a 20 second timeout.

Re: u-blox TOBY-R200 Intermittent Long Registration on Simple Connect

2018-04-30 Thread Dan Williams
On Mon, 2018-04-30 at 20:09 +, Matthew Starr wrote: > > -Original Message- > > From: Aleksander Morgado [mailto:aleksan...@aleksander.es] > > > > > > > > I don't understand why there is a 20 second timeout. Couldn't > > > you just test > > > > the AT interface right away with 'AT'

Re: Try to detect broken AT-control based modems

2018-04-30 Thread Dan Williams
On Mon, 2018-04-30 at 13:11 +0200, Aleksander Morgado wrote: > A short series of patches to improve the detection of broken modems. > In this case, we try to detect modems that are still exposed in the > USB layer but which don't reply to any of our AT commands. > > The first patch is a small

Re: latest openwrt sdk error: Package requirements (glib-2.0 >= 2.36) were not met

2018-04-30 Thread Aleksander Morgado
On Mon, Apr 30, 2018 at 7:27 PM, Nathaniel Haggard wrote: > On openwrt latest sdk these instructions no longer succeed > https://bitbucket.org/aleksander0m/modemmanager-openwrt, because libmbin > won't compile. > > make -j1 V=s package/libmbim/{clean,compile,install} > >

Re: [PATCH] broadband-bearer: allow matching empty APN when looking for PDP CID

2018-04-30 Thread Dan Williams
On Sat, 2018-04-28 at 10:38 +0200, Aleksander Morgado wrote: > The PDP contexts that are found with an empty APN configured are > right > now used as placeholders that can be overwritten with the user > provided APN if no direct match is found. > > We want to keep that logic in place, but for the

Re: latest openwrt sdk error: Package requirements (glib-2.0 >= 2.36) were not met

2018-04-30 Thread Nathaniel Haggard
Whatever the default is for the sdk? desktop:openwrt-sdk-x86-64_gcc-7.3.0_musl.Linux-x86_64$ ldd --version ldd (Ubuntu GLIBC 2.23-0ubuntu10) 2.23 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for

Re: [PATCH] broadband-modem-qmi: fix memory leak in dms_set_operating_mode_ready

2018-04-30 Thread Aleksander Morgado
On 28/04/18 20:51, Ben Chan wrote: > --- > src/mm-broadband-modem-qmi.c | 2 ++ > 1 file changed, 2 insertions(+) > Pushed to git master, thanks. > diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c > index d87c39aa..898906c8 100644 > --- a/src/mm-broadband-modem-qmi.c >

Re: [PATCH] u-blox: ignore non-AT ttyACM interfaces

2018-04-30 Thread Aleksander Morgado
On Tue, Apr 10, 2018 at 7:30 PM, Matthew Starr wrote: > For the TOBY-R2, LISA-R2, and LARA-R2, the only valid AT ports are > ttyACM0, ttyACM1, and ttyACM2. All other ttyACM ports cause MM to > wait 20-30 seconds probing the port on startup. > > Ignoring the non-AT ttyACM

Re: [PATCH 1/2] base-modem: improve broken modem detection logic

2018-04-30 Thread Aleksander Morgado
On Mon, Apr 30, 2018 at 1:11 PM, Aleksander Morgado wrote: > If the serial port timeout detection logic is enabled, warn whenever > more than one consecutive command timeout happens, not just when the > limit is reached. > --- This one pushed to git master already, for

Re: [PATCH] broadband-bearer: allow matching empty APN when looking for PDP CID

2018-04-30 Thread Aleksander Morgado
On Sat, Apr 28, 2018 at 10:38 AM, Aleksander Morgado wrote: > The PDP contexts that are found with an empty APN configured are right > now used as placeholders that can be overwritten with the user > provided APN if no direct match is found. > > We want to keep that

Re: u-blox TOBY-R200 Intermittent Long Registration on Simple Connect

2018-04-30 Thread Aleksander Morgado
> Apr 9 15:10:40 canect2 daemon.debug ModemManager[252]: > [1523286640.408139] [plugin manager] task 4,ttyACM0: found '7' plugins to try > Apr 9 15:10:40 canect2 daemon.debug ModemManager[252]: > [1523286640.408278] [plugin manager] task 4,ttyACM0: will try with plugin > 'u-blox' > Apr 9

Re: latest openwrt sdk error: Package requirements (glib-2.0 >= 2.36) were not met

2018-04-30 Thread Aleksander Morgado
Hey! On Mon, Apr 30, 2018 at 8:39 PM, Nathaniel Haggard wrote: > Whatever the default is for the sdk? > > desktop:openwrt-sdk-x86-64_gcc-7.3.0_musl.Linux-x86_64$ ldd --version > ldd (Ubuntu GLIBC 2.23-0ubuntu10) 2.23 > Copyright (C) 2016 Free Software Foundation, Inc. > This

[PATCH 2/2] base-modem: setup a maximum number of timeouts also for USB modems

2018-04-30 Thread Aleksander Morgado
We have a maximum number of timeouts that could be enabled for TTY modems, e.g. to detect whether the modem is available in the RS232 port or has been unplugged. This was required because RS232 modems aren't notified via udev, so there was no other way to check presence of the modem. But, the

[PATCH 1/2] base-modem: improve broken modem detection logic

2018-04-30 Thread Aleksander Morgado
If the serial port timeout detection logic is enabled, warn whenever more than one consecutive command timeout happens, not just when the limit is reached. --- src/mm-base-modem.c | 34 -- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git

Try to detect broken AT-control based modems

2018-04-30 Thread Aleksander Morgado
A short series of patches to improve the detection of broken modems. In this case, we try to detect modems that are still exposed in the USB layer but which don't reply to any of our AT commands. The first patch is a small cleanup that I wouldn't mind to get included right away in git master.