Re: [LEDE-DEV] Open and secure firmware for Quectel 4G modems [Was: Re: Quectel EC20 QMI autoconnect issues [Was: Re: [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.]]

2017-01-08 Thread Matti Laakso
> Adding laforge and zecke to the Cc loop. > > Matti Laakso [2017-01-08 14:39:34]: > > Hi, > > > I'm almost done with checking the connection state using a > > proto_run_command with a simple script running uqmi --get-data-status > > periodically. If th

Re: [LEDE-DEV] Quectel EC20 QMI autoconnect issues [Was: Re: [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.]

2017-01-08 Thread Matti Laakso
> Petr Štetiar [2016-12-12 10:06:59]: > > > I'm going to ask Quectel about this issue and will share the results. > > So it ended with the following result: "I raceived the additional > informations that it’s not well to use autoconnect feature on EC20 and EC25. > R&D will work to solve this,

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v2] uqmi: Prevent 'POLICY MISMATH' error.

2016-12-16 Thread Matti Laakso
On 07/12/2016 18:13, Nickolay Ledovskikh wrote: >/Add uqmi 'sync' command call to release stalled cid when preparing to />/setup new connection. As a result it prevents 'POLICY MISMATCH' errors. />//>/Signed-off-by: Nickolay Ledovskikh > />/---

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.

2016-12-12 Thread Matti Laakso
On 12.12.2016 08:52, Petr Štetiar wrote: Matti Laakso [2016-12-09 11:35:35]: On 09.12.2016 11:27, Petr Štetiar wrote: I knew, that there's only one profile defined, operator has deleted all other profiles, there's currently only one APN defined. AT+CGDCONT? +CGDCONT:

Re: [LEDE-DEV] [PATCH] uqmi: Add support for specifying profile index

2016-12-11 Thread Matti Laakso
terface somehow stays up and the cid's stay in memory. Then when one tries to stop the network with an unallocated cid after the modem again has power, uqmi hangs. I think disconnecting the modem should tear down the interface as well, but I'm not sure how to achieve that. > > 20

Re: [LEDE-DEV] [PATCH] comgt-ncm: Add support for specifying profile index

2016-12-11 Thread Matti Laakso
it unclear. I just sent a v2 with among other changes a slightly reworded commit message. The point is that it is better (and common to mobile broadband connections) to specify pdptype as ip, ipv6 or ipv4v6 rather than enable or disable ipv6. Matti > > On 06/12/2016 17:52, Matti Laakso w

[LEDE-DEV] [PATCH v2] comgt-ncm: Add support for specifying profile index

2016-12-11 Thread Matti Laakso
, remove the redundant ipv6 option, since it is less ambiguous to directly specify the PDP context type with mobile connections, and fix missing device during teardown when using ncm through the wwan proto. Signed-off-by: Matti Laakso --- v2: * Ignore echoed AT+CGMI * Workaround +CGMI: prefix from

[LEDE-DEV] [PATCH v2] uqmi: Add support for specifying profile index

2016-12-11 Thread Matti Laakso
with pdptype, which is less ambiguous, and make autoconnect optional and default it to off for IPv6 due to it not working with statically configured IPv6. Signed-off-by: Matti Laakso --- v2: * Enable autoconnect by default for IPv4 package/network/utils/uqmi/Makefile| 6

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.

2016-12-09 Thread Matti Laakso
: at+cgdcont? +CGDCONT: 1,"IP","internet.megafon.ru","0.0.0.0",0,0 +CGDCONT: 3,"IP","internet.megafon.ru","0.0.0.0",0,0 2'nd modem: at+cgdcont? +CGDCONT: 1,"IP","internet.beeline.ru","0.0.0.0",0,0 +CGDCONT:

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.

2016-12-09 Thread Matti Laakso
On 09.12.2016 11:27, Petr Štetiar wrote: Matti Laakso [2016-12-09 10:23:24]: I don't think that the autoconnect setting is "transferred" to the network, rather it could be tied to a specific call profile index, which has the wrong APN. If your Slovakian SIM card has sev

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.

2016-12-09 Thread Matti Laakso
On 08.12.2016 17:11, Bjørn Mork wrote: Petr Štetiar writes: Matti Laakso [2016-12-08 15:39:57]: Hi, I don't like the autoconnect at all, it being so unpredictable across various models. This autoconnect feature should burn in hell :-) The funny thing about this feature is, tha

Re: [LEDE-DEV] [LEDE-DEV, 3/3, v3] uqmi: Prevent 'POLICY MISMATCH' error.

2016-12-08 Thread Matti Laakso
> > Add uqmi 'sync' command call to release stalled cid when preparing to > setup new connection. As a result it prevents 'POLICY MISMATCH' errors. > > Signed-off-by: Nickolay Ledovskikh

Re: [LEDE-DEV] [PATCH] comgt-ncm: Add support for specifying profile index

2016-12-08 Thread Matti Laakso
> >/--- a/package/network/utils/comgt/files/getcardinfo.gcom />/+++ > >b/package/network/utils/comgt/files/getcardinfo.gcom />/@@ -6,7 +6,7 @@ > >opengt />/flash 0.1 />//>/:start />/- send "ATI^m" />/+ send "AT+CGMI^m" / > >/diff --git a/package/network/utils/comgt/files/ncm.json / > > >/diff --g

[LEDE-DEV] [PATCH] comgt-ncm: Add support for specifying profile index

2016-12-06 Thread Matti Laakso
remove the redundant ipv6 option, since it is more customary to specify the PDP context type with mobile connections. Signed-off-by: Matti Laakso --- package/network/utils/comgt/Makefile | 2 +- package/network/utils/comgt/files/getcardinfo.gcom | 2 +- package/network/utils

[LEDE-DEV] [PATCH] uqmi: Add support for specifying profile index

2016-12-03 Thread Matti Laakso
configured IPv6. Signed-off-by: Matti Laakso --- package/network/utils/uqmi/Makefile| 6 +- .../utils/uqmi/files/lib/netifd/proto/qmi.sh | 164 +++-- 2 files changed, 88 insertions(+), 82 deletions(-) diff --git a/package/network/utils/uqmi/Makefile b

Re: [LEDE-DEV] enhanced 3G support

2016-11-28 Thread Matti Laakso
Hi, > Dear All, > I currently add supprt for the dwr-512 device on LEDE. > This device have a 3G modem embedded. > The current available configuration uses the usb-option to establish the 3G > connection over ppp. > Nevertheless the modem offer one cdc-ether interface with better > performance. >

[LEDE-DEV] [PATCH][uqmi 5/5] nas: fix network scan

2016-11-20 Thread Matti Laakso
Signed-off-by: Matti Laakso --- commands-nas.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/commands-nas.c b/commands-nas.c index fd51a13..5874bfb 100644 --- a/commands-nas.c +++ b/commands-nas.c @@ -364,7 +364,13 @@ cmd_nas_network_scan_cb(struct qmi_dev *qmi

[LEDE-DEV] [PATCH][uqmi 0/5] Small fixes and new options

2016-11-20 Thread Matti Laakso
e APN explicitly. Matti Laakso (5): wds: fix set-autoconnect help text wds: add a separate --set-ip-family option wds: make APN optional wds: add option for specifying profile index nas: fix network scan commands-nas.c | 8 +++- commands-wds.c

[LEDE-DEV] [PATCH][uqmi 1/5] wds: fix set-autoconnect help text

2016-11-20 Thread Matti Laakso
Signed-off-by: Matti Laakso --- commands-wds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands-wds.h b/commands-wds.h index 8cb7289..ba67df9 100644 --- a/commands-wds.h +++ b/commands-wds.h @@ -43,6 +43,6 @@ " --stop-network :

[LEDE-DEV] [PATCH][uqmi 3/5] wds: make APN optional

2016-11-20 Thread Matti Laakso
Some modem firmwares do not use the APN selected in the Start Network command. Moreover, it is marked optional in the QMI specification. Signed-off-by: Matti Laakso --- commands-wds.c | 9 - commands-wds.h | 6 -- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a

[LEDE-DEV] [PATCH][uqmi 2/5] wds: add a separate --set-ip-family option

2016-11-20 Thread Matti Laakso
amily command, and they should use the IP Family Preference TLV. On the other hand, newer modems, e.g., from Huawei, don't respect that TLV, and require the use of the separate Set IP Family command. Signed-off-by: Matti Laakso --- commands-wds.c | 26 ++ commands-

[LEDE-DEV] [PATCH][uqmi 4/5] wds: add option for specifying profile index

2016-11-20 Thread Matti Laakso
Some modems require the specification of a profile index which determines the APN and the IP family used for the connection. Signed-off-by: Matti Laakso --- commands-wds.c | 10 ++ commands-wds.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/commands-wds.c b/commands-wds.c