CN107103652A - Data storage method and device - Google Patents

Data storage method and device Download PDF

Info

Publication number
CN107103652A
CN107103652A CN201710147268.1A CN201710147268A CN107103652A CN 107103652 A CN107103652 A CN 107103652A CN 201710147268 A CN201710147268 A CN 201710147268A CN 107103652 A CN107103652 A CN 107103652A
Authority
CN
China
Prior art keywords
data
operating parameters
target
target operating
object run
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
CN201710147268.1A
Other languages
Chinese (zh)
Other versions
CN107103652B (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201710147268.1A priority Critical patent/CN107103652B/en
Publication of CN107103652A publication Critical patent/CN107103652A/en
Application granted granted Critical
Publication of CN107103652B publication Critical patent/CN107103652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C3/00Registering or indicating the condition or the working of machines or other apparatus, other than vehicles

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data storage method and device. Wherein, the method comprises the following steps: reading first data stored in a memory of target equipment, wherein the first data records the historical running state of the target equipment; detecting whether target equipment generates target operation parameters in an operation process, wherein the operation process is performed after first data is generated; after the target operation parameter is detected, updating the first data according to the target operation parameter; the updated first data is stored in a memory. The method and the device solve the technical problem that the key operation data of the target equipment in the operation process cannot be referred to when the performance of the target equipment is improved.

Description

The storage method and device of data
Technical field
The present invention relates to field, in particular to the storage method and device of a kind of data.
Background technology
Current wall-mounted gas heating stove product only records the bases such as on-off state, the operational mode of production mouth by memory Service data, and some crucial service datas for unit do not carry out statistic record, such as:Communication event in running Hinder igniting duration in number of times, the total degree of electric fire needle igniting, nearly 200 igniting and be more than number of times of default value etc., so as to cause Following problem:
Problem 1:There is no unit actual operating data to refer in case study after sale;
Problem 2:Are lifted by no unit actual operating data and is referred to for product improvement, reliability in technical staff.
And then to technology, personnel's problem analysis after sale, lifted and add difficulty in properties of product.
For it is above-mentioned the problem of, effective solution is not yet proposed at present.
The content of the invention
The embodiments of the invention provide a kind of storage method of data and device, at least to solve in lifting target device During performance can not the crucial service data of reference target equipment in the process of running technical problem.
One side according to embodiments of the present invention there is provided a kind of storage method of data, including:Read target device Memory in the first data for storing, wherein, the history run state of target device described in first data record;Detection Whether the target device produces target operating parameters in the process of running, wherein, the running occurs described in generation After first data;After the target operating parameters are detected, first number is updated according to the target operating parameters According to;By first data storage after renewal in the memory.
Further, updating first data according to the target operating parameters includes:By the target detected Operational factor is stored in both the buffers;Judge the quantity for the object run that the target operating parameters in the buffer are indicated Whether first predetermined threshold value is reached, the object run is performed by the target device;Described in being performed in the target device When the quantity of object run reaches first predetermined threshold value, according to the target operating parameters stored in the buffer more New first data.
Further, updating first data according to the target operating parameters stored in the buffer includes: The object run that the target operating parameters are indicated is counted according to the target operating parameters stored in the buffer In meet preparatory condition the object run quantity;First data are updated according to the quantity, wherein, after renewal The object run has been recorded in first data and the object run is corresponding meets the described of the preparatory condition The quantity of object run.
Further, after first data are updated according to the quantity, methods described also includes:Remove described slow The target operating parameters stored in storage.
Further, after the first data stored in the memory for reading target device, methods described also includes:Connect The first signal is received, wherein, first signal is used to indicate display first data;According to first signal in the mesh First data described in the display screen display of marking device.
Further, receiving the first signal includes:Receive the secondary signal generated by programmable button;Judge described second Signal is whether duration is more than the second predetermined threshold value;, will when the duration of the secondary signal is more than second predetermined threshold value The secondary signal is defined as first signal.
Further, first data include code name and numerical value, according to first signal in the target device First data described in display screen display include:First data are converted into code name and numerical value, wherein, the code name is used for The type of the target operating parameters is represented, the numerical value is used for the numerical value for representing the target operating parameters;In the display First display location of screen shows the code name;The display screen except first display location other display locations with The mode of scientific notation shows the numerical value.
Another aspect according to embodiments of the present invention, additionally provides a kind of storage device of data, including:Reading unit, The first data stored in memory for reading target device, the history fortune of target device described in first data record Row state;Detection unit, for detecting whether the target device produces target operating parameters, the operation in the process of running Process occurs after first data are generated;Updating block, for after the target operating parameters are detected, according to The target operating parameters update first data;Memory cell, for by first data storage after renewal in institute State in memory.
Further, the updating block includes:Memory module, for the target operating parameters detected to be stored In both the buffers;First judge module, for judging the object run that the target operating parameters in the buffer are indicated Quantity whether reach the first predetermined threshold value, the object run is performed by the target device;Update module, for described When the quantity for the object run that target device is performed reaches first predetermined threshold value, according to what is stored in the buffer The target operating parameters update first data.
Further, the update module includes:Statistic submodule, for according to the mesh stored in the buffer Mark operational factor counts the object run for meeting preparatory condition in the object run that the target operating parameters are indicated Quantity;Submodule is updated, for updating first data according to the quantity, wherein, first data after renewal The middle number for having recorded the object run and the corresponding object run for meeting the preparatory condition of the object run Amount.
Further, the update module also includes:Submodule is removed, for updating described first according to the quantity After data, the target operating parameters stored in the buffer are removed.
Further, described device also includes:Receiving unit, for stored in the memory for reading target device the After one data, the first signal is received, wherein, first signal is used to indicate display first data;Display unit, is used In the first data described in the display screen display according to first signal in the target device.
Further, the receiving unit includes:Receiving module, for receiving the second letter generated by programmable button Number;Second judge module, for judging that the secondary signal is whether duration is more than the second predetermined threshold value;Determining module, is used for When the duration of the secondary signal is more than second predetermined threshold value, the secondary signal is defined as first signal.
Further, first data include code name and numerical value, and the display unit includes:Modular converter, for inciting somebody to action First data are converted to code name and numerical value, wherein, the code name is used for the type for representing the target operating parameters, described Numerical value is used for the numerical value for representing the target operating parameters;First display module, for showing position the first of the display screen Put the display code name;Second display module, in other display positions of the display screen except first display location Put and the numerical value is shown in the way of scientific notation.
In embodiments of the present invention, using the first data for storing in the memory for reading target device, wherein, described the The history run state of target device described in one data record;Detect whether the target device produces target in the process of running Operational factor, wherein, the running occurs after first data are generated;Detecting the target operating parameters Afterwards, first data are updated according to the target operating parameters;First data storage after renewal is deposited described Mode in reservoir, the target operating parameters storage by the way that target device is produced in the process of running reaches in memory The purpose of the crucial service data of target device in the process of running is preserved, it is achieved thereby that according to crucial service data to mesh The technique effect that the performance of marking device is improved, so solve lifted target device performance when can not reference target set The technical problem of standby crucial service data in the process of running.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the storage method of optional data according to embodiments of the present invention;
Fig. 2 is a kind of schematic diagram of the storage device of optional data according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Lid is non-exclusive to be included, for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
According to embodiments of the present invention there is provided a kind of embodiment of the method for the storage method of data, it is necessary to explanation, The step of flow of accompanying drawing is illustrated can perform in the computer system of such as one group computer executable instructions, also, , in some cases, can be shown to be performed different from order herein although showing logical order in flow charts The step of going out or describe.
Fig. 1 is a kind of flow chart of the storage method of optional data according to embodiments of the present invention, as shown in figure 1, should Method comprises the following steps:
The first data stored in step S102, the memory for reading target device, wherein, the first data entry object is set Standby history run state;
Whether step S104, detection target device produces target operating parameters in the process of running, wherein, running hair Life is after the first data are generated;
Step S106, after target operating parameters are detected, the first data are updated according to target operating parameters;
Step S108, by the first data storage after renewal in memory.
In embodiments of the present invention, target device can arbitrarily itself include the equipment of memory, pass through this hair During the method data storage of bright example, without the extra increase storage device such as memory or mnemon, so as to save equipment Cost.Target device can also itself and possess storage device, by setting up corresponding storage device in target device so that Storage to the crucial service data of target device is realized by the method for the embodiment of the present invention, realized according to key operation The technique effect that data are improved to the performance of target device.
First data of target device be target device it is upper once power off before store service data in memory, First data record target device it is upper once power off before history run state.After target device power-off, target Equipment will not produce new service data, therefore, and the first data stored in memory will not change.
On the target device after electricity, first the memory of reading target device is stored before once powering off on the target device The first data, and in the running of target device, detect that the running status of target device, and detection target device exist Whether target operating parameters are generated in running, wherein, target operating parameters can be the fortune that can arbitrarily get Row parameter, using wall-mounted gas heating stove as target device exemplified by, target operating parameters can be the communication of mainboard and actuator The frequency of failure (can be used for judging whether communication stablizes), or the total degree of electric fire needle igniting (can be used for judging that wall-hung boiler is It is no to have the phenomenon frequently lighted a fire), or igniting duration be more than a certain setting value number of times (can be used for determine whether certain because Element hinders igniting) etc..
Detecting after target device generates target operating parameters in the process of running, transported according to the target detected Row parameter is updated to the first data, the first data after being updated, and by the first data storage after renewal in target In the memory of equipment.Now, the first data stored in memory are the first data after updating, when detecting target again When equipment generates target operating parameters in the process of running, according to the target operating parameters newly detected to first after renewal Data are updated again, and the first data of final updated are again stored in memory.Therefore, in the operation of target device , can be according to the number of first in the target operating parameters of generation in real time more new memory when producing target operating parameters in journey According to can also be stored with newest crucial fortune even if target device is powered off suddenly in the process of running, in the memory of target device Row data.
In embodiments of the present invention, using the first data stored in the memory for reading target device, wherein, the first number According to the history run state of record target device;Whether detection target device produces target operating parameters in the process of running, its In, running occurs after the first data are generated;After target operating parameters are detected, according to target operating parameters more New first data;By the mode of the first data storage in memory after renewal, by by target device in the process of running The target operating parameters storage of generation in memory, has reached and has preserved the crucial service data of target device in the process of running Purpose, it is achieved thereby that the technique effect being improved according to crucial service data to the performance of target device, and then solve When lifting the performance of target device can not the crucial service data of reference target equipment in the process of running technical problem.
Alternatively, updating the first data according to target operating parameters includes:The target operating parameters detected are stored in In buffer;Judge whether the quantity for the object run that the target operating parameters in buffer are indicated reaches the first predetermined threshold value, Object run is performed by target device;When the quantity of the object run performed in target device reaches the first predetermined threshold value, according to The target operating parameters stored in buffer update the first data.
As a kind of optional embodiment of the embodiment of the present invention, the first data are carried out according to target operating parameters During renewal, target operating parameters are carried out with a kind of simplify and is handled, it is less to be stored in the occupancy of the first data in memory Memory space.Alternatively, when detecting target device and producing target operating parameters in the process of running, by the mesh detected Mark operational factor is temporarily stored in the buffer of target device, without being updated the first data, now judges to deposit in buffer Whether the quantity of the object run indicated by the target operating parameters of storage has reached the first threshold of pre-selection setting, wherein, target Operation is performed in the process of running by target device, and target operating parameters are that target device is produced when performance objective is operated 's.If the quantity of the object run indicated by the target operating parameters stored in buffer not up to first threshold, continues Target operating parameters are detected, and when detecting target operating parameters, the target operating parameters detected is temporarily stored in target and set In standby buffer.If the quantity of the object run indicated by the target operating parameters stored in buffer has reached the first threshold Value, then be updated according to the target operating parameters stored in buffer are unified to the first data.Pass through above-mentioned simplified processing, root Data bulk reaches that the target operating parameters of first threshold are updated to the first data, by a number of target operating parameters Data are collected, and can avoid recording object run data one by one in memory, the memory space saved in memory.
As a kind of optional embodiment of the embodiment of the present invention, according to the target operating parameters stored in buffer When updating the first data, according to condition set in advance to the target data indicated by the target operating parameters that are stored in buffer Counted, so as to count the quantity for the object run for meeting preparatory condition, and then grasped according to the target for meeting preparatory condition The quantity of work is updated to the first data.The object run of the first data record after renewal and the target for meeting preparatory condition The quantity of operation.I.e.:In the object run that target operating parameters statistics target operating parameters according to being stored in buffer are indicated Meet the quantity of the object run of preparatory condition;First data are updated according to quantity, wherein, described in the first data after renewal The quantity of object run and the corresponding object run for meeting preparatory condition of object run.
By taking wall-mounted gas heating stove as an example, wall-hung boiler is recorded in the memory of wall-mounted gas heating stove nearest 200 Duration of being lighted a fire in secondary igniting is more than the ignition times of a certain setting value, and can once be lighted a fire duration with record during every 20 igniting of generation More than the ignition times of a certain setting value.Wherein, igniting is object run, and 20 be first threshold.Detecting wall-hung boiler point When fiery, the object run data of the duration for representing igniting are temporarily stored in the buffer of wall-hung boiler, judge to deposit in buffer Whether the object run data of storage have reached given threshold 20, and the object run data stored in both the buffers have reached setting threshold During value 20, in temporary 20 firing datas in both the buffers of statistics, igniting duration is more than the number of times of the igniting of a certain setting value (equivalent to the quantity of qualified object run), and the first data are updated according to the number of times, so that in the first number According in the middle ignition operation for recording nearest 20 times, duration is more than the number of times of the igniting of a certain given threshold.And in the first data Only need to record 10 groups of data, you can the duration that completes to light a fire in lighting a fire to nearest 200 times is more than the ignition times of a certain setting value Record.Greatly save the memory space for storing the first data in memory.Alternatively, when having have recorded 10 in memory , it is necessary to again when duration is more than the ignition times of a certain setting value in group data, and nearest 200 igniting of 10 groups of data records Duration is more than the ignition times of a certain setting value, it is necessary to first delete the first data institute in newly-increased nearest 20 igniting of secondary record One group of earliest data of the time of origin of record, are then more than a certain setting value by duration in newly-increased nearest 20 igniting again Ignition times recorded in the first data.
Alternatively, after the first data are updated according to quantity, method also includes:Remove the target fortune stored in buffer Row parameter.
The object run data stored in both the buffers are reached after the first predetermined threshold value, and are stored according in buffer Object run data the first data are updated after, by the object run data dump in buffer, to restart Record one group of data.
If it should be noted that the quantity of the object run data of target device in both the buffers not yet reaches that first is pre- If being powered off during threshold value, store object run data in both the buffers and will lose and disregard., again will detection when electric on the target device To object run data Cun Chudao buffers in.
Alternatively, after the first data stored in the memory for reading target device, method also includes:Receive first Signal, wherein, the first signal is used to indicate to show the first data;According to the first signal target device display screen display One data.
The first data of storage in memory can also be shown on the display screen of target device, it is alternatively possible to logical Cross and set button on the target device to send the first signal to target device, to indicate the first data display in memory On the display screen of target device.
As a kind of optional embodiment of the embodiment of the present invention, in order to prevent the button for touching target device by mistake without small The heart checks pattern into the first data, the duration of the first signal can be configured, only be produced by programmable button When the duration of secondary signal is more than preset duration, it can just trigger target device and check pattern into the first data, so that by the One data display is on a display screen.I.e.:Receive the secondary signal generated by programmable button;Judge secondary signal be duration whether More than the second predetermined threshold value;When the duration of secondary signal is more than the second predetermined threshold value, secondary signal is defined as the first signal.
Alternatively, the first data include code name and numerical value, according to the first signal target device display screen display the One data include:First data are converted into code name and numerical value, wherein, code name is used for the type for representing target operating parameters, number It is worth the numerical value for representing target operating parameters;Code name is shown in the first display location of display screen;First is removed in display screen Other display locations of display location show numerical value in the way of scientific notation.
As a kind of optional embodiment of the embodiment of the present invention, the display mode of the first data can also be simplified.Can Selection of land, the service data of the first data record is converted into the pattern of code name and numerical value, wherein, code name represents target operating parameters Type, numerical value be target operating parameters concrete numerical value.The code name of the first data is shown in the first display location of display screen, The numerical value of the first data is shown in the way of scientific notation in other display locations of display screen.
For example:There was only four figures value charactron on the display screen of target device, be only able to display 4-digit number, and it is to be shown First data are igniting total degree 35500 times, then igniting total degree is shown on the first display location of four figures value charactron Data type code name 1, show concrete numerical value on other three display locations, such as:363 can be shown as by 35500, its In, when being not enough to show all numerals in display location, data can be simplified by the way of rounding up.Igniting total degree 1363 are shown as on a display screen 35500 times.
Alternatively, the first data include a plurality of subdata, according to the first signal target device display screen display the One data include:A plurality of subdata is shown according to the first signal one by one on the display screen of target device.
In order to avoid when the data volume of the first data is especially more, it has not been convenient to the first data are checked one by one, according to first Signal is scrolled all in display the first data of screen display of target device since the first data of the first data First data, when target device receives other signals for selecting data, stopping the first data of scrolling display, and according to Selection signal, display is currently displayed at a upper data or next data for the data on display screen.
According to embodiments of the present invention, a kind of device embodiment of the storage method of data is additionally provided, Fig. 2 is according to this hair The schematic diagram of the storage device of a kind of optional data of bright embodiment, as shown in Fig. 2 the device includes:
The first data stored in reading unit 210, the memory for reading target device, the first data entry object The history run state of equipment;
Detection unit 220, for detecting whether target device produces target operating parameters, running in the process of running Occur after the first data are generated;
Updating block 230, for after target operating parameters are detected, updating first according to target operating parameters and counting According to;
Memory cell 240, for by the first data storage after renewal in memory.
In embodiments of the present invention, target device can arbitrarily itself include the equipment of memory, pass through this hair During the method data storage of bright example, without the extra increase storage device such as memory or mnemon, so as to save equipment Cost.Target device can also itself and possess storage device, by setting up corresponding storage device in target device so that Storage to the crucial service data of target device is realized by the method for the embodiment of the present invention, realized according to key operation The technique effect that data are improved to the performance of target device.
First data of target device be target device it is upper once power off before store service data in memory, First data record target device it is upper once power off before history run state.After target device power-off, target Equipment will not produce new service data, therefore, and the first data stored in memory will not change.
On the target device after electricity, first the memory of reading target device is stored before once powering off on the target device The first data, and in the running of target device, detect that the running status of target device, and detection target device exist Whether target operating parameters are generated in running, wherein, target operating parameters could be arranged to arbitrarily get Operational factor, using wall-mounted gas heating stove as target device exemplified by, target operating parameters could be arranged to mainboard with execution The Communications failure number of times (can be used for judge that communication whether stablizes) of device, or be set to the total degree that electric fire needle lights a fire and (can be used for Judge whether wall-hung boiler has the phenomenon frequently lighted a fire), or be set to light a fire duration be more than a certain setting value number of times (can be used for Determine whether that certain factor hinders igniting) etc..
Detecting after target device generates target operating parameters in the process of running, transported according to the target detected Row parameter is updated to the first data, the first data after being updated, and by the first data storage after renewal in target In the memory of equipment.Now, the first data stored in memory are the first data after updating, when detecting target again When equipment generates target operating parameters in the process of running, according to the target operating parameters newly detected to first after renewal Data are updated again, and the first data of final updated are again stored in memory.Therefore, in the operation of target device , can be according to the number of first in the target operating parameters of generation in real time more new memory when producing target operating parameters in journey According to can also be stored with newest crucial fortune even if target device is powered off suddenly in the process of running, in the memory of target device Row data.
In embodiments of the present invention, using the first data stored in the memory for reading target device, wherein, the first number According to the history run state of record target device;Whether detection target device produces target operating parameters in the process of running, its In, running occurs after the first data are generated;After target operating parameters are detected, according to target operating parameters more New first data;By the mode of the first data storage in memory after renewal, by by target device in the process of running The target operating parameters storage of generation in memory, has reached and has preserved the crucial service data of target device in the process of running Purpose, it is achieved thereby that the technique effect being improved according to crucial service data to the performance of target device, and then solve When lifting the performance of target device can not the crucial service data of reference target equipment in the process of running technical problem.
Alternatively, updating block includes:Memory module, for the target operating parameters detected to be stored in into buffer In;First judge module, for judging whether the quantity for the object run that the target operating parameters in buffer are indicated reaches the One predetermined threshold value, object run is performed by target device;Update module, for the quantity of the object run performed in target device When reaching the first predetermined threshold value, the first data are updated according to the target operating parameters stored in buffer.
As a kind of optional embodiment of the embodiment of the present invention, the first data are carried out according to target operating parameters During renewal, target operating parameters are carried out with a kind of simplify and is handled, it is less to be stored in the occupancy of the first data in memory Memory space.Alternatively, when detecting target device and producing target operating parameters in the process of running, by the mesh detected Mark operational factor is temporarily stored in the buffer of target device, without being updated the first data, now judges to deposit in buffer Whether the quantity of the object run indicated by the target operating parameters of storage has reached the first threshold of pre-selection setting, wherein, target Operation is performed in the process of running by target device, and target operating parameters are that target device is produced when performance objective is operated 's.If the quantity of the object run indicated by the target operating parameters stored in buffer not up to first threshold, continues Target operating parameters are detected, and when detecting target operating parameters, the target operating parameters detected is temporarily stored in target and set In standby buffer.If the quantity of the object run indicated by the target operating parameters stored in buffer has reached the first threshold Value, then be updated according to the target operating parameters stored in buffer are unified to the first data.Pass through above-mentioned simplified processing, root Data bulk reaches that the target operating parameters of first threshold are updated to the first data, by a number of target operating parameters Data are collected, and can avoid recording object run data one by one in memory, the memory space saved in memory.
As a kind of optional embodiment of the embodiment of the present invention, according to the target operating parameters stored in buffer When updating the first data, according to condition set in advance to the target data indicated by the target operating parameters that are stored in buffer Counted, so as to count the quantity for the object run for meeting preparatory condition, and then grasped according to the target for meeting preparatory condition The quantity of work is updated to the first data.The object run of the first data record after renewal and the target for meeting preparatory condition The quantity of operation.That is, update module includes:Statistic submodule, for being counted according to the target operating parameters stored in buffer Meet the quantity of the object run of preparatory condition in the object run that target operating parameters are indicated;Submodule is updated, for basis Quantity updates the first data, wherein, object run has been recorded in the first data after renewal and object run is corresponding meets The quantity of the object run of preparatory condition.
By taking wall-mounted gas heating stove as an example, wall-hung boiler is recorded in the memory of wall-mounted gas heating stove nearest 200 Duration of being lighted a fire in secondary igniting is more than the ignition times of a certain setting value, and can once be lighted a fire duration with record during every 20 igniting of generation More than the ignition times of a certain setting value.Wherein, igniting is object run, and 20 be first threshold.Detecting wall-hung boiler point When fiery, the object run data of the duration for representing igniting are temporarily stored in the buffer of wall-hung boiler, judge to deposit in buffer Whether the object run data of storage have reached given threshold 20, and the object run data stored in both the buffers have reached setting threshold During value 20, in temporary 20 firing datas in both the buffers of statistics, igniting duration is more than the number of times of the igniting of a certain setting value (equivalent to the quantity of qualified object run), and the first data are updated according to the number of times, so that in the first number According in the middle ignition operation for recording nearest 20 times, duration is more than the number of times of the igniting of a certain given threshold.And in the first data Only need to record 10 groups of data, you can the duration that completes to light a fire in lighting a fire to nearest 200 times is more than the ignition times of a certain setting value Record.Greatly save the memory space for storing the first data in memory.Alternatively, when having have recorded 10 in memory , it is necessary to again when duration is more than the ignition times of a certain setting value in group data, and nearest 200 igniting of 10 groups of data records Duration is more than the ignition times of a certain setting value, it is necessary to first delete the first data institute in newly-increased nearest 20 igniting of secondary record One group of earliest data of the time of origin of record, are then more than a certain setting value by duration in newly-increased nearest 20 igniting again Ignition times recorded in the first data.
Alternatively, update module also includes:Submodule is removed, for after the first data are updated according to quantity, removing The target operating parameters stored in buffer.
The object run data stored in both the buffers are reached after the first predetermined threshold value, and are stored according in buffer Object run data the first data are updated after, by the object run data dump in buffer, to restart Record one group of data.
If it should be noted that the quantity of the object run data of target device in both the buffers not yet reaches that first is pre- If being powered off during threshold value, store object run data in both the buffers and will lose and disregard., again will detection when electric on the target device To object run data Cun Chudao buffers in.
Alternatively, device also includes:Receiving unit, for the first data stored in the memory for reading target device Afterwards, the first signal is received, wherein, the first signal is used to indicate to show the first data;Display unit, for according to the first signal In the data of display screen display first of target device.
The first data of storage in memory can also be shown on the display screen of target device, it is alternatively possible to logical Cross and set button on the target device to send the first signal to target device, to indicate the first data display in memory On the display screen of target device.
As a kind of optional embodiment of the embodiment of the present invention, in order to prevent the button for touching target device by mistake without small The heart checks pattern into the first data, the duration of the first signal can be configured, only be produced by programmable button When the duration of secondary signal is more than preset duration, it can just trigger target device and check pattern into the first data, so that by the One data display is on a display screen.I.e.:Receiving unit includes:Receiving module, for receiving generated by programmable button second Signal;Second judge module, for judging that secondary signal is whether duration is more than the second predetermined threshold value;Determining module, for When the duration of secondary signal is more than the second predetermined threshold value, secondary signal is defined as the first signal.
Alternatively, the first data include code name and numerical value, and display unit includes:Modular converter, for the first data to be turned Code name and numerical value are changed to, wherein, code name is used for the type for representing target operating parameters, and numerical value is used to represent target operating parameters Numerical value;First display module, for showing code name in the first display location of display screen;Second display module, in display Screen shows numerical value except other display locations of the first display location in the way of scientific notation.
As a kind of optional embodiment of the embodiment of the present invention, the display mode of the first data can also be simplified.Can Selection of land, the service data of the first data record is converted into the pattern of code name and numerical value, wherein, code name represents target operating parameters Type, numerical value be target operating parameters concrete numerical value.The code name of the first data is shown in the first display location of display screen, The numerical value of the first data is shown in the way of scientific notation in other display locations of display screen.
For example:There was only four figures value charactron on the display screen of target device, be only able to display 4-digit number, and it is to be shown First data are igniting total degree 35500 times, then igniting total degree is shown on the first display location of four figures value charactron Data type code name 1, show concrete numerical value on other three display locations, such as:363 can be shown as by 35500, its In, when being not enough to show all numerals in display location, data can be simplified by the way of rounding up.Igniting total degree 1363 are shown as on a display screen 35500 times.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, others can be passed through Mode is realized.Wherein, device embodiment described above is only schematical, the division of such as unit, can be one kind Division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of unit or module, Can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, be shown as unit Part can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple units On.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer Equipment (can for personal computer, server or network equipment etc.) perform each embodiment methods described of the invention whole or Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes Medium.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (14)

1. a kind of storage method of data, it is characterised in that including:
The first data stored in the memory for reading target device, wherein, target device described in first data record History run state;
Detect whether the target device produces target operating parameters in the process of running, wherein, the running occurs After generating first data;
After the target operating parameters are detected, first data are updated according to the target operating parameters;
By first data storage after renewal in the memory.
2. according to the method described in claim 1, it is characterised in that update first data according to the target operating parameters Including:
By the target operating parameters detected storage in both the buffers;
Judge whether the quantity for the object run that the target operating parameters in the buffer are indicated reaches the first default threshold Value, the object run is performed by the target device;
When the quantity of the object run performed in the target device reaches first predetermined threshold value, according to the caching The target operating parameters stored in device update first data.
3. method according to claim 2, it is characterised in that joined according to the object run stored in the buffer Number, which updates first data, to be included:
The target that the target operating parameters are indicated is counted according to the target operating parameters stored in the buffer Meet the quantity of the object run of preparatory condition in operation;
First data are updated according to the quantity, wherein, the target behaviour has been recorded in first data after renewal Work and the quantity of the corresponding object run for meeting the preparatory condition of the object run.
4. method according to claim 3, it is characterised in that after first data are updated according to the quantity, Methods described also includes:
Remove the target operating parameters stored in the buffer.
5. according to the method described in claim 1, it is characterised in that the first number stored in the memory for reading target device After, methods described also includes:
The first signal is received, wherein, first signal is used to indicate display first data;
First data described in display screen display according to first signal in the target device.
6. method according to claim 5, it is characterised in that receiving the first signal includes:
Receive the secondary signal generated by programmable button;
Judging the secondary signal is whether duration is more than the second predetermined threshold value;
When the duration of the secondary signal is more than second predetermined threshold value, the secondary signal is defined as first letter Number.
7. method according to claim 5, it is characterised in that first data include code name and numerical value, according to described First data described in display screen display of first signal in the target device include:
First data are converted into code name and numerical value, wherein, the code name is used for the class for representing the target operating parameters Type, the numerical value is used for the numerical value for representing the target operating parameters;
The code name is shown in the first display location of the display screen;
It is described except other display locations of first display location are shown in the way of scientific notation in the display screen Numerical value.
8. a kind of processing unit of data, it is characterised in that including:
The first data stored in reading unit, the memory for reading target device, mesh described in first data record The history run state of marking device;
Detection unit, it is described to run for detecting whether the target device produces target operating parameters in the process of running Cheng Fasheng is after first data are generated;
Updating block, for after the target operating parameters are detected, described the is updated according to the target operating parameters One data;
Memory cell, for by first data storage after renewal in the memory.
9. device according to claim 8, it is characterised in that the updating block includes:
Memory module, for the target operating parameters detected to be stored in both the buffers;
First judge module, for judging that the quantity of object run that the target operating parameters in the buffer are indicated is No to reach the first predetermined threshold value, the object run is performed by the target device;
Update module, the quantity of the object run for being performed in the target device reaches first predetermined threshold value When, update first data according to the target operating parameters stored in the buffer.
10. device according to claim 9, it is characterised in that the update module includes:
Statistic submodule, for counting the target operating parameters according to the target operating parameters stored in the buffer Meet the quantity of the object run of preparatory condition in the object run indicated;
Submodule is updated, for updating first data according to the quantity, wherein, remember in first data after renewal The quantity of the object run and the corresponding object run for meeting the preparatory condition of the object run is carried.
11. device according to claim 10, it is characterised in that the update module also includes:
Submodule is removed, for after first data are updated according to the quantity, removing what is stored in the buffer The target operating parameters.
12. device according to claim 8, it is characterised in that described device also includes:
Receiving unit, after the first data for storing in the memory for reading target device, receives the first signal, its In, first signal is used to indicate display first data;
Display unit, for the first data described in the display screen display according to first signal in the target device.
13. device according to claim 12, it is characterised in that the receiving unit includes:
Receiving module, for receiving the secondary signal generated by programmable button;
Second judge module, for judging that the secondary signal is whether duration is more than the second predetermined threshold value;
Determining module, it is for when the duration of the secondary signal is more than second predetermined threshold value, the secondary signal is true It is set to first signal.
14. device according to claim 12, it is characterised in that first data include code name and numerical value, described aobvious Show that unit includes:
Modular converter, for first data to be converted into code name and numerical value, wherein, the code name is used to represent the target The type of operational factor, the numerical value is used for the numerical value for representing the target operating parameters;
First display module, the code name is shown for the first display location in the display screen;
Second display module, in the display screen except other display locations of first display location are counted with science The mode of method shows the numerical value.
CN201710147268.1A 2017-03-13 2017-03-13 Data storage method and device Active CN107103652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710147268.1A CN107103652B (en) 2017-03-13 2017-03-13 Data storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710147268.1A CN107103652B (en) 2017-03-13 2017-03-13 Data storage method and device

Publications (2)

Publication Number Publication Date
CN107103652A true CN107103652A (en) 2017-08-29
CN107103652B CN107103652B (en) 2020-06-16

Family

ID=59674799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710147268.1A Active CN107103652B (en) 2017-03-13 2017-03-13 Data storage method and device

Country Status (1)

Country Link
CN (1) CN107103652B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833033A (en) * 2018-06-07 2018-11-16 Oppo广东移动通信有限公司 RF calibration determination method for parameter, device, storage medium and mobile terminal
CN109597840A (en) * 2018-12-06 2019-04-09 珠海格力电器股份有限公司 Data display method and system and energy management back-end platform

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1815397A (en) * 2005-02-03 2006-08-09 上海富申冷机有限公司 Intelligent energy-saving controller for commercial show freezer
CN101131675A (en) * 2006-08-22 2008-02-27 国际商业机器公司 Apparatus, system, and method for preventing write starvation in a partitioned cache of a storage controller
CN103034217A (en) * 2012-12-26 2013-04-10 东南大学 Intelligent home gateway based on internet of things and monitoring control method thereof
CN103425122A (en) * 2013-08-13 2013-12-04 重庆长安汽车股份有限公司 Fault management method for new energy vehicle controller
CN104753933A (en) * 2015-03-19 2015-07-01 腾讯科技(深圳)有限公司 Data processing method and device, client side and server
CN105471969A (en) * 2015-11-17 2016-04-06 国家电网公司 Power grid data processing cloud platform system
US20160299845A1 (en) * 2014-04-15 2016-10-13 International Business Machines Corporation Counter-based wide fetch management
JP2017010396A (en) * 2015-06-24 2017-01-12 富士通株式会社 Storage device, cache write control method, and cache write control program
CN106453667A (en) * 2016-12-20 2017-02-22 北京小米移动软件有限公司 Method and device for updating cached data

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1815397A (en) * 2005-02-03 2006-08-09 上海富申冷机有限公司 Intelligent energy-saving controller for commercial show freezer
CN101131675A (en) * 2006-08-22 2008-02-27 国际商业机器公司 Apparatus, system, and method for preventing write starvation in a partitioned cache of a storage controller
CN103034217A (en) * 2012-12-26 2013-04-10 东南大学 Intelligent home gateway based on internet of things and monitoring control method thereof
CN103425122A (en) * 2013-08-13 2013-12-04 重庆长安汽车股份有限公司 Fault management method for new energy vehicle controller
US20160299845A1 (en) * 2014-04-15 2016-10-13 International Business Machines Corporation Counter-based wide fetch management
CN104753933A (en) * 2015-03-19 2015-07-01 腾讯科技(深圳)有限公司 Data processing method and device, client side and server
JP2017010396A (en) * 2015-06-24 2017-01-12 富士通株式会社 Storage device, cache write control method, and cache write control program
CN105471969A (en) * 2015-11-17 2016-04-06 国家电网公司 Power grid data processing cloud platform system
CN106453667A (en) * 2016-12-20 2017-02-22 北京小米移动软件有限公司 Method and device for updating cached data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833033A (en) * 2018-06-07 2018-11-16 Oppo广东移动通信有限公司 RF calibration determination method for parameter, device, storage medium and mobile terminal
CN108833033B (en) * 2018-06-07 2021-03-02 Oppo广东移动通信有限公司 Method and device for determining radio frequency calibration parameters, storage medium and mobile terminal
CN109597840A (en) * 2018-12-06 2019-04-09 珠海格力电器股份有限公司 Data display method and system and energy management back-end platform

Also Published As

Publication number Publication date
CN107103652B (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN104239195B (en) A kind of method and electronic equipment for handling electronic equipment power consumption
CN1795465B (en) Operation history utilization system
CN108200030A (en) Detection method, system, device and the computer readable storage medium of malicious traffic stream
CN104021160B (en) Client data cleaning method and device
CN107608860A (en) A kind of method, apparatus, the equipment of error log classification storage
CN107577522A (en) Application control method, apparatus, storage medium and electronic equipment
CN107809542A (en) application control method, device, storage medium and electronic equipment
CN107103652A (en) Data storage method and device
CN102890628B (en) The display packing of destination object and device
CN106452931A (en) Monitoring index, domain value discovery method, domain value adjusting method and automatic monitoring system
CN108920296A (en) A kind of Fault Locating Method, device and computer readable storage medium
CN106886597A (en) Control system, control method and receiving terminal that a kind of trigger-type is notified
CN107729081A (en) application management method, device, storage medium and electronic equipment
CN109214908A (en) A kind of monitoring method and relevant apparatus
CN110457358A (en) A kind of information collecting method, device, server and computer readable storage medium
CN108345971A (en) A kind of information-pushing method and device
CN103294018A (en) Intelligent key managing system and self-inspection processing method thereof
CN105893471A (en) Data processing method and electronic equipment
CN107748697A (en) Using method for closing, device, storage medium and electronic equipment
CN107016054A (en) A kind of method and device of log information storage
CN104902026A (en) Information processing method and cloud service platform
CN104820916A (en) Intelligent warehouse system and use method
CN108334961A (en) A kind of patrolling method and server
CN107992361A (en) Method for cleaning, device, storage medium and the electronic equipment of background application
CN107683061A (en) A kind of data center's capacity management system and its operation principle

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
GR01 Patent grant
GR01 Patent grant