CN101464876A - Data updating method for electronic dictionary machine - Google Patents

Data updating method for electronic dictionary machine Download PDF

Info

Publication number
CN101464876A
CN101464876A CNA2007103020079A CN200710302007A CN101464876A CN 101464876 A CN101464876 A CN 101464876A CN A2007103020079 A CNA2007103020079 A CN A2007103020079A CN 200710302007 A CN200710302007 A CN 200710302007A CN 101464876 A CN101464876 A CN 101464876A
Authority
CN
China
Prior art keywords
main frame
electronic dictionary
data
block
upgrades
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.)
Granted
Application number
CNA2007103020079A
Other languages
Chinese (zh)
Other versions
CN101464876B (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.)
Kinpo Electronics China Co Ltd
Original Assignee
Kinpo Electronics Shanghai 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 Kinpo Electronics Shanghai Co Ltd filed Critical Kinpo Electronics Shanghai Co Ltd
Priority to CN2007103020079A priority Critical patent/CN101464876B/en
Publication of CN101464876A publication Critical patent/CN101464876A/en
Application granted granted Critical
Publication of CN101464876B publication Critical patent/CN101464876B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method for updating the data of an electronic dictionary. The method comprises the following steps: firstly, the connection between an electronic dictionary machine and a main machine are established, wherein, the main machine is used for obtaining updated data and assisting the electronic dictionary machine to update the initial data. When the main machine determines that the initial data is in a cognizable version, both the program of the initial data and the database are updated, and when blocking check and updating are performed on the program and the database of the initial data, the main machine divides the updating data into a plurality of blocks according to the size of the block corresponding to the CRC of the initial data inside the electronic dictionary machine, and the corresponding CRC is generated in each block of the updating data; then, the CRC of the initial data block in the electronic dictionary machine and the CRC of the updating data block in the main machine are compared by the main machine; the block of the CRC which is different from the initial data block and is found in the updating data block serves as a source updating block; and finally, the source updating block is sent to the electronic dictionary machine through the main machine, and the initial data is updated according to the source updating block, thereby improving the updating speed.

Description

Data updating method for electronic dictionary machine
Technical field
What the present invention relates to is a kind of data updating method for electronic dictionary machine, thereby relates to or rather a kind of the verification of electronic dictionary deblocking only be carried out method for updating to the discrepancy of each edition data.
Background technology
Along with development of science and technology, various pocket electronic installations at hardware aspect towards more compact development, and aspect software towards the program of greater functionality and more humane operation.For deficiency or the leak that solves electronic device program, need to bring in constant renewal in efficient, function and the reliability that original old program improves electronic installation.Especially comparatively frequent as the renewal of electronic dictionary, its except needs upgrade original program, also often need will be new words add with its dictionary database of expanding and updating.
Yet the renewal of data is to use the update mode of disposable complete burning basically in the existing electronic dictionary, and the spent time is usually more than 20 minutes.And, if the thing that when Data Update, takes place to expect (as the accident power failure etc.), cause Data Update to interrupt suddenly, both do not reached the renewal of electronic dictionary machine data, also may have influence on the original data of electronic dictionary.Therefore, the method that needs a kind of more fast updating electronic dictionary machine data.
Summary of the invention
Purpose of the present invention is providing a kind of data updating method for electronic dictionary machine exactly, in order to overcome above-mentioned defective.
The present invention proposes a kind of data updating method for electronic dictionary machine, and it comprises sets up being connected of electronic dictionary and main frame, and wherein main frame is in order to obtain more new data and to assist the raw data of electronic dictionary to be updated to more new data; Main frame judges whether raw data is cognizable version, if raw data is cognizable version, then main frame judges whether only to upgrade at the program of raw data again; If it is not only to upgrade at the program of raw data that main frame is judged, then main frame judges whether to carry out the piecemeal checksum update again; If judging, main frame carries out the piecemeal checksum update, then main frame is according to CRC (the CyclicRedundancy Check of each raw data in the electronic dictionary, cyclic redundancy check (CRC)) the big young pathbreaker of the pairing block of value upgrades data and is divided into a plurality of corresponding renewal block, and these upgrade each self-generating corresponding C RC value of block; Main frame is the crc value and the interior crc value that upgrades block of main frame of the interior original data block of electronic dictionary relatively, finds out the block of the crc value that is different from original data block as upgrading source area block in upgrading block according to the crc value of original data block; And the main frame transmission upgrades source area block to upgrade to electronic dictionary.
Described main frame judges that raw data is not a cognizable version or when not carrying out the piecemeal checksum update, and the more new data that main frame will be obtained is sent on the electronic dictionary mode with disposable complete burning and upgrades.Described main frame judges it is when only upgrading at the program of raw data, and the program of the more new data that main frame will be obtained is sent on the electronic dictionary mode with disposable complete burning and upgrades.
The present invention is by the piecemeal checksum update, promptly by each block crc value of raw data in the main frame comparison electronic dictionary and each block crc value of the more new data that main frame is obtained, the block that obtains upgrading the crc value that is different from original data block in the block is as upgrading source area block, main frame will upgrade source area block to be sent to electronic dictionary to upgrade again then, thereby improve renewal speed.
Description of drawings
Fig. 1 is the process flow diagram according to data updating method for electronic dictionary machine that one embodiment of the invention illustrates.
Description of reference numerals: S11-sets up being connected of electronic dictionary and main frame; The cognizable raw data version of S12-? The S13-main frame transmits more, and new data upgrades to electronic dictionary; S14-is refresh routine only? S15-main frame convey program more new data upgrades to electronic dictionary; S16-piecemeal checksum update? The S17-main frame produces the CRC that upgrades block; The S18-main frame is obtained the CRC of original data block in the electronic dictionary; The S19-main frame is original data block and the CRC that upgrades block relatively, finds out and upgrades source area block; The S20-main frame transmits and upgrades source area block to upgrade to electronic dictionary; Does the S21-electronic dictionary upgrade successfully? Failure information is upgraded in the S22-prompting.
Embodiment
Below in conjunction with accompanying drawing, be described in more detail with other technical characterictic and advantage the present invention is above-mentioned.
Fig. 1 is the process flow diagram according to data updating method for electronic dictionary machine that one embodiment of the invention illustrates.Please refer to Fig. 1, at first,, set up being connected of electronic dictionary and main frame at step S11.Described connection for example is by universal serial bus (USB).Described main frame for example is an electronic calculator, and its mode by network or external medium obtains the more new data that the service provider provides, and assists electronic dictionary that the raw data in the electronic dictionary is updated to more new data then.Raw data in electronic dictionary can be divided into program and two kinds of raw data of database, and here program can be carried out by electronic dictionary and make electronic dictionary can move various functions, and database provide can be by the various data of routine processes.And the more new data that is used for upgrading raw data in the electronic dictionary may only comprise this more new data of program, also may comprise more new data of two kinds of program and databases simultaneously.
At step S12, main frame from reading section data on the electronic dictionary in main frame, the for example version information of raw data, recordable time, start-stop address etc., this version information may be divided into the version information of the raw data of program and database, and can the design mix safety pin be upgraded by program and database.Main frame judges whether the raw data read is cognizable version, if raw data be can not identification version, then arrive step S13.At step S13, main frame is sent on the electronic dictionary mode with disposable complete burning with obtained more new data and upgrades.This is because it should be up-to-date version that the service provider generally offers the more new data of main frame, since the raw data version in the electronic dictionary is beyond recognition, so simply this raw data is directly upgraded fully.
If judge that at step S12 main frame the raw data that reads is cognizable version, then arrive step S14.At step S14, main frame judges whether only to upgrade at the program of raw data according to obtained renewal data content, if only upgrade at the program of raw data, then arrives step S15.At step S15, the program of the more new data that main frame will be obtained is sent on the electronic dictionary mode with disposable complete burning and upgrades.This is because the data of database amount of electronic dictionary is very huge, and the data volume of program is generally all smaller, when only needing to upgrade the program of raw data, adopts the mode of disposable complete burning to upgrade and get final product, and so renewal speed is than comparatively fast.
If judge it is not only to upgrade at the program of raw data at step S14 main frame, promptly also need upgrade at the huge database of data volume, then arrive step S16.At step S16, whether carry out the piecemeal checksum update by user's decision, generally be designed to the main frame acquiescence and adopt the piecemeal checksum update, main frame meeting execution in step S17 is to the piecemeal checksum update of S20; If the user selects not carry out the piecemeal checksum update, the disposable complete renewal that main frame then can execution in step S13.She Ji reason is to be like this, just in case during piecemeal checksum update failure (promptly judge and upgrade failure) at step S21, the user is when starting data-updating method shown in Figure 1 once more, can select to be regardless of block check when carrying out step 16 upgrades, so that execute disposable complete renewal, can guarantee the Data Update success.
If need carry out the piecemeal checksum update in the judgement of step S16 main frame, then arrive step S17.Because raw data was when being written into electronic dictionary originally, for the mistake that may occur after checking data transmission or the storage, raw data can be divided into a plurality of original data block, each original data block generates corresponding C RC (Cyclic Redundancy Check, cyclic redundancy check (CRC)) value, the crc value of all original data block constitutes the CRC tabulation of a raw data, can be stored at last in the information list district in the electronic dictionary internal program.At step S17, main frame then is the size (as 128K) according to original data block in the described electronic dictionary, more new data is divided into a plurality of renewal block, and calculate the crc value that block is respectively upgraded in generation, and these crc values that upgrade block promptly constitute the more CRC tabulation of new data.Then, at step S18, main frame is obtained the crc value (promptly obtaining the CRC tabulation of original data block) of the original data block in it from electronic dictionary.
Then, at step S19, respectively upgrade the crc value (i.e. the relatively CRC tabulation of original data block and renewal block) of block in the main frame comparison electronic dictionary in each original data block and the main frame, the renewal block of finding out the crc value that is different from original data block in upgrading block is as upgrading source area block.At last, at step S20, main frame transmits and upgrades source area block to electronic dictionary, and only upgrades source area block that raw data is upgraded according to these, thereby reaches the piecemeal checksum update, improves renewal speed.
In addition, originally the effect of CRC is the mistake that may occur after checking data transmission or the storage, so in the present embodiment, in step S13, S15 or S20, finish the electronic dictionary Data Update after, all by the CRC check data transmission or after storing whether mistake appears to step S21 then.Especially when transmission or data updated amount were smaller, it was bigger wrong chance to occur.At step S21, if judging the electronic dictionary Data Update, main frame after transmission or storage, do not have wrong the generation, i.e. electronic dictionary Data Update success then finishes this renewal; Otherwise, if main frame is judged wrong generation, then arrive step S22, after failure information is upgraded in prompting on main frame or the electronic dictionary, finish this time to upgrade.Certainly, when upgrading failure, the user can start data-updating method of the present invention once more, or changes measures such as adopting hand-operated forced renewal fully.
In sum, data updating method for electronic dictionary machine of the present invention, it is by the piecemeal checksum update, promptly by each block crc value of raw data in the main frame comparison electronic dictionary and each block crc value of the more new data that main frame is obtained, the block that obtains upgrading the crc value that is different from original data block in the block is as upgrading source area block, main frame will upgrade source area block to be sent to electronic dictionary again and only upgrade source area block that raw data is upgraded according to these then, thereby improve renewal speed.
The above only is preferred embodiment of the present invention, only is illustrative for the purpose of the present invention, and nonrestrictive.Those skilled in the art is understood, and can carry out many changes to it in the spirit and scope that claim of the present invention limited, revise, even equivalence, but all will fall within the scope of protection of the present invention.

Claims (5)

1, a kind of data updating method for electronic dictionary machine is characterized in that, it comprises:
Set up being connected of electronic dictionary and main frame, wherein main frame is in order to obtain more new data and to assist the raw data of electronic dictionary to be updated to more new data;
Main frame judges whether raw data is cognizable version, if raw data is cognizable version, then main frame judges whether only to upgrade at the program of raw data again;
If it is not only to upgrade at the program of raw data that main frame is judged, then main frame judges whether to carry out the piecemeal checksum update again;
If judging, main frame carries out the piecemeal checksum update, then main frame upgrades data according to the big young pathbreaker of the pairing block of each cyclic redundancy check value of raw data in the electronic dictionary and is divided into a plurality of corresponding renewal block, and these upgrade the corresponding cyclic redundancy check value of each self-generating of block;
Main frame is the cyclic redundancy check value and the interior cyclic redundancy check value that upgrades block of main frame of the interior original data block of electronic dictionary relatively, and the renewal block of finding out the cyclic redundancy check value that is different from original data block in upgrading block is as upgrading source area block; And
Main frame transmits and upgrades source area block to upgrade to electronic dictionary.
2, data updating method for electronic dictionary machine according to claim 1, it is characterized in that, described main frame judges when raw data is not cognizable version, and the more new data that main frame will be obtained is sent on the electronic dictionary mode with disposable complete burning and upgrades.
3, data updating method for electronic dictionary machine according to claim 1, it is characterized in that, described main frame judges it is when only upgrading at the program of raw data, and the program of the more new data that main frame will be obtained is sent on the electronic dictionary mode with disposable complete burning and upgrades.
4, data updating method for electronic dictionary machine according to claim 1, it is characterized in that, described main frame judges and do not carry out the piecemeal checksum update, and then the more new data that will obtain of main frame is sent on the electronic dictionary mode with disposable complete burning and upgrades.
5, according to claim 1,2,3 or 4 described data updating method for electronic dictionary machine, it is characterized in that described data updating method for electronic dictionary machine further comprises:
Main frame judges whether electronic dictionary upgrades successful, if successful then the end upgrades, then points out as if failure and upgrades failure information.
CN2007103020079A 2007-12-19 2007-12-19 Data updating method for electronic dictionary machine Expired - Fee Related CN101464876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007103020079A CN101464876B (en) 2007-12-19 2007-12-19 Data updating method for electronic dictionary machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007103020079A CN101464876B (en) 2007-12-19 2007-12-19 Data updating method for electronic dictionary machine

Publications (2)

Publication Number Publication Date
CN101464876A true CN101464876A (en) 2009-06-24
CN101464876B CN101464876B (en) 2012-08-08

Family

ID=40805456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007103020079A Expired - Fee Related CN101464876B (en) 2007-12-19 2007-12-19 Data updating method for electronic dictionary machine

Country Status (1)

Country Link
CN (1) CN101464876B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467536A (en) * 2010-11-12 2012-05-23 深圳市快易典电子技术有限公司 Character processing device and processing method thereof
CN104391727A (en) * 2014-12-15 2015-03-04 福州瑞芯微电子有限公司 Data writing method and system, writing equipment and target equipment
CN104461641A (en) * 2014-12-15 2015-03-25 福州瑞芯微电子有限公司 Data burning and writing method, system and equipment and target equipment
CN105955670A (en) * 2016-05-12 2016-09-21 武汉斗鱼网络科技有限公司 Method and system for checking repeated list data in application

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1332557A (en) * 2001-04-23 2002-01-23 倚天资讯股份有限公司 Remote control and radio transmission method of updating software
JP4398144B2 (en) * 2002-12-24 2010-01-13 インターナショナル・ビジネス・マシーンズ・コーポレーション Dictionary update system, update server, terminal, control method, program, and recording medium
CN101078633B (en) * 2007-06-12 2010-05-19 江苏华科导航科技有限公司 Map data updating method of navigation device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467536A (en) * 2010-11-12 2012-05-23 深圳市快易典电子技术有限公司 Character processing device and processing method thereof
CN104391727A (en) * 2014-12-15 2015-03-04 福州瑞芯微电子有限公司 Data writing method and system, writing equipment and target equipment
CN104461641A (en) * 2014-12-15 2015-03-25 福州瑞芯微电子有限公司 Data burning and writing method, system and equipment and target equipment
CN104461641B (en) * 2014-12-15 2017-11-21 福州瑞芯微电子股份有限公司 A kind of data programming method, system, burn writing equipment and target device
CN104391727B (en) * 2014-12-15 2017-11-21 福州瑞芯微电子股份有限公司 Data programming method, system, burn writing equipment and target device
CN105955670A (en) * 2016-05-12 2016-09-21 武汉斗鱼网络科技有限公司 Method and system for checking repeated list data in application

Also Published As

Publication number Publication date
CN101464876B (en) 2012-08-08

Similar Documents

Publication Publication Date Title
US8719810B2 (en) Program upgrade system and method for over the air-capable mobile terminal
US9804832B2 (en) Method, apparatus, and communication device for updating firmware
CN104199706A (en) Firmware upgrade method and device for eMMC
CN105335181A (en) OTA upgrade realization method and terminal
CN102946600B (en) A kind of mobile terminal parameter firmware upgrade method and system
CN101464876B (en) Data updating method for electronic dictionary machine
CN103309712A (en) Mobile phone software upgrade method and system
CN103164237A (en) Firmware upgrade method and system
CN103645918A (en) Software upgrading method and device for industrial endoscope
CN105760200A (en) Terminal device and system updating method thereof
CN106897166B (en) Mobile terminal and repairing method thereof
CN105786636A (en) System repairing method and device
CN109656597A (en) Firmware upgrade method, device and computer readable storage medium
CN104133743B (en) A kind of by burning file to the method for EMMC chip and device
CN105760194A (en) DSP control system software update method and device
CN108984200A (en) A kind of timing updates the method and device of firmware
CN106293849B (en) application updating method and terminal
CN111796853A (en) Firmware upgrading method, system, equipment and computer storage medium
KR20080083512A (en) Firmware over the air system
CN105653412A (en) Fingerprint device compatibility detection method and terminal
CN105763944A (en) Modular TV and screen end upgrade method thereof
CN105677409B (en) A kind of method for upgrading system and device
CN102314353A (en) Method for changing database during android software update
KR101341003B1 (en) Method of updating firmware and apparatus for the same
CN101710297B (en) Method for running application and controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
C41 Transfer of patent application or patent right or utility model
ASS Succession or assignment of patent right

Owner name: KINPO ELECTRONIC (CHINA) CO., LTD.

Free format text: FORMER OWNER: KINPO ELECTRONIC (SHANGHAI) CO., LTD.

Effective date: 20101224

TA01 Transfer of patent application right

Effective date of registration: 20101224

Address after: 523861, Sha Tau District, Changan Town, Guangdong, Dongguan

Applicant after: Kinpo Electronics (China) Co., Ltd.

Address before: 200233 Shanghai City Guangxi No. 69 No. 28 Jinglu fifth storey factory building

Applicant before: Kinpo Electronics (Shanghai) Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 200233 5/F, FACTORY BUILDING 28, NO.69, GUIJING ROAD, SHANGHAI TO: 523861 SHATOU MANAGEMENT ZONE, CHANG'AN TOWN, DONGGUAN CITY, GUANGDONG PROVINCE

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120808

Termination date: 20161219