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.

Phone

phone_config.csv

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 starting with a commented line (lines beginning with a double forward slash, ie //) declaring the entries following it: CALL_HISTORY and 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 CALL_HISTORY, a simplified "time since the call" notation is available (although not required) by using a comma, separating the entry name from the time.

Example

// CALL_HISTORY
Devon, 50 min ago
+1 618-342-3892, 1 hour ago
+1 319-322-1988
// CONTACTS
John Doe

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

messages_config.json

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.

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).

Example

{
    "messaging_history" : {
        "entry_list" : [{
             "message_date" : "32 min ago",
             "contact_name" : "Omar",
             "contact_number" : "3193354797",
             "message" : "Hey there! Are you coming out tonight? Shoot me a message."
         }.
         {
             "message_date" : "Feb 3",
             "contact_name" : "Sebastian",
             "contact_number" : "61893534797",
             "message" : "You left your glasses near the copier. I went ahead and put them on your chair."
         }]
    }
}

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.