Maintenance tasks

From open-smil
Jump to: navigation, search

Maintenance jobs can be dispatched to SMIL players by designating a TaskSchedule subscription within the SMIL script's header section. For example:

<head>
  <metadata>
    <x-server xmlns="http://schemas.open-smil.org/smartapi-1.0">
      <subscriptionList>
        <subscription>
          <type>TaskSchedule</type>
          <action>http://server/taskSchedule.xml</action>
          <method>get</method> 
        </subscription>
      </subscriptionList>
    </x-server>
  </metadata>
</head>

To initiate device configuration, the player must be issued a SMIL script with a TaskSchedule subscription in the head section. The subscription contains a URL that points to a taskSchedule.xml file that looks like the following:

<taskSchedule xmlns="http://schemas.open-smil.org/smartapi-1.0">
  <timedTaskList>
    <firmware trigger="alignDailyReboot | immediately">
      <source>http://server/firmware.zip | firmware.zip</sοurce>
      <version>v1.0.4</version>
      <model>ironman</model>
      <buildTime>1455825876</buildTime>
      <contentType>x-firmware-update/x-zip</contentType>
      <contentLength>38354944</contentLength>
      <checksum>8243dcea4987685b2928ccceb9026999</checksum>
      <checksumMethod>MD5</checksumMethod>
    </firmware>
  </timedTaskList>
</taskSchedule>
  • 'trigger' parameter will be set to "immediately" if user doesn't provide trigger value in xml.
  • Source: a URL or file name that points to a OTA firmware zip file provided by your device vendor.
  • contentChecksum: MD5 checksum of the firmware package
  • Optional tag -- the firmware should be downloaded from server if <foo> tags listed at below is empty or doesn't exist in this xml. Firmware should auto avoid to check information from zip and avoid upgrade process if information is invalid after downloaded.
    • <model> tag is optional.
    • <buildTime> tag is optional
    • <contentLength> tag is optional.