CN110471860A - Date storage method, set-top box and Related product - Google Patents

Date storage method, set-top box and Related product Download PDF

Info

Publication number
CN110471860A
CN110471860A CN201910594671.8A CN201910594671A CN110471860A CN 110471860 A CN110471860 A CN 110471860A CN 201910594671 A CN201910594671 A CN 201910594671A CN 110471860 A CN110471860 A CN 110471860A
Authority
CN
China
Prior art keywords
data
configuration data
collocation
memory block
written
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910594671.8A
Other languages
Chinese (zh)
Inventor
王华泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN201910594671.8A priority Critical patent/CN110471860A/en
Publication of CN110471860A publication Critical patent/CN110471860A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4435Memory management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The embodiment of the present application discloses a kind of date storage method, set-top box and Related product and obtains configuration data memory block and collocation data backup area this method comprises: dividing to the flash;Data to be written are obtained, the configuration data of the data to be written is written to the configuration data memory block and/or the collocation data backup area;When executing without cardization operation, latest configuration data are read from the configuration data memory block and/or the collocation data backup area, target data corresponding with the latest configuration data is read from the memory.The embodiment of the present application is conducive to avoid the loss of data in set-top box, improves user experience.

Description

Date storage method, set-top box and Related product
Technical field
This application involves electronic technology fields, and in particular to a kind of date storage method, set-top box and Related product.
Background technique
Set-top box, i.e. digital video switching box (SetTopBox, referred to as: STB), are a connection television set and external letter The equipment in number source.The digital signal of compression can be changed into television content by it, and be shown on a television set.Signal can come From wire cable, satellite antenna, broadband network and terrestrial broadcasting.The received content of set-top box in addition to can provide image, Except sound, more it is that digital content, including electronic program guides, webpage, subtitle etc. can be received.It enables users to existing Digital television program is watched on television set, and formula digitlization amusement, education and commercialization activity can be interacted by network.
Used high peace set-top box is played for the authorization of scrambled program at present and is increasingly subject to the favor of operator, and is made It is also substantially increased with client's amount.When high peace set-top box storing data by the way of without card data, such as loss of data then can not Scrambled program is descrambled, and then influences customer experience effect.Therefore, how effectively to be managed for without the data after card Reason, it is urgently to be resolved at present.
Summary of the invention
The embodiment of the present application provides a kind of date storage method, set-top box and Related product, to without card data When, the storing data of set-top box energy highly effective and safe avoids loss of data, can successfully play TV programme, and then improve user's body It tests.
In a first aspect, the embodiment of the present application provides a kind of date storage method, the method is applied to set-top box, the machine Top box includes flash memory flash and memory, comprising:
The flash is divided, configuration data memory block and collocation data backup area are obtained;
Obtain data to be written, by the configuration data of the data to be written be written to the configuration data memory block and/ Or the collocation data backup area;
When executing without cardization operation, read from the configuration data memory block and/or the collocation data backup area Latest configuration data read target data corresponding with the latest configuration data from the memory.
Second aspect, the embodiment of the present application provide a kind of set-top box, comprising:
Division unit obtains configuration data memory block and collocation data backup area for dividing to the flash;
The configuration data of the data to be written is written to the configuration for obtaining data to be written by writing unit Data storage area and/or the collocation data backup area;
Reading unit is used for when executing without cardization operation, from the configuration data memory block and/or the configuration data Latest configuration data are read in backup area, and target data corresponding with the latest configuration data is read from the memory.
The third aspect, the embodiment of the present application provide a kind of set-top box, including processor, memory, communication interface and one A or multiple programs, wherein one or more of programs are stored in the memory, and are configured by the processing Device executes, and described program is included the steps that for executing the instruction in method as described in relation to the first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage medium Matter is stored with computer program, and the computer program makes the method for computer execution as described in relation to the first aspect.
5th aspect, the embodiment of the present application provide a kind of computer program product, and the computer program product includes depositing The non-transient computer readable storage medium of computer program is stored up, the computer is operable to make computer to execute such as the Method described in one side.
Implement the embodiment of the present application, has the following beneficial effects:
As can be seen that in the embodiment of the present application, collocation data backup area is marked off in flash, thus in configuration number According to the configuration data for retaining data in backup area, when the configuration data in configuration data memory block can not read valid data When, corresponding configuration data can be read from collocation data backup area, data can not be got by solving, and can not be saved to scrambling The problem of mesh is descrambled improves user experience.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present application, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow diagram of date storage method provided by the embodiments of the present application;
Fig. 2 is the flow diagram of another date storage method provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of set-top box provided by the embodiments of the present application;
Fig. 4 is that a kind of functional unit of set-top box provided by the embodiments of the present application forms block diagram.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall in the protection scope of this application.
The description and claims of this application and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that the special characteristic, result or the characteristic that describe can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Electronic equipment or set-top box in the application may include smart phone (such as Android phone, iOS mobile phone, Windows Phone mobile phone etc.), tablet computer, palm PC, laptop, mobile internet device MID (Mobile Internet Devices, referred to as: MID) or wearable device etc., above-mentioned electronic equipment are only citings, and non exhaustive, include but It is not limited to above-mentioned electronic equipment, for convenience of description, above-mentioned electronic equipment is known as user equipment (UE) in following example (User equipment, referred to as: UE).Certainly in practical applications, above-mentioned user equipment is also not necessarily limited to above-mentioned realization form.
It is simply introduced without card data first, in order to understand technical solution mentioned by the application.
For in high peace set-top box without card data, wherein without card data include vsc_data and configuration data Config_data, this plays the role of vital without Reinforced turf function of the card data to high peace set-top box.Vsc_data and Configuration data config_data is the data provided by vsc_lib, will send out one group of vsc_data and matched every time Contain an index (0 or 1) and some check values in configuration data config_data, configuration data config_data, In when reading data, using the value of index go read vsc_data.It, will in flash since vsc_data data volume is larger It is assigned separately two spaces 1M to be saved, config data volume is smaller, it will alternately save in the same area flash.
Refering to fig. 1, Fig. 1 is a kind of date storage method provided by the embodiments of the present application, and this method is applied to set-top box, institute Stating set-top box includes flash memory flash and memory, and this method includes but is not limited to following steps:
101: the flash being divided, configuration data memory block and collocation data backup area are obtained.
Optionally, four memory blocks are marked off in flash, to storing data, wherein deposit the first memory block and first Storage area is to store the data to be written read, and third memory block and the 4th memory block are respectively as the configuration data memory block With collocation data backup area, to store the configuration data of the data to be written.
Wherein, configuration data can be the index index information of data to be written and the verification data of data to be written.
For example, four memory blocks are marked off to flash, is denoted as F_VSC_1, F_VSC_2, F_CFG and F_ respectively CFG_b, wherein F_VSC_ and F_VSC_2 is as the first storage region and the second storage region, and F_CFG and F_CFG_b are as Three storage regions and the 4th storage region, wherein each storage region corresponds to the memory space of 1M, due in vsc_data data It deposits larger, therefore, vsc_data data is first split as vsc_data_0 and vsc_data_1, using F_VSC_1, F_VSC_2 Vsc_data_0 and vsc_data_1 is stored respectively, and config_data data volume only less than 128 bytes.Therefore, will The region F_CFG of 1M carries out the storage of most 512 config_data data with 128 bytes in flash for a unit
Further, current VSC_data and config_data are mismatched and the accident when wipe config in order to prevent Power-off causes config loss of data, and eventually leading to can not be without card problem.The space 1M F_CFG_b in flash is divided into The area config_backup (backup, backup), carries out asynchronous management, synchronizes storage to config data.Therefore, the step The memory of tetra- 1M sizes of dynamic memory distribution malloc, is denoted as respectively: Mv0, Mv1, Mc_a, Mc_b are so as to subsequent synchronisation data It uses.It, need to be by the config_data data backup therefore after having stored config_data data in the F_CFG of region in the application To F_CFG_b.
102: obtaining data to be written, the configuration data of the data to be written is written to the configuration data memory block The collocation data backup area and/or.
Optionally, according to the erasable state of configuration data memory block and collocation data backup area, it is written into matching for data It sets data to be written in corresponding region, to realize without card data.
Since when data store, each VSC_DATA_0 and VSC_DATA_1 data are alternately to arrive, therefore, finally deposit One group of data can be only stored when F_CFG the and F_CFG_b subregion of the config data of storage.
For example, when it is vsc_data_0 that the data come are thrown in the library vsc_lib for the first time, then corresponding config_data The data will be updated data into Mem by middle index=0, final to be stored in flash;Throw for the second time next in the library vsc_lib Data should be vsc_data_1, index=1 in config_data, and data also pre-exist Mem, final to be stored in flash.Cause This, the finishing touch data being stored in F_CFG will correspond to certain group data of vsc_data_0 or vsc_data_1, Er Qiecun The data being placed in F_CFG_b also correspond to certain group data of vsc_data_0 or vsc_data_1.
103: when executing without cardization operation, from the configuration data memory block and/or the collocation data backup area Latest configuration data are read, target data corresponding with the latest configuration data is read from the memory.
Optionally, it determines the corresponding storage region of latest configuration data, extracts target data from the storage region Index obtains target data according to the index from memory.
As can be seen that in the embodiment of the present application, collocation data backup area is marked off in flash, thus in configuration number According to the configuration data for retaining data in backup area, when the configuration data in configuration data memory block can not read valid data When, corresponding configuration data can be read from collocation data backup area, data can not be got by solving, and can not be saved to scrambling The problem of mesh is descrambled improves user experience.
In some possible embodiments, the configuration data of the data to be written the configuration data is written to deposit Storage area and/or the realization process in the collocation data backup area can be with are as follows: carry out the configuration data as unit of 128 bytes It stores one by one, to reduce erasing frequency.As can be seen that in the present embodiment, it is contemplated that config data volume is smaller, herein will The area F_CFG is stored one by one as unit of 128 bytes, can be damaged to avoid frequent erasing flash to it, extending it makes Use the service life.
In some possible embodiments, it stores by the configuration data of the data to be stored to the configuration data Before partition holding and/or the collocation data backup subregion, the method also includes:
Obtain the configuration data memory block and the corresponding monitoring data J1 in the collocation data backup area and monitoring Data J2, the J1 are used to monitor the erasable state of the configuration data memory block, and the J2 is for monitoring the configuration data The erasable state of backup area;According to the monitoring data to the configuration data partition holding and/or the collocation data backup The configuration data is written in area.
In some possible embodiments, according to the monitoring data to the configuration data memory block and/or described The realization process that the configuration data is written in collocation data backup area can be with are as follows: when the J1 and the J2 are preset value, Erasing operation is executed to the collocation data backup area, the configuration data that last time in the configuration data memory block is written is written Collocation data backup area after executing erasing operation;Erasing operation is executed to the configuration data memory block, and by the configuration Data write-in executes the configuration data memory block after erasing operation.
For example, as preset value be 1, be 1 in J1 and J2, then conclude that F_CFG and F_CFG_b subregion is required to wipe Operation goes write-in configuration data without space.At this point, in order to avoid power-off causes config_data data loss problem, it is first right F_CFG_b subregion carries out erasing operation, in addition to avoiding in starting next time, current config_data data invalid needs One group of data upper in F_CFG are first written in F_CFG_b the case where using one group of config_data data, then, then it is right F_CFG is wiped and the configuration data of new data is written.
In some possible embodiments, the method also includes: when the J1 and J2 are all larger than the preset value, The configuration data is respectively written into the configuration data memory block and the collocation data backup area.For example, if When J1 and J2 are all larger than 1, then concluding F_CFG and F_CFG_b subregion has space to remove write-in latest data.At this point, F_CFG and F_ CFG_b does not do sequence requirement to the write-in of config_data data.
In some possible embodiments, the method also includes:
The J1 be equal to preset value, and the J2 be greater than the preset value when, to the configuration data memory block execute The configuration data is written to the configuration data memory block after executing erasing operation, and matched by described in by erasing operation It sets data and directly writes to the collocation data backup area;Alternatively, being equal to preset value in the J2, and the J1 is greater than described pre- If when value, executing erasing operation to the configuration data memory block, being written to the configuration data after executing erasing operation The collocation data backup area, and the configuration data is directly write into the configuration data memory block.
For example, when being 1 such as J1 or J2, then it represents that F_CFG or F_CFG_b subregion needs are wiped free of new number is written again According to.At this point, first carrying out the write-in of data to the subregion that can be write direct, erasable operation, erasable operation are carried out to another subregion After having executed, then write operation is executed,
In some possible embodiments, the method also includes:
Operate without cardization using the target data.
Specifically, when box starts without card, it will read newest config data, after getting index, take out Vsc_data and matched config is finally sent into vsc_lib and done without cardization operation by corresponding vsc_data.
In some possible embodiments, the configuration data of the data to be written is being written to the configuration data Before memory block and/or the collocation data backup area, the method also includes: to all data in the data to be written Keyword identification is carried out, determines the corresponding keyword cluster of every item data;The data for belonging to same keyword cluster are divided into Same data dimension obtains multiple data dimensions;Obtain in the multiple data dimension each data dimension relative to it is described to The important level of storing data;Using the highest data dimension of important level as root node, will be removed in the multiple data dimension Other data dimensions except the highest data dimension of important level create the first tree-model as child node;By the multiple number It is stored on corresponding node according to the corresponding items data to be written of dimension, the first tree-model after obtaining storing data Number of nodes divides first tree-model according to the quantity, obtains the first data acquisition system and the second data set, The first storage region and the second storage region that first data acquisition system and the second data set are stored in memory, Wherein, the node includes the root node and child node of first tree-model.
Further, the major key information for obtaining each node in the first tree-model, using the major key information as each node Configuration data, obtain the configuration data of every data to be written;Then, the configuration data of each node is stored in corresponding At node, the second tree-model corresponding with configuration data is constructed with the configuration data of each node, according to above-mentioned division fraction Equally, the first sets of configuration data and the second sets of configuration data are obtained, by first data acquisition system and second data Gather the configuration data storage region being stored in flash and collocation data backup region.
Referring to Fig.2, Fig. 2 is another date storage method provided by the embodiments of the present application, this method is applied to set-top box, The set-top box includes flash memory flash and memory, and this method includes but is not limited to following steps;
201: the flash being divided, configuration data memory block and collocation data backup area are obtained.
202: obtaining data to be written.
203: obtain the configuration data memory block and the corresponding monitoring data J1 in the collocation data backup area and Monitoring data J2.
Wherein, the J1 is used to monitor the erasable state of the configuration data memory block, and the J2 is for monitoring described match Set the erasable state in data backup area.
204: being written according to the monitoring data to the configuration data partition holding and/or the collocation data backup area The configuration data.
205: when executing without cardization operation, from the configuration data memory block and/or the collocation data backup area Latest configuration data are read, target data corresponding with the latest configuration data is read from the memory.
206: operate without cardization using the target data.
It should be noted that the specific implementation process of each step of method shown in Fig. 2 can be found in side described in above-mentioned Fig. 1 The specific implementation process of method, no longer describes herein.
As can be seen that in the embodiment of the present application, collocation data backup area is marked off in flash, thus in configuration number According to the configuration data for retaining data in backup area, when the configuration data in configuration data memory block can not read valid data When, corresponding configuration data can be read from collocation data backup area, data can not be got by solving, and can not be saved to scrambling The problem of mesh is descrambled improves user experience.
It is consistent with above-mentioned Fig. 1 and embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is provided by the embodiments of the present application one The structural schematic diagram of the set-top box 300 of kind data storage, as shown in figure 3, set-top box 300 connects including processor, memory, communication Mouthful and one or more program, wherein said one or multiple programs are different from said one or multiple application programs, and on It states one or more programs to be stored in above-mentioned memory, and is configured to be executed by above-mentioned processor, above procedure includes For executing the instruction of following steps:
The flash is divided, configuration data memory block and collocation data backup area are obtained;
Obtain data to be written, by the configuration data of the data to be written be written to the configuration data memory block and/ Or the collocation data backup area;
When executing without cardization operation, read from the configuration data memory block and/or the collocation data backup area Latest configuration data read target data corresponding with the latest configuration data from the memory.
In some possible embodiments, it stores by the configuration data of the data to be stored to the configuration data Before partition holding and/or the collocation data backup subregion, above procedure is also used to execute the instruction of following steps:
Obtain the configuration data memory block and the corresponding monitoring data J1 in the collocation data backup area and monitoring Data J2, the J1 are used to monitor the erasable state of the configuration data memory block, and the J2 is for monitoring the configuration data The erasable state of backup area;
According to the monitoring data to described in the configuration data partition holding and/or collocation data backup area write-in Configuration data.
In some possible embodiments, according to the monitoring data to the configuration data memory block and/or institute It states collocation data backup area and the configuration data aspect is written, above procedure is specifically used for executing the instruction of following steps:
When the J1 and the J2 are preset value, erasing operation is executed to the collocation data backup area,
The configuration data write-in that last time in the configuration data memory block is written executes the configuration data after erasing operation Backup area;
Erasing operation is executed to the configuration data memory block, and will be after configuration data write-in execution erasing operation Configuration data memory block.
In some possible embodiments, above procedure is also used to execute the instruction of following steps:
When the J1 and J2 are all larger than the preset value, the configuration data is respectively written into the configuration data and is deposited Storage area and the collocation data backup area.
In some possible embodiments, above procedure is also used to execute the instruction of following steps:
The J1 be equal to preset value, and the J2 be greater than the preset value when, to the configuration data memory block execute The configuration data is written to the configuration data memory block after executing erasing operation, and matched by described in by erasing operation It sets data and directly writes to the collocation data backup area;
Alternatively, the J2 be equal to preset value, and the J1 be greater than the preset value when, to the configuration data memory block Erasing operation is executed, the configuration data is written to the collocation data backup area after executing erasing operation, and by institute It states configuration data and directly writes to the configuration data memory block.
In some possible embodiments, above procedure is also used to execute the instruction of following steps:
Operate without cardization using the target data.
As can be seen that in the embodiment of the present application, collocation data backup area is marked off in flash, thus in configuration number According to the configuration data for retaining data in backup area, when the configuration data in configuration data memory block can not read valid data When, corresponding configuration data can be read from collocation data backup area, data can not be got by solving, and can not be saved to scrambling The problem of mesh is descrambled improves user experience.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is understood that , in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or software module for set-top box. Those skilled in the art should be readily appreciated that, in conjunction with each exemplary module and calculation of embodiment description presented herein Method step, the application can be realized with the combining form of hardware or hardware and computer software.Some function is actually with hardware Or computer software drives the mode of hardware to execute, the specific application and design constraint depending on technical solution.Specially Industry technical staff can specifically realize described function to each using distinct methods, but this realization is not answered Think beyond scope of the present application.
The embodiment of the present application can carry out the division of functional module according to above method example to set-top box, for example, can be with Two or more functions, can also be integrated in a processing module by corresponding each each functional module of function division In.Above-mentioned integrated module both can take the form of hardware realization, can also be realized in the form of software function module.It needs It is noted that be schematical, only a kind of logical function partition to the division of module in the embodiment of the present application, it is practical real It is current that there may be another division manner.
The one kind for showing set-top box/400 of the storage of data involved in above-described embodiment refering to Fig. 4, Fig. 4 is possible Functional unit forms block diagram, and electronic equipment 400 includes: division unit 410, writing unit 420 and reading unit 430, in which:
Division unit 410 obtains configuration data memory block and collocation data backup for dividing to the flash Area;
The configuration data of the data to be written is written to described match for obtaining data to be written by writing unit 420 Set data storage area and/or the collocation data backup area;
Reading unit 430 is used for when executing without cardization operation, from the configuration data memory block and/or the configuration Latest configuration data are read in data backup area, and number of targets corresponding with the latest configuration data is read from the memory According to.
In some possible embodiments, set-top box 400 further include: acquiring unit 440;
It stores by the configuration data of the data to be stored to the configuration data partition holding and/or the configuration number Before backup subregion, acquiring unit 440 is used for:
Obtain the configuration data memory block and the corresponding monitoring data J1 in the collocation data backup area and monitoring Data J2, the J1 are used to monitor the erasable state of the configuration data memory block, and the J2 is for monitoring the configuration data The erasable state of backup area;
According to the monitoring data to described in the configuration data partition holding and/or collocation data backup area write-in Configuration data.
In some possible embodiments, according to the monitoring data to the configuration data memory block and/or institute It states collocation data backup area and the configuration data aspect is written, writing unit 420 is specifically used for:
When the J1 and the J2 are preset value, erasing operation is executed to the collocation data backup area,
The configuration data write-in that last time in the configuration data memory block is written executes the configuration data after erasing operation Backup area;
Erasing operation is executed to the configuration data memory block, and will be after configuration data write-in execution erasing operation Configuration data memory block.
In some possible embodiments, writing unit 420 are also used to:
When the J1 and J2 are all larger than the preset value, the configuration data is respectively written into the configuration data and is deposited Storage area and the collocation data backup area.
In some possible embodiments, writing unit 420 are also used to:
The J1 be equal to preset value, and the J2 be greater than the preset value when, to the configuration data memory block execute The configuration data is written to the configuration data memory block after executing erasing operation, and matched by described in by erasing operation It sets data and directly writes to the collocation data backup area;
Alternatively, the J2 be equal to preset value, and the J1 be greater than the preset value when, to the configuration data memory block Erasing operation is executed, the configuration data is written to the collocation data backup area after executing erasing operation, and by institute It states configuration data and directly writes to the configuration data memory block.
In some possible embodiments, set-top box 400 further includes processing unit 450;
Processing unit 450, for operate without cardization using the target data.
The embodiment of the present application also provides a kind of computer storage medium, and the computer-readable recording medium storage has calculating Machine program, the computer program are executed by processor to realize that any data recorded in above method embodiment such as are deposited Some or all of method for storing step.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to execute such as above-mentioned side Some or all of any data storage side method recorded in method embodiment step.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to alternative embodiment, related actions and modules not necessarily the application It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also be realized in the form of software program module.
If the integrated unit is realized in the form of software program module and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the application Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of date storage method, which is characterized in that the method is applied to set-top box, and the set-top box includes flash memory Flash and memory, comprising:
The flash is divided, configuration data memory block and collocation data backup area are obtained;
Data to be written are obtained, the configuration data of the data to be written is written to the configuration data memory block and/or institute State collocation data backup area;
When executing without cardization operation, read from the configuration data memory block and/or the collocation data backup area newest Configuration data reads target data corresponding with the latest configuration data from the memory.
2. the method according to claim 1, wherein the configuration data of the data to be written is written to institute Before stating configuration data memory block and/or the collocation data backup area, the method also includes:
Obtain the configuration data memory block and the corresponding monitoring data J1 in the collocation data backup area and monitoring data J2, the J1 are used to monitor the erasable state of the configuration data memory block, and the J2 is for monitoring the collocation data backup The erasable state in area;
The configuration is written to the configuration data partition holding and/or the collocation data backup area according to the monitoring data Data.
3. according to the method described in claim 2, it is characterized in that, described deposit according to the monitoring data to the configuration data The configuration data is written in storage area and/or the collocation data backup area, comprising:
When the J1 and the J2 are preset value, erasing operation is executed to the collocation data backup area,
The configuration data write-in that last time in the configuration data memory block is written executes the collocation data backup after erasing operation Area;
Erasing operation is executed to the configuration data memory block, and the configuration after executing erasing operation is written into the configuration data Data storage area.
4. according to the method described in claim 4, it is characterized in that, the method also includes:
When the J1 and J2 are all larger than the preset value, the configuration data is respectively written into the configuration data memory block With the collocation data backup area.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
The J1 be equal to preset value, and the J2 be greater than the preset value when, erasing is executed to the configuration data memory block The configuration data is written to the configuration data memory block after executing erasing operation by operation, and by the configuration number According to directly writing to the collocation data backup area;
Alternatively, the J2 be equal to preset value, and the J1 be greater than the preset value when, to the configuration data memory block execute The configuration data is written to the collocation data backup area after executing erasing operation, and matched by described in by erasing operation It sets data and directly writes to the configuration data memory block.
6. method according to claim 1-5, which is characterized in that the method also includes:
Operate without cardization using the target data.
7. a kind of set-top box characterized by comprising
Division unit obtains configuration data memory block and collocation data backup area for dividing to the flash;
The configuration data of the data to be written is written to the configuration data for obtaining data to be written by writing unit Memory block and/or the collocation data backup area;
Reading unit is used for when executing without cardization operation, from the configuration data memory block and/or the collocation data backup Latest configuration data are read in area, and target data corresponding with the latest configuration data is read from the memory.
8. set-top box according to claim 7, which is characterized in that the set-top box further include: acquiring unit;
The configuration data storage of the data to be stored is standby to the configuration data partition holding and/or the configuration data Before part subregion, the acquiring unit is right respectively for obtaining the configuration data memory block and the collocation data backup area The monitoring data J1 and monitoring data J2, the J1 answered is used to monitor the erasable state of the configuration data memory block, the J2 For monitoring the erasable state in the collocation data backup area;According to the monitoring data to the configuration data partition holding And/or the configuration data is written in the collocation data backup area.
9. a kind of electronic equipment, which is characterized in that including processor, memory, communication interface and one or more program, In, one or more of programs are stored in the memory, and are configured to be executed by the processor, described program Include the steps that requiring the instruction in any one of 1-7 method for perform claim.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program are executed by processor to realize the method according to claim 1 to 7.
CN201910594671.8A 2019-07-03 2019-07-03 Date storage method, set-top box and Related product Pending CN110471860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910594671.8A CN110471860A (en) 2019-07-03 2019-07-03 Date storage method, set-top box and Related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910594671.8A CN110471860A (en) 2019-07-03 2019-07-03 Date storage method, set-top box and Related product

Publications (1)

Publication Number Publication Date
CN110471860A true CN110471860A (en) 2019-11-19

Family

ID=68506721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910594671.8A Pending CN110471860A (en) 2019-07-03 2019-07-03 Date storage method, set-top box and Related product

Country Status (1)

Country Link
CN (1) CN110471860A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114518977A (en) * 2020-11-19 2022-05-20 青岛海信宽带多媒体技术有限公司 Method, device and terminal for detecting and recovering data damage of high-security partition

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060262880A1 (en) * 2005-05-18 2006-11-23 Ntt Docomo, Inc. Power series predistorter and control method thereof
CN101031028A (en) * 2007-04-06 2007-09-05 中兴通讯股份有限公司 TV-set top box for supporting multi-customer use simultaneouslly
CN101251826A (en) * 2007-02-27 2008-08-27 深圳市同洲电子股份有限公司 Flash memory, method and apparatus for data management of flash memory
CN102572330A (en) * 2010-12-29 2012-07-11 厦门华侨电子股份有限公司 Method for reading, writing and erasing data of liquid crystal television Flash chip
CN103440205A (en) * 2013-08-21 2013-12-11 深圳市九洲电器有限公司 Method and device for storing data of set top box
CN104717558A (en) * 2015-03-05 2015-06-17 福建新大陆通信科技股份有限公司 Backing up and restoring method of set top box data
CN108228091A (en) * 2016-12-22 2018-06-29 上海未来宽带技术股份有限公司 Configuration data subregion store method and system, configuration data method of calibration and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060262880A1 (en) * 2005-05-18 2006-11-23 Ntt Docomo, Inc. Power series predistorter and control method thereof
CN101251826A (en) * 2007-02-27 2008-08-27 深圳市同洲电子股份有限公司 Flash memory, method and apparatus for data management of flash memory
CN101031028A (en) * 2007-04-06 2007-09-05 中兴通讯股份有限公司 TV-set top box for supporting multi-customer use simultaneouslly
CN102572330A (en) * 2010-12-29 2012-07-11 厦门华侨电子股份有限公司 Method for reading, writing and erasing data of liquid crystal television Flash chip
CN103440205A (en) * 2013-08-21 2013-12-11 深圳市九洲电器有限公司 Method and device for storing data of set top box
CN104717558A (en) * 2015-03-05 2015-06-17 福建新大陆通信科技股份有限公司 Backing up and restoring method of set top box data
CN108228091A (en) * 2016-12-22 2018-06-29 上海未来宽带技术股份有限公司 Configuration data subregion store method and system, configuration data method of calibration and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZBIGNIEW HAJDUK: "Reconfigurable FPGA implementation of neural networks", 《NEUROCOMPUTING》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114518977A (en) * 2020-11-19 2022-05-20 青岛海信宽带多媒体技术有限公司 Method, device and terminal for detecting and recovering data damage of high-security partition

Similar Documents

Publication Publication Date Title
CN103593147B (en) A kind of method and device of digital independent
CN111381954B (en) Audio data recording method, system and terminal equipment
CN105144074B (en) It is stored using the block of hybrid memory device
CN108419089A (en) Module data processing method, device, equipment and storage medium
CN104199913B (en) Terminal resource cleaning method and device and terminal
CN108255989B (en) Picture storage method and device, terminal equipment and computer storage medium
CN106210127A (en) A kind of information processing method, server and client
CN104601683A (en) File download management method, mobile terminal and communication system
CN110209875A (en) User content portrait determines method, access object recommendation method and relevant apparatus
CN105740061B (en) A kind of method, user equipment and system that GPU resource is rebuild
CN110147203A (en) A kind of file management method, device, electronic equipment and storage medium
CN104572762A (en) Method and device for deleting and recovering video files
CN107648854B (en) Game classification method and device and electronic equipment
CN105554424A (en) Method and apparatus for video playing in application
CN110471860A (en) Date storage method, set-top box and Related product
CN109271367A (en) Distributed file system multinode snapshot rollback method and system
CN110990329B (en) Federal computing high availability method, equipment and medium
CN103631872B (en) A kind of method for broadcasting multimedia file and electric terminal
CN108287663A (en) A kind of date storage method and device based on EMMC
US10311066B1 (en) Identifying reasons for web site abandonment
CN110928492A (en) Hard disk replacement method, system, terminal and storage medium of distributed file system
CN106060664A (en) Method and device for controlling video play
CN112866738B (en) Message processing method and live message management system
CN109688433A (en) Shearing video method and Related product based on picture
CN109525499A (en) The flow managing method and Related product of short Video Applications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191119

RJ01 Rejection of invention patent application after publication