All of lore.kernel.org
 help / color / mirror / Atom feed
* Questions about var/lib/ofono/ directories
@ 2015-02-05 17:28 Viallard Anthony
  2015-02-10  5:49 ` Denis Kenzior
  0 siblings, 1 reply; 3+ messages in thread
From: Viallard Anthony @ 2015-02-05 17:28 UTC (permalink / raw)
  To: ofono

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

Hello ofono mailing list,

I'm wondering what ofono puts in the directory "var/lib/ofono/".

On my embedded device, I can see these directories:

  - var/lib/ofono/228014420910471
  - var/lib/ofono/228014420910471-3

The number 228014420910471 is the IMSI of my simcard right ?

In the first one (228014420910471), I can see 3 files called gprs, 
netreg and sms. And there are some configuration in it. It's pretty simple.

In the other directory, there are 4 files (4f20     6f46     6f49 
version). But I don't understand theirs purposes. Maybe these are SMS 
files ? Why the directory is named <IMSI>-3 ? Other directories with 
another number can be created ?

I'm wondering this because I want to put this directory and files in a 
separated partition of 1.3MB and put my root partition read only. So I'm 
trying to figure out if it's enough, what kind of files ofono will write 
in it, when and the frequency (it's a NOR flash partition and I would 
like to known if it's a good idea). As I understand, ofono uses this 
directory to store SMS also. But, what kind of SMS ? All the SMS I try 
to send ? All the SMS I received ? I began to read the source code but 
maybe you can tell me some hints.

Regards,
Anthony.

-- 
-----------------------------------------
Viallard Anthony    (+41 024 455 24 82)
[ Embedded System | Software Designer ]
-----------------------------------------
   Syscom Instruments SA
   Rue de l'industrie 21
   1450     Sainte-Croix
-----------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Questions about var/lib/ofono/ directories
  2015-02-05 17:28 Questions about var/lib/ofono/ directories Viallard Anthony
@ 2015-02-10  5:49 ` Denis Kenzior
  2015-02-10 14:32   ` Viallard Anthony
  0 siblings, 1 reply; 3+ messages in thread
From: Denis Kenzior @ 2015-02-10  5:49 UTC (permalink / raw)
  To: ofono

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

Hi,

On 02/05/2015 11:28 AM, Viallard Anthony wrote:
> Hello ofono mailing list,
>
> I'm wondering what ofono puts in the directory "var/lib/ofono/".
>
> On my embedded device, I can see these directories:
>
>   - var/lib/ofono/228014420910471
>   - var/lib/ofono/228014420910471-3
>
> The number 228014420910471 is the IMSI of my simcard right ?

Yes

>
> In the first one (228014420910471), I can see 3 files called gprs,
> netreg and sms. And there are some configuration in it. It's pretty simple.
>
> In the other directory, there are 4 files (4f20     6f46     6f49
> version). But I don't understand theirs purposes. Maybe these are SMS
> files ? Why the directory is named <IMSI>-3 ? Other directories with
> another number can be created ?

This is the oFono cache for SIM filesystem files.  Essentially files 
that are not writable by the user on the SIM are cached on the 
filesystem to speed up initialization time.  The suffix (e.g. -3) is the 
SIM phase.  E.g. 3 is 3G/USIM, 2 is 2G/SIM.

>
> I'm wondering this because I want to put this directory and files in a
> separated partition of 1.3MB and put my root partition read only. So I'm
> trying to figure out if it's enough, what kind of files ofono will write
> in it, when and the frequency (it's a NOR flash partition and I would
> like to known if it's a good idea). As I understand, ofono uses this
> directory to store SMS also. But, what kind of SMS ? All the SMS I try
> to send ? All the SMS I received ? I began to read the source code but
> maybe you can tell me some hints.

oFono caches both incoming and outgoing SMS here as well.  For 
reception, the SMS store is used to cache reception of multi-part SMSes, 
e.g. ones longer than could fit into one payload.  For outgoing, the SMS 
is cached here until it has been sent / delivered.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Questions about var/lib/ofono/ directories
  2015-02-10  5:49 ` Denis Kenzior
@ 2015-02-10 14:32   ` Viallard Anthony
  0 siblings, 0 replies; 3+ messages in thread
From: Viallard Anthony @ 2015-02-10 14:32 UTC (permalink / raw)
  To: ofono

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

On 02/10/2015 06:49 AM, Denis Kenzior wrote:
> Hi,
>
> On 02/05/2015 11:28 AM, Viallard Anthony wrote:
>> Hello ofono mailing list,
>>
>> I'm wondering what ofono puts in the directory "var/lib/ofono/".
>>
>> On my embedded device, I can see these directories:
>>
>>   - var/lib/ofono/228014420910471
>>   - var/lib/ofono/228014420910471-3
>>
>> The number 228014420910471 is the IMSI of my simcard right ?
>
> Yes
>
>>
>> In the first one (228014420910471), I can see 3 files called gprs,
>> netreg and sms. And there are some configuration in it. It's pretty
>> simple.
>>
>> In the other directory, there are 4 files (4f20     6f46     6f49
>> version). But I don't understand theirs purposes. Maybe these are SMS
>> files ? Why the directory is named <IMSI>-3 ? Other directories with
>> another number can be created ?
>
> This is the oFono cache for SIM filesystem files.  Essentially files
> that are not writable by the user on the SIM are cached on the
> filesystem to speed up initialization time.  The suffix (e.g. -3) is the
> SIM phase.  E.g. 3 is 3G/USIM, 2 is 2G/SIM.
>
>>
>> I'm wondering this because I want to put this directory and files in a
>> separated partition of 1.3MB and put my root partition read only. So I'm
>> trying to figure out if it's enough, what kind of files ofono will write
>> in it, when and the frequency (it's a NOR flash partition and I would
>> like to known if it's a good idea). As I understand, ofono uses this
>> directory to store SMS also. But, what kind of SMS ? All the SMS I try
>> to send ? All the SMS I received ? I began to read the source code but
>> maybe you can tell me some hints.
>
> oFono caches both incoming and outgoing SMS here as well.  For
> reception, the SMS store is used to cache reception of multi-part SMSes,
> e.g. ones longer than could fit into one payload.  For outgoing, the SMS
> is cached here until it has been sent / delivered.

Ok ! thanks Denis for these information.

I patch a little bit ofono to do what I thought. I split the storage 
directory into two:
  * one directory for SMS, SIM cache file symlinked to our SDCARD storage ;
  * and one directory for settings (gprs, netreg, sms) symlinked to our 
special data partition.

Nice ! It works like a charm !

Regards,
Anthony.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-10 14:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-05 17:28 Questions about var/lib/ofono/ directories Viallard Anthony
2015-02-10  5:49 ` Denis Kenzior
2015-02-10 14:32   ` Viallard Anthony

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.