Front Panel Service Configuration

At startup, the Front Panel Service will look for an XML file in /etc/frontpanel_config.xml containing the configuration on how the front panel should react on changes in information objects, e.g., which LED shall be lit in which color in standby. During build time, the defaul configuration XML file can be replaced by adding "kreatv-option-frontpanel-config:<path of config file>" in build config file. The configuration XML file should conform the DTD below, which descibes the structure of the front panel configuration.

    <!ELEMENT FrontPanelConfig (Panel*)>
    <!ELEMENT Panel (InformationObject*)>
    <!ATTLIST Panel
            type  CDATA #REQUIRED>
    <!ELEMENT InformationObject (State*)>
    <!ATTLIST InformationObject
            name  CDATA #REQUIRED>
    <!ELEMENT State (Led*, SegmentDisplay?)>
    <!ATTLIST State
            value  CDATA #REQUIRED>
    <!ELEMENT led EMPTY>
    <!ATTLIST Led
            id   CDATA #REQUIRED
            color (off | red | greeen | orange | blue | yellow) #REQUIRED
            bliinkfrequency CDATA #IMPLIED>
    <!ELEMENT SegmentDisplay EMPTY>
    <!ATTLIST SegmentDisplay
            mode (text | clock) #REQUIRED
	    text CDATA #IMPLIED
	    colonstate (false | true) #IMPLIED
	    intensity CDATA #IMPLIED>
          
  

Consider the following example of front panel configuration file:

    <?xml version="1.0"?>
    <FrontPanelConfig>
      <Panel type="vip19?3*">
        <InformationObject name="var.io.state">
          <State value="standby">
            <Led id="1" color="red" blinkfrequency="0.5"/>
            <Led id="2" color="off" />
            <SegmentDisplay mode="clock" colonstate="true" intensity="20"/>
          </State>
          <State value="*">
            <Led id="1" color="off"/>
            <Led id="2" color="green" blinkfrequency="0.0"/>
            <SegmentDisplay mode="text" colonstate="false" text="KTV" 
             intensity="100"/>
          </State>
        <InformationObject>
      <Panel>
    </FrontPanelConfig>

  

This configuration will cause the Front Panel Service to act as follows.

See also: TOI Front Panel Service Interface