CN107368757A - A kind of date storage method of cooking equipment - Google Patents

A kind of date storage method of cooking equipment Download PDF

Info

Publication number
CN107368757A
CN107368757A CN201710407271.2A CN201710407271A CN107368757A CN 107368757 A CN107368757 A CN 107368757A CN 201710407271 A CN201710407271 A CN 201710407271A CN 107368757 A CN107368757 A CN 107368757A
Authority
CN
China
Prior art keywords
data
critical data
critical
memory block
cooking equipment
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
CN201710407271.2A
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.)
Joyoung Co Ltd
Original Assignee
Joyoung 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 Joyoung Co Ltd filed Critical Joyoung Co Ltd
Priority to CN201710407271.2A priority Critical patent/CN107368757A/en
Publication of CN107368757A publication Critical patent/CN107368757A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data

Abstract

The embodiment of the invention discloses a kind of date storage method of cooking equipment, this method includes:When cooking equipment carries out data storage, same information data is respectively stored in different memory blocks;When cooking equipment carries out digital independent, corresponding information data is read out from different memory blocks respectively;Correcting data error and validity judgement are carried out to the multiple information datas read out from different memory blocks and used with obtaining correct legal data message.The Fault Tolerance of cooking equipment is improved by scheme of the embodiment of the present invention.

Description

A kind of date storage method of cooking equipment
Technical field
The present invention relates to cooking equipment application technology, espespecially a kind of date storage method of cooking equipment.
Background technology
Cooking equipment (such as soy bean milk making machine) is most of at present can all store production, current operating mode, user's slurrying information EEPROM (the Electrically Erasable Programmable Read- that data are not lost after a kind of power down of chip Only Memory, band EEPROM) in, when upper electricity uses soy bean milk making machine to user again, chip system meeting Automatically user's slurrying relevant information data is read from EEPROM, and with the wheel slurrying of these data point reuses, to reach more preferable Effects on slurry making.
Due to EEPROM storage and read all need the time, although the time is very short, if in storage when There occurs power down or other interference, the data for causing to store are changed or data storage is lost, then user reuses Soy bean milk making machine, read the information data mistake for adjusting current slurrying, so as to lead to not reach slurrying it is expected or Other more serious consequences, bring very poor Consumer's Experience.
The content of the invention
The embodiments of the invention provide a kind of date storage method of cooking equipment, the system that can lift cooking equipment is held Wrong ability.
In order to solve the above technical problems, the embodiment of the present invention adopts the following technical scheme that:
A kind of date storage method of cooking equipment, this method include:
When cooking equipment carries out data storage, same information data is respectively stored in different memory blocks;
When cooking equipment carries out digital independent, corresponding information data is read out from different memory blocks respectively;
Correcting data error and validity judgement are carried out to obtain to the multiple information datas read out from different memory blocks Correct legal data message is used.
Alternatively, this method also includes:Before cooking equipment carries out data storage, it would be desirable to which the information data of storage is drawn It is divided into critical data and non-critical data.
Alternatively, critical data includes:Slurrying strike number and production calibration process data storage;
Non-critical data includes:Anti-overflow temperature and motor examine number slowly.
Alternatively, same information data is respectively stored in into different memory blocks includes:
Critical data is respectively stored in default first memory block and the second memory block, and by the pass after storage Key data is respectively as the first critical data and the second critical data;Wherein, the first memory block and the second memory block are mutual Independence and it does not interfere with each other;
Non-critical data is respectively stored in default 3rd memory block and the 4th memory block, and by after storage Non-critical data is respectively as the 3rd non-critical data and the 4th non-critical data;Or non-critical data is merely stored in pre- If the 3rd memory block in;Wherein, the 3rd memory block and the 4th memory block independently of each other and are not interfere with each other.
Alternatively, correcting data error and validity judgement are carried out to the multiple information datas read out from different memory blocks Carrying out use with the data message for obtaining correctly legal includes:
The first critical data is read from the first memory block respectively, the second critical data is read from the second memory block;
Compare the first critical data and whether the second critical data is identical;
When the first critical data is identical with the second critical data, the first critical data and the second critical data are being confirmed just Really, and using any one in the first critical data and the second critical data use;
When the first critical data and the second critical data differ, the first critical data and/or the second crucial number are confirmed Legitimate verification is carried out according to incorrect, and to the first critical data and/or the second critical data, when verifying the first critical data With in the second critical data any one it is legal when, made using legal the first critical data or the second critical data is verified With.
Alternatively, carrying out legitimate verification to the first critical data and/or the second critical data includes:
By the first critical data and/or the second critical data compared with default first data area;
When the first critical data meets the first data area, determine that the first critical data is legal;When the second critical data When meeting the first data area, determine that the second critical data is legal;When the first critical data and the second critical data are not met During the first data area, determine that the first critical data and the second critical data are illegal.
Alternatively, correcting data error and validity judgement are carried out to the multiple information datas read out from different memory blocks Carrying out use with the data message for obtaining correctly legal includes:
The 3rd non-critical data is read from the 3rd memory block respectively, the 4th non-key number is read from the 4th memory block According to;
Compare the 3rd non-critical data and whether the 4th non-critical data is identical;
When the 3rd non-critical data is identical with the 4th non-critical data, the 3rd non-critical data and the 4th non-key is confirmed Data are correct, and are used using any one in the 3rd non-critical data and the 4th non-critical data;
When the 3rd non-critical data and the 4th non-critical data differ, the 3rd non-critical data and/or the 4th is confirmed Non-critical data is incorrect, and carries out legitimate verification to the 3rd non-critical data and/or the 4th non-critical data, when verifying In 3rd non-critical data and the 4th non-critical data any one it is legal when, using verifying legal the 3rd non-critical data Or the 4th non-critical data use.
Alternatively, this method also includes:When verifying the 3rd non-critical data and illegal the 4th non-critical data, Data are set to enter to exercise as valid data using default factory corresponding with the 3rd non-critical data and the 4th non-critical data With, and set data to substitute in the 3rd non-critical data and the 4th memory block in the 3rd memory block using default factory The 4th non-critical data.
Alternatively, correcting data error and validity judgement are carried out to the multiple information datas read out from different memory blocks Carrying out use with the data message for obtaining correctly legal includes:
When non-critical data is merely stored in default 3rd memory block, by the 3rd non-critical data and default the Two data areas are compared;
When the 3rd non-critical data meets the second data area, determine that the 3rd non-critical data is legal, and use the 3rd Non-critical data;When the 3rd non-critical data does not meet the second data area, determine that the 3rd non-critical data is illegal, use Default factory corresponding with the 3rd non-critical data sets data to be used as valid data, and is set using default factory Data substitute the 3rd non-critical data in the 3rd memory block.
Alternatively, this method also includes:Before cooking equipment carries out data storage, different memory blocks is preassigned Position and information data data length.
The beneficial effect of the embodiment of the present invention:
1st, same information data is respectively stored in not by scheme of the embodiment of the present invention when cooking equipment carries out data storage In same memory block, the loss of data storage can be avoided;When cooking equipment carries out digital independent, respectively from different storages Corresponding information data is read out in block;Correcting data error is carried out to the multiple information datas read out from different memory blocks And validity judgement is used with obtaining correct legal data message, can effectively improve the System Fault Tolerance of cooking equipment Ability, and improve the correctness of system data storage;The embodiment scheme can be avoided due to data storage mistake or data The failure of slurrying next time or cooking equipment failure, improve user experience caused by loss.
2nd, scheme of the embodiment of the present invention is before cooking equipment carries out data storage, it would be desirable to the information data division of storage For critical data and non-critical data, the different classifications for the information data that can be stored according to each needs determine that its is important Property, so that the storage for information data is more targeted, further prevent significant data from mistake occur with losing.
3rd, critical data is respectively stored in default first memory block and the second memory block by scheme of the embodiment of the present invention In block, and using the critical data after storage as the first critical data and the second critical data;Wherein, the first memory block With the second memory block independently of each other and do not interfere with each other;The embodiment scheme ensures that critical data carries out subregion in storage and deposited Storage, to implement backup in different memory blocks to the critical data, occurs data mistake when avoiding single memory block from storing By mistake with losing the not consequence brought, and two memory blocks independently of each other and do not interfere with each other and ensure that in two memory blocks The independence and security of data.
4th, non-critical data is respectively stored in default 3rd memory block and the 4th storage by scheme of the embodiment of the present invention In block, and using the non-critical data after storage as the 3rd non-critical data and the 4th non-critical data;Or will be non- Critical data is merely stored in default 3rd memory block;Wherein, the 3rd memory block and the 4th memory block are separate And it does not interfere with each other.The embodiment scheme can cause person skilled and set according to the size of cooking equipment memory space non- The storage form of critical data so that data storage is more flexible, does not interfere with the storage of significant data again.
5th, in scheme of the embodiment of the present invention when verifying the 3rd non-critical data and illegal the 4th non-critical data, Data are set to enter to exercise as valid data using default factory corresponding with the 3rd non-critical data and the 4th non-critical data With, and set data to substitute in the 3rd non-critical data and the 4th memory block in the 3rd memory block using default factory The 4th non-critical data.The embodiment scheme make it that even if non-critical data error factory default setting number can also be used According to ensureing the normal operation of follow-up cooking equipment.
6th, scheme of the embodiment of the present invention preassigns different memory blocks before cooking equipment carries out data storage Position and the data length of information data.The embodiment scheme can prevent cooking equipment system in itself be interfered when When time is written and read to EEPROM, lucky information data all meets well-formedness condition but data length is not that system produces in itself , i.e., data source is unreliable, and this can prevent cooking equipment from working on down this case in time, so as to avoid producing Adverse consequences.
Brief description of the drawings
The embodiment of the present invention is described further below in conjunction with the accompanying drawings:
Fig. 1 is the date storage method flow chart of the cooking equipment of the embodiment of the present invention;
Fig. 2 is the flow chart for carrying out correcting data error and validity judgement in the embodiment of the present invention to critical data;
Fig. 3 is the flow chart for carrying out correcting data error and validity judgement in the embodiment of the present invention to non-critical data;
Fig. 4 is the date storage method schematic diagram of the cooking equipment of the embodiment of the present invention.
Embodiment
For the purpose, technical scheme and advantage of the embodiment of the present invention are more clearly understood, below in conjunction with accompanying drawing pair Embodiments of the invention are described in detail.It should be noted that in the case where not conflicting, embodiment and reality in the application Applying the feature in example can mutually be combined.
Can be in the computer system of such as one group computer executable instructions the flow of accompanying drawing illustrates the step of Perform.Also, although logical order is shown in flow charts, in some cases, can be with suitable different from herein Sequence performs shown or described step.
In order to solve the above technical problems, the embodiment of the present invention adopts the following technical scheme that:
Embodiment one
A kind of date storage method of cooking equipment, as Figure 1 and Figure 4, this method include S101-S103:
S101, cooking equipment carry out data storage when, same information data is respectively stored in different memory blocks In;
S102, cooking equipment carry out digital independent when, corresponding Information Number is read out from different memory blocks respectively According to;
S103, multiple information datas for being read out from different memory blocks are carried out correcting data error and validity judgement with Correct legal data message is obtained to be used.
In embodiments of the present invention, in order to prevent the information data of cooking equipment storage when occur power down or its He disturb, cause data storage change or data storage lose, same information data can be respectively stored in difference Memory block in, realize the backup to the information data, can be with after a information data is made a mistake or is lost Use the data stored in another memory block.And read out respectively from different memory blocks accordingly in cooking equipment After information data, correcting data error and validity judgement are carried out to the multiple information datas read out, culinary art can be effectively improved The Fault Tolerance of equipment, and improve the correctness of system data storage;The embodiment scheme can be avoided due to storage The failure of slurrying next time or cooking equipment failure, improve user experience caused by error in data or loss of data.
Embodiment two
The embodiment has carried out critical data and non-key on the basis of embodiment one to the information data that stores of needs The division of data.
Alternatively, this method also includes:Before cooking equipment carries out data storage, it would be desirable to which the information data of storage is drawn It is divided into critical data and non-critical data.
Alternatively, critical data can include but is not limited to:Slurrying strike number and production calibration process data storage;It is non-key Data can include but is not limited to:Anti-overflow temperature and motor examine number slowly.
In embodiments of the present invention, the pulpability of the production calibration process data storage of soy bean milk making machine and complete machine closes with safety It is great, and the data may be only occurred in certain pulping process, and the correction for pulping process has important meaning Justice, key message data can be divided into for such data;Although the anti-overflow temperature of the soy bean milk making machine also slurrying with complete machine Can be great with security relationship, but the anti-overflow temperature can be by setting default factory value artificially to be set, and follow-up normal It may not use, therefore such can be configured by Default Value in pulping process, or can be made by oneself The data definition of justice is non-critical information.
Alternatively, two kinds of situations can be included by same information data being respectively stored in different memory blocks:
Situation one, the storage to critical data
Critical data is respectively stored in default first memory block and the second memory block, and by the pass after storage Key data is respectively as the first critical data and the second critical data;Wherein, the first memory block and the second memory block are mutual Independence and it does not interfere with each other.
In embodiments of the present invention, because the memory block used is more, the time needed for storage and reading is longer, herein The probability that process goes wrong will increase, therefore two memory blocks can be only selected in scheme of the embodiment of the present invention, i.e., above-mentioned The first memory block and the second memory block, DataPage1 and DataPage2 can be respectively labeled as.In other embodiment In, two memory blocks are not limited to, can be according to different application scenarios self-definings, such as three, four or more, the present invention Embodiment is not limited for its particular number.
In embodiments of the present invention, the embodiment scheme ensures that critical data makes a backup store in storage, avoids list Occur error in data during one storage and lose the not consequence brought, and two memory blocks independently of each other and do not interfere with each other guarantor The independence and security of data in two memory blocks are demonstrate,proved.
Situation two, the storage to non-critical data
Non-critical data is respectively stored in default 3rd memory block and the 4th memory block, and by after storage Non-critical data is respectively as the 3rd non-critical data and the 4th non-critical data;Or non-critical data is merely stored in pre- If the 3rd memory block in;Wherein, the 3rd memory block and the 4th memory block independently of each other and are not interfere with each other.
In embodiments of the present invention, because the non-critical data, such as anti-overflow temperature and motor are examined number and can carried out slowly It is artificial to set, and it is different that the data may be set in different workflows.Therefore depositing for non-critical data Storage may be referred to the storage of critical data, can carry out partitioned storage, i.e., non-critical data is respectively stored in into the default 3rd In memory block and the 4th memory block, DataPage3 and DataPage4 can be respectively labeled as.Can not also be to the non-pass Key data carries out partitioned storage, some non-critical data only is stored in into a memory block, the as escribed above 3rd deposits Storage area block DataPage3.The embodiment scheme can cause person skilled according to the size of cooking equipment memory space come The storage form of non-critical data is set so that data storage is more flexible, does not interfere with the storage of significant data again.
In embodiments of the present invention, based on above-mentioned storage mode, when cooking equipment carries out digital independent, if information Data storage is in two memory blocks, it is necessary to read out corresponding two information datas from two memory blocks respectively; If storage for non-critical data, and the non-critical data is merely stored in a memory block, then only can be deposited from one A non-critical data is read in storage area block.
In embodiments of the present invention, after data are read from one or two memory block, data can be first determined whether Reading whether succeed, if digital independent is unsuccessful, digital independent can be carried out again, if repeatedly read all not into Work(, such as twi-read all do not succeed, then it is considered that current storage device or cooking equipment failure, can carry out failure Alarm, to prompt user.If digital independent success, into follow-up process.
In embodiments of the present invention, for two information datas being read respectively from two memory blocks, it is necessary to further Correcting data errors and validity judgement are carried out to two information datas, with determine which information data be it is correct legal, with Just the information data is continuing with follow-up work.
First, the correcting data error and validity judgement of critical data are introduced first.
Alternatively, as shown in Figure 2, Figure 4 shows, data are carried out to the multiple information datas read out from different memory blocks to entangle Wrong and validity judgement, which carries out use to obtain correct legal data message, can include S201-S204:
S201, the first critical data is read from the first memory block respectively, the second crucial number is read from the second memory block According to.
S202, compare the first critical data and whether the second critical data is identical.
In embodiments of the present invention, number is read from the first memory block DataPage1 and the second memory block DataPage2 After success, identical judgement can be carried out to the content in different blocks DataPage1, DataPage2, that is, judge that first is crucial Whether data and the second critical data are identical.
In embodiments of the present invention, specific determination methods can include but is not limited to:Data head and data length are verified, Or using verification and by the way of verified.
S203, when the first critical data is identical with the second critical data, confirm the first critical data and the second crucial number According to correct, and used using any one in the first critical data and the second critical data.
In embodiments of the present invention, it is identical with the second critical data if verifying the first critical data, illustrate first Data in memory block DataPage1 and the second memory block DataPage2 are not lost, and are not made a mistake, because This, can use the work of any one data application and follow-up cooking equipment in the first critical data and the second critical data Make in flow.
S204, when the first critical data and the second critical data differ, confirm the first critical data and/or second close Key data is incorrect, and carries out legitimate verification to the first critical data and/or the second critical data, crucial when verifying first In data and the second critical data any one it is legal when, using verifying legal the first critical data or the second critical data To use.
In embodiments of the present invention, if verifying the first critical data and the second critical data differs, is illustrated Any one in the information data stored in one memory block DataPage1 and the second memory block DataPage2 or two There is mistake or lose, cause its current data illegal.Therefore one can be entered to the first critical data and the second critical data Step carries out validity judgement.
Alternatively, carrying out legitimate verification to the first critical data and/or the second critical data can include:
By the first critical data and/or the second critical data compared with default first data area;
When the first critical data meets the first data area, determine that the first critical data is legal;When the second critical data When meeting the first data area, determine that the second critical data is legal;When the first critical data and the second critical data are not met During the first data area, determine that the first critical data and the second critical data are illegal.
In embodiments of the present invention, the data model that the first critical data and the second critical data need to meet can be pre-set To enclose, the first data area described above, first data area can be (M1, M2), wherein, M2 > M1.Implement in the present invention In example, it is not limited for M1 and M2 concrete numerical value, can requires to make by oneself according to the different of different information datas Justice.
In embodiments of the present invention, if the first critical data can then determine the first crucial number in scope (M1, M2) According to legal;If the second critical data can then determine that the second critical data is legal in scope (M1, M2);If first closes If key data and the second critical data can then determine the first critical data and the second key not in scope (M1, M2) Data are illegal.
In embodiments of the present invention, after determining which information data is legal by such scheme, directly using the conjunction Method data;If two data are illegal, two data do not use.
It is further to note that above-mentioned step S203 and step S204 is the different disposal side under different comparative results Method, point of its step without priority.
2nd, the correcting data error and validity judgement of non-critical data are introduced.
Alternatively, as shown in Figure 3, Figure 4, data are carried out to the multiple information datas read out from different memory blocks to entangle Wrong and validity judgement, which carries out use to obtain correct legal data message, can include S301-S304:
S301, the 3rd non-critical data is read from the 3rd memory block respectively, the 4th non-pass is read from the 4th memory block Key data;
S302, compare the 3rd non-critical data and whether the 4th non-critical data is identical;
S303, when the 3rd non-critical data is identical with the 4th non-critical data, confirm the 3rd non-critical data and the 4th Non-critical data is correct, and is used using any one in the 3rd non-critical data and the 4th non-critical data;
S304, when the 3rd non-critical data and the 4th non-critical data differ, confirm the 3rd non-critical data and/or 4th non-critical data is incorrect, and carries out legitimate verification to the 3rd non-critical data and/or the 4th non-critical data, when testing Demonstrate,prove out in the 3rd non-critical data and the 4th non-critical data any one it is legal when, using verifying that the legal 3rd is non-key Data or the 4th non-critical data use.
In embodiments of the present invention, can be with to any embodiment in the correcting data error and validity judgement of critical data Suitable for the correcting data error and validity judgement of non-critical data, this is no longer going to repeat them.
It is further to note that above-mentioned step S303 and step S304 is the different disposal side under different comparative results Method, point of its step without priority.
Alternatively, carrying out legitimate verification to the 3rd non-critical data and/or the 4th non-critical data can include:
By the 3rd non-critical data and/or the 4th non-critical data compared with default second data area;
When the 3rd non-critical data meets the second data area, determine that the 3rd non-critical data is legal;When the 4th non-pass When key data meets the second data area, determine that the 4th non-critical data is legal;When the 3rd non-critical data and the 4th non-key When data do not meet the second data area, determine that the 3rd non-critical data and the 4th non-critical data are illegal.
In embodiments of the present invention, the number that the 3rd non-critical data and the 4th non-critical data need to meet can be pre-set According to scope, the second data area described above, second data area can be (N1, N2), wherein, N2 > N1.In the present invention In embodiment, it is not limited for N1 and N2 concrete numerical value, can requires to carry out according to the different of different information datas It is self-defined.
In embodiments of the present invention, if the 3rd non-critical data can then determine the 3rd non-pass in scope (N1, N2) Key data is legal;If the 4th non-critical data can then determine that the 4th non-critical data is legal in scope (N1, N2);Such as The non-critical data of fruit the 3rd and the 4th non-critical data can then determine the 3rd non-critical data not in scope (N1, N2) It is illegal with the 4th non-critical data.
In embodiments of the present invention, after determining which information data is legal by such scheme, directly using the conjunction Method data;If two data are illegal, following embodiment schemes can be used.
Alternatively, this method can also include:When verifying the 3rd non-critical data and the 4th non-critical data does not conform to During method, data are set to enter as valid data using default factory corresponding with the 3rd non-critical data and the 4th non-critical data Exercise and use, and set data to substitute the 3rd non-critical data and the 4th memory block in the 3rd memory block using default factory The 4th non-critical data in block.
In embodiments of the present invention, the embodiment scheme make it that even if non-critical data error factory default can also be used Data are set, ensure the normal operation of follow-up cooking equipment.
Embodiment three
The difference of the embodiment and embodiment two is, when non-critical data is merely stored in a memory block, to non- The correcting data error and validity judgement scheme of critical data.
Alternatively, correcting data error and validity judgement are carried out to the multiple information datas read out from different memory blocks Carrying out use with the data message for obtaining correctly legal includes:
When non-critical data is merely stored in default 3rd memory block, by the 3rd non-critical data and default the Two data areas are compared;
When the 3rd non-critical data meets the second data area, determine that the 3rd non-critical data is legal, and use the 3rd Non-critical data;When the 3rd non-critical data does not meet the second data area, determine that the 3rd non-critical data is illegal, use Default factory corresponding with the 3rd non-critical data sets data to be used as valid data, and is set using default factory Data substitute the 3rd non-critical data in the 3rd memory block.
In embodiments of the present invention, if non-critical data has been stored in a memory block, the described above 3rd deposits Storage area block, due to only the 3rd non-critical data for reading, then the judgement of the phase same sex is will not relate to, to determine that the 3rd is non- Whether critical data is correct, directly can carry out validity judgement to the 3rd non-critical data.
In embodiments of the present invention, its validity judgement is identical with the scheme in the above embodiments three, can be by the 3rd Non-critical data is compared with default second data area (N1, N2), with by judging whether the 3rd non-critical data is full The second data area of foot (N1, N2) determines whether the 3rd non-critical data is legal.
In embodiments of the present invention, if the 3rd non-critical data can then determine the 3rd non-pass in scope (N1, N2) Key data is legal;If the 3rd non-critical data in scope (N1, N2), then can not determine that the 3rd non-critical data does not conform to Method.
In embodiments of the present invention, if it is determined that the 3rd non-critical data is legal, then directly uses the 3rd non-key number According to, if it is determined that the 3rd non-critical data is illegal, then children's folk rhymes can use the scheme of embodiment two, that is, use and the Default factory corresponding to three non-critical datas sets data to be used as valid data, and sets data using default factory Substitute the 3rd non-critical data in the 3rd memory block.
Example IV
The difference of the embodiment and embodiment one, two, three is, has preassigned position and the Information Number of memory block According to data length.
Alternatively, this method can also include:Before cooking equipment carries out data storage, different storages is preassigned The position of block and the data length of information data.
In embodiments of the present invention, data 1 can be preassigned to be stored in block 1, data 2 are stored in block 2, and And the data length that can preassign data 1 and data 2 is n, then when the mistake that data 1 and data 2 are stored and verified Cheng Zhong, if there is data 1 not in block 1, either data 2 are not in block 2 or the data length of data 1 and data 2 It is not n, then can consider the process exception, and carry out fault alarm, prompts user.
In embodiments of the present invention, the embodiment scheme can prevent cooking equipment system in itself when being interfered When being written and read to EEPROM, lucky information data all meets well-formedness condition but data length is not that system is caused in itself, I.e. data source is unreliable, and this can prevent cooking equipment from working on down this case in time, so as to avoid producing not Good consequence.
Embodiment five
The difference of the embodiment and embodiment one, two, three is that the information data stored to needs is entered using coded system Row storage and verification.
In embodiments of the present invention, specific coded system can include:Data are increased to the information data that needs store Head, and the information data that stores will be needed use the mode string for verifying sum as A, B, C, D, E, F, G, wherein A, B are data head, G For A+B+C+D+E+F sum.When the information data to reading out verifies it is same using verify and by the way of verify.
In embodiments of the present invention, the embodiment scheme can further lift data write-in and the reliability read.
The beneficial effect of the embodiment of the present invention:
1st, same information data is respectively stored in not by scheme of the embodiment of the present invention when cooking equipment carries out data storage In same memory block, the loss of data storage can be avoided;When cooking equipment carries out digital independent, respectively from different storages Corresponding information data is read out in block;Correcting data error is carried out to the multiple information datas read out from different memory blocks And validity judgement is used with obtaining correct legal data message, can effectively improve the System Fault Tolerance of cooking equipment Ability, and improve the correctness of system data storage;The embodiment scheme can be avoided due to data storage mistake or data The failure of slurrying next time or cooking equipment failure, improve user experience caused by loss.
2nd, scheme of the embodiment of the present invention is before cooking equipment carries out data storage, it would be desirable to the information data division of storage For critical data and non-critical data, the different classifications for the information data that can be stored according to each needs determine that its is important Property, so that the storage for information data is more targeted, further prevent significant data from mistake occur with losing.
3rd, critical data is respectively stored in default first memory block and the second memory block by scheme of the embodiment of the present invention In block, and using the critical data after storage as the first critical data and the second critical data;Wherein, the first memory block With the second memory block independently of each other and do not interfere with each other;The embodiment scheme ensures that critical data carries out subregion in storage and deposited Storage, to implement backup in different memory blocks to the critical data, occurs data mistake when avoiding single memory block from storing By mistake with losing the not consequence brought, and two memory blocks independently of each other and do not interfere with each other and ensure that in two memory blocks The independence and security of data.
4th, non-critical data is respectively stored in default 3rd memory block and the 4th storage by scheme of the embodiment of the present invention In block, and using the non-critical data after storage as the 3rd non-critical data and the 4th non-critical data;Or will be non- Critical data is merely stored in default 3rd memory block;Wherein, the 3rd memory block and the 4th memory block are separate And it does not interfere with each other.The embodiment scheme can cause person skilled and set according to the size of cooking equipment memory space non- The storage form of critical data so that data storage is more flexible, does not interfere with the storage of significant data again.
5th, in scheme of the embodiment of the present invention when verifying the 3rd non-critical data and illegal the 4th non-critical data, Data are set to enter to exercise as valid data using default factory corresponding with the 3rd non-critical data and the 4th non-critical data With, and set data to substitute in the 3rd non-critical data and the 4th memory block in the 3rd memory block using default factory The 4th non-critical data.The embodiment scheme make it that even if non-critical data error factory default setting number can also be used According to ensureing the normal operation of follow-up cooking equipment.
6th, scheme of the embodiment of the present invention preassigns different memory blocks before cooking equipment carries out data storage Position and the data length of information data.The embodiment scheme can prevent cooking equipment system in itself be interfered when When time is written and read to EEPROM, lucky information data all meets well-formedness condition but data length is not that system produces in itself , i.e., data source is unreliable, and this can prevent cooking equipment from working on down this case in time, so as to avoid producing Adverse consequences.
Although the embodiment disclosed by the embodiment of the present invention is as above, described content is only to readily appreciate that the present invention is real The embodiment applied example and used, it is not limited to the embodiment of the present invention.Skill in any art of the embodiment of the present invention Art personnel, can be in the form and details of implementation on the premise of the spirit and scope disclosed by the embodiment of the present invention are not departed from It is upper to carry out any modification and change, but the scope of patent protection of the embodiment of the present invention, still must be with appended claims institute The scope defined is defined.

Claims (10)

1. a kind of date storage method of cooking equipment, it is characterised in that methods described includes:
When the cooking equipment carries out data storage, same information data is respectively stored in different memory blocks;
When the cooking equipment carries out digital independent, corresponding Information Number is read out from the different memory areas block respectively According to;
Correcting data error and validity judgement are carried out to obtain to the multiple information datas read out from the different memory areas block Correct legal data message is used.
2. the date storage method of cooking equipment as claimed in claim 1, it is characterised in that methods described also includes:Institute State cooking equipment carry out data storage before, it would be desirable to the information data of storage is divided into critical data and non-critical data.
3. the date storage method of cooking equipment as claimed in claim 2, it is characterised in that
The critical data includes:Slurrying strike number and production calibration process data storage;
The non-critical data includes:Anti-overflow temperature and motor examine number slowly.
4. the date storage method of cooking equipment as claimed in claim 2, it is characterised in that described by same information data point Not being stored in different memory blocks includes:
The critical data is respectively stored in default first memory block and the second memory block, and by the institute after storage Critical data is stated respectively as the first critical data and the second critical data;Wherein, first memory block and described second Memory block is separate and does not interfere with each other;
The non-critical data is respectively stored in default 3rd memory block and the 4th memory block, and by after storage The non-critical data is respectively as the 3rd non-critical data and the 4th non-critical data;Or by the non-critical data only It is stored in default 3rd memory block;Wherein, the 3rd memory block and the 4th memory block independently of each other and It does not interfere with each other.
5. the date storage method of cooking equipment as claimed in claim 4, it is characterised in that described to being stored from the difference The multiple information datas read out in block carry out correcting data error and validity judgement and entered with obtaining correct legal data message Exercise with including:
First critical data is read from first memory block respectively, described second is read from second memory block Critical data;
Compare first critical data and whether second critical data is identical;
When first critical data is identical with second critical data, first critical data and described second are confirmed Critical data is correct, and is used using any one in first critical data and second critical data;
When first critical data and second critical data differ, first critical data and/or institute are confirmed It is incorrect to state the second critical data, and legitimate verification is carried out to first critical data and/or second critical data, When verify in first critical data and second critical data any one it is legal when, using verifying legal institute The first critical data or second critical data are stated to use.
6. the date storage method of cooking equipment as claimed in claim 5, it is characterised in that described to the described first crucial number According to and/or second critical data carry out legitimate verification include:
By first critical data and/or second critical data compared with default first data area;
When first critical data meets first data area, determine that first critical data is legal;When described When second critical data meets first data area, determine that second critical data is legal;When the described first crucial number During according to not meeting first data area with second critical data, first critical data and described second are determined Critical data is illegal.
7. the date storage method of cooking equipment as claimed in claim 4, it is characterised in that described to being stored from the difference The multiple information datas read out in block carry out correcting data error and validity judgement and entered with obtaining correct legal data message Exercise with including:
The 3rd non-critical data is read from the 3rd memory block respectively, described the is read from the 4th memory block Four non-critical datas;
Compare the 3rd non-critical data and whether the 4th non-critical data is identical;
When the 3rd non-critical data is identical with the 4th non-critical data, the 3rd non-critical data and institute are confirmed State that the 4th non-critical data is correct, and using any one in the 3rd non-critical data and the 4th non-critical data To use;
When the 3rd non-critical data and the 4th non-critical data differ, the 3rd non-critical data is confirmed And/or the 4th non-critical data is incorrect, and the 3rd non-critical data and/or the 4th non-critical data are entered Row legitimate verification, when verify in the 3rd non-critical data and the 4th non-critical data any one is legal When, used using legal the 3rd non-critical data or the 4th non-critical data is verified.
8. the date storage method of cooking equipment as claimed in claim 7, it is characterised in that methods described also includes:When testing When demonstrate,proving out the 3rd non-critical data and illegal the 4th non-critical data, using with the 3rd non-critical data With the 4th non-critical data corresponding to default factory set data used as valid data, and use the acquiescence Default Value data are substituted in the 3rd non-critical data and the 4th memory block in the 3rd memory block The 4th non-critical data.
9. the date storage method of the cooking equipment as described in claim 4 or 8, it is characterised in that described to from the difference The multiple information datas read out in memory block carry out correcting data error and validity judgement and believed with obtaining correct legal data Breath, which carries out use, to be included:
When the non-critical data is merely stored in default 3rd memory block, by the 3rd non-critical data with presetting The second data area be compared;
When the 3rd non-critical data meets second data area, determine that the 3rd non-critical data is legal, and Use the 3rd non-critical data;When the 3rd non-critical data does not meet second data area, it is determined that described 3rd non-critical data is illegal, and data are set as legal number using default factory corresponding with the 3rd non-critical data Data are set to substitute the 3rd non-key number in the 3rd memory block according to being used, and using the default factory According to.
10. the date storage method of cooking equipment as claimed in claim 1, it is characterised in that methods described also includes:Institute State before cooking equipment carries out data storage, preassign position and the described information data of the different memory block Data length.
CN201710407271.2A 2017-06-02 2017-06-02 A kind of date storage method of cooking equipment Pending CN107368757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710407271.2A CN107368757A (en) 2017-06-02 2017-06-02 A kind of date storage method of cooking equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710407271.2A CN107368757A (en) 2017-06-02 2017-06-02 A kind of date storage method of cooking equipment

Publications (1)

Publication Number Publication Date
CN107368757A true CN107368757A (en) 2017-11-21

Family

ID=60304849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710407271.2A Pending CN107368757A (en) 2017-06-02 2017-06-02 A kind of date storage method of cooking equipment

Country Status (1)

Country Link
CN (1) CN107368757A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408287A (en) * 2018-09-28 2019-03-01 昂纳信息技术(深圳)有限公司 A kind of storage and restoration methods, system and device of data reliability

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521084A (en) * 2011-12-20 2012-06-27 惠州市亿能电子有限公司 Data storage and reading method
CN102854862A (en) * 2012-09-12 2013-01-02 浙江中控技术股份有限公司 Functional block with FF (foundation fieldbus) interface
US20160188238A1 (en) * 2003-08-01 2016-06-30 Falconstor, Inc. Methods for synchronizing storage system data
CN105808390A (en) * 2016-04-29 2016-07-27 合肥美的电冰箱有限公司 Home appliance information self-checking and self-recovery method and system and home appliances
CN106226724A (en) * 2016-08-03 2016-12-14 宁波三星医疗电气股份有限公司 A kind of clock of power meter method for detecting abnormality

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160188238A1 (en) * 2003-08-01 2016-06-30 Falconstor, Inc. Methods for synchronizing storage system data
CN102521084A (en) * 2011-12-20 2012-06-27 惠州市亿能电子有限公司 Data storage and reading method
CN102854862A (en) * 2012-09-12 2013-01-02 浙江中控技术股份有限公司 Functional block with FF (foundation fieldbus) interface
CN105808390A (en) * 2016-04-29 2016-07-27 合肥美的电冰箱有限公司 Home appliance information self-checking and self-recovery method and system and home appliances
CN106226724A (en) * 2016-08-03 2016-12-14 宁波三星医疗电气股份有限公司 A kind of clock of power meter method for detecting abnormality

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王英: "《电工与电子技术试验教程(少学时)》", 30 September 2015, 西南交通大学出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408287A (en) * 2018-09-28 2019-03-01 昂纳信息技术(深圳)有限公司 A kind of storage and restoration methods, system and device of data reliability

Similar Documents

Publication Publication Date Title
CN105095013B (en) Date storage method, restoration methods, relevant apparatus and system
CN103763067B (en) A kind of communication data packet error checking and correction method and apparatus
CN102279776B (en) Error checking and correcting ability testing method and device
CN104753716B (en) Transmission system error detection and correction system and method
CN102804146A (en) System And Method Of Tracking Error Data Within A Storage Device
CN106341136A (en) LDPC decoding method and device thereof
CN103810433B (en) Fail safe code functionality
CN107643882A (en) The storage and restoration methods of a kind of data reliability, system and storage device
CN104407888A (en) Method and system for starting embedded type equipment
CN104834542B (en) A kind of startup method based on embedded type Linux equipment dual system
CN109596130A (en) Satellite attitude determination method and Satellite Attitude Determination System
US20200096962A1 (en) Field Device and Method for Parameterizing the Field Device
CN107368757A (en) A kind of date storage method of cooking equipment
CN103425932B (en) Signature calibration method and terminal device
CN105609141B (en) A kind of device and method for automatically correcting access storage device data
CN103593252B (en) The memory detected with dynamic error and corrected
CN110147354A (en) Batch data edit methods, device, computer equipment and storage medium
CN107329746B (en) A kind of chip configuring information processing method and device
CN105354106A (en) Burning error proofing method for brushless motor control management IC
US6539338B1 (en) Self-diagnostic testing of a network interface adapter
CN105373442B (en) Method and apparatus for supervisory memory data error states
CN108196529A (en) Data processing method and its device, data processing system
CN105279048B (en) A kind of data reconstruction method and device
CN103985410B (en) Storage device and data access method for storage device
CN106951184A (en) A kind of Bluetooth address generation method

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: 20171121

RJ01 Rejection of invention patent application after publication