Re: [PATCH 1/4] qmi: add LTE atom driver

2018-03-01 Thread Denis Kenzior
Hi Jonas, On 03/01/2018 04:48 AM, Jonas Bonn wrote: This patch adds an LTE atom for QMI modems. This atom sets the APN that the LTE default bearer should use when establishing its PDP context. For the Quectel EC21 that I'm testing with, this is effected by setting the APN on profile ID 1 from

[PATCH 2/4] qmimodem: initialize LTE driver

2018-03-01 Thread Jonas Bonn
--- drivers/qmimodem/qmimodem.c | 2 ++ drivers/qmimodem/qmimodem.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/drivers/qmimodem/qmimodem.c b/drivers/qmimodem/qmimodem.c index b10ce28c..11e68f2e 100644 --- a/drivers/qmimodem/qmimodem.c +++ b/drivers/qmimodem/qmimodem.c @@ -39,6 +39,7

[PATCH 3/4] gobi: add LTE atom

2018-03-01 Thread Jonas Bonn
This atom needs to be created in post_sim so that the APN can be written to the default profile before the modem attempts to use the setting to connect to the network. --- plugins/gobi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/gobi.c b/plugins/gobi.c index

[PATCH 4/4] qmimodem: get LTE default bearer APN from modem

2018-03-01 Thread Jonas Bonn
When an LTE modem registers with the network, a default bearer is automatically established. The APN used for this bearer is taken from whatever default settings the modem has. In order to properly set up the ofono context, we need to find out what APN the modem has used when negotiating this

[PATCH 0/4] LTE default bearer APN (QMI)

2018-03-01 Thread Jonas Bonn
When an LTE default bearer is established, an APN is provided to the gateway from some default settings in the modem. This APN may be an empty string or something meaningful depending on how the modem has been configured, but nonetheless _something_ is used. In order for connman to be able to

[PATCH 1/4] qmi: add LTE atom driver

2018-03-01 Thread Jonas Bonn
This patch adds an LTE atom for QMI modems. This atom sets the APN that the LTE default bearer should use when establishing its PDP context. For the Quectel EC21 that I'm testing with, this is effected by setting the APN on profile ID 1 from which the default settings appear to be taken. As I

Re: Ofono LTE modems and connman services

2018-03-01 Thread Jonas Bonn
On 02/26/2018 05:12 PM, Denis Kenzior wrote: Hi Jonas, On 02/26/2018 08:37 AM, Jonas Bonn wrote: The question is, what are the expectations here: i)   What does it mean for connman to see two 'internet' contexts since it sets up two services for them? ii)  How is a modem supposed to roam

Re: [PATCH 4/4] qmimodem: get LTE default bearer APN from modem

2018-03-01 Thread Denis Kenzior
Hi Jonas, On 03/01/2018 04:48 AM, Jonas Bonn wrote: When an LTE modem registers with the network, a default bearer is automatically established. The APN used for this bearer is taken from whatever default settings the modem has. In order to properly set up the ofono context, we need to find

Re: [PATCH 1/4] qmi: add LTE atom driver

2018-03-01 Thread Denis Kenzior
Hi Jonas, Please merge patch 1 & 2 together, that's how we usually do it anyway. OK.  I broke those up because I thought you were super-pedantic about breaking out patches so they were per-file... what's the rule here? Per-directory? It is per-directory, with the build system being the

Re: [PATCH 4/4] qmimodem: get LTE default bearer APN from modem

2018-03-01 Thread Jonas Bonn
On 03/01/2018 04:27 PM, Denis Kenzior wrote: Hi Jonas, On 03/01/2018 09:20 AM, Jonas Bonn wrote: On 03/01/2018 04:02 PM, Denis Kenzior wrote: Hi Jonas, On 03/01/2018 04:48 AM, Jonas Bonn wrote: When an LTE modem registers with the network, a default bearer is automatically established.  The

Re: Ofono LTE modems and connman services

2018-03-01 Thread Denis Kenzior
Hi Jonas, This is an explicit UMTS to LTE transition: {RadioSettings} [/quectelqmi_0] TechnologyPreference = lte Okay, so you set the Technology preference and the modem goes into disconnect and search mode {ConnectionManager} [/quectelqmi_0] Attached = False {ConnectionContext}

Re: [PATCH 1/4] qmi: add LTE atom driver

2018-03-01 Thread Jonas Bonn
On 03/01/2018 03:50 PM, Denis Kenzior wrote: Hi Jonas, On 03/01/2018 04:48 AM, Jonas Bonn wrote: This patch adds an LTE atom for QMI modems. This atom sets the APN that the LTE default bearer should use when establishing its PDP context.  For the Quectel EC21 that I'm testing with, this is

Re: Ofono LTE modems and connman services

2018-03-01 Thread Denis Kenzior
Hi Jonas, Ofono does something like this on a tech transition to LTE: Active: false Attached: false ... Attached: true Active: true This is from 3G to LTE or the initial registration to LTE? Do you have an ofono-monitor log handy? When ofono does Attached: true, connman starts trying to

Re: [PATCH 4/4] qmimodem: get LTE default bearer APN from modem

2018-03-01 Thread Jonas Bonn
On 03/01/2018 04:02 PM, Denis Kenzior wrote: Hi Jonas, On 03/01/2018 04:48 AM, Jonas Bonn wrote: When an LTE modem registers with the network, a default bearer is automatically established.  The APN used for this bearer is taken from whatever default settings the modem has. In order to

Re: [PATCH 4/4] qmimodem: get LTE default bearer APN from modem

2018-03-01 Thread Denis Kenzior
Hi Jonas, On 03/01/2018 09:20 AM, Jonas Bonn wrote: On 03/01/2018 04:02 PM, Denis Kenzior wrote: Hi Jonas, On 03/01/2018 04:48 AM, Jonas Bonn wrote: When an LTE modem registers with the network, a default bearer is automatically established.  The APN used for this bearer is taken from

Re: Ofono LTE modems and connman services

2018-03-01 Thread Alexander Couzens
Hi Jonas, thanks for your patch. I'm actually having problem from time to time with ofono (quectel ec 20) when using LTE. Ofono has 2 contexts allocated, but it says it's detached to packet switched. I hope your patch is fixing this. In the LTE atom, you're setting the profile 1. Does it really

Re: Ofono LTE modems and connman services

2018-03-01 Thread Jonas Bonn
On 03/01/2018 04:27 PM, Alexander Couzens wrote: Hi Jonas, thanks for your patch. I'm actually having problem from time to time with ofono (quectel ec 20) when using LTE. Ofono has 2 contexts allocated, but it says it's detached to packet switched. You should get just one context now... I

Re: Ofono LTE modems and connman services

2018-03-01 Thread Jonas Bonn
On 03/01/2018 04:11 PM, Denis Kenzior wrote: Hi Jonas, Ofono does something like this on a tech transition to LTE: Active: false Attached: false ... Attached: true Active: true This is from 3G to LTE or the initial registration to LTE?  Do you have an ofono-monitor log handy? This is an

Re: [PATCH 4/4] qmimodem: get LTE default bearer APN from modem

2018-03-01 Thread Reinhard Speyerer
On Thu, Mar 01, 2018 at 04:43:22PM +0100, Jonas Bonn wrote: > On 03/01/2018 04:27 PM, Denis Kenzior wrote: > > Hi Jonas, > > > > On 03/01/2018 09:20 AM, Jonas Bonn wrote: > > > On 03/01/2018 04:02 PM, Denis Kenzior wrote: > > > > Hi Jonas, > > > > > > > > On 03/01/2018 04:48 AM, Jonas Bonn