Method and device for storing data of set top box

A technology for data storage and set-top box, applied in the field of set-top box data storage method and device, can solve problems such as abnormal operation of set-top box, waste of Flash space, easy damage of Flash, etc., and achieve the effect of improving the service life of Flash and the utilization rate of Flash.

Inactive Publication Date: 2013-12-11
SHENZHEN JIUZHOU ELECTRIC
View PDF1 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a set-top box data storage method and device to solve the existing problems in the prior art, such as waste of Flash space, easy damage of Flash due to frequent erasing and writing, and loss of data due to power failure during erasing, resulting in abnormal operation of the set-top box.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for storing data of set top box
  • Method and device for storing data of set top box
  • Method and device for storing data of set top box

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0024] An embodiment of the present invention provides a method for storing data in a set-top box. The method is as follows: figure 1 As shown, the specific steps include:

[0025] In step S101, a first storage area and a second storage area with equal data storage capacity are divided in the Flash.

[0026] In this embodiment, both the first storage area and the second storage area are Blocks, of course, the first storage area and the second storage area may also be in other storage forms according to different usage occasions.

[0027] In step S102, according to the data type size of the set-to...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention belongs to the technical filed of data storage, and provides a method and device for storing data of a set top box. The method comprises the steps of marking out a first storage area and a second storage area in Flash, wherein the first storage area and the second storage area are equal in data storage capacity; carrying out partition on the data storage capacity of the first storage area and the data storage capacity of the second storage area respectively, and marking out a plurality of data blocks, wherein the data blocks are identical in type and size of data; determining the current data blocks of the first storage area and the current data blocks of the second storage area when data are written in the set top box; carrying out reading-in alternatively on the current data blocks of the first storage area and the current data blocks of the second storage area. According to the method and device for storing the data of the set top box, partition of the data blocks is carried out on the two storage areas, the data are written in the data blocks of different storage areas alternatively, and therefore the problem that the space of the Flash is wasted, the Flash is damaged easily due to frequent erasing and writing and data are lost in power outage when the erasing and writing are carried out on the Flash in the prior art are solved.

Description

technical field [0001] The invention belongs to the technical field of data storage, and in particular relates to a data storage method and device for a set-top box. Background technique [0002] During the operation of the set-top box, some data needs to be dynamically updated and stored in the flash memory (English: Flash), such as dynamic update, system encryption key (English: Key), user setting data, etc. The traditional method is to store these data in a fixed address in Flash with a certain data type (usually custom), and use a specific interface to read and write access to this address. Flash has a certain lifespan. When a certain number of times of erasing and writing is exceeded, Flash will be broken. Therefore, continuous read and write access to a fixed address will increase the probability of damage to this area. To some extent, it will reduce the service life of the set-top box. [0003] The erasure of Flash is generally based on blocks (English: Block), so t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F12/06G06F17/30
Inventor 张迎伟
Owner SHENZHEN JIUZHOU ELECTRIC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products