All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [RFC PATCH] gprs: add function to handle activated context
Date: Thu, 06 Jan 2011 12:10:03 -0600	[thread overview]
Message-ID: <4D26057B.8030506@gmail.com> (raw)
In-Reply-To: <AANLkTimEnzUrSuJtSJuvUp+vNGANi6rsWgvAnHhb_j0J@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1327 bytes --]

Hi Sjur,

On 01/06/2011 11:45 AM, Sjur Brændeland wrote:
> Hi Marcel and Denis.
> 
>> I thought that we came to the conclusion that CID=0 is pretty much a
>> really bad idea. So I would prefer that your modem is actually not using
>> CID=0 ever.
> Yea, I know you or Denis said so, but I'm not sure we understood your concern...
> 

The bottom line is that the network can ask for a context to be
initiated at any time.  Furthermore, any number of such contexts can be
activated.  You can't really treat LTE specially and CID=0 really
doesn't help you anyway.

e.g.:

<cr><lf>+CGEV: NW PDN ACT 1<cr><lf>
...
<cr><lf>+CGEV: NW PDN ACT 2<cr><lf>

You need to allocate these cids properly.  However, solving the cid
allocation problem in the general case is basically impossible.  The
spec is just not setup to do so in its current form.

e.g.

---> context1.SetActive(True);
idmap_alloc(cid_map) -> cid == 1
[+CGDCONT=1,...]

<----
<cr><lf>+CGEV: ME PDN ACT 1<cr><lf>

Bad things happen.

The best you can do is allocate these cids from a different range than
oFono.  e.g.:

AT+CGDCONT=?
+CGDCONT: (0-25)

ofono_gprs_set_cid_range(gprs, 12, 25)

This way oFono will use the upper range for stack initiated contexts and
you guys have the lower range to play in.

Regards,
-Denis

  parent reply	other threads:[~2011-01-06 18:10 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-05 17:25 [RFC PATCH] gprs: add function to handle activated context Soum, RedouaneX
2011-01-06  0:12 ` Marcel Holtmann
2011-01-06  0:17   ` Denis Kenzior
2011-01-07  8:52     ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-01-07 15:45       ` Joly, Frederic
2011-01-07 21:07       ` Denis Kenzior
2011-01-06 13:28   ` Soum, RedouaneX
2011-01-07  8:50   ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-01-07 10:38     ` Aki Niemi
2011-01-06 12:02 ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2011-01-06 14:59   ` Soum, RedouaneX
2011-01-06 16:47     ` Denis Kenzior
2011-01-06 17:14     ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2011-01-06 16:37   ` Denis Kenzior
2011-01-06 17:39   ` Marcel Holtmann
2011-01-06 17:45     ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2011-01-06 17:53       ` Marcel Holtmann
2011-01-06 18:10       ` Denis Kenzior [this message]
2011-01-07 15:14         ` Joly, Frederic
2011-01-07 15:38           ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2011-01-07 17:52             ` Joly, Frederic
2011-01-07 21:01               ` Denis Kenzior
2011-01-11 12:46                 ` Soum, RedouaneX
2011-01-17 14:21                 ` Pekka Pessi
2011-01-17 18:39                   ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2011-01-17 18:51                     ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2011-01-17 22:39                     ` Pekka Pessi
2011-01-17 23:15                       ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D26057B.8030506@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.