Dual Database System for Embedded Multimedia Scanning

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing multimedia service databases on embedded devices face issues with data reliability and scanning efficiency, as they require frequent re-scanning and re-creation upon power-off, leading to user experience degradation and potential data loss.

Innovation Solution

Implementing a dual-database system using a RAM-DB for high-speed data processing and a BAK-DB for backup, ensuring data persistence and reliability by periodically backing up data and resuming scans from the BAK-DB in case of interruptions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If a memory file system is used to store the media service database, then the database can be easily created and managed, but the database is lost when the device is powered off, requiring re-creation and re-scanning

Engineering Contradiction:
Improvedatabase creation and managementVSAvoiddata persistence
Core Design Contradiction:
Ease of manufactureVSReliability

Solution Approach 1:

The patent creates a backup database (BAK-DB) that copies the structure and data of the main media service database. This backup is stored in external storage and persists across power cycles, allowing the system to restore database data without re-scanning files after device restart.

Inventive Principle:
Principle #26Copying

2Reliability

If the media service database is re-created after power-off, then data persistence is maintained, but scanning time increases significantly, affecting user experience

Engineering Contradiction:
Improvedata persistenceVSAvoidscanning time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs preliminary actions by maintaining a backup database that contains directory information extracted in advance. When the device restarts, the system restores from the backup rather than performing complete re-scanning, significantly reducing the time required to make multimedia files available for playback.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent discards the need for complete re-scanning by recovering directory information from the backup database. This allows the system to retain valuable scanning results across power cycles while avoiding the time-consuming re-extraction of directory information from multimedia files.

Inventive Principle:
Principle #34Discarding and recovering

3Reliability

If external storage device is used to store media database, then data persistence is improved, but read-and-write performance deteriorates, affecting service response speed

Engineering Contradiction:
Improvedata persistenceVSAvoidread-and-write performance
Core Design Contradiction:
ReliabilityVSSpeed

Solution Approach 1:

The patent segments the database into two parts: a main database stored in external storage for persistence and a backup database that serves as a recovery mechanism. This segmentation allows the system to maintain data persistence while using the backup for rapid restoration without requiring high-speed read-and-write operations from external storage during normal operation.

Inventive Principle:
Principle #1Segmentation

4Use of energy by moving object

If the scanning process is interrupted, then power consumption is reduced, but data integrity may be compromised, causing program exceptions

Engineering Contradiction:
Improvepower consumptionVSAvoiddata integrity
Core Design Contradiction:
Use of energy by moving objectVSReliability

Solution Approach 1:

The patent implements beforehand cushioning by creating a backup database that cushions against the risks of scanning interruptions. If the scanning process is interrupted or the device is powered off during scanning, the backup database ensures that directory information is not lost, preventing program exceptions and maintaining data integrity without requiring continuous scanning operations.

Inventive Principle:
Principle #11Beforehand cushioning (Prior cushioning)

Data Source

PatentUS9311189B2Method and device for inputting data in multimedia service database on embedded device
Publication Date: 2016.04.12 HUAWEI DEVICE (SHENZHEN) CO LTD
  • US9311189B2 patent drawing
  • US9311189B2 patent drawing

AI summary

The present invention discloses a method and a device for inputting data in a multimedia service database on an embedded device. The method includes: when multimedia file scanning is performed, storing generated directory information of a multimedia file in a random access memory database (RAM-DB), and performing a RAM-DB to backup database (BAK-DB) data backup operation in a scanning process; and if an interruption occurs in the scanning process, and when the scanning continues after the scanning interruption ends, copying data in the BAK-DB to the RAM-DB, and continuing to scan, according to existing data in the RAM-DB, a multimedia file that is not scanned. In the present invention, two database files RAM-DB and BAK-DB are configured in a multimedia service system.