Infotainmet System - Media Configuration
Infotainment configuration files pertaining to the list of media/messages/contacts available are parsed once per system start--any configuration changes made while the system is running will not be available until the infotainment server is stopped and restarted.
Contents
Phone
Config File
Phone app configuration is stored in phone_config.csv, located in the main infotainment install directory.
Entries in this file are split into two sections, each containing a commented line (lines beginning with a double forward slash, ie //) declaring the entries following it:
// CALL_HISTORY
// CONTACTS
These two lines are required, and should not be removed. The lines following these two comment headers define the content entries for their given section, each line containing one entry.
For history, a simple "time since the call" notation is available (although not required) by using a comma, separating the entry name from the time.
Troubleshooting
There are a few main rules of editing/adding an entry:
- All values are treated as strings.
- Commas cannot be used as part of a contact name or "time since the call" value.
- Entries are stored in their natural "top to bottom" order, as they would appear in the infotainment system app. They are not sorted in any way other than the order that they are entered.
Messaging
Config File
Message app configuration is stored in messages_config.json, located in the main infotainment install directory.
The property "messaging_history" contains a "entry_list" property, which is an array of objects that define individual entries to populate the "Recent" listing in the Messages app.
The following is an example of a message entry:
{ "message_date" : "32 min ago", "contact_name" : "Omar", "contact_number" : "3193354797", "message" : "Hey there! Are you coming out tonight? Shoot me a message." }
Each entry has four properties: message_date, contact_name, contact_number, and message. All properties should be encased in double quotes (").
- message_date is a string that shows the age of the given entry. It can be something relative ("32 min ago"), a date ("Oct 7"), or any other string.
- contact_name is a string that will show up as the message sender's name.
- contact_number is currently not used.
- message is a string defines the message contents. Most punctuation may be used (besides double quotes).
Troubleshooting
Entries are stored in their natural "top to bottom" order, as they would appear in the infotainment system messages app. They are not sorted in any way other than the order that they are entered.
JSON property names are important and care should be taken in making sure spelling is correct when editing them. You can also use any number of online JSON validator tools to make sure that your configuration file is valid before running infotainment.