From: Guillaume Zajac <guillaume.zajac@linux.intel.com>
To: ofono@ofono.org
Subject: How to tweak sim atom
Date: Wed, 11 Jan 2012 16:12:51 +0100 [thread overview]
Message-ID: <4F0DA6F3.8070702@linux.intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2200 bytes --]
Hi all,
As the thread concerning SIM tweaking was growing fast, I summarized it
in a new one.
We want to use existing oFono sim atom with CSIM (CDMA SIM) to support
PIN management and get the IMSI at first place.
So far we have to distinguish CSIM and (U)SIM in order into the atom to
use PIN management and get the IMSI, as other operations won't be
possible as explained below.
1) 1st solution is to precise at sim atom creation the modem type,
however Denis denied this solution. Modem type is used by external
application and not by oFono core.
2) 2nd solution is to get sim_type by deduction of modem type into
Huawei plugin. Then we precise this sim_type during atom creation.
3) Another method would be to implement a new entry point into
ofono_sim_driver, for instance ->GetSimType().
However this method will require to access to the file system:
- for GSM, that can be done using AT+CRSM (EFdir) or AT+CUAD.
- for CDMA, we don't have any AT commands to do it.
To complete this solution, we might need for CSIM file system access
some specific Qualcomm commands.
But for the moment, we have no information/documentation from
manufacturer regarding CSIM file system access.
Therefore, we will not be able to populate following properties:
- MobileCountryCode
- MobileNetworkCode
- SubscriberNumbers
- PreferredLanguages
- ServiceNumbers
- CardIdentifier
- FixedDialing
- BarredDialing
4) Having 2 drivers can be a solution to make difference between CSIM
and (U)SIM:
- "atmodem/sim.c" drivers
- "cdmamodem/sim.c" drivers
There can be a lib simutil for PIN management and IMSI retrieval whose
APIs would be called by "atmodem" and "cdmamodem" drivers to avoid
duplicated code.
Thus we don't implement all file system access entry points for
"cdmamodem/sim.c", but we can keep suggested GetSimType() for both
drivers and return CSIM type for CDMA without asking modem (as we can't).
Later this will help us to precise right file id (which is different
from (U)SIM) while reading CSIM file system, once we have the procedures
from manufacturer to do it.
Kind regards,
Guillaume
next reply other threads:[~2012-01-11 15:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-11 15:12 Guillaume Zajac [this message]
2012-01-11 11:47 ` How to tweak sim atom Denis Kenzior
2012-01-11 15:50 ` Guillaume Zajac
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=4F0DA6F3.8070702@linux.intel.com \
--to=guillaume.zajac@linux.intel.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.