CN101902556A - Data block partition positioning method for digital television set-top box - Google Patents

Data block partition positioning method for digital television set-top box Download PDF

Info

Publication number
CN101902556A
CN101902556A CN 201010242353 CN201010242353A CN101902556A CN 101902556 A CN101902556 A CN 101902556A CN 201010242353 CN201010242353 CN 201010242353 CN 201010242353 A CN201010242353 A CN 201010242353A CN 101902556 A CN101902556 A CN 101902556A
Authority
CN
China
Prior art keywords
address
look
data block
block partition
top box
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
CN 201010242353
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.)
Fujian Newland Communication Science Technology Co Ltd
Original Assignee
Fujian Newland Communication Science Technology 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 Fujian Newland Communication Science Technology Co Ltd filed Critical Fujian Newland Communication Science Technology Co Ltd
Priority to CN 201010242353 priority Critical patent/CN101902556A/en
Publication of CN101902556A publication Critical patent/CN101902556A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a data block partition positioning method for a digital television set-top box. The method comprises the following steps of: defining a memory unit with a fixed address to store a lookup table structure in a memory space; acquiring information on type, address and size of a data block partition through the lookup table structure by a set-top box application program; writing the lookup table structure into the program; and acquiring the information on the type, the address, the size and the like of the data block partition by indexing the lookup table. Software can realize the required positioning and use of the type and the address of data by only searching for a storage table instead of previously defining the address of each data block partition, so that the compatibility of different software versions is improved.

Description

A kind of data block partition positioning method of digital TV set-top box
[technical field]
The invention belongs to field of embedded software, specifically be meant a kind of data block partition positioning method of digital TV set-top box.
[background technology]
Generally preserve on the nonvolatile memory in the set-top box with lower module: loader starts leader, and there is character library in the app program part toward contact, the bmp image data, and start logo, library of programmes data, block of informations such as ad data need storage.Different modules is carried out function corresponding, and having plenty of program code needs operation; The data of having plenty of preservation are used when program running.No matter but be which kind of situation, be presented as all on these modular forms that binary data forms a data block partition (PARTITION), is stored on the nonvolatile memory.And each subregion is used the position that then must know its storage, and then reads these data and can use.
Actual when design different editions software, may be owing to configuration, production, customer demand or the like reason, make the data block partition of identical function not necessarily to have identical position.Generally be according to different demands, give the address of its corresponding each data block of each software definition.Its shortcoming is that software can only use the data block that defines on the address location, if the situation of part upgrading between different editions, the position that may cause software to go to define obtains data and makes mistakes, and really have the data of these software needs in the memory and can't use, cause visiting the problem that is difficult to compatibility of using.
[summary of the invention]
Technical problem to be solved by this invention is to provide a kind of data block partition positioning method of digital TV set-top box, this method only need be by searching a storage list, just can realize the location and the use of the data type address of needs, thereby improve the compatibility of different software versions.
The present invention solves the problems of the technologies described above by the following technical solutions:
A kind of data block partition positioning method of digital TV set-top box comprises the steps:
Step 100: static memory cell of definition is deposited look-up table configuration in memory space, obtains type, address, the size information of data block partition by look-up table configuration; Described look-up table configuration comprises the number of partitions, a plurality of storage list, verification numerical value: the structure of described storage list comprises divisional type, subregion start address, partition size;
Step 200: with the look-up table configuration write-in program;
Step 300: during the set-top box program running, the use of look-up table comprises the steps:
Step 301: locate predefined look-up table first address, read number of partitions;
Step 302: judge that the number of partitions that is read meets definition? be then to change step 303 over to; , then do not change step 308 over to;
Step 303:, distribute the internal storage location of searching list item of respective number according to the number of partitions that is read;
Step 304: a plurality of list items of searching are imported in the internal memory that distributes;
Step 305: the crc value that calculates all list items;
Go on foot Deng 306: the check value of crc value that calculates and whole table compares, if verification succeeds then changes step 307 over to; Otherwise, change step 308 over to;
Step 307: use is taken out in the address of respective type in the list item;
Step 308: give given default address;
Step 309: discharge internal memory;
Step 310: finish.
In the described step 200 the look-up table configuration write-in program is comprised: define a configuration file addr.cfg, appointment will write the binary system BIN file of look-up table and the address of look-up table location, read in configuration by procedure order, type, address, the size information of the data block partition in the configuration information write the relative position of binary system BIN file.
The invention has the advantages that: make the information such as type, address, size of obtaining data block partition by the mode of index search table.Software need not pre-defined each data block partition the address, only need be by searching a storage list, just can realize the location and the use of the data type address that needs, thereby the compatibility of raising different software versions.
[description of drawings]
The invention will be further described in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is a look-up table configuration schematic diagram among the present invention.
Fig. 2 is the method flow schematic diagram that uses look-up table among the present invention during the set-top box program running.
[embodiment]
A kind of data block partition positioning method of digital TV set-top box, at first static memory cell of definition is deposited look-up table configuration in memory space, obtains type, address, the size information of data block partition by look-up table configuration.
Look-up table configuration as shown in Figure 1, look-up table configuration comprises the number of partitions (nybble), a plurality of storage list (its number is defined by number of partitions), verification numerical value (nybble): the structure of described storage list comprises divisional type (byte), subregion start address (nybble), partition size (three bytes).
In the look-up table in storage list list item divisional type can be defined as: (this define styles is an example, and the distribution that actual definition can reach formula flash storage defines voluntarily)
typedef?enum?TPFLASH_PartitionType_e
{
TPFLASH_TARTITION_BLOADE=0,
TPFLASH_TARTITION_APP,
TPFLASH_TARTITION_BMP,
TPFLASH_TARTITION_FONT,
TPFLASH_TARTITION_LOGO,
TPFLASH_TARTITION_CHVOL,
TPFLASH_TARTITION_DATA,
TPFLASH_TARTITION_CA,
TPFLASH_TARTITION_STOCK,
TPFLASH_TARTITION_GEMSTAR,
TPFLASH_TARTITION_ADV
}TPFLASH_PartitionType_t;
In the storage list structure, the CRC check method of 32Bit is adopted in actual verification.
With the method for searching the structural table write-in program be: define a configuration file addr.cfg.Appointment will write the binary system BIN file of look-up table and the address of look-up table location.Read in configuration by procedure order, information such as the type of the data block partition in the configuration information, address, size are write the relative position of binary system BIN file.
The formal definition of configuration file is: it is as follows for example to define the LOADER zoned format:
##?BLOADER?##
PARTITION_TYTE =1 1
PARTITION_START =400A0000 4
PARTITION_SIZE =080000 3
It is as follows for example to define the APP zoned format:
##?APP?##
PARTITION_TYTE =3 1
PARTITION_START =40120800 4
PARTITION_SIZE =4FF800 3
When the set-top box program running, the using method of look-up table is (detailed process sees also Fig. 2):
Locate predefined look-up table first address, read 4 byte number of partitions; Do not meet definition (for example surpass and limit higher limit), then that giving of corresponding type is given default address if find the BlockNum of 4 byte information.Finish the location of the type;
According to the number of partitions that obtains, distribute the internal storage location of searching list item of respective number.
Some list items of searching are imported in the internal memory that distributes;
Calculate the crc value of all list items;
The check value of crc value that calculates and whole table relatively, if verification succeeds then the address of respective type in the list item taken out use otherwise is still given given default address;
Discharge internal memory;
Finish.
The invention enables the information such as type, address, size of obtaining data block partition by the mode of index search table.Software need not pre-defined each data block partition the address, only need be by searching a storage list, just can realize the location and the use of the data type address that needs, thereby the compatibility of raising different software versions.

Claims (2)

1. the data block partition positioning method of a digital TV set-top box is characterized in that: comprise the steps:
Step 100: static memory cell of definition is deposited look-up table configuration in memory space, obtains type, address, the size information of data block partition by look-up table configuration; Described look-up table configuration comprises the number of partitions, a plurality of storage list, verification numerical value: the structure of described storage list comprises divisional type, subregion start address, partition size;
Step 200: with the look-up table configuration write-in program;
Step 300: during the set-top box program running, the use of look-up table comprises the steps:
Step 301: locate predefined look-up table first address, read number of partitions;
Step 302: judge that the number of partitions that is read meets definition? be then to change step 303 over to; , then do not change step 308 over to;
Step 303:, distribute the internal storage location of searching list item of respective number according to the number of partitions that is read;
Step 304: a plurality of list items of searching are imported in the internal memory that distributes;
Step 305: the crc value that calculates all list items;
Go on foot Deng 306: the check value of crc value that calculates and whole table compares, if verification succeeds then changes step 307 over to; Otherwise, change step 308 over to;
Step 307: use is taken out in the address of respective type in the list item;
Step 308: give given default address;
Step 309: discharge internal memory;
Step 310: finish.
2. the data block partition positioning method of a kind of digital TV set-top box as claimed in claim 1, it is characterized in that: in the described step 200 the look-up table configuration write-in program is comprised: define a configuration file addr.cfg, appointment will write the binary system BIN file of look-up table and the address of look-up table location, read in configuration by procedure order, type, address, the size information of the data block partition in the configuration information write the relative position of binary system BIN file.
CN 201010242353 2010-08-03 2010-08-03 Data block partition positioning method for digital television set-top box Pending CN101902556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010242353 CN101902556A (en) 2010-08-03 2010-08-03 Data block partition positioning method for digital television set-top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010242353 CN101902556A (en) 2010-08-03 2010-08-03 Data block partition positioning method for digital television set-top box

Publications (1)

Publication Number Publication Date
CN101902556A true CN101902556A (en) 2010-12-01

Family

ID=43227737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010242353 Pending CN101902556A (en) 2010-08-03 2010-08-03 Data block partition positioning method for digital television set-top box

Country Status (1)

Country Link
CN (1) CN101902556A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098561A (en) * 2010-12-14 2011-06-15 福建新大陆通信科技股份有限公司 Distribution and configuration method for each region block of flash storage of set top box
CN104639981A (en) * 2015-02-05 2015-05-20 深圳创维-Rgb电子有限公司 Television system starting method and television
CN108897556A (en) * 2018-07-16 2018-11-27 四川长虹网络科技有限责任公司 Set-top box creation data wiring method
CN109246203A (en) * 2018-08-24 2019-01-18 日立楼宇技术(广州)有限公司 Data communication method, device, computer equipment and storage medium
CN112073218A (en) * 2020-08-10 2020-12-11 烽火通信科技股份有限公司 Network configuration file compatibility method, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040158699A1 (en) * 1999-09-21 2004-08-12 Rhoads Edward R. Organizing information stored in non-volatile re-programmable semiconductor memories
CN101477469A (en) * 2009-02-06 2009-07-08 杭州华三通信技术有限公司 Reliable reading method, writing method and apparatus for starting code
CN101526927A (en) * 2008-03-07 2009-09-09 北京华虹集成电路设计有限责任公司 Data processing method and data processing device of Flash file system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040158699A1 (en) * 1999-09-21 2004-08-12 Rhoads Edward R. Organizing information stored in non-volatile re-programmable semiconductor memories
CN101526927A (en) * 2008-03-07 2009-09-09 北京华虹集成电路设计有限责任公司 Data processing method and data processing device of Flash file system
CN101477469A (en) * 2009-02-06 2009-07-08 杭州华三通信技术有限公司 Reliable reading method, writing method and apparatus for starting code

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《中国优秀博硕士学位论文全文数据库(硕士)》 20061215 魏宁 机顶盒EPG软件设计实现与通用软件升级规范研究 第44页 1-2 , 第12期 2 *
《成都信息工程学院学报》 20061231 杨崇江等 一种IPTV机顶盒的软件在线升级方案设计与实现 第817-819页 1-2 第21卷, 第6期 2 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098561A (en) * 2010-12-14 2011-06-15 福建新大陆通信科技股份有限公司 Distribution and configuration method for each region block of flash storage of set top box
CN104639981A (en) * 2015-02-05 2015-05-20 深圳创维-Rgb电子有限公司 Television system starting method and television
CN108897556A (en) * 2018-07-16 2018-11-27 四川长虹网络科技有限责任公司 Set-top box creation data wiring method
CN109246203A (en) * 2018-08-24 2019-01-18 日立楼宇技术(广州)有限公司 Data communication method, device, computer equipment and storage medium
CN109246203B (en) * 2018-08-24 2021-07-06 日立楼宇技术(广州)有限公司 Data communication method, device, computer equipment and storage medium
CN112073218A (en) * 2020-08-10 2020-12-11 烽火通信科技股份有限公司 Network configuration file compatibility method, electronic equipment and storage medium
CN112073218B (en) * 2020-08-10 2022-05-31 烽火通信科技股份有限公司 Network configuration file compatible method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US7516296B2 (en) Flash memory storage device and read/write method
CN102325244B (en) Method for rapidly positioning videos by time, video storage control device and positioning device
CN100424655C (en) Method for managing flash memory
CN101902556A (en) Data block partition positioning method for digital television set-top box
US20120198133A1 (en) Electronic device with expandable memory capacity and an expansion method thereof
CN105740163A (en) Nand Flash bad block management method
US7493181B2 (en) Utilizing an RFID tag in manufacturing for enhanced lifecycle management
CN101551780B (en) Television and data storage method and device thereof
CN102890675B (en) Method and device for storing and finding data
CN104750565A (en) NAND bad block processing method and NAND flash memory device
CN100458736C (en) NAND flash information extraction method and NAND flash automatic identification method
CN106155915A (en) The processing method and processing device of data storage
CN101334756A (en) Control device of nonvolatile memory and control method thereof, and storage device
CN101640069A (en) Average wear method, storage system and controller used for flash memory
CN110837387B (en) Portable power source leasing system, automatic revenue collecting system and updating method thereof
CN109901847A (en) A kind of volume production system firmware mass production method based on storage card
CN102075710A (en) Starting operation method for television and television
CN106528441B (en) Data processing method and device for simulating EEPROM (electrically erasable programmable read-Only memory) and electronic equipment
CN103729418B (en) Vehicular platform media file managing method
CN101321250A (en) Television set important data storage method
US20110004719A1 (en) Memory Element
CN101303667A (en) Method and device for establishing magnetic disk null cluster table and seeking magnetic disk null cluster
CN101131649A (en) Updating speed improving method for read-only memory of device with flash memory
CN201869296U (en) Television
US8966159B2 (en) Flash storage device and data writing method thereof

Legal Events

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

Application publication date: 20101201