CN115096344A - Data real-time display method and device, electronic equipment and storage medium - Google Patents

Data real-time display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115096344A
CN115096344A CN202210523510.1A CN202210523510A CN115096344A CN 115096344 A CN115096344 A CN 115096344A CN 202210523510 A CN202210523510 A CN 202210523510A CN 115096344 A CN115096344 A CN 115096344A
Authority
CN
China
Prior art keywords
sensor data
data
sensor
display
curve
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
CN202210523510.1A
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 CN202210523510.1A priority Critical patent/CN115096344A/en
Publication of CN115096344A publication Critical patent/CN115096344A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D7/00Indicating measured values
    • G01D7/02Indicating value of two or more variables simultaneously
    • G01D7/08Indicating value of two or more variables simultaneously using a common indicating element for two or more variables
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D7/00Indicating measured values

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a data real-time display method, which comprises the following steps: acquiring sensor data of a target sensor; generating a display curve based on the sensor data; and outputting the display curve. The method can display the sensor value in real time and draw points to a screen, so that a user or a research and development personnel can visually analyze the data.

Description

Data real-time display method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for displaying data in real time, an electronic device, and a storage medium.
Background
The screen used by the air purifier in the market at present replaces a digital tube by a color screen slowly, and with the wide application of the color screen, the display method of only displaying one numerical value of a sensor cannot meet the requirements of users and developers. There is some uncertainty in the method of displaying only the current value in real time, for example, the current value may be due to sensor abnormality: firstly, if the current actual air quality is 10, but the value detected by the sensor is 5, the user and the developer cannot know whether the current value is an abnormal value in a short time, and some unnecessary problems can be caused; secondly, the sensor normally displays that the fault is suddenly abnormal for 5 seconds, and the fault is recovered after 5 seconds, similar to the problem of short-term probability, the difficulty of troubleshooting of developers and maintainers is greatly increased.
In the prior art, a color screen can only display a sensor value in real time, however, when data acquired by a sensor is abnormal, the real-time display of the sensor value cannot provide visual analysis for a user or a developer, so that the user or the developer cannot determine whether the current data is abnormal data in a short time. The problems not only increase the difficulty of development and maintenance, but also reduce the user experience, and also increase the probability of complaints after sale.
Disclosure of Invention
In order to solve the problems, the application provides a data real-time display method, a data real-time display device, an electronic device and a storage medium, and solves the problem that a color screen can only display one sensor value in real time in the prior art.
In a first aspect, the present application provides a method for displaying data in real time, where the method includes:
acquiring sensor data of a target sensor;
generating a display curve based on the sensor data;
and outputting the display curve.
In some embodiments, the sensor data includes first sensor data and second sensor data, the first sensor data and the second sensor data are data acquired at two adjacent time points; the generating a display curve based on the sensor data includes:
determining whether an absolute value of a difference between the first sensor data and the second sensor data exceeds a threshold;
generating a first display curve in the event that an absolute value of a difference between the first sensor data and the second sensor data does not exceed the threshold;
generating a second display curve in a case where an absolute value of a difference between the first sensor data and the second sensor data exceeds the threshold, wherein the first display curve and the second display curve are different.
In some embodiments, the generating a second display curve in the case that an absolute value of a difference between the first sensor data and the second sensor data exceeds a threshold value includes:
judging whether the first sensor data is larger than the second sensor data;
generating first correction data that is a self-subtraction from the first sensor data to the second sensor data when the first sensor data is larger than the second sensor data;
a second display curve is generated based on the first correction data, the first sensor data, and the second sensor data.
In some embodiments, the method further comprises:
generating second correction data that is self-increasing from the first sensor data to the second sensor data when the first sensor data is smaller than the second sensor data;
a second display curve is generated based on the second correction data, the first sensor data, and the second sensor data.
In some embodiments, the generating a second display curve based on the first correction data, the first sensor data, and the second sensor data includes:
generating a correction curve of a second color based on the first correction number;
respectively generating a normal curve of the first color based on the first sensor data and the second sensor data;
and generating a second display curve based on the correction curve and the normal curve.
In some embodiments, the generating a first display curve in the event that an absolute value of a difference between the first sensor data and the second sensor data does not exceed a threshold comprises:
in a case where a difference between the first sensor data and the second sensor data does not exceed the threshold, a first display curve is generated using the first color.
In some embodiments, the acquiring sensor data of a target sensor includes:
acquiring initial data;
analyzing the initial data to obtain data header information of the initial data;
determining sensor data for the target sensor based on the header information.
In a second aspect, the present application provides a data real-time display device, the device comprising:
the acquisition module is used for acquiring sensor data of the target sensor;
a generation module to generate a display curve based on the sensor data;
and the output module is used for outputting the display curve.
In a third aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, performs the data real-time display method according to any one of the first aspect.
In a fourth aspect, the present application provides a storage medium storing a computer program executable by one or more processors and operable to implement a method of real-time display of data as claimed in any one of the first aspect.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
according to the data real-time display method and device, the electronic equipment and the storage medium, the sensor value can be displayed in real time, and points are drawn on a screen for a user or a research and development staff to visually analyze the data.
Drawings
The present application will be described in more detail hereinafter on the basis of embodiments and with reference to the accompanying drawings:
fig. 1 is a schematic diagram illustrating an implementation flow of a data real-time display method provided in an embodiment of the present application;
fig. 2 is a flowchart illustrating an overall implementation of a data real-time display method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating an implementation of abnormal rendering of a data real-time display method according to an embodiment of the present application;
fig. 4 is a conceptual diagram of a data real-time display method provided in an embodiment of the present application when displaying a certain problem; in the figure, 1 is a normal curve of a first color, and 2 is a correction curve of a second color;
fig. 5 is a schematic structural diagram of a data real-time display device according to an embodiment of the present application.
Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
The following description will be added if a similar description of "first \ second \ third" appears in the application file, and in the following description, the terms "first \ second \ third" merely distinguish similar objects and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may be interchanged under certain circumstances in a specific order or sequence, so that the embodiments of the application described herein can be implemented in an order other than that shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Example one
With the wide application of color screens, the method for displaying the sensor value only slowly fails to meet the requirements of developers and users, and provides a real-time data display method which can perform special processing on abnormal data, display the sensor value in real time and draw points on the screen. When abnormal data appear in unit time, data correction drawing can be carried out, abnormal values are highlighted, when the values are abnormal due to some special conditions, the troubleshooting range can be immediately shortened, and the problem solving efficiency is improved. The method is not limited to the use of the sensor, and can be used for visual analysis of other data; the method is not limited to single data analysis, and can be carried out on multiple groups of data simultaneously; the method is not limited to air purifier products, and all color screen devices with similar data anomaly analysis can be applied.
Fig. 1 is a schematic flow chart of an implementation of a data real-time display method according to an embodiment of the present application, please refer to fig. 1, where the method is applied to an electronic device, and the electronic device may be a computer, a mobile terminal, and the like. The functions realized by the data real-time display method provided by the embodiment of the application can be realized by calling a program code by a processor of an electronic device, wherein the program code can be stored in a computer storage medium, and the embodiment provides a data real-time display method, which comprises the following steps:
step S1, acquiring sensor data of a target sensor;
step S2, generating a display curve based on the sensor data;
and step S3, outputting the display curve.
In some embodiments, acquiring sensor data of a target sensor comprises: acquiring initial data; analyzing the initial data to obtain data header information of the initial data; determining sensor data for the target sensor based on the header information.
Illustratively, as shown in fig. 2, the method comprises the following steps:
step S11, initializing the MCU;
step S12, initializing a sensor module;
step S13, MCU receives sensor value, judges whether the data head is correct; if not, the value is discarded and the process returns to step S13; if so, go to the next step S14;
step S14, drawing a curve;
and step S15, the last group of data is cached, and the new received data is processed in a combined mode, abnormal conditions are judged, and drawing is conducted.
In some embodiments, the sensor data comprises first sensor data and second sensor data, the first sensor data and the second sensor data being data acquired at two adjacent time points; the generating a display curve based on the sensor data includes: determining whether an absolute value of a difference between the first sensor data and the second sensor data exceeds a threshold; generating a first display curve in the event that an absolute value of a difference between the first sensor data and the second sensor data does not exceed the threshold; generating a second display curve in a case where an absolute value of a difference between the first sensor data and the second sensor data exceeds the threshold, wherein the first display curve and the second display curve are different in color.
Illustratively, the first display curve is a normal curve, generated with a first color. The second display curve is a correction curve and is generated by using a second color.
According to the method, the abnormal range of the sensor can be clearly reduced, when a developer finds a problem, the problem can be clearly found through drawing of the sensor data, and the debugging efficiency is greatly improved.
In some embodiments, said generating a second display curve in the event that an absolute value of a difference between the first sensor data and the second sensor data exceeds a threshold comprises: judging whether the first sensor data is larger than the second sensor data; generating first correction data that is a self-subtraction from the first sensor data to the second sensor data when the first sensor data is larger than the second sensor data; a second display curve is generated based on the first correction data, the first sensor data, and the second sensor data.
The first sensor data is data obtained before the second sensor data, the first sensor data and the second sensor data are data obtained at adjacent time points, if the first sensor data is larger than the second sensor data, the data drop mode is shock reduction, and under the condition that the data drop mode is shock reduction, a group of drawing point data which is self-reduction from the first sensor data to the second sensor data is generated, namely first correction data. A second display curve is then generated based on the first correction data, the first sensor data, and the second sensor data.
In some embodiments, the method further comprises: generating second correction data that is self-increasing from the first sensor data to the second sensor data when the first sensor data is smaller than the second sensor data; a second display curve is generated based on the second correction data, the first sensor data, and the second sensor data.
If the first sensor data is smaller than the second sensor data, the data drop mode is surge, and under the condition that the data drop mode is surge, a group of drawing point data from the first sensor data to the second sensor data is generated, namely second correction data. A second display curve is then generated based on the second correction data, the first sensor data, and the second sensor data.
Illustratively, as shown in fig. 3, step S15 further includes the steps of:
step S151 of determining whether the absolute value of the difference between the first sensor data a and the second sensor data B per unit time exceeds a threshold value;
if not, go to step S155;
if the threshold value is exceeded, executing step S152;
step S152, judging whether the falling mode from the first sensor data A to the second sensor data B is sharp decrease or sharp increase;
step S153, if the data is sharp subtraction, generating a group of drawing point data from the first sensor data A to the second sensor data B; if the data is a sharp increase, generating a group of drawing point data which is self-increased from the first sensor data A to the second sensor data B;
step S154, completing the self-decreasing drawing point data and the self-increasing drawing point data by red (second color), namely drawing a correction curve;
in step S155, a curve is drawn normally.
In some embodiments, the generating a second display curve based on the first correction data, the first sensor data, and the second sensor data includes: generating a correction curve 2 of a second color based on the first correction number; respectively generating a normal curve 1 of a first color based on the first sensor data and the second sensor data; and generating a second display curve based on the correction curve and the normal curve.
In some embodiments, the generating a second display curve based on the second correction data, the first sensor data, and the second sensor data includes: generating a correction curve of a second color based on the second correction number; respectively generating a normal curve 1 of a first color based on the first sensor data and the second sensor data; and generating a second display curve based on the correction curve and the normal curve.
In some embodiments, said generating a first display curve in the event that an absolute value of a difference between the first sensor data and the second sensor data does not exceed a threshold comprises: in the event that the difference between the first sensor data and the second sensor data does not exceed the threshold, a first display curve is generated using the first color.
The real-time data display method provided by the embodiment can be used for specially processing abnormal data, displaying the sensor value in real time and drawing points on a screen. When abnormal data appear in unit time, data correction drawing can be carried out, abnormal values are highlighted, when the values are abnormal due to some special conditions, the troubleshooting range can be immediately shortened, and the problem solving efficiency is improved. The method can provide great convenience for the data anomaly analysis of developers in the product development process. The method can also facilitate the problem troubleshooting of after-sales and related maintenance personnel, and can help the after-sales and related maintenance personnel to quickly locate the problem range. When the problem machine is taken by after-sale and related maintenance personnel at the first time, the problem machine can be quickly positioned according to abnormal data reminding, and the maintenance difficulty is reduced.
Example two
On the basis of the first embodiment, the present embodiment explains the method described in the first embodiment by a specific implementation case. Taking an air purifier as an example, the processing for displaying the abnormal data of the color screen equipment of the air purifier is specifically as follows:
air purifier application sensor technology detects corresponding air quality (PM2.5), and after the sensor normally worked, microcontroller MCU received the data that the sensor transmission was come, checked data again: discarding when the received value is illegal, and checking the next group of data until normal data is generated; and determining corresponding pixel coordinates according to the normal data, and finally displaying the pixel coordinates on a display module.
In some embodiments, after the microcontroller MCU processes and draws the first set of data (i.e., the first sensor data in the first embodiment), the set of data is buffered, and after the drawing of the next set of data (i.e., the second sensor data in the first embodiment) is completed, the data is compared with the last set of buffered data (i.e., the first sensor data in the first embodiment): comparing the absolute value of the difference between the two sets of data (i.e. the absolute value of the difference between the first sensor data and the second sensor data in the first embodiment) with a set value (threshold) in unit time (plotting time), and if the absolute value of the difference between the two sets of data is smaller than the set value, indicating that the data is normal, and directly performing normal data point plotting; if the absolute value of the difference between the two groups of data is greater than or equal to the set value, it indicates that the difference between the current detection values of the sensor is large, and it needs to make a rapid increase or rapid decrease judgment, if the difference is rapid increase, a group of self-increasing correction data is generated between the new and old groups of data, the self-increasing data is firstly drawn on the display module by red (i.e. the second color in the first embodiment), and then the new data is drawn in the next unit time; and in the same way of reduction, the self-reduction data is drawn by red, and then the new data is drawn.
As shown in fig. 4, fig. 4 is a conceptual diagram showing a problem in the method, taking the example that a sensor module of an air purifier acquires PM2.5 data, a horizontal axis represents time, and a vertical axis represents a PM2.5 value. The PM2.5 value acquired by the sensor in the first time period (for example, the first 3 seconds) is a continuously changing value and is normally displayed on the color screen, as shown in the normal curve 1 of the first color in fig. 4; suddenly abnormal for 5 seconds, wherein the PM2.5 value acquired within the 5 seconds is 0, and the value is normally displayed on a color screen; and after 5 seconds, the PM2.5 value acquired by the sensor is recovered to be normal, and the PM2.5 value is continuously and normally displayed on the color screen. At the time of both the sudden abnormality and the return to normal, the correction data is used for plotting and normally displaying on the color screen, as shown by the correction curve 2 of the second color in fig. 4. Circles represent data points plotted for a set of data, green (black in fig. 4, i.e., the first color in the first embodiment) represents points plotted against values normally transmitted by the sensor to the MCU, and red (gray in fig. 4, i.e., the second color in the first embodiment) represents data points corrected for data anomalies.
According to the method, the abnormal data can be specially processed, the sensor value can be displayed in real time, and the point can be drawn on the screen. The abnormal data can be corrected and drawn when the abnormal data appear in unit time, the abnormal value is highlighted, the abnormal range of the sensor can be clearly reduced, when a developer finds a problem, the problem can be clearly drawn through the sensor data, the debugging efficiency is greatly improved, and the method can provide great convenience for the data abnormality analysis of the developer in the product development process. The method can also facilitate the problem troubleshooting of after-sales and related maintenance personnel, and can help the after-sales and related maintenance personnel to quickly locate the problem range. When the problem machine is taken by after-sale and related maintenance personnel at the first time, the problem machine can be quickly positioned according to abnormal data reminding, and the maintenance difficulty is reduced.
Meanwhile, the method can enable a user to observe sudden change of short-term related data, make corresponding measures according to displayed abnormity (for example, PM2.5 value is increased suddenly, the user can analyze the environment in the period of time, and can make measures for opening an air purifier and the like).
The method for displaying data in real time provided by the embodiment is not limited to the analysis of abnormal data of the sensor, and can also be used for other modules for debugging similar data, such as: the method is used for analyzing the stable rotating speed of the motor, the packet loss rate of the communication module and the like. The method can draw a plurality of groups of data, can be used for analyzing various interactive data in a huge project, such as an air purifier with high-temperature disinfection, can simultaneously display various air quality, temperature, motor rotating speed and the like, and is used for monitoring the working stability of the whole machine in real time. The method is not limited to air purifier products, and all color screen devices similar to the data anomaly analysis can be applied, such as color screen ovens and other products. The method focuses on data exception processing and display analysis of real-time detection of a sensor and the like, and aims to improve the application efficiency.
EXAMPLE III
Fig. 5 is a schematic structural diagram of a data real-time display device according to an embodiment of the present application, please refer to fig. 5, in which the embodiment provides a data real-time display device 200, including:
an obtaining module 201, configured to obtain sensor data of a target sensor;
a generating module 202 for generating a display curve based on the sensor data;
and the output module 203 is used for outputting the display curve.
It should be noted that the obtaining module 201 in this embodiment may be configured to execute the step S1 in this embodiment, the generating module 202 in this embodiment may be configured to execute the step S2 in this embodiment, and the output module 203 in this embodiment may be configured to execute the step S3 in this embodiment.
The modules are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the disclosure of the above embodiments.
In some embodiments, the obtaining module 201 is configured to obtain initial data, analyze the initial data to obtain data header information of the initial data, and determine sensor data of the target sensor based on the data header information. The sensor data includes first sensor data and second sensor data, and the first sensor data and the second sensor data are data acquired at two adjacent time points.
In some embodiments, the generating module 202, generating a display curve based on the sensor data, includes: determining whether an absolute value of a difference between the first sensor data and the second sensor data exceeds a threshold; generating a first display curve in the event that an absolute value of a difference between the first sensor data and the second sensor data does not exceed the threshold; generating a second display curve in a case where an absolute value of a difference between the first sensor data and the second sensor data exceeds the threshold, wherein the first display curve and the second display curve are different in color.
In some embodiments, the generating module 202, in the event that the absolute value of the difference between the first sensor data and the second sensor data exceeds a threshold, generates a second display curve, comprising: judging whether the first sensor data is larger than the second sensor data; generating first correction data that is a self-subtraction from the first sensor data to the second sensor data when the first sensor data is larger than the second sensor data; a second display curve is generated based on the first correction data, the first sensor data, and the second sensor data.
The first sensor data is data obtained before the second sensor data, the first sensor data and the second sensor data are data obtained at adjacent time points, if the first sensor data is larger than the second sensor data, the data drop mode is shock reduction, and under the condition that the data drop mode is shock reduction, a group of drawing point data which is self-reduction from the first sensor data to the second sensor data is generated, namely first correction data. A second display curve is then generated based on the first correction data, the first sensor data, and the second sensor data.
In some embodiments, the method further comprises: the generating module 202 generates second correction data that is self-increasing from the first sensor data to the second sensor data when the first sensor data is smaller than the second sensor data; a second display curve is generated based on the second correction data, the first sensor data, and the second sensor data.
If the first sensor data is smaller than the second sensor data, the data drop mode is surge, and under the condition that the data drop mode is surge, a group of drawing point data from the first sensor data to the second sensor data is generated, namely second correction data. A second display curve is then generated based on the second correction data, the first sensor data, and the second sensor data.
In some embodiments, the generating module 202, generating the second display curve based on the first correction data, the first sensor data, and the second sensor data, includes: generating a correction curve 2 of a second color based on the first correction number; respectively generating a normal curve 1 of a first color based on the first sensor data and the second sensor data; and generating a second display curve based on the correction curve and the normal curve.
In some embodiments, the generating module 202, generating the second display curve based on the second correction data, the first sensor data, and the second sensor data, includes: generating a correction curve of a second color based on the second correction number; respectively generating a normal curve 1 of a first color based on the first sensor data and the second sensor data; and generating a second display curve based on the correction curve and the normal curve.
In some embodiments, the generation module 202, in the event that the absolute value of the difference between the first sensor data and the second sensor data does not exceed the threshold, generates a first display curve, comprising: in the event that the difference between the first sensor data and the second sensor data does not exceed the threshold, a first display curve is generated using the first color.
Example four
The embodiment of the application provides an electronic device, which may be a mobile phone, a computer, a tablet computer, or the like, and includes a memory and a processor, where the memory stores a computer program, and the computer program is executed by the processor to implement the data real-time display method as described in the first embodiment. It is understood that the electronic device may also include multimedia components, input/output (I/O) interfaces, and communication components.
The processor is configured to execute all or part of the steps in the data real-time display method according to the first embodiment. The memory is used to store various types of data, which may include, for example, instructions for any application or method in the electronic device, as well as application-related data.
The Processor may be an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, and is configured to perform the data real-time display method in the first embodiment.
The Memory may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk.
EXAMPLE five
The present embodiments also provide a computer readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc., having stored thereon a computer program that when executed by a processor, performs the method steps of:
step S1, acquiring sensor data of a target sensor;
a step S2 of generating a display curve based on the sensor data;
and step S3, outputting the display curve.
The specific embodiment process of the above method steps can refer to embodiment one, and details are not repeated here.
In summary, according to the data real-time display method, the data real-time display device, the electronic device and the storage medium, the method can be used for specially processing abnormal data, displaying the sensor value in real time and drawing a point on a screen. When abnormal data appear in unit time, data correction drawing can be carried out, abnormal values are highlighted, when the values are abnormal due to some special conditions, the troubleshooting range can be immediately shortened, and the problem solving efficiency is improved. The method is not limited to the use of the sensor, and can be used for visual analysis of other data; the method is not limited to single data analysis, and can be carried out on multiple groups of data simultaneously; the method is not limited to air purifier products, and all color screen devices with similar data anomaly analysis can be used.
In the several embodiments provided in the embodiments of the present application, it should be understood that the disclosed data real-time display method may also be implemented in other ways. The above-described method embodiments are merely illustrative.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
Although the embodiments disclosed in the present application are described above, the descriptions are only for the convenience of understanding the present application and are not intended to limit the present application. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims.

Claims (10)

1. A real-time data display method is characterized by comprising the following steps:
acquiring sensor data of a target sensor;
generating a display curve based on the sensor data;
and outputting the display curve.
2. The method of claim 1, wherein the sensor data comprises first sensor data and second sensor data, the first sensor data and the second sensor data being data acquired at two adjacent time points; the generating a display curve based on the sensor data includes:
determining whether an absolute value of a difference between the first sensor data and the second sensor data exceeds a threshold;
generating a first display curve in the event that the absolute value of the difference between the first sensor data and the second sensor data does not exceed the threshold;
generating a second display curve in a case where an absolute value of a difference between the first sensor data and the second sensor data exceeds the threshold, wherein the first display curve and the second display curve are different.
3. The method of claim 2, wherein generating a second display curve in the event that an absolute value of a difference between the first sensor data and the second sensor data exceeds a threshold value comprises:
determining whether the first sensor data is greater than the second sensor data;
generating first correction data that is a self-subtraction from the first sensor data to the second sensor data when the first sensor data is larger than the second sensor data;
a second display curve is generated based on the first correction data, the first sensor data, and the second sensor data.
4. The method of claim 3, further comprising:
generating second correction data that is self-increasing from the first sensor data to the second sensor data when the first sensor data is smaller than the second sensor data;
a second display curve is generated based on the second correction data, the first sensor data, and the second sensor data.
5. The method of claim 3, wherein generating a second display curve based on the first correction data, the first sensor data, and the second sensor data comprises:
generating a correction curve of a second color based on the first correction number;
respectively generating a normal curve of the first color based on the first sensor data and the second sensor data;
and generating a second display curve based on the correction curve and the normal curve.
6. The method of claim 2, wherein generating a first display curve in the event that an absolute value of a difference between the first sensor data and the second sensor data does not exceed a threshold value comprises:
in the event that the difference between the first sensor data and the second sensor data does not exceed the threshold, a first display curve is generated using the first color.
7. The method of claim 1, wherein the acquiring sensor data of a target sensor comprises:
acquiring initial data;
analyzing the initial data to obtain data header information of the initial data;
determining sensor data for the target sensor based on the header information.
8. A device for real-time display of data, said device comprising:
the acquisition module is used for acquiring sensor data of the target sensor;
a generation module to generate a display curve based on the sensor data;
and the output module is used for outputting the display curve.
9. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that, when executed by the processor, performs a method of real-time display of data according to any one of claims 1 to 7.
10. A storage medium storing a computer program executable by one or more processors for implementing a method of real-time display of data as claimed in any one of claims 1 to 7.
CN202210523510.1A 2022-05-13 2022-05-13 Data real-time display method and device, electronic equipment and storage medium Pending CN115096344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210523510.1A CN115096344A (en) 2022-05-13 2022-05-13 Data real-time display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210523510.1A CN115096344A (en) 2022-05-13 2022-05-13 Data real-time display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115096344A true CN115096344A (en) 2022-09-23

Family

ID=83287238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210523510.1A Pending CN115096344A (en) 2022-05-13 2022-05-13 Data real-time display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115096344A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268230A (en) * 2017-09-14 2018-07-10 平安科技(深圳)有限公司 Instrument board display methods, device, terminal device and storage medium
CN110631624A (en) * 2019-09-04 2019-12-31 精英数智科技股份有限公司 Method, device and system for identifying abnormal operation data of mine sensor
CN111414586A (en) * 2020-03-31 2020-07-14 北京派得伟业科技发展有限公司 Environment monitoring method and system
CN111650345A (en) * 2020-07-14 2020-09-11 中科三清科技有限公司 Method, device, equipment and medium for processing atmospheric environmental pollution detection data
CN111931860A (en) * 2020-09-01 2020-11-13 腾讯科技(深圳)有限公司 Abnormal data detection method, device, equipment and storage medium
CN111945393A (en) * 2020-07-08 2020-11-17 无锡小天鹅电器有限公司 Water inlet control method and device, clothes treatment equipment and storage medium
CN112528227A (en) * 2020-11-18 2021-03-19 浙江蓝卓工业互联网信息技术有限公司 Sensor abnormal data identification method based on mathematical statistics
CN112882889A (en) * 2021-01-22 2021-06-01 北京奇艺世纪科技有限公司 Abnormality monitoring method, abnormality monitoring system, electronic device, and storage medium
CN113392378A (en) * 2021-07-16 2021-09-14 中南大学 Surrounding rock deformation multipoint mutation identification method and system based on time sequence
CN113762717A (en) * 2021-08-03 2021-12-07 国能国华(北京)电力研究院有限公司 Equipment running state monitoring method and device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268230A (en) * 2017-09-14 2018-07-10 平安科技(深圳)有限公司 Instrument board display methods, device, terminal device and storage medium
CN110631624A (en) * 2019-09-04 2019-12-31 精英数智科技股份有限公司 Method, device and system for identifying abnormal operation data of mine sensor
CN111414586A (en) * 2020-03-31 2020-07-14 北京派得伟业科技发展有限公司 Environment monitoring method and system
CN111945393A (en) * 2020-07-08 2020-11-17 无锡小天鹅电器有限公司 Water inlet control method and device, clothes treatment equipment and storage medium
CN111650345A (en) * 2020-07-14 2020-09-11 中科三清科技有限公司 Method, device, equipment and medium for processing atmospheric environmental pollution detection data
CN111931860A (en) * 2020-09-01 2020-11-13 腾讯科技(深圳)有限公司 Abnormal data detection method, device, equipment and storage medium
CN112528227A (en) * 2020-11-18 2021-03-19 浙江蓝卓工业互联网信息技术有限公司 Sensor abnormal data identification method based on mathematical statistics
CN112882889A (en) * 2021-01-22 2021-06-01 北京奇艺世纪科技有限公司 Abnormality monitoring method, abnormality monitoring system, electronic device, and storage medium
CN113392378A (en) * 2021-07-16 2021-09-14 中南大学 Surrounding rock deformation multipoint mutation identification method and system based on time sequence
CN113762717A (en) * 2021-08-03 2021-12-07 国能国华(北京)电力研究院有限公司 Equipment running state monitoring method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107509107B (en) Method, device and equipment for detecting video playing fault and readable medium
CN111178760B (en) Risk monitoring method, risk monitoring device, terminal equipment and computer readable storage medium
CN110162451B (en) Performance analysis method, performance analysis device, server and storage medium
CN111741002B (en) Method and device for training network intrusion detection model
CN109271600B (en) Method, system and device for monitoring performance data
CN107797922B (en) Application page testing method, electronic device and electronic equipment
CN115545058A (en) Water meter data analysis method and system and readable storage medium
CN111738463A (en) Operation and maintenance method, device, system, electronic equipment and storage medium
CN107483481A (en) A kind of industrial control system attacking and defending analog platform and its implementation
CN114996103A (en) Page abnormity detection method and device, electronic equipment and storage medium
CN111554219A (en) Display equipment testing method and device, electronic product and storage medium
CN113315760A (en) Situation awareness method, system, equipment and medium based on knowledge graph
WO2017095362A1 (en) Generating application flow entities
CN108108299B (en) User interface testing method and device
CN113538629A (en) Detection method and device
CN113204455A (en) Method, equipment and storage medium for automatically detecting user interface display abnormity
CN115096344A (en) Data real-time display method and device, electronic equipment and storage medium
CN116450907A (en) Process route visual setting method, system and readable storage medium
CN107807885B (en) Task information display method and device
CN115904883A (en) RPA flow execution visualization abnormity monitoring method, device and medium
CN115908360A (en) Monitoring video inspection method and device, electronic equipment and storage medium
CN113593074B (en) Method and device for generating monitoring video
CN115934179A (en) Service function control method and equipment
CN108932148A (en) Pop-up management method and device
CN113835961A (en) Alarm information monitoring method, device, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220923