Report generation method and device, electronic equipment and storage medium
By obtaining the total washing time and preset time, determining the report sub-data, and generating target reports based on these data, the problem of inaccurate washing report data under the power-down memory function is solved, and the accuracy and user experience of the report are improved.
Patent Information
- Application Number
- CN202310973561.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-03
- Publication Date
- 2025-02-14
AI Technical Summary
When the existing cleaning report activates the power-down memory function during the washing process, the displayed data is much different from the data during normal operation, which can easily cause misleading to the user and lead to a poor user experience.
By acquiring the total washing time and the preset time, the report sub-data is determined, including the electricity consumption and water consumption. If the power-down memory function is turned on, the data is determined based on the preset average value, otherwise it is determined based on the display data of the washing equipment. Finally, target reports are generated based on these data.
The generated report sub-data is more accurate, the accuracy of target reports is improved, and the user experience is improved as a result.
Smart Images

Figure CN119433902A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and specifically provides a report generating method, device, electronic equipment and storage medium. Background Art
[0002] At present, a communication connection is established between the washing device and the user's smart terminal, and relevant washing data of the washing device can be sent to the user's smart terminal to generate a report for display, so that the user can know the washing-related situation in time.
[0003] However, the existing washing care report for washing with power-off memory activated during the washing process only displays the relevant washing data after power-off and power-on, which is quite different from the displayed data when the washing program is running normally, and can easily mislead users, resulting in a poor user experience.
[0004] Accordingly, the art needs a new report generation solution to solve the above problems. Summary of the invention
[0005] In order to overcome the above defects, the present invention is proposed to solve or at least partially solve the above technical problems. The present invention provides a report generation method, device, electronic device and storage medium.
[0006] In a first aspect, the present invention provides a report generation method, after a washing program is finished, the method comprising:
[0007] Obtain the total duration of this washing and the preset duration corresponding to the washing program;
[0008] Determine report sub-data based on the total washing time and the preset time;
[0009] A target report is generated based on the report sub-data.
[0010] In one embodiment, the determining of the reporting sub-data based on the total washing time and the preset time includes:
[0011] Based on the total washing time and the preset time, determining whether the washing device has turned on the power-off memory function during the washing process;
[0012] If yes, determining the report sub-data based on a preset average value;
[0013] If not, the report sub-data is determined based on the display data on the display panel of the washing equipment.
[0014] In one embodiment, determining whether the washing device has a power-off memory function turned on during the washing process includes:
[0015] Determine the difference between the total washing time and the preset time;
[0016] Determine whether the time difference is greater than a preset time threshold;
[0017] If so, it is determined that the washing device has turned on the power-off memory function during the washing process.
[0018] In one embodiment, the determining whether the washing device has turned on the power-off memory function during the washing process further includes:
[0019] Determining whether the total washing time is greater than a preset percentage of the preset time;
[0020] If so, it is determined that the washing device has turned on the power-off memory function during the washing process.
[0021] In one embodiment, the report sub-data includes at least electricity consumption and water consumption, and the preset average value is the average value of the local water consumption and the average value of the local electricity consumption corresponding to the washing program;
[0022] The determining the report sub-data based on a preset average value includes: taking an average value of the local water consumption and an average value of the local electricity consumption corresponding to the washing program as the report sub-data.
[0023] In one embodiment, generating a target report based on the report sub-data includes:
[0024] Get preset report templates;
[0025] The report sub-data is loaded into the corresponding position of the preset report template to obtain the target report.
[0026] In one embodiment, the method further includes: displaying the target report on a terminal device where the user is located.
[0027] In a second aspect, the present invention provides a report generating device, after the washing program is finished, the device comprises:
[0028] An acquisition module, the acquisition module is configured to acquire the total duration of this washing and the preset duration corresponding to the washing program;
[0029] A determination module, the determination module being configured to determine report sub-data based on the total washing time and the preset time;
[0030] A generating module is configured to generate a target report based on the report sub-data.
[0031] In a third aspect, an electronic device is provided, comprising at least one processor and at least one storage device, wherein the storage device is suitable for storing a plurality of program codes, wherein the program codes are suitable for being loaded and run by the processor to execute any of the report generation methods described above.
[0032] In a fourth aspect, a computer-readable storage medium is provided, wherein a plurality of program codes are stored in the computer-readable storage medium, wherein the program codes are suitable for being loaded and run by a processor to execute any of the report generation methods described above.
[0033] The above one or more technical solutions of the present invention have at least one or more of the following beneficial effects:
[0034] The report generation method of the present invention specifically includes: obtaining the total duration of this washing and the preset duration corresponding to the washing program, determining report sub-data based on the total duration of washing and the preset duration, and generating a target report based on the report sub-data. In this way, accurate report sub-data are obtained, a target report with high accuracy is generated, and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In addition, similar numbers in the figures are used to represent similar components, among which:
[0036] Figure 1 is a flow chart of main steps of a report generation method according to an embodiment of the present invention;
[0037] Figure 2 is a schematic diagram of a process for determining report sub-data based on the total washing time and the preset time according to an embodiment of the present invention;
[0038] Figure 3 is a complete flow chart of steps of a report generation method according to an embodiment of the present invention;
[0039] Figure 4 is a schematic diagram of a main structural block diagram of a report generating device according to an embodiment of the present invention;
[0040] Figure 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
[0041] Reference numerals list :
[0042] 11: Acquisition module; 12: Determination module; 13: Generation module. DETAILED DESCRIPTION
[0043] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0044] In the description of the present invention, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, and memories, and may also include software parts, such as program codes, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware, or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program codes, such as a magnetic disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, and the like. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B", and may include only A, only B, or A and B. The singular terms "one" and "the" may also include plural forms.
[0045] Currently, the traditional washing and care report for the washing process in which the power-off memory is activated only displays the relevant data after the power-off and power-on. This is quite different from the displayed data when the washing program is operating normally, which can easily mislead users and lead to a poor user experience.
[0046] To this end, the present application proposes a report generation method, device, electronic device and storage medium, which specifically include: obtaining the total washing time and the preset time corresponding to the washing program, determining the report sub-data based on the total washing time and the preset time, and generating a target report based on the report sub-data. In this way, when the washing machine starts the power-off memory function during the washing process, the report sub-data with a small difference from the normal washing data is obtained, and a target report with high accuracy is generated, which improves the user experience.
[0047] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the report generation method of the present application is described in detail below in conjunction with the accompanying drawings and embodiments, taking a washing machine as an example of a washing device. It should be understood by those skilled in the art that the specific embodiments described herein are only used to explain the present invention, and are not intended to limit the report generation method described in the present invention to use a washing machine as a washing device.
[0048] See attached Figure 1 , Figure 1It is a flowchart of main steps of a report generation method according to an embodiment of the present invention.
[0049] like Figure 1 As shown, after the washing procedure is finished, the report generating method in the embodiment of the present invention mainly includes the following steps S100 to S300.
[0050] Step S100: Obtain the total duration of this washing and the preset duration corresponding to the washing program.
[0051] Step S200: Determine report sub-data based on the total washing time and the preset time.
[0052] Specifically, the report sub-data includes at least the power consumption and the water consumption. In some embodiments, other washing parameters may also be included, such as the number of rinses, etc.
[0053] Step S300: Generate a target report based on the report sub-data.
[0054] The target report refers to the APP washing and care report, which is used to display on the user's terminal device so that the user can know the relevant situation during the washing process in a timely manner.
[0055] Based on the above steps S100 to S300, the process specifically includes: obtaining the total duration of this washing and the preset duration corresponding to the washing program, determining report sub-data based on the total duration of washing and the preset duration, and generating a target report based on the report sub-data. In this way, when the washing machine starts the power-off memory function during the washing process, report sub-data with a small difference from the normal washing data is obtained, and a target report with high accuracy is generated, thereby improving the user experience.
[0056] The above steps S100 to S300 are further explained below.
[0057] For step S100, the total duration of this washing and the preset duration corresponding to the washing program are obtained.
[0058] The total washing time is the total time it takes for the washing machine to complete the washing program. If the power-off memory is activated during the washing process, the total washing time is the sum of the washing time before the power-off and the washing time after the power-off is restored.
[0059] The preset duration of a washing program refers to the total duration after all washing parameters corresponding to the washing program are executed. For example, for a quick wash program, if the corresponding washing parameters are: washing time of 3 minutes, rinsing number of times, normal temperature, and spin speed of 800 rpm, the total duration is 15 to 18 minutes.
[0060] The above is a further description of step S100 , and the following is a further description of step S200 .
[0061] Specific as Figure 2 As shown, the above step S200 can be implemented through the following steps S201 to S203.
[0062] Step S201: Based on the total washing time and the preset time, determine whether the washing device has turned on the power-off memory function during the washing process. If so, execute the following step S202; if not, execute the following step S203.
[0063] Current washing equipment, such as washing machines, basically have a power-off memory function. If a power outage occurs due to a power outage or the user accidentally unplugs the power cord, the washing equipment will be restarted through the power-off memory after the power is restored or the power cord is plugged in. After detecting that the power is on (power on / powered on), the washing machine is controlled to continue the washing operation process before the power outage according to the washing operation status memorized before the power outage.
[0064] Specifically, the present application determines whether the power-off memory function of the washing device is activated during the washing process through the following two methods.
[0065] In a specific embodiment, the determining whether the washing device has turned on the power-off memory function during the washing process includes:
[0066] Determining the difference between the total washing time and the preset time;
[0067] Determine whether the difference is greater than a preset time threshold;
[0068] If so, it is determined that the washing device has turned on the power-off memory function during the washing process.
[0069] Specifically, the difference between the total washing time and the preset time is first determined, and then it is determined whether the difference is greater than the preset time threshold. If the difference is greater than the preset time threshold, it is determined that the power-off memory function of the washing device is turned on during the washing process.
[0070] The preset time threshold may be a predetermined value obtained in advance through experiments. For example, 20 minutes may be used as an example of the preset time threshold, but is not limited thereto.
[0071] In another specific embodiment, the determining whether the washing device has turned on the power-off memory function during the washing process further includes:
[0072] Determining whether the total washing time is greater than a preset percentage of the preset time;
[0073] If so, it is determined that the washing device has turned on the power-off memory function during the washing process.
[0074] Specifically, it can also be determined whether the power-off memory function of the washing device is turned on during the washing process by judging whether the total washing time is greater than a preset percentage of the preset time.
[0075] The preset percentage may be a determined value obtained in advance through experiments. For example, 35% may be used as an example of the preset percentage, but is not limited thereto.
[0076] Exemplarily, when the total washing time is greater than 35% of the preset time, it is determined that the power-off memory function of the washing device is turned on during the washing process.
[0077] In this way, the above two methods can accurately determine whether the washing device has activated the power-off memory function during the washing process, thereby improving the accuracy of the determination.
[0078] Step S202: Determine the report sub-data based on a preset average value.
[0079] In a specific embodiment, the report sub-data includes at least electricity consumption and water consumption, and the preset average value is the average value of the local water consumption and the average value of the local electricity consumption corresponding to the washing program;
[0080] The determining the report sub-data based on a preset average value includes: taking an average value of the local water consumption and an average value of the local electricity consumption corresponding to the washing program as the report sub-data.
[0081] Specifically, after determining that the washing machine has activated the power-off memory function during the washing process, the server obtains the local average power and water consumption according to the washing program and the washing parameters corresponding to the washing program, and uses it as the report sub-data. In this way, the report sub-data that is consistent with the actual situation is obtained, which is conducive to improving the accuracy of the generated target report and avoiding the misleading of users caused by the APP washing report only showing the washing data after power-off-power-on.
[0082] Step S203: Determine the report sub-data based on the display data on the display panel of the washing device.
[0083] Specifically, after determining that the power-off memory function of the washing machine is not activated during the washing process, the display data on the display panel of the washing machine is directly used as the report sub-data. In this way, the report sub-data consistent with the actual situation is obtained, which is conducive to improving the accuracy of the generated target report.
[0084] The above is a further description of step S200 , and the following is a further description of step S300 .
[0085] With respect to step S300, in a specific implementation manner, generating a target report based on the report sub-data includes:
[0086] Get preset report templates;
[0087] The report sub-data is loaded into the corresponding position of the preset report template to obtain the target report.
[0088] Specifically, the database stores a preset report template for the APP cleaning report, which includes static content and dynamic content, wherein the static content refers to some fixed content of the template, and the dynamic content refers to the content that the template needs to load or match dynamically. The report sub-data obtained in this embodiment is dynamic content, which needs to be dynamically matched to the corresponding position of the preset report template to obtain the final target report.
[0089] In this way, a target report with higher accuracy is obtained, which provides users with washing and care data with higher accuracy, thereby improving the user experience.
[0090] In a specific implementation, the method further includes: displaying the target report on a terminal device where the user is located.
[0091] The terminal device can be a smartphone, smart watch or other device used by the user.
[0092] Specifically, the target report is the APP washing and care report, which can intuitively display the relevant washing data of the washing machine during the washing process. After the target report is generated, it will be displayed on the user's terminal for the user to view, so that the user can know the relevant information of the washing process in time, improving the user experience.
[0093] Figure 3 It is a complete flow chart of steps of a report generation method according to an embodiment of the present invention.
[0094] like Figure 3 As shown, the complete step flow chart of the report generation method can be specifically implemented through the following steps S301 to S304.
[0095] Step S301: After the washing process is finished, the total time of this washing process is obtained.
[0096] Step S302: The program runs to the end, and the server verifies the data to check whether the total time spent on running the program this time meets the preset time corresponding to the program.
[0097] Step S303: If there is inconsistency, calculate the time difference first. If the difference is more than 20 minutes or the actual total duration is greater than 35% of the program duration, we will judge it as the washing machine running the power-off memory. After the program ends, the data reported by the APP washing and care report cannot be obtained from the actual reported value on the bottom plate, but through big data matching, give the user an average value data. If it is consistent, the water and electricity data reported by the normal bottom plate of the washing machine will be displayed in the APP washing and care report.
[0098] Step S304: Generate an APP cleaning report and display it on the user's terminal device.
[0099] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.
[0100] Furthermore, the present invention also provides a report generating device.
[0101] See attached Figure 4 , Figure 4 It is a main structural block diagram of a report generating device according to an embodiment of the present invention.
[0102] like Figure 4 As shown, the report generating device in the embodiment of the present invention mainly includes an acquiring module 11 , a determining module 12 and a generating module 13 .
[0103] In some embodiments, one or more of the acquisition module 11 , the determination module 12 and the generation module 13 may be combined into one module.
[0104] In some embodiments, the acquisition module 11 may be configured to acquire the total duration of this washing and the preset duration corresponding to the washing program.
[0105] The determination module 12 may be configured to determine the report sub-data based on the total washing time and the preset time.
[0106] The generating module 13 may be configured to generate a target report based on the report sub-data.
[0107] In one implementation, the description of the specific implementation functions may refer to steps S100 to S300.
[0108] Through the report generation device in the present application, the acquisition module specifically acquires the total washing time and the preset time corresponding to the washing program, the determination module determines the report sub-data based on the total washing time and the preset time, and the generation module generates the target report based on the report sub-data. In this way, when the washing machine starts the power-off memory function during the washing process, the report sub-data with a small difference from the normal washing data is obtained, and a target report with high accuracy is generated, which improves the user experience.
[0109] The report generating device is used to execute Figure 1 The report generation method embodiment shown in the figure has similar technical principles, technical problems solved and technical effects produced. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process and related instructions of the report generation device can refer to the contents described in the report generation method embodiment, which will not be repeated here.
[0110] It is understood by those skilled in the art that the present invention implements all or part of the processes in the method of the above embodiment, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0111] Furthermore, the present invention also provides an electronic device. In an embodiment of the electronic device according to the present invention, specifically as follows Figure 5 As shown, the electronic device includes at least one processor 51 and at least one storage device 52. The storage device 52 may be configured to store a program for executing the report generation method of the above method embodiment, and the processor 51 may be configured to execute the program in the storage device 52, which includes but is not limited to the program for executing the report generation method of the above method embodiment. For ease of description, only the part related to the embodiment of the present invention is shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention.
[0112] In the embodiment of the present invention, the electronic device may be a control device device formed by various devices. In some possible implementations, the electronic device may include multiple storage devices and multiple processors. The program for executing the report generation method of the above method embodiment may be divided into multiple subprograms, and each subprogram may be loaded and run by a processor to execute different steps of the report generation method of the above method embodiment. Specifically, each subprogram may be stored in different storage devices, and each processor may be configured to execute the programs in one or more storage devices to jointly implement the report generation method of the above method embodiment, that is, each processor executes different steps of the report generation method of the above method embodiment, to jointly implement the report generation method of the above method embodiment.
[0113] The above-mentioned multiple processors may be processors deployed on the same device. For example, the above-mentioned electronic device may be a high-performance device composed of multiple processors, and the above-mentioned multiple processors may be processors configured on the high-performance device. In addition, the above-mentioned multiple processors may also be processors deployed on different devices. For example, the above-mentioned electronic device may be a server cluster, and the above-mentioned multiple processors may be processors on different servers in the server cluster.
[0114] Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium can be configured to store a program for executing the report generation method of the above method embodiment, and the program can be loaded and run by the processor to implement the above report generation method. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-transitory computer-readable storage medium.
[0115] Further, it should be understood that since the setting of each module is only for illustrating the functional units of the device of the present invention, the physical devices corresponding to these modules may be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.
[0116] Those skilled in the art will appreciate that the modules in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present invention, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present invention.
[0117] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A report generation method, characterized in that: After the washing process is finished, the method comprises: Obtain the total duration of this washing and the preset duration corresponding to the washing program; Determine report sub-data based on the total washing time and the preset time; A target report is generated based on the report sub-data.
2. The report generation method according to claim 1, characterized in that: The determining of the report sub-data based on the total washing time and the preset time includes: Based on the total washing time and the preset time, determining whether the washing device has turned on the power-off memory function during the washing process; If yes, determining the report sub-data based on a preset average value; If not, the report sub-data is determined based on the display data on the display panel of the washing equipment.
3. The report generation method according to claim 2, characterized in that: The step of determining whether the washing device has a power-off memory function turned on during the washing process includes: Determine the difference between the total washing time and the preset time; Determine whether the difference is greater than a preset time threshold; If so, it is determined that the washing device has turned on the power-off memory function during the washing process.
4. The report generation method according to claim 2, characterized in that: The determining whether the washing device has turned on the power-off memory function during the washing process also includes: Determining whether the total washing time is greater than a preset percentage of the preset time; If so, it is determined that the washing device has turned on the power-off memory function during the washing process.
5. The report generation method according to claim 2, characterized in that: The report sub-data at least includes electricity consumption and water consumption, and the preset average value is the average value of the local water consumption and the average value of the local electricity consumption corresponding to the washing program; The determining the report sub-data based on a preset average value includes: taking an average value of the local water consumption and an average value of the local electricity consumption corresponding to the washing program as the report sub-data.
6. The report generation method according to claim 1, characterized in that: The generating a target report based on the report sub-data comprises: Get preset report templates; The report sub-data is loaded into the corresponding position of the preset report template to obtain the target report.
7. The report generation method according to claim 1, characterized in that: The method further includes: displaying the target report on a terminal device where the user is located.
8. A report generating device, characterized in that: After the washing process is finished, the device comprises: An acquisition module, the acquisition module is configured to acquire the total duration of this washing and the preset duration corresponding to the washing program; A determination module, the determination module being configured to determine report sub-data based on the total washing time and the preset time; A generating module is configured to generate a target report based on the report sub-data.
9. An electronic device comprising at least one processor and at least one storage device, wherein the storage device is suitable for storing a plurality of program codes, wherein: The program code is suitable for being loaded and executed by the processor to execute the report generating method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and executed by a processor to execute the report generating method according to any one of claims 1 to 7.