Motorola Mobility Confidential Restricted.

Storage Service

The storage service in KreaTV provides access to the following hardware if connected to the STB:

  • The internal HDD
  • Any external HDD (eSATA/USB)
  • Any external USB Mass Storage Device

The service is not responsible for the NOR and/or NAND flash located in the STB. These are controlled by other parts of the KreaTV software.

Using the Service

ToiStorageService

The ToiStorageService interface is the entry point to the storage service. It can be used to enumerate the different physical storages connected to the STB. For each physical storage connected, the service can be used to retrive a handle to that specific storage, a ToiStorageDevice interface.

ToiStorageDevice

The ToiStorageDevice interface is used to retrieve information about and perform operations on a specific physical storage. It gives information regarding the different partitions of the storage as well as system information and health of the physical storage.

Operations to perform on the physical storage includes spinning the HDD up and down (if that is supported by the HDD), format partitions and mount/unmount partitions.

For a physical storage device it is also possible to get the status of the storage. The status returned for the device is not the current status since it is only possible to check the file system when it is unmounted and hence not on demand. At each system startup, KreaTV will check and try to fix any fault on all storages. The query for status will hence return the check result from the last startup and in order to trigger a new check, the system needs to reboot.

ToiStorageFile

The ToiStorageFile interface is used to provide access to files created and stored on accessible storage devices. This interface is primarily intended for applications that do not have direct access to the file system (portal applications). This interface can then be used together with portal application support to download files to local hard drive and import them into the Asset Manager Service.

See also: TOI Storage Service Interface

Storage IIP Configuration

Different IIP config parameters make KreaTV platform and storage service support different hardwares.
See below examples of configuration for DVR, Internal HDD, USB driver and USB storage support.
Refer to kreatv-option-usb and kreatv-option-harddrive section of API Reference for more information.

  • Internal HDD + USB driver + USB Storage, supporting all internal/external devices:
    kreatv-option-dvr
    Note: The IIP kreatv-option-dvr will automatically include 'kreatv-option-harddrive:all' and 'kreatv-option-usb' unless they are explicitly specified in the config.

  • Internal HDD + USB driver, supporting internal HDD and USB device, but no USB storage support:
    kreatv-option-dvr
    kreatv-option-usb
    kreatv-option-harddrive:ide

  • Internal HDD only, no USB support at all:
    kreatv-option-dvr
    kreatv-option-harddrive:ide

  • USB driver + USB storage, supporting external USB device and storage, but no internal HDD support:
    kreatv-option-dvr
    kreatv-option-usb
    kreatv-option-harddrive:usb

  • USB driver only, support USB device, but no internal HDD nor USB storage support:
    kreatv-option-usb
    Note: DVR is disabled.