CN117329648A - Numerical value display method and device, computer equipment and air purifier - Google Patents

Numerical value display method and device, computer equipment and air purifier Download PDF

Info

Publication number
CN117329648A
CN117329648A CN202311248363.2A CN202311248363A CN117329648A CN 117329648 A CN117329648 A CN 117329648A CN 202311248363 A CN202311248363 A CN 202311248363A CN 117329648 A CN117329648 A CN 117329648A
Authority
CN
China
Prior art keywords
value
standby
current detection
numerical
maximum value
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
CN202311248363.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.)
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 CN202311248363.2A priority Critical patent/CN117329648A/en
Publication of CN117329648A publication Critical patent/CN117329648A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N27/00Investigating or analysing materials by the use of electric, electrochemical, or magnetic means
    • G01N27/26Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating electrochemical variables; by using electrolysis or electrophoresis
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/52Indication arrangements, e.g. displays
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/61Control or safety arrangements characterised by user interfaces or communication using timers
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing
    • F24F11/64Electronic processing using pre-stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Combustion & Propulsion (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Electrochemistry (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Biochemistry (AREA)
  • Analytical Chemistry (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Molecular Biology (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

The invention provides a numerical value display method, a numerical value display device, computer equipment and an air purifier, wherein the method comprises the steps of receiving a starting instruction and obtaining standby time and standby numerical values before standby; calculating a maximum value based on the standby time and the standby value; acquiring a current detection value, and judging the magnitude relation between the current detection value and the maximum value; and if the current detection value is larger than the maximum value, displaying the maximum value. The method provided by the invention can display the numerical value based on the detection data, avoid jump of the display numerical value and improve the use experience of the user.

Description

Numerical value display method and device, computer equipment and air purifier
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for displaying numerical values, a computer device, and an air purifier.
Background
The electrochemical sensor is a commonly used sensor, is mostly applied to the fields of atmospheric environment detection, indoor air detection, medical health and the like, and can detect various gases such as formaldehyde, ammonia, hydrogen sulfide, sulfur dioxide and the like. However, since such a sensor requires a long warm-up time in use and the environment of a use scene is complex, problems of inaccurate detection, large detection value wave points, and high failure rate are liable to occur.
Under the condition that the electrochemical sensor is not electrified and activated for a long time, the situation that the numerical value is large easily occurs when the electrochemical sensor is electrified again, and the electrochemical sensor usually needs a long time to recover to be normal; on the other hand, when the sensor is electrified again for detection, consistency of a detection result and a detection value before power failure is difficult to ensure, and detection errors are larger and accuracy is lower.
Disclosure of Invention
For solving the problem that current electrochemical sensor shows numerical value jump, this application provides a numerical value display method, device, computer equipment and air purifier, can carry out numerical value display based on detection data, avoids numerical value jump.
In one aspect, a method for displaying a numerical value is provided, the method including:
receiving a starting instruction, and acquiring standby time and standby value before standby;
calculating a maximum value based on the standby time and the standby value;
acquiring a current detection value, and judging the magnitude relation between the current detection value and the maximum value;
and if the current detection value is larger than the maximum value, displaying the maximum value.
In some embodiments, the calculating a maximum value based on the standby time and standby value comprises:
calculating the maximum value based on dmax=dend+ax, where Dmax is the maximum value, dend is the standby value, a is a constant coefficient, and X is the standby time.
In some embodiments, the obtaining a current detection value, and determining a magnitude relation between the current detection value and the maximum value; and if the current detection value is greater than the maximum value, displaying the maximum value, including:
circularly executing in a preset starting time to obtain a current detection value, and judging the magnitude relation between the current detection value and the maximum value;
if the current detection value is larger than the maximum value, displaying the maximum value;
if the current detection value is smaller than or equal to the maximum value, displaying the current detection value;
until the preset starting time is reached.
In some embodiments, displaying the current detected value if the current detected value is less than or equal to the maximum value comprises:
acquiring a detection value average value in a first preset duration;
if the average value of the detected values is smaller than a pre-stored first threshold value, the step of judging the relationship between the current detected value and the maximum value is not executed any more, and the current detected value is directly displayed.
In some embodiments, the method further comprises:
numerical value display is carried out according to preset frequency;
the current display value satisfies Dn+1 is less than or equal to Dn+Kn and Dn+1 is more than or equal to Dn-Jn and is constantly greater than zero, wherein Dn is the previous display value, dn+1 is the current display value, kn is a random number in a first preset interval, and Jn is a random number in a second preset interval.
In another aspect, there is provided a numerical value display apparatus, the apparatus including:
the standby data acquisition module is used for receiving a starting instruction and acquiring standby time and standby values before standby;
the maximum value calculation module is used for calculating the maximum value based on the standby time and the standby value;
the numerical value judging module is used for acquiring a current detection numerical value and judging the magnitude relation between the current detection numerical value and the maximum numerical value;
and the numerical value display module is used for displaying the maximum numerical value if the current detection numerical value is larger than the maximum numerical value.
In some embodiments, the maximum value calculation module is specifically configured to:
calculating the maximum value based on dmax=dend+ax, where Dmax is the maximum value, dend is the standby value, a is a constant coefficient, and X is the standby time.
In some embodiments, the numerical judgment module and the numerical display module are specifically configured to:
circularly executing in a preset starting time to obtain a current detection value, and judging the magnitude relation between the current detection value and the maximum value;
if the current detection value is larger than the maximum value, displaying the maximum value;
if the current detection value is smaller than or equal to the maximum value, displaying the current detection value;
until the preset starting time is reached.
In some embodiments, the numerical display module is specifically configured to:
acquiring a detection value average value in a first preset duration;
if the average value of the detected values is smaller than a pre-stored first threshold value, the step of judging the relationship between the current detected value and the maximum value is not executed any more, and the current detected value is directly displayed. .
In some embodiments, the apparatus is further to:
numerical value display is carried out according to preset frequency;
the current display value satisfies Dn+1 is less than or equal to Dn+Kn and Dn+1 is more than or equal to Dn-Jn and is constantly greater than zero, wherein Dn is the previous display value, dn+1 is the current display value, kn is a random number in a first preset interval, and Jn is a random number in a second preset interval.
In another aspect, a computer device is provided, where the computer device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the processor may load and execute the at least one instruction, the at least one program, the code set, or the instruction set, to implement the numerical display method provided in the foregoing application embodiment.
In another aspect, an electrochemical sensor system is provided comprising an electrochemical sensor, a display device and a computer device as described above.
In another aspect, an air purifier is provided comprising an electrochemical sensor system as described above.
In another aspect, a computer readable storage medium is provided, where at least one instruction, at least one program, a code set, or an instruction set is stored in the readable storage medium, and a processor may load and execute the at least one instruction, the at least one program, the code set, or the instruction set, so as to implement a numerical value display method provided in an embodiment of the present application.
In another aspect, a computer program product or computer program is provided, the computer program title or computer program comprising computer program instructions stored in a computer readable storage medium. The processor reads the computer instructions from the computer-readable storage medium and executes the computer instructions, so that the computer device performs the numerical display method according to any one of the above embodiments.
The beneficial effects that this application provided technical scheme brought include at least: the embodiment of the invention provides a numerical value display method, a numerical value display device, computer equipment and an air purifier, wherein the method comprises the steps of receiving a starting instruction and acquiring standby time and standby numerical values before standby; calculating a maximum value based on the standby time and the standby value; acquiring a current detection value, and judging the magnitude relation between the current detection value and the maximum value; and if the current detection value is larger than the maximum value, displaying the maximum value. The method provided by the embodiment of the invention can display the numerical value based on the detection data, avoid jump of the display numerical value and improve the use experience of the user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an implementation of a numerical display method according to an exemplary embodiment of the present application;
FIG. 2 is a schematic flow chart of another implementation of a numerical display method according to an exemplary embodiment of the present application;
FIG. 3 is a schematic flow chart of another implementation of a numerical display method according to an exemplary embodiment of the present application;
fig. 4 is a diagram showing a structure of a numerical display apparatus according to an exemplary embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device corresponding to a numerical display method according to an exemplary embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
According to the numerical value display method, numerical value display can be performed based on detection data, numerical value jump is avoided, and user experience is improved.
Embodiment 1,
When many electrochemical sensors are started again after first use or power failure, the electrochemical sensors need to be activated for a certain time after power-up, such as twenty-four hours, so that data can be accurately detected; during normal use after activation, 2 minutes of preheating is required to accurately detect data. If the user starts the related equipment once at a longer time interval or uses the related equipment for less than twenty-four hours each time, the sensor may work in an underactivated state, the first detection value of the electrochemical sensor is larger, and 2-3 minutes are required to detect and display the actual electrochemical value. For devices capable of rapidly displaying electrochemical values, the sensor detection data during the start-up phase is also unstable, and there are cases of low or high.
Fig. 1 shows a schematic implementation flow chart of a numerical display method according to an embodiment of the present invention.
Referring to fig. 1, the method for displaying a numerical value according to the embodiment of the present invention may include steps 101 to 101.
Step 101: and receiving a starting instruction, and acquiring standby time and standby values before standby.
In some embodiments, step 101 comprises:
when the electrochemical sensor is powered on, the last display value Dend recorded in standby is obtained.
Step 102: and calculating a maximum value based on the standby time and the standby value.
In some embodiments, step 102 comprises:
calculating the maximum value based on dmax=dend+ax, where Dmax is the maximum value, dend is the standby value, a is a constant coefficient, and X is the standby time.
In a specific example, the duration of the standby is counted as xT with the time period T as a counting unit, and the display value does not exceed dmax=dend+ax, where a is a constant. I.e. x=xt, a=a/T.
Alternatively, T takes 20 seconds and a takes 0.001.
Step 103: and obtaining a current detection value, and judging the magnitude relation between the current detection value and the maximum value.
Step 104: and if the current detection value is larger than the maximum value, displaying the maximum value.
In some embodiments, steps 103 and 104 comprise:
circularly executing in a preset starting time to obtain a current detection value, and judging the magnitude relation between the current detection value and the maximum value;
if the current detection value is larger than the maximum value, displaying the maximum value;
if the current detection value is smaller than or equal to the maximum value, displaying the current detection value;
until the preset starting time is reached.
In some embodiments, the preset activation time period T0 takes a value of 2 minutes,
in some embodiments, displaying the current detected value if the current detected value is less than or equal to the maximum value comprises:
acquiring a detection value average value in a first preset duration;
if the average value of the detected values is smaller than a pre-stored first threshold value, the step of judging the relationship between the current detected value and the maximum value is not executed any more, and the current detected value is directly displayed.
In the method provided by the embodiment of the invention, if the average value of the detected values in the first preset time period is smaller than the first threshold value, the current detected values are smaller as a whole and cannot reach the preset maximum value, and the operation of judging the relationship between the detected values and the maximum value is not needed to be continued so as to avoid the display of the excessive value.
In a specific example, during the T0 period, if the average of the continuous detection occurs sufficiently small, e.g., the average is less than 0.04 in 10 seconds, the numerical limitation by Dmax is no longer performed.
Specifically, the mean value calculating method includes, but is not limited to, directly calculating a plurality of data mean values in a continuous time; calculating a plurality of data average values after removing the maximum value and the minimum value in a period of continuous time; after calculating the average value of a plurality of data in a period of continuous time, calculating the average value of the value and the front and rear numerical values in the period by taking the average value as a reference.
Through the mean value calculation, the method provided by the embodiment of the invention can be used for rapidly and accurately displaying the detection data for the user and improving the use experience.
Further, if the standby time is long, for example, exceeds one hour, the numerical limitation is not performed by Dmax.
In some embodiments, the method provided by the invention further comprises:
numerical value display is carried out according to preset frequency;
the current display value satisfies Dn+1 is less than or equal to Dn+Kn and Dn+1 is more than or equal to Dn-Jn and is constantly greater than zero, wherein Dn is the previous display value, dn+1 is the current display value, kn is a random number in a first preset interval, and Jn is a random number in a second preset interval.
In a specific example, the display value is updated at a preset frequency, which may be selected to be updated once for 3 seconds. In order to avoid data mutation in the process of each update, the value range of the new data is calculated according to the last data.
In some embodiments, dn+1 is less than or equal to Dn+Kn, and Dn+1 is less than or equal to Dn-Jn; where Kn and Jn are random numbers limited by a maximum variation value, e.g., 10, then Kn is a random number between 5 and 10 and Jn is a random number between 7 and 10. And the display value Dn should be greater than zero at any time.
Alternatively, such methods are applied in air purifiers and the like to improve the speed and accuracy of numerical display.
Aiming at the problem of large data fluctuation of the electrochemical sensor in the preheating stage, the method provided by the embodiment of the invention adopts a mode of calculating the data average value in continuous time to improve the speed and accuracy of displaying the numerical value.
Further, the embodiment of the invention provides a fault recovery method of an electrochemical sensor, wherein continuous time data-free uploading or data uploading cannot be judged to be a fault stage through verification. The verification means that the main control program performs frame header, frame length, command word, verification code and frame tail on the sensor data.
And the recovery after the fault mainly comprises the step of sending a reset command to the sensor within the interval time of the main control program until the sensor responds to the reset command. And in the period of waiting for the reset response, judging whether the data uploaded by the sensor is the reset response, and if not, judging whether the data is normally uploaded until the fault is recovered.
The method provided by the embodiment of the invention aims at the sensor which works outdoors or is arranged in the air purifier for a long time, and can ensure the normal operation of the device in the fault recovery stage.
The method provided by the embodiment of the invention can solve the problems of calibration and fault recovery of the detection value of the electrochemical sensor through an auxiliary algorithm, and improves the effectiveness, stability and detection speed of the detection value. The display numerical value of the electrochemical sensor is limited in the change range under the specific application condition, the consistency and smoothness of the display of the detection value are realized, abnormal abrupt change of the display caused by power failure or EFT interference is avoided, and the use experience of a user is improved.
Embodiment II,
Fig. 2 is a schematic flow chart of another implementation of the numerical display method according to the embodiment of the present invention.
Referring to fig. 2, in a specific example, the implementation procedure of the numerical display method provided by the embodiment of the present invention is as follows.
After the electrochemical sensor is started, the interval time from shutdown to startup is judged.
And calculating the display upper limit in a short time based on the shutdown display numerical value and the shutdown time.
The data acquired every time, for example, three seconds, is not allowed to be too far from the last displayed data, and a specific sampled value is displayed under the limitation of this condition.
The numerical value display of the traditional electrochemical sensor has large numerical value variation in the starting-up stage, for example, the numerical value is detected and displayed once every three seconds after starting up, and if the numerical value is displayed for the first time of 0.050 and displayed for 0.100 after three seconds, the numerical value can be obviously hopped, so that negative impression is brought to a user.
The traditional electrochemical sensor also has the condition that the display of numerical value jumps after long-time standby, for example, the power-off or standby is carried out when the display numerical value is 0.050, the electrochemical sensor is powered off, for example, the display of 0.100 is carried out after the detection of the power-on again, and the condition of numerical value jumps is obvious.
Fig. 3 is a schematic flow chart of another implementation of the numerical display method according to the embodiment of the present invention.
Referring to fig. 3, taking formaldehyde detection as an example, the implementation process of the numerical display method provided by the embodiment of the invention is as follows.
Judging whether the first startup is within 1 hour after startup, and if the first startup is not within 1 hour, recalling the last display value Dend before the last shutdown. And counting the standby time xT between the last shutdown and the current startup, and calculating the upper limit Dmax of the current display through Dend and xT.
In a specific example, the duration of the standby is counted as xT with the time period T as a counting unit, and the display value does not exceed dmax=dend+ax, where a is a constant. Alternatively, T takes 20 seconds and a takes 0.001.
If the first power-on within one hour is judged, the detection data of the sensor are directly displayed, and the upper limit Dmax of the current display is set to be infinity.
And acquiring the current formaldehyde value Dn from the sensor, and judging whether the Dn exceeds Dmax. If Dn exceeds Dmax, then let dn=dmax, and if not, then not change Dn value.
And providing Dn for the display module to display.
Further, whether Dn is smaller than or equal to Dn-1+Kn-1 is judged, if so, dn is displayed directly, and if not, dn=Dn-1+Kn-1 is displayed. Wherein Dn is the formaldehyde value currently detected, dn-1 is the last formaldehyde value detected, kn-1 is a random number limited by the maximum change value, for example, the maximum change value is 10, and Kn-1 is a random number between 5 and 10. The change amplitude of the current formaldehyde value and the last formaldehyde value is displayed through the random number, so that jump of display data is avoided.
The above steps are circularly executed until the starting time exceeds T0.
In summary, the numerical display method provided by the embodiment of the invention can reduce jump of the display value when the electrochemical sensor is powered on, avoid obvious abnormality of the display value caused by interference factors, and avoid the problem of inconsistent data before and after power on.
Third embodiment,
Fig. 4 is a schematic structural diagram of a numerical display device according to an embodiment of the present invention.
Referring to fig. 4, a numerical display apparatus provided in an embodiment of the present invention may include:
the standby data acquisition module 201 is configured to receive a startup instruction, and acquire standby time and a standby value before standby;
a maximum value calculation module 202, configured to calculate a maximum value based on the standby time and the standby value;
the value judging module 203 is configured to obtain a current detection value, and judge a magnitude relation between the current detection value and the maximum value;
and the numerical value display module 204 is configured to display the maximum numerical value if the current detected numerical value is greater than the maximum numerical value.
In some embodiments, the maximum value calculation module 202 is specifically configured to:
calculating the maximum value based on dmax=dend+ax, where Dmax is the maximum value, dend is the standby value, a is a constant coefficient, and X is the standby time.
In some embodiments, the numerical value judging module 230 and the numerical value displaying module 204 are specifically configured to:
circularly executing in a preset starting time to obtain a current detection value, and judging the magnitude relation between the current detection value and the maximum value;
if the current detection value is larger than the maximum value, displaying the maximum value;
if the current detection value is smaller than or equal to the maximum value, displaying the current detection value;
until the preset starting time is reached.
In some embodiments, the numerical display module 204 is specifically configured to:
acquiring a detection value average value in a first preset duration;
if the average value of the detected values is smaller than a pre-stored first threshold value, the step of judging the relationship between the current detected value and the maximum value is not executed any more, and the current detected value is directly displayed. .
In some embodiments, the apparatus is further to:
numerical value display is carried out according to preset frequency;
the current display value satisfies Dn+1 is less than or equal to Dn+Kn and Dn+1 is more than or equal to Dn-Jn and is constantly greater than zero, wherein Dn is the previous display value, dn+1 is the current display value, kn is a random number in a first preset interval, and Jn is a random number in a second preset interval.
In summary, the device provided by the embodiment of the invention can reduce the jump of the display value when the electrochemical sensor is powered on, avoid obvious abnormality of the display value caused by interference factors, and avoid the problem of inconsistent data before and after power on.
Fourth embodiment,
Fig. 5 shows a schematic structural diagram of a computer device according to an exemplary embodiment of the present application, where the computer device includes:
processor 301, including one or more processing cores, executes various functional applications and data processing by running software programs and modules by processor 301.
The receiver 302 and the transmitter 303 may be implemented as one communication component, which may be a communication chip. Alternatively, the communication component may be implemented to include a signaling function. That is, the transmitter 303 may be used to transmit control signals to the image acquisition device and the scanning device, and the receiver 302 may be used to receive corresponding feedback instructions.
The memory 304 is connected to the processor 301 by a bus 305.
The memory 304 may be used for storing at least one instruction, and the processor 301 is configured to execute the at least one instruction to implement steps 101 to 102 in the above-described control method embodiment.
It will be appreciated by those skilled in the art that fig. 4 is merely an example of a computer device and is not limiting of the computer device, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the computer device may also include a network access device, etc.
The processor 301 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 304 may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. The memory 304 may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like. Further, the memory 304 may also include both internal storage units and external storage devices of the computer device. The memory 304 is used for storing the computer program and other programs and data required by the terminal device. The memory 304 may also be used to temporarily store data that has been output or is to be output.
Fifth embodiment (V),
The embodiment of the application also provides an electrochemical sensor system, which comprises an electrochemical sensor, a display device and the computer device.
Embodiment six,
Embodiments of the present application also provide an air purifier comprising an electrochemical sensor system as described above.
Embodiment seven,
The embodiment of the application also provides a computer readable storage medium, wherein at least one instruction, at least one section of program, code set or instruction set is stored in the readable storage medium, so as to be loaded and executed by a processor to realize the numerical value display method.
Alternatively, the computer-readable storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), solid state disk (SSD, solid State Drives), or optical disk, etc. The random access memory may include resistive random access memory (ReRAM, resistance Random Access Memory) and dynamic random access memory (DRAM, dynamic Random Access Memory), among others.
Example eight,
The present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the numerical display method according to any one of the above embodiments.
The foregoing embodiment numbers of the present application are merely for description, and do not represent the advantages and disadvantages of the implementation.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, and the program may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc. It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (10)

1. A method of displaying a numerical value, the method comprising:
receiving a starting instruction, and acquiring standby time and standby value before standby;
calculating a maximum value based on the standby time and the standby value;
acquiring a current detection value, and judging the magnitude relation between the current detection value and the maximum value;
and if the current detection value is larger than the maximum value, displaying the maximum value.
2. The method of claim 1, wherein calculating a maximum value based on the standby time and standby value comprises:
calculating the maximum value based on dmax=dend+ax, where Dmax is the maximum value, dend is the standby value, a is a constant coefficient, and X is the standby time.
3. The method according to claim 1, wherein the obtaining a current detection value, and determining a magnitude relation between the current detection value and the maximum value; and if the current detection value is greater than the maximum value, displaying the maximum value, including:
circularly executing in a preset starting time to obtain a current detection value, and judging the magnitude relation between the current detection value and the maximum value;
if the current detection value is larger than the maximum value, displaying the maximum value;
if the current detection value is smaller than or equal to the maximum value, displaying the current detection value;
until the preset starting time is reached.
4. A method according to claim 3, wherein displaying the current detected value if the current detected value is less than or equal to the maximum value comprises:
acquiring a detection value average value in a first preset duration;
if the average value of the detected values is smaller than a pre-stored first threshold value, the step of judging the relationship between the current detected value and the maximum value is not executed any more, and the current detected value is directly displayed.
5. The method according to any one of claims 1 to 4, further comprising:
numerical value display is carried out according to preset frequency;
the current display value satisfies Dn+1 is less than or equal to Dn+Kn and Dn+1 is more than or equal to Dn-Jn and is constantly greater than zero, wherein Dn is the previous display value, dn+1 is the current display value, kn is a random number in a first preset interval, and Jn is a random number in a second preset interval.
6. A numerical display device, characterized in that the device comprises:
the standby data acquisition module is used for receiving a starting instruction and acquiring standby time and standby values before standby;
the maximum value calculation module is used for calculating the maximum value based on the standby time and the standby value;
the numerical value judging module is used for acquiring a current detection numerical value and judging the magnitude relation between the current detection numerical value and the maximum numerical value;
and the numerical value display module is used for displaying the maximum numerical value if the current detection numerical value is larger than the maximum numerical value.
7. A computer device comprising a processor and a memory having stored therein at least one instruction, at least one program, code set, or instruction set that is loaded and executed by the processor to implement the method of numerical display of any of claims 1 to 5.
8. An electrochemical sensor system comprising an electrochemical sensor, a display device, and the computer device of claim 7.
9. An air purifier comprising the electrochemical sensor system of claim 8.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, code set, or instruction set, loaded and executed by a processor to implement the method of numerical display of any one of claims 1 to 5.
CN202311248363.2A 2023-09-26 2023-09-26 Numerical value display method and device, computer equipment and air purifier Pending CN117329648A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311248363.2A CN117329648A (en) 2023-09-26 2023-09-26 Numerical value display method and device, computer equipment and air purifier

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311248363.2A CN117329648A (en) 2023-09-26 2023-09-26 Numerical value display method and device, computer equipment and air purifier

Publications (1)

Publication Number Publication Date
CN117329648A true CN117329648A (en) 2024-01-02

Family

ID=89278341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311248363.2A Pending CN117329648A (en) 2023-09-26 2023-09-26 Numerical value display method and device, computer equipment and air purifier

Country Status (1)

Country Link
CN (1) CN117329648A (en)

Similar Documents

Publication Publication Date Title
CN111836347B (en) Electric quantity display method, device, equipment and readable storage medium
CN112285478B (en) Method and device for detecting vehicle static current, medium, equipment and vehicle
CN115480171A (en) Battery voltage acquisition fault early warning method and system
US20230160600A1 (en) Communication control method and apparatus for air conditioner, and communication system and readable storage medium
CN114236461B (en) Electric quantity calibration method, electronic equipment and storage medium
CN114115503B (en) System and method for automatically adjusting CPU voltage alarm threshold
CN117329648A (en) Numerical value display method and device, computer equipment and air purifier
CN111475343B (en) Computer state outage restoration method and device and terminal equipment
CN106354119B (en) Power-down time recording method, system and device for microcomputer relay protection device
CN111024410B (en) Power overrun fault detection method and device for vehicle, vehicle and storage medium
CN111102750A (en) Blower control method, blower control device and storage medium
CN116449072A (en) Static current testing method and device, battery controller, vehicle and storage medium
CN109388217B (en) Method, device and system for determining duration of unpowered hard disk
CN114624569A (en) Sensor circuit abnormality detection method, circuit, device, intelligent device, and medium
CN113961029A (en) Method, device and medium for improving output voltage precision
CN112505548A (en) Method and related device for monitoring service life of CMOS battery
CN110781146A (en) Event storage method, power terminal and computer-readable storage medium
CN111856310B (en) Power Distribution Unit Monitoring System
CN111355624B (en) Self-adaptive equipment performance acquisition method and device
CN116729289A (en) Method and device for monitoring dormant current of vehicle, vehicle and storage medium
CN114528183B (en) Offline prediction method, device and equipment of LoRa equipment and readable storage medium
CN113224959B (en) Inverter control method and UPS
CN113485284B (en) Message data processing method, device, equipment and storage medium
CN115729313A (en) Method and device for calibrating real-time clock and electronic equipment
CN114859260A (en) Low-power-consumption power supply monitoring method and system for power supply microprocessor

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