Vous êtes sur la page 1sur 2

Persistency Manager:

Responsible for persisting the data over ignition cycle. It provides Database,
File system and DBUS interface to required applications.
The persistency manager needs to have an easy to use interface for the
applications to use. Some other goals of the persistency manager are:
 Ability to store data with zero (or minimal) possibility for corruption due
to power loss, etc
 Provide multiple optimized interfaces for storing data (SQL, Key/Value)
 Offer flexibility to make factory resets easy and configurable without
recompiling the client.
 Allow for key/value configuration to define where data is stored. This
allow for changes per project without recompiling.

Persistency for Tuner Module:

Tuner module will persist User data (Presets and last tuned station information
for each band). It also persists the Tuner history data like station lists and AF
list information for better performance. On factory reset all the Tuner persisted
information will be deleted.

Persistency Data:
Tuner Settings data below are persisted in /usr/var/ path and is controlled by the
Tuner Presentation controller:
- Traffic Announcement
- Station list sorting
- Radio Text
- Alternate Frequency
- Regionalization

User Data:

File Name: /fs/etfs/usr/var/presCtrl_presCtrlPersistency

Description: This file contains the Preset and last tuned station for each band.
This file will be updated upon change in Preset list or current tuned station.

Tuner History data:

File Name: /fs/etfs/usr/var/dev-tuner-amfm_AMFMTunerDSIDevice


Description: This file contains the station list information for AM and FM. It
also contains the PI and AF list information, which will be used for FM linking.
This file will be persisted only upon proper ignition cycle.

File Name: /fs/etfs/usr/var/dev-tuner-dab_DABTunerDSIDevice

Description: This file contains the station list information for DAB. This file
will be persisted only upon proper ignition cycle.

File Name: fs/etfs/usr/var/TunerApp_GDabTpeg

Description: This file contains TPEG Service list information and history data,
which will be used for better performance in getting traffic information. This
file will be persisted only upon proper ignition cycle.

/fs/etfs/usr/var/TunerApp_GDabTpeg

//---------------------------------------------------------------------
// Default Database Section
//---------------------------------------------------------------------

"database" : {

"ppsFile" : "NON_PPS",

"Presets_1dab00" : {
"comment" : "Radio Preset",
"driverKey" : true,
"keyIndex" : 0,
"default" :
{"Active":false,"Band":"","EnsembID":[0,0,0],"Freq_Channel":0,"Genre":"","P
ID":0,"Position":0,"StationName":"","SubChannel":0}
},

"lastSituation" : {
"comment" : "Tuner Last Situation",
"keyIndex" : 4,
"default" : [0,0,0,0,0,0]
},

Vous aimerez peut-être aussi