Re: [PATCH] blacklist: ignore Intel coredump downloader device

2017-09-14 Thread Aleksander Morgado
On 14/09/17 01:59, Daniele Palmas wrote: > --- > src/77-mm-usb-device-blacklist.rules | 3 +++ > 1 file changed, 3 insertions(+) > Pushed to git master and the stable branches, thanks! > diff --git a/src/77-mm-usb-device-blacklist.rules > b/src/77-mm-usb-device-blacklist.rules > index bbd968f.

[PATCH v2 13/13] ublox: check which auth methods are supported

2017-09-14 Thread Aleksander Morgado
Don't assume the 'auto' auth method is supported for APN authentication, query the modem first: checking supported authentication methods... (ttyACM2): --> 'AT+UAUTHREQ=?' (ttyACM2): <-- '+UAUTHREQ: (1-4),(0-2),,' (ttyACM2): <-- 'OK' Using automatic authentication method

[PATCH v2 03/13] ublox: define port type hints for the TOBY-L4

2017-09-14 Thread Aleksander Morgado
The TOBY-L4 exposes multiple TTY ports, but each of them has different purposes: The TTY at interface #2 is a fully capable AT port but shouldn't be used to start connections, so we flag it as secondary. The TTY at interface #4 is a non-AT debug port, so we explicitly ignore it to make probing fa

[PATCH v2 07/13] ublox: new AT+UACT=X command builder

2017-09-14 Thread Aleksander Morgado
--- plugins/ublox/mm-modem-helpers-ublox.c | 49 ++ plugins/ublox/mm-modem-helpers-ublox.h | 6 +++ plugins/ublox/tests/test-modem-helpers-ublox.c | 69 ++ 3 files changed, 124 insertions(+) diff --git a/plugins/ublox/mm-modem-helpers-ublox

[PATCH v2 01/13] ublox: allow creating u-blox bearers if MM_UBLOX_USB_PROFILE_UNKNOWN

2017-09-14 Thread Aleksander Morgado
The TOBY-L4 doesn't support querying the current USB profile in use via the AT+UUSBCONF command, so the loaded profile will always be set as MM_UBLOX_USB_PROFILE_UNKNOWN. In this case, we will anyway allow creating a u-blox specific bearer, as long as a network interface has also been found in the

[PATCH v2 09/13] ublox: try to use AT+UACT? to query current bands

2017-09-14 Thread Aleksander Morgado
--- plugins/ublox/mm-broadband-modem-ublox.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/plugins/ublox/mm-broadband-modem-ublox.c b/plugins/ublox/mm-broadband-modem-ublox.c index 27345752..23f14c7c 100644 --- a/plugins/ublox/mm-broadband-modem-ub

[PATCH v2 11/13] ublox: if authentication not required, ignore +UAUTHREQ=0 errors

2017-09-14 Thread Aleksander Morgado
Just go on with the connection attempt. --- plugins/ublox/mm-broadband-bearer-ublox.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/plugins/ublox/mm-broadband-bearer-ublox.c b/plugins/ublox/mm-broadband-bearer-ublox.c index 647a83ff..866b2e7f 100644

[PATCH v2 02/13] ublox: fallback to router mode if networking mode unknown

2017-09-14 Thread Aleksander Morgado
The TOBY-L4 doesn't support querying the current networking mode in use via the AT+UBMCONF command, so we will just fallback to MM_UBLOX_NETWORKING_MODE_ROUTER if that happens, as this is the mode which requires less configuration commands from our side. --- plugins/ublox/mm-broadband-modem-ublox.

[PATCH v2 10/13] ublox: try to use AT+UACT=X to set current bands

2017-09-14 Thread Aleksander Morgado
--- plugins/ublox/mm-broadband-modem-ublox.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/plugins/ublox/mm-broadband-modem-ublox.c b/plugins/ublox/mm-broadband-modem-ublox.c index 23f14c7c..0d4dd590 100644 --- a/plugins/ublox/mm-broadband-modem-ublox.c ++

[PATCH v2 12/13] ublox: new +UAUTHREQ=? tester

2017-09-14 Thread Aleksander Morgado
--- plugins/ublox/mm-modem-helpers-ublox.c | 77 ++ plugins/ublox/mm-modem-helpers-ublox.h | 14 + plugins/ublox/tests/test-modem-helpers-ublox.c | 46 +++ 3 files changed, 137 insertions(+) diff --git a/plugins/ublox/mm-modem-helpers-ublox.

[PATCH v2 06/13] ublox: new AT+UACT=? test parser

2017-09-14 Thread Aleksander Morgado
--- plugins/ublox/mm-modem-helpers-ublox.c | 118 + plugins/ublox/mm-modem-helpers-ublox.h | 9 ++ plugins/ublox/tests/test-modem-helpers-ublox.c | 98 3 files changed, 225 insertions(+) diff --git a/plugins/ublox/mm-modem-helpers-ub

[PATCH v2 05/13] ublox: new AT+UACT? response parser

2017-09-14 Thread Aleksander Morgado
--- plugins/ublox/mm-modem-helpers-ublox.c | 170 + plugins/ublox/mm-modem-helpers-ublox.h | 6 + plugins/ublox/tests/test-modem-helpers-ublox.c | 69 +- 3 files changed, 242 insertions(+), 3 deletions(-) diff --git a/plugins/ublox/mm-modem-helpe

[PATCH v2 08/13] ublox: try to use AT+UACT=? to query supported bands

2017-09-14 Thread Aleksander Morgado
--- plugins/ublox/mm-broadband-modem-ublox.c | 98 ++-- 1 file changed, 81 insertions(+), 17 deletions(-) diff --git a/plugins/ublox/mm-broadband-modem-ublox.c b/plugins/ublox/mm-broadband-modem-ublox.c index 8d9da206..27345752 100644 --- a/plugins/ublox/mm-broadband-

Basic ublox TOBY-L4 support (v2)

2017-09-14 Thread Aleksander Morgado
Hey, This updated patch series to support the TOBY-L4 also includes support for modifying currently selected bands with AT+UACT, instead of AT+UBANDSEL, as the latter is deprecated. Additionally, AT+UAUTHREQ=? output is parsed to see which auth methods we can use before assuming they are suppor

[PATCH v2 04/13] ublox,tests: define common method to compare bands

2017-09-14 Thread Aleksander Morgado
--- plugins/ublox/tests/test-modem-helpers-ublox.c | 46 ++ 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/plugins/ublox/tests/test-modem-helpers-ublox.c b/plugins/ublox/tests/test-modem-helpers-ublox.c index a4fee0c6..76330e69 100644 --- a/plugins/ublox/t

RE: MM cannot open MBIM port; Character set conversion error

2017-09-14 Thread Jose, Shijo
>> >> I am using MM version 1.6.8 on Yocto (Linux version 4.4.8) to >> communicate with Telit LE910 NA V2 modem. >> >> The modem is configured to support MBIM and cdc_mbim gets loaded on >> Yocto when the modem is connected. However MM is unable to open MBIM >> port and I see a character set co

Re: Python libmm problems

2017-09-14 Thread Colin Helliwell
> On 14 September 2017 at 17:11 Dan Williams wrote: > > On Thu, 2017-09-14 at 15:35 +0100, Colin Helliwell wrote: > .. > > Thanks Dan. I've persevered with GLib, and made a bit of progress. > > On top of your suggestion - instead of the start-up "modems = > > manager.get_objects()" etc, I've ho

Re: Python libmm problems

2017-09-14 Thread Dan Williams
On Thu, 2017-09-14 at 15:35 +0100, Colin Helliwell wrote: > > On 13 September 2017 at 19:39 Dan Williams wrote: > > > > ... > > > > The two major patterns for doing all of this are (a) threads and > > (b) > > event-driven programming. GLib is an example of (b), and it really > > does remove the

Re: Python libmm problems

2017-09-14 Thread Colin Helliwell
> On 13 September 2017 at 19:39 Dan Williams wrote: > ... > > The two major patterns for doing all of this are (a) threads and (b) > event-driven programming. GLib is an example of (b), and it really > does remove the error-prone issues of lock management, concurrent data > access, and deadlock

Re: problem with dell latitude

2017-09-14 Thread Bartłomiej Knabel
2017-09-12 21:32 GMT+02:00 Aleksander Morgado : > >> > >> bknabellatitude ModemManager-1.6.8 # ModemManager > >> > >> ModemManager[8742]: ModemManager (version 1.6.8) starting in > >> system > >> bus... > >> ModemManager[8742]: Could not acquire the > >> 'org.freedesktop.ModemManager1' service

[PATCH] blacklist: ignore Intel coredump downloader device

2017-09-14 Thread Daniele Palmas
--- src/77-mm-usb-device-blacklist.rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/77-mm-usb-device-blacklist.rules b/src/77-mm-usb-device-blacklist.rules index bbd968f..7eee216 100644 --- a/src/77-mm-usb-device-blacklist.rules +++ b/src/77-mm-usb-device-blacklist.rules @@ -136,6