Open Source Telephony
 help / color / mirror / Atom feed
From: Arun Ravindran <ext-arun.1.ravindran@nokia.com>
To: ofono@ofono.org
Subject: Re: [RFC PATCH v3] gprs: add function to handle activated context
Date: Wed, 06 Apr 2011 12:30:04 +0300	[thread overview]
Message-ID: <4D9C329C.2000106@nokia.com> (raw)
In-Reply-To: <4D9C2965.4080301@nokia.com>

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

Hi Redouane,

> The purpose of the patch is to handle Network Initiated Context 
> Activation and PDN connection request as part of EPS Attach procedure 
> (LTE) in oFono core.
>
> In order to avoid issue regarding CID allocation :
> - driver should call the core using ofono_gprs_set_cid_range function 
> to specify CID range for UE initiated PDN connection
> - driver could use a new function to check if the CID is already used 
> or not : ofono_gprs_is_cid_used, usefull in case the modem is not 
> using a specific range for UE initiated PDN connection.
> - driver will use a new function to notify the gprs atom of a new PDN 
> connection with all the ip parameters from AT+CGCONTRDP (I can provide 
> an update later to handle PCSCF and IMS Signaling Flag as well) 
> commmand : ofono_gprs_context_activated
>
27.007 section 10.1.1 says

Defined values
<cid>: a numeric parameter which specifies a particular PDP context 
definition. The parameter is local to the TE-
MT interface and is used in other PDP context-related commands. The 
range of permitted values (minimum
value = 1) is returned by the test form of the command.
NOTE 1: The <cid>s for network-initiated PDP contexts will have values 
outside the ranges indicated for the
<cid> in the test form of the commands +CGDCONT and +CGDSCONT.

According to this, the cid of user initiated context and network 
initiated context doesn't overlap.

Also

+CGEV: ME PDN ACT <cid>[,<reason>[,<cid_other>]]
The mobile termination has activated a context. The context represents a 
PDN connection in LTE or a Primary
PDP context in GSM/UMTS. The <cid> for this context is provided to the 
TE. This event is sent either in result
of explicit context activation request (+CGACT), or in result of 
implicit context activation request associated to
attach request (+CGATT=1). The format of the parameters <cid>, 
<cid_other> are found in command
+CGDCONT.

We should also be able to get the cid of the default context, from CGEV 
indications.

> ofono_gprs_context_activated is similar to 
> ofono_gprs_context_deactivated.
> This function must be call by any gprs driver when :
>  - a context has been activated without explicit request as part of 
> attach procedure in LTE (PDN ACT X and X is a unused CID)
>  - a context has been activated by the Network (NW PDN ACT X, NW ACT X,Y)
>
> Behavior of the function :
>
> List all the context and try to find correct APN with empty username 
> and empty password.
> If such context is not found then create a new one with "Internet" 
> type only if we are in LTE with no Active context.
> Otherwise deactivate the connection.
>
> For the context (found or created):
>     Update the settings
>     Set to active
>
> The function will also assign the context to a context driver.

Please correct me if i miss some information.

Regards
Arun


       reply	other threads:[~2011-04-06  9:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4D9C2965.4080301@nokia.com>
2011-04-06  9:30 ` Arun Ravindran [this message]
2011-04-06 13:00   ` [RFC PATCH v3] gprs: add function to handle activated context Pekka Pessi
2011-04-06 14:06     ` Arun Ravindran
2011-04-07  9:06       ` Soum, RedouaneX
2011-04-07 12:40         ` Arun Ravindran
2011-04-07 15:47           ` Soum, RedouaneX
2011-04-08 13:03             ` Arun Ravindran
2011-04-08 13:34               ` Soum, RedouaneX
2011-04-08  7:59   ` Joly, Frederic
2011-02-09 18:31 Soum, RedouaneX
2011-02-11 14:08 ` Tomasz Gregorek
2011-02-22 10:19 ` Soum, RedouaneX

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=4D9C329C.2000106@nokia.com \
    --to=ext-arun.1.ravindran@nokia.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox