CN101510175B - Method for updating target data to memory and apparatus thereof - Google Patents

Method for updating target data to memory and apparatus thereof Download PDF

Info

Publication number
CN101510175B
CN101510175B CN200910081104.9A CN200910081104A CN101510175B CN 101510175 B CN101510175 B CN 101510175B CN 200910081104 A CN200910081104 A CN 200910081104A CN 101510175 B CN101510175 B CN 101510175B
Authority
CN
China
Prior art keywords
data
storer
target
stored
target data
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.)
Expired - Fee Related
Application number
CN200910081104.9A
Other languages
Chinese (zh)
Other versions
CN101510175A (en
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.)
Beijing Vimicro Artificial Intelligence Chip Technology Co ltd
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CN200910081104.9A priority Critical patent/CN101510175B/en
Publication of CN101510175A publication Critical patent/CN101510175A/en
Application granted granted Critical
Publication of CN101510175B publication Critical patent/CN101510175B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for updating target data into a storage and a device thereof, wherein the target data which is updated into a preset storing space of the storage each time can be obtained through carrying out different local updating on the basis of fixed original data. The method comprises the following steps: step A. the original data is stored into the storage; and step B. the updated data is stored in the storage to cover parts of the original data so as to obtain the updated target data. The data updating method is especially applicable to the situation that the update of the target data stored in the storage just requires the update of part content; and the less the updated content in the target data is, the higher the data updating efficiency of the method is.

Description

Method in updating target data to memory and device thereof
Technical field
The present invention relates to a kind of data-updating method and device thereof, especially a kind of upgrades method and the device thereof of same data message in it.
Background technology
Along with development and the widespread use of infotech, the storage that application system carries out data message has become very general.Typically, data are sent to the control module of storer being carried out to read-write operation by transmitting terminal by data-interface, then by control module writing data into memory.Due to the restriction of the data transmission speed of data sending terminal, make to store the chronic of data needs at every turn.
When needing the data of more new memory internal memory storage, namely by belonging to the storage space of these data in storer according to the address of input, re-write new content.If system needs the content stored in a certain section of continuous space in frequent refresh memory.According to common data storage method, its whole spaces that storage space can be belonged to these data write one time according to the address of input again.
And in some cases, system needs the data upgraded might not be the total data in storer, a certain continuous space address stored, and may be the content write on some addresses wherein or on several address.If according to above-mentioned common data storage method, data on whole address are write one time again, and the restriction of data transmission speed due to data sending terminal, make the frequency of this Data Update can not be too fast, if because renewal frequency is too fast, data sending terminal can be caused can not to send out whole more new datas completely.Therefore, also just limit the refreshing frequency of the data stored in storer, and then have impact on the overall performance of system.
Therefore, a kind of method that can be used for fast the data of more new memory internal memory storage newly is urgently proposed, to solve shortcoming of the prior art.
Summary of the invention
In view of this, one object of the present invention is to provide a kind of and target data can be updated to fast method in storer and device thereof.
In order to achieve the above object, an embodiment of the invention provide a kind of by the method in updating target data to memory, wherein need the target data flushing to predetermined memory space in target memory can obtain by carrying out different local updatings on fixing primary data basis at every turn.Define more new data and primary data according to target data, it includes following steps.Steps A, primary data is stored in described storer; Step B, will to upgrade in part primary data that data cover is stored in described storer to obtain target data.
Further, in different embodiments, storer just needs every the schedule time renewal carrying out a target data, and each updating target data all needs to repeat a steps A and B.
Further, in different embodiments, primary data is constant, and more new data is change.Wherein primary data refers to the data needing to be stored in storer and then wait for local updating.These need by the data of local updating, can be stored in initial memory in the incipient stage.Further, primary data can be one group of data defined by the user, and the incipient stage is stored in initial buffer memory, can not be modified in application process.Every external memory predetermined memory space is when upgrading, and the content stored in it is random, unknown, and can not be primary data, therefore, need primary data to copy to target memory from initial buffer memory, this wherein relate to the renewal rewards theory of data.
Further, being stored in the primary data in initial buffer memory, can be stored in the predetermined memory space of storer by the read-write interface of control module.And primary data is identical with the data volume size of target data.Further, in different embodiments, when primary data is stored into target memory from initial memory reading again, the address of the storage space that target memory is predetermined and the address of initial memory are one to one, and read-write interface is high-speed interface, storage speed can be relatively quick.
Further, in different embodiments, more new data is derived from a data sending terminal, and itself and storer carry out data transmission by control module, to be stored in the part primary data in storer by renewal data cover.
Further, in different embodiments, step B also comprises: transmitting terminal carries out coding to more new data and obtains coded data, and each coded data comprises start address, continuation address length, data; Control module is decoded to coded data, and will upgrade in part primary data that data cover is stored in storer to obtain the target data upgraded according to the decode start address, continuation address length and the data that obtain.
Further, another embodiment of the present invention provides a kind of by the device in updating target data to memory, defines more new data and primary data according to described target data.It includes target memory for storing target data, for the initial buffer memory of storing initial data and control module.Wherein control module is used for when Data Update, by the initial data transfer in initial buffer memory in storer, and receive the more new data sent out by transmitting terminal, and renewal data cover is stored in the part primary data in storer, and then target data is obtained in storer.
Further, in different embodiments, also decoder module is included in control module.The more new data that transmitting terminal sends is coded format.And control module is used for upgrading decoding data to the coding received, then decoded renewal data cover is stored in the part primary data in storer to obtain the target data upgraded.
Further, in different embodiments, more include the storage address information of predetermined memory space in storer in new data, the address information that storer can comprise according to more new data, the content of its correspondence is covered in the corresponding primary data being stored in and storing in it.
Further, in different embodiments, primary data is identical with the data volume size of the target data of renewal.
Relative to prior art, the present invention sends the more new data of coded format but not total data by low speed data transmitting terminal, because the data volume of the more new data in total data is much smaller than the total data amount required for direct refresh memory, and be again adopt coded format, thus the volume of transmitted data of data sending terminal is greatly reduced, thus saved the transmission time, improve Refresh Data frequency, and then improve entire system performance.
The data that data-updating method of the present invention is specially adapted to more new memory internal memory storage only need partial content more news.In the data stored, the content that upgrades is fewer, then more show the efficiency that the inventive method carries out Data Update to it higher.
Accompanying drawing explanation
Fig. 1 is the building-block of logic of the data update apparatus that an embodiment of the invention relate to;
Fig. 2 is the operating process of the data update apparatus shown in Fig. 1.
Embodiment
Refer to shown in Fig. 1, the data update apparatus 100 that an embodiment of the invention relate to, it includes initial buffer memory 110, control module 120 and storer 130.Wherein initial buffer memory 110 is for storing initial data.Control module 120 also includes data-interface 121, decoder module 123 and read-write interface 125.Storer 130 is for the target data of storage update.Be directed to the target data of the renewal be stored in storer 130, define more new data and primary data.Wherein primary data refers to the data needing to be stored in storer and then wait for local updating.If its local has been capped more new data, then can obtain the target data upgraded.And more new data is normally sent out by a data sending terminal 150, then covered by control module in the part primary data be stored in storer, and then the target data of renewal can be obtained.
When carrying out Data Update, the operating process 200 of the data update apparatus shown in Fig. 1 refers to shown in Fig. 2.It includes following steps, primary data is stored in initial buffer memory 210, the primary data stored is stored in storer 220 in initial buffer memory, data sending terminal carries out coding 230 to more new data and the more new data of coded format sends to storer to carry out Data Update 240 by control module by data sending terminal.
In step 220, the primary data stored in initial buffer memory 110 is stored in the designated memory space of target memory 130 by the read-write interface 125 of control module 120.The address of the storage space of wherein specifying in storer and the address of initial memory are one to one, and read-write interface 125 is high-speed interfaces, and storage speed can be relatively quick.
In step 230, more new data is sent out by a data sending terminal 200.Wherein data sending terminal 200 can be encoded to more new data, then will more send out by new data with coded format, further can save the data transmitting time of transmitting terminal like this, to avoid because its data transmission speed is relatively slow as far as possible, and cause the renewal frequency affecting target data.
Because target data obtains the local updating of primary data.The content of different address according to the difference of memory address, can be compiled as different coded datas by these data upgraded.And for address continuous print update content, can be organized among a coded data.Further, the bit wide of coded data can adjust according to practical application.Cataloged procedure can have been come by the known software approach of industry or hardware approach.Further, each coded data comprises initial address message (IAM), address size information and data content information.Address size information is shown to be carries out content update to single address, or upgrades continuation address content.Such as, if it is 1, then single address update content is indicated as.
In step 240, the coding including update content is first input in decoder module 123 by the data-interface 121 of control module 120.Decoder module 123 is decoded to coding, parse address information wherein and corresponding content thereof, then be sent in storer 130 by read-write interface 125, storer 130 is according to address information, its content is written on this address, completes the renewal to the initial digital content that this address stores.If the address size information in coded data is not 1, then it is the renewal to content on multiple address continuous after this start address.After all coded datas have been performed, are then exactly complete the renewal to the primary data stored in target memory 130 designated memory space, and then have also just obtained the target data of renewal.
In the present invention, because data sending terminal just sends more new data, but not real data; And, or adopt the form of coding to send, thus greatly reduce volume of transmitted data, thus saved data transmitting time, and that cause Data Update frequency low problem slow due to himself data transmission speed can be effectively reduced like this.And then decrease the time of each refresh memory.
The present invention, the data being specially adapted to more new memory internal memory storage only need partial content more news.In the data stored, the content that upgrades is fewer, then more can show the efficiency that the inventive method carries out Data Update to it higher.

Claims (6)

1., by the method in updating target data to memory, define more new data and primary data according to described target data, it is characterized in that, it comprises:
Steps A, primary data is stored in described storer;
Step B, will to upgrade in part primary data that data cover is stored in described storer to obtain target data;
Wherein, described renewal data source is from transmitting terminal, and described transmitting terminal and described storer carry out data transmission by control module, to be stored in the part primary data in described storer by renewal data cover;
Further, described step B comprises:
Described transmitting terminal carries out coding to described more new data and obtains coded data, and each coded data comprises start address, continuation address length, data;
Described control module is decoded to described coded data, and will upgrade in part primary data that data cover is stored in described storer to obtain the target data upgraded according to the decode start address, continuation address length and the data that obtain.
2. data-updating method according to claim 1, is characterized in that, described storer just needs a updating target data every the schedule time, and each updating target data all needs to repeat a steps A and B.
3. data-updating method according to claim 1, is characterized in that, described primary data is constant, and described more new data is change.
4. data-updating method according to claim 1, it is characterized in that, described primary data comes from initial buffer memory, described initial buffer memory and described storer carry out data by control module and transmit primary data to be stored in described storer, and described primary data is identical with the data volume size of described target data.
5., by the device in updating target data to memory, define more new data and primary data according to described target data, it is characterized in that, it comprises:
For storing the target memory of target data;
For the initial buffer memory of storing initial data;
Control module, for when Data Update, by in the initial data transfer in initial buffer memory to described storer, and receive the more new data that sent out by transmitting terminal and be stored in by described renewal data cover in the part primary data in described storer, and then obtain target data in storer;
In addition, also include decoder module in described control module, the more new data that described transmitting terminal sends is coded format, and each coded data comprises start address, continuation address length, data; Described control module is used for the renewal decoding data to receiving, and will upgrade in part primary data that data cover is stored in described storer to obtain the target data upgraded according to the decode start address, continuation address length and the data that obtain.
6. data update apparatus according to claim 5, is characterized in that, described primary data is identical with the data volume size of the target data of described renewal.
CN200910081104.9A 2009-04-02 2009-04-02 Method for updating target data to memory and apparatus thereof Expired - Fee Related CN101510175B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910081104.9A CN101510175B (en) 2009-04-02 2009-04-02 Method for updating target data to memory and apparatus thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910081104.9A CN101510175B (en) 2009-04-02 2009-04-02 Method for updating target data to memory and apparatus thereof

Publications (2)

Publication Number Publication Date
CN101510175A CN101510175A (en) 2009-08-19
CN101510175B true CN101510175B (en) 2015-06-03

Family

ID=41002578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910081104.9A Expired - Fee Related CN101510175B (en) 2009-04-02 2009-04-02 Method for updating target data to memory and apparatus thereof

Country Status (1)

Country Link
CN (1) CN101510175B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541870A (en) * 2010-12-15 2012-07-04 金蝶软件(中国)有限公司 Processing method and system of data sheet
CN103645993B (en) * 2013-12-24 2016-04-06 飞天诚信科技股份有限公司 A kind of Data Update based on large page Flash and read method
CN105093202B (en) * 2015-08-25 2018-09-11 四川九洲电器集团有限责任公司 Serial bearing data interpolation smoothing method and device
CN106936820B (en) * 2017-03-06 2020-12-25 桂林电子科技大学 Data variable length modification method and application thereof in big data encryption
CN110874181B (en) * 2018-08-31 2021-12-17 杭州海康威视系统技术有限公司 Data updating method and updating device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1536481A (en) * 2003-04-09 2004-10-13 英业达股份有限公司 Device and method for updating flash memory contents
CN101290628A (en) * 2008-06-17 2008-10-22 中兴通讯股份有限公司 Data file updating storage method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1536481A (en) * 2003-04-09 2004-10-13 英业达股份有限公司 Device and method for updating flash memory contents
CN101290628A (en) * 2008-06-17 2008-10-22 中兴通讯股份有限公司 Data file updating storage method

Also Published As

Publication number Publication date
CN101510175A (en) 2009-08-19

Similar Documents

Publication Publication Date Title
US8380919B2 (en) Flash storage device, data storage system, and data writing method
CN101510175B (en) Method for updating target data to memory and apparatus thereof
CN105260136A (en) Data read-write method and distributed storage system
CN102063384B (en) Method for performing read-write operation on programmable read-only memory with cache by JAVA card
CN109933545B (en) Data storage device and data processing method of memory device
US20080195833A1 (en) Systems, methods and computer program products for operating a data processing system in which a file system's unit of memory allocation is coordinated with a storage system's read/write operation unit
US10649905B2 (en) Method and apparatus for storing data
JP5503539B2 (en) Method and system for repairing a damaged hard disk file system
US20070041050A1 (en) Memory management method and system
CN101694610B (en) Command processing method, device and memory device
CN101877666B (en) Method and device for receiving multi-application program message based on zero copy mode
US20070079015A1 (en) Methods and arrangements to interface a data storage device
CN109542495A (en) A kind of method for upgrading software and device
CN111124464A (en) Method and system for differential upgrade of embedded system and computer readable storage medium
EP0897579B1 (en) Memory device
CN103885717A (en) Data replication method and data replication device
CN103136215A (en) Data read-write method and device of storage system
CN110870287A (en) Over-the-air (OTA) update of partially compressed firmware
CN103577119A (en) System and method for transferring data out of order in next generation solid state drive controller
CN102902630A (en) Method and device for accessing local file
US7598891B2 (en) Data development device and data development method
CN111176566B (en) eMMC read-write control method supporting queue command and storage medium
CN103092771A (en) Solid-state storing device and control method of cache thereof
CN110704091A (en) Firmware upgrading method and device
CN101753579A (en) Multimedia play method for mobile communication equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210126

Address after: No. 607, 6th floor, shining building, 35 Xueyuan Road, Haidian District, Beijing 100083

Patentee after: BEIJING VIMICRO ARTIFICIAL INTELLIGENCE CHIP TECHNOLOGY Co.,Ltd.

Address before: 100083, Haidian District, Xueyuan Road, Beijing No. 35, Nanjing Ning building, 15 Floor

Patentee before: Vimicro Corp.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150603

Termination date: 20200402

CF01 Termination of patent right due to non-payment of annual fee