Online rate determination method and device, storage medium and electronic device

By obtaining the online time period and offline time period of home appliances on the application, the online rate of home appliances is calculated, which solves the problem that the online situation of home appliances cannot be accurately estimated in the prior art, and improves the reliability of user experience and device connection.

CN116009409BActive Publication Date: 2025-03-25HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211635122.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-19
Publication Date
2025-03-25
Estimated Expiration
2042-12-19

AI Technical Summary

Technical Problem

The data model of the existing user-side equipment online rate cannot accurately estimate the online situation of home appliances on the user-side equipment, resulting in a decrease in user satisfaction and the problem of equipment connection with the cloud.

Method used

By obtaining the first online time period displayed by the home appliance device on the application, the offline time period offline on the cloud server, and the running time period when the application is running in the foreground, the second online time period and the longest online time period are calculated, thereby determining the online rate of the home appliance device on the application.

Benefits of technology

Accurately determine the online rate of home appliances on the user-side equipment, improve the online status accuracy of the user-side equipment, enhance the user experience, and solve the problem of device connection with the cloud.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116009409B_ABST
    Figure CN116009409B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for determining an online rate, a storage medium and an electronic device, and relates to the field of smart home technology. The method for determining the online rate includes: obtaining a first online time period during which a home appliance is displayed online on an application, an offline time period during which the home appliance is offline on a cloud server, and a running time period during which the application is running in the foreground; determining a second online time period and a longest online time period corresponding to the home appliance according to the first online time period, the offline time period, and the running time period, wherein the second online time period is used to indicate the time period during which the home appliance is actually displayed online in the application when the application is running in the foreground, and the longest online time period is used to indicate the longest time period during which the home appliance is displayed online in the application when the application is running in the foreground; and determining the online rate of the home appliance on the application according to the second online time period and the longest online time period.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular, to a method and device for determining an online rate, a storage medium, and an electronic device. Background Art

[0002] As the types of home appliances in the current home appliance market increase, it has become a common phenomenon for users to view the status of home appliances or control them through applications on user-side devices. Therefore, when viewing the status of home appliances or controlling them in applications, try to ensure that the home appliances are online and controllable. From the perspective of business management, the online rate of user-side devices of home appliances has a very important influence. The online rate of user-side devices can measure the online status of the devices and can also measure the user experience from the side.

[0003] In the related technology, it is impossible to accurately estimate the online status of home appliances on the user side only by relying solely on the existing data model of the online rate of user side devices. For example, if an individual device itself is online but the application on the user side device shows offline, it will not only affect the overall user satisfaction, but also cause problems in the connection between the device and the cloud.

[0004] In the related technology, the existing data model of user-side device online rate cannot accurately estimate the online status of home appliances on the user side, and no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a method and device for determining an online rate, a storage medium, and an electronic device, so as to at least solve the problem in the related art that the online status of home appliances on the user side cannot be accurately estimated through the existing data model of the online rate of user-side devices.

[0006] According to an embodiment of the embodiments of the present application, a method for determining an online rate is provided, comprising: obtaining a first online time period during which a home appliance is displayed as online on an application, an offline time period during which the home appliance is offline on a cloud server, and a running time period during which the application is running in the foreground, wherein the application is an application for controlling the home appliance, and the offline time period is used to indicate an offline time period during which the home appliance is offline on the cloud server when the application is running in the foreground; determining a second online time period and a longest online time period corresponding to the home appliance according to the first online time period, the offline time period, and the running time period, wherein the second online time period is used to indicate a time period during which the home appliance is actually displayed as online in the application when the application is running in the foreground, and the longest online time period is used to indicate the longest time period during which the home appliance is displayed as online in the application when the application is running in the foreground; and determining the online rate of the home appliance on the application according to the second online time period and the longest online time period.

[0007] In an exemplary embodiment, determining a second online time period and a longest online time period corresponding to the household appliance according to the first online time period, the offline time period, and the running time period includes: determining the second online time period corresponding to the household appliance according to the first online time period and the running time period, and determining the longest online time period corresponding to the household appliance according to the offline time period and the running time period.

[0008] In an exemplary embodiment, determining the second online time period corresponding to the household appliance according to the first online time period and the operating time period includes: calculating the intersection time period of the first online time period and the operating time period, and determining the intersection time period as the second online time period; determining the longest online time period corresponding to the household appliance according to the offline time period and the operating time period includes: calculating the difference time period between the operating time period and the offline time period, and determining the difference time period as the longest online time period.

[0009] In an exemplary embodiment, the online rate of the home appliance on the application is determined based on the second online time period and the longest online time period, including: determining, based on the second online time period, the online time duration that the home appliance actually displays as online in the application when the application is running in the foreground, and determining, based on the longest online time period, the maximum time duration that the home appliance displays as online in the application; calculating the ratio of the online time duration to the maximum time duration; and determining the ratio as the online rate of the home appliance on the application.

[0010] In an exemplary embodiment, obtaining the first online time period when the home appliance device is displayed online on the application includes at least one of the following: determining the first online time period according to the first time point when the home appliance device is displayed online on the application and the second time point when the home appliance device is displayed offline on the application, wherein the first time point is prior to the second time point; determining the first online time period according to the first time point when the home appliance device is displayed online on the application and the third time point of the last log sent by the application during operation, wherein the first time point is prior to the third time point; determining the first online time period according to the first time point when the home appliance device is displayed online on the application and the fourth time point when the application enters the background for the last time during operation, wherein the first time point is prior to the fourth time point.

[0011] In an exemplary embodiment, obtaining the offline time period during which the home appliance is offline on the cloud server includes at least one of the following: in the running time period when the application is running in the foreground and there is a first operation in which the home appliance establishes a communication connection with the cloud service, determining the offline time period during which the home appliance is offline on the cloud server according to a fifth time point when the application enters the foreground and a sixth time point when the first operation is performed, wherein the fifth time point is prior to the sixth time point; in the running time period when the application is running in the foreground and there is a second operation in which the home appliance is disconnected from the cloud service, determining the offline time period during which the home appliance is offline on the cloud server according to a seventh time point when the second operation is performed and an eighth time point when the last log is sent by the application, wherein the seventh time point is prior to the eighth time point; in the running time period when the application is running in the foreground and there is a third operation in which the home appliance is disconnected from the cloud service and a fifth operation in which the home appliance is established, determining the offline time period during which the home appliance is offline on the cloud server according to a ninth time point when the third operation is performed and a tenth time point when the fifth operation is performed, wherein the ninth time point is prior to the tenth time point.

[0012] In an exemplary embodiment, obtaining the running time period when the application is running in the foreground includes: determining the eleventh time point when the application is started, the eleventh time point when the application enters the background, and the eleventh time point when the application enters the foreground, wherein the eleventh time point is prior to the eleventh time point, and the eleventh time point is prior to the eleventh time point; determining a first running time period based on the eleventh time point and the eleventh time point, and determining a second running time period based on the eleventh time point and the eleventh time point; and determining the union of the first running time period and the second running time period as the running time period.

[0013] According to another embodiment of the embodiment of the present application, a device for determining an online rate is also provided, including: an acquisition module, used to acquire a first online time period during which a home appliance is displayed online on an application, an offline time period during which the home appliance is offline on a cloud server, and a running time period during which the application is running in the foreground, wherein the application is an application for controlling the home appliance, and the offline time period is used to indicate an offline time period during which the home appliance is offline on the cloud server when the application is running in the foreground; a first determination module, used to determine a second online time period and a longest online time period corresponding to the home appliance according to the first online time period, the offline time period, and the running time period, wherein the second online time period is used to indicate a time period during which the home appliance is actually displayed online in the application when the application is running in the foreground, and the longest online time period is used to indicate the longest time period during which the home appliance is displayed online in the application when the application is running in the foreground; a second determination module, used to determine the online rate of the home appliance on the application according to the second online time period and the longest online time period.

[0014] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned online rate determination method when running.

[0015] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the online rate determination method through the computer program.

[0016] In an embodiment of the present application, a first online time period during which a home appliance is displayed online on an application, an offline time period during which the home appliance is offline on a cloud server, and a running time period during which the application is running in the foreground are obtained, wherein the application is an application for controlling the home appliance, and the offline time period is used to indicate an offline time period during which the home appliance is offline on the cloud server when the application is running in the foreground; a second online time period and a longest online time period corresponding to the home appliance are determined according to the first online time period, the offline time period, and the running time period, wherein the second online time period is used to indicate a time period during which the home appliance is actually displayed online in the application when the application is running in the foreground, and the longest online time period is used to indicate the longest time period during which the home appliance is displayed online in the application when the application is running in the foreground; an online rate of the home appliance on the application is determined according to the second online time period and the longest online time period; the above technical solution solves the problem that the online status of the home appliance on the user side device cannot be accurately estimated through the existing data model of the online rate of the user side device, and thus the online rate of the home appliance on the user side device can be accurately determined. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 It is a hardware environment schematic diagram of a method for determining an online rate according to an embodiment of the present application;

[0020] Figure 2 is a flow chart of a method for determining an online rate according to an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of a method for determining an online rate according to an embodiment of the present application;

[0022] Figure 4 is a data schematic diagram of a household appliance according to an embodiment of the present application;

[0023] Figure 5 It is a structural block diagram of a device for determining an online rate according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] According to one aspect of an embodiment of the present application, a method for determining an online rate is provided. The method for determining an online rate is widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned method for determining an online rate can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.

[0027] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.

[0028] In this embodiment, a method for determining an online rate is provided, which is applied to the above-mentioned computer terminal. Figure 2 : is a flow chart of a method for determining an online rate according to an embodiment of the present application, the flow chart includes the following steps:

[0029] Step S202, obtaining a first online time period during which the home appliance is displayed online on the application, an offline time period during which the home appliance is offline on the cloud server, and a running time period during which the application is running in the foreground, wherein the application is an application for controlling the home appliance, and the offline time period is used to indicate an offline time period during which the home appliance is offline on the cloud server when the application is running in the foreground;

[0030] It should be noted that "the home appliance is offline on the cloud server" can be understood as "the home appliance is disconnected from the cloud server". "The home appliance is displayed as online on the application" can be understood as "the home appliance is online and controllable".

[0031] Step S204, determining a second online time period and a longest online time period corresponding to the home appliance according to the first online time period, the offline time period, and the running time period, wherein the second online time period is used to indicate a time period during which the home appliance is actually displayed online in the application when the application is running in the foreground, and the longest online time period is used to indicate a longest time period during which the home appliance is displayed online in the application when the application is running in the foreground;

[0032] Step S206: determining the online rate of the home appliance on the application according to the second online time period and the longest online time period.

[0033] It should be noted that the online rate can be understood as the probability that the application on the user-side device is online even though the home appliance is connected to the cloud server. In addition, the user-side device can be a terminal device equipped with an application, which can include but is not limited to at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), laptops, tablet computers, PDAs, MIDs (Mobile Internet Devices), PADs, desktop computers, smart TVs, etc.

[0034] Through the above steps, the first online time period during which the home appliance is displayed online on the application, the offline time period during which the home appliance is offline on the cloud server, and the running time period during which the application is running in the foreground are obtained, wherein the application is an application for controlling the home appliance, and the offline time period is used to indicate the offline time period during which the home appliance is offline on the cloud server when the application is running in the foreground; the second online time period and the longest online time period corresponding to the home appliance are determined according to the first online time period, the offline time period, and the running time period, wherein the second online time period is used to indicate the time period during which the home appliance is actually displayed online in the application when the application is running in the foreground, and the longest online time period is used to indicate the longest time period during which the home appliance is displayed online in the application when the application is running in the foreground; the online rate of the home appliance on the application is determined according to the second online time period and the longest online time period, which solves the problem that the online status of the home appliance on the user side device cannot be accurately estimated through the existing data model of the online rate of the user side device in the related art, and thus the online rate of the home appliance on the user side device can be accurately determined.

[0035] Optionally, the above step S204 can be implemented by the following steps:

[0036] Step S11: determining the second online time period corresponding to the household appliance according to the first online time period and the running time period;

[0037] Specifically, an intersection time period of the first online time period and the running time period is calculated, and the intersection time period is determined to be the second online time period.

[0038] It should be noted that since the first online time period is used to indicate the time period when the home appliance device is displayed online on the application, and the running time period is used to indicate the running time period when the application is running in the foreground, the intersection time period of the first online time period and the running time period is used to indicate the time period when the home appliance device is displayed online on the application when the application is running in the foreground, and the second online time period can be determined based on the intersection time period.

[0039] Step S12: determining the longest online time period corresponding to the household appliance according to the offline time period and the operating time period.

[0040] Specifically, a difference time period between the running time period and the offline time period is calculated, and the difference time period is determined to be the longest online time period.

[0041] It should be noted that when the home appliance is offline on the cloud server, the application should display the home appliance as being offline. Therefore, the difference time period between the operating time period and the offline time period is used to indicate the longest time period during which the home appliance should be displayed as being online in the application. Therefore, the longest online time period of the home appliance can be determined based on the difference time period.

[0042] For example, the home appliance is disconnected from the cloud server at 12:00-12:15, and the application is running in the foreground at 11:50-12:20. Therefore, the longest online time period of the home appliance should be 11:50-12:00 and 12:15-12:20. It should be noted that the above values ​​are only for better understanding of the embodiments of the present invention, and the embodiments of the present invention are not limited thereto.

[0043] It should be noted that the execution order of the above steps 1 and 2 can be: step 1, step 2; it can also be: step 2, step 1, or step 1 and step 2 are executed in parallel. That is to say, the embodiment of the present invention does not limit the execution order of the above steps 1 and 2.

[0044] Optionally, the above step S206 can be implemented by the following steps:

[0045] Step S21: determining, according to the second online time period, the online time duration for which the home appliance is actually displayed as online in the application when the application is running in the foreground, and determining, according to the maximum online time period, the maximum time duration for which the home appliance is displayed as online in the application;

[0046] Step S22: Calculate the ratio of the online duration to the maximum duration; and determine the ratio as the online rate of the home appliance on the application.

[0047] For example, the home appliance is disconnected from the cloud server at 12:00-12:15, the application runs in the foreground at 11:50-12:20, and the home appliance is displayed online in the application only at 11:50-12:00. Therefore, the longest online time period of the home appliance is 11:50-12:00 and 12:15-12:20, the longest online time of the home appliance is 15 minutes, the second online time period of the home appliance is 11:50-12:00, and the online time of the home appliance in the application is actually 10 minutes. Further, the online rate of the home appliance in the application is 2 / 3. It should be noted that the above values ​​are only for better understanding of the embodiments of the present invention, and the embodiments of the present invention are not limited to this.

[0048] In an exemplary embodiment, obtaining the first online time period when the home appliance device is displayed online on the application includes at least one of the following: determining the first online time period according to the first time point when the home appliance device is displayed online on the application and the second time point when the home appliance device is displayed offline on the application, wherein the first time point is prior to the second time point; determining the first online time period according to the first time point when the home appliance device is displayed online on the application and the third time point of the last log sent by the application during operation, wherein the first time point is prior to the third time point; determining the first online time period according to the first time point when the home appliance device is displayed online on the application and the fourth time point when the application enters the background for the last time during operation, wherein the first time point is prior to the fourth time point.

[0049] It should be noted that, during the startup cycle of the application, the first time point when all home appliances are displayed online on the application, the first time point when the home appliances are displayed offline on the application, the third time point when the last log sent by the application during operation, and the fourth time point when the application last enters the background are obtained, and they are arranged in ascending chronological order;

[0050] Mode 1: When there is no first time point displayed as online between the last first time point, the third time point, and the fourth time point when the home appliance is displayed as offline on the application, the first online time period = (second time point 1-first time point 1) + ... + (second time point n-first time point n);

[0051] Method 2: When there is a first time point displayed as online between the last first time point and the third time point, and the fourth time point displayed as offline on the home appliance on the application, determine the size relationship between the third time point and the fourth time point. When the third time point is greater than the fourth time point, the first online time period = (second time point 1-first time point 1) +... + (second time point n-first time point n) + (fourth time point-first time point n+1); wherein, the first time point n+1 is the time point when the device was last online.

[0052] Method 3: When there is a first time point in which the home appliance device is displayed as online between the last first time point in which the home appliance device is displayed as offline on the application and the third time point, and there is no fourth time point in which the application last enters the background, the first online time period = (second time point 1-first time point 1) +... + (second time point n-first time point n) + (third time point-first time point n+1); wherein, the first time point n+1 is the time point in which the device was last online.

[0053] Method 4: When there is a first time point displayed as online between the last first time point and the third time point, and the fourth time point displayed as offline on the home appliance on the application, determine the size relationship between the third time point and the fourth time point. When the third time point is smaller than the fourth time point, the first online time period = (second time point 1-first time point 1) + ... + (second time point n-first time point n) + (third time point-first time point n+1); wherein, the first time point n+1 is the time point when the device was last online.

[0054] Method 5: If the device has only one first time point, then from the first time point to the third time point when the last log is sent by the application during operation or the fourth time point when the application last enters the background, the first online time period of the home appliance is (second time point 1-first time point 1) +... + (second time point n-first time point n) + (third time point-first time point n+1), or, the first online time period is (second time point 1-first time point 1) +... + (second time point n-first time point n) + (fourth time point-first time point n+1).

[0055] In an exemplary embodiment, obtaining the offline time period during which the home appliance is offline on the cloud server includes at least one of the following: in the running time period when the application is running in the foreground and there is a first operation in which the home appliance establishes a communication connection with the cloud service, determining the offline time period during which the home appliance is offline on the cloud server according to a fourth time point when the application enters the foreground and a fifth time point when the first operation is performed, wherein the fourth time point is prior to the fifth time point; in the running time period when the application is running in the foreground and there is a second operation in which the home appliance is disconnected from the cloud service, determining the offline time period during which the home appliance is offline on the cloud server according to a sixth time point when the second operation is performed and a seventh time point when the last log is sent by the application, wherein the sixth time point is prior to the seventh time point; in the running time period when the application is running in the foreground and there is a third operation in which the home appliance is disconnected from the cloud service and there is a fourth operation in which the home appliance is established, determining the offline time period during which the home appliance is offline on the cloud server according to an eighth time point when the third operation is performed and a ninth time point when the fourth operation is performed, wherein the eighth time point is prior to the ninth time point.

[0056] It should be noted that during the application startup cycle and within the time range when the application is running in the foreground, the device's own online and offline log data in the cloud are arranged in ascending chronological order, (ninth time point 1-eighth time point 1)+...+(ninth time point n-eighth time point n)+(seventh time point-sixth time point)+(fifth time point-fourth time point).

[0057] In an exemplary embodiment, obtaining the running time period when the application is running in the foreground includes: determining the tenth time point when the application is started, the eleventh time point when the application enters the background, and the twelfth time point when the application enters the foreground, wherein the tenth time point is prior to the eleventh time point, and the tenth time point is prior to the twelfth time point; determining a first running time period based on the eleventh time point and the tenth time point, and determining a second running time period based on the twelfth time point and the eleventh time point; and determining the union of the first running time period and the second running time period as the running time period.

[0058] It should be noted that, within the application startup cycle, the tenth time point of the first SDK to start the application, the twelfth time point when the application enters the foreground, and the eleventh time point when it enters the background are arranged in ascending chronological order, (eleventh time point 1-the tenth time point of the first SDK startup) + (eleventh time point 2-twelfth time point 1) + ... + (eleventh time point n-twelfth time point n-2) + (time point of the last log of the APP-twelfth time point n-1), among which the twelfth time point n-1 is the last time point to enter the foreground.

[0059] In order to better understand the process of the above-mentioned online rate determination method, the implementation method flow of the above-mentioned online rate determination is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.

[0060] In this embodiment, a method for determining an online rate is provided. In a life cycle of an APP, the online rate on the device user side = (device online ready time∩APP in the foreground time) / (APP in the foreground time-device offline time in the cloud).

[0061] It should be noted that the device online ready time is used to indicate the time during which the device is displayed online on the APP and can be controlled through the APP.

[0062] Optionally, an APP life cycle can be understood as: when the APP is started once, from the beginning to the end of the process, the same UUID is used in series in the tracking log. A UUID is created when the SDK is started, and all subsequent tracking SDK business layers in the entire life cycle will automatically use this UUID to fill in (it should be noted that a new UUID will not be generated when the APP is started repeatedly).

[0063] Alternatively, if Figure 3 As shown, the app's foreground time is determined by:

[0064] During the APP startup cycle, the first SDK startup point, the APP entering the foreground point and the APP entering the background point are arranged in ascending chronological order: (APP entering the background point ts_off_f-the first SDK startup point ts_on_f)+(APP entering the background point ts_off_1-APP entering the foreground point ts_on_1)+...+(APP entering the background point ts_off_n-APP entering the foreground point ts_on_n)+(APP last log point ts_off_e-the last APP entering the foreground point ts_on_e).

[0065] If there is only a point where the device enters the foreground, it is considered that the points from this point to the last link log of the entire APP cycle are all the time when the APP is in the foreground.

[0066] Optionally, the device online ready time is determined by:

[0067] In the same APP startup cycle and within the range of APP entering the foreground, all device offline points and device online ready points are arranged in ascending chronological order, (device offline point ts_off_1-device online ready point ts_on_1)+...+(device offline point ts_off_n-device online ready point ts_on_n)+(the last log point of APP or the point when APP enters the background ts_off_e-the last device online ready point ts_on_e).

[0068] If the device only has the device online ready point, it is considered that the device is in the online state from this point to the last link log of the entire APP cycle.

[0069] Optionally, the cloud device offline time is determined by the following method: in the same APP startup cycle and within the range of APP entering the foreground, the device's own cloud online and offline log data is arranged in ascending chronological order: (device cloud online point ts_on_1-device cloud offline point ts_off_1)+...+(device cloud online point ts_on_n-device cloud offline point ts_off_n)+(APP last log point or APP entering the background point ts_on_e-device cloud offline point ts_off_e)+(device cloud online point ts_on_f-APP entering the foreground point or starting the SDK point ts_off_f)

[0070] In an exemplary embodiment, Table 1 and Figure 4 Take the sample data of home appliances in as an example:

[0071] Table 1

[0072] Point marking Point interpretation startSDK Start APP logo EnterBackground APP enters the background EnterForeground APP enters the foreground Devst_1 User-side equipment is online and ready Devst_0 User-side device is offline Online Device cloud online Offline Device offline in the cloud

[0073] 1. Phase 1:

[0074] (APP in the foreground time - cloud device offline time) = (TS_5-TS_1)-(TS_2-TS_1);

[0075] (Device online ready time ∩ APP in the foreground time) = (TS_4-TS_3);

[0076] 2. Second stage:

[0077] (APP in the foreground time - cloud device offline time) = (TS_7 - TS_6);

[0078] (Device online ready time ∩ APP in the foreground time) = 0;

[0079] 3. The third stage:

[0080] (APP in the foreground time - cloud device offline time) = (TS_10-TS_8);

[0081] (Device online ready time ∩ APP in the foreground time) = (TS_10-TS_9);

[0082] 4. The fourth stage:

[0083] (APP in the foreground time - cloud device offline time) = (TS_12 - TS_11);

[0084] (Device online ready time ∩ APP in the foreground time) = (TS_12-TS_11);

[0085] TS_13-TS_14 are entered into the background data and are therefore not included in the statistics.

[0086] Therefore, the online rate of the device user side = [(TS_4-TS_3)+(TS_10-TS_9)+(TS_12-TS_11)] / [(TS_5-TS_1)-(TS_2-TS_1)+(TS_7-TS_6)+(TS_10-TS_8)+(TS_12-TS_11)].

[0087] Through the above embodiments, the problem in the related art that the online status of household appliances on the user side cannot be accurately estimated through the existing data model of the online rate of user-side devices is solved, and the online rate of household appliances on the user side can be accurately determined.

[0088] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0089] Figure 5is a structural block diagram of a device for determining an online rate according to an embodiment of the present application; Figure 5 As shown, including:

[0090] an acquisition module 52, configured to acquire a first online time period during which the home appliance is displayed online on the application, an offline time period during which the home appliance is offline on the cloud server, and a running time period during which the application is running in the foreground, wherein the application is an application for controlling the home appliance, and the offline time period is used to indicate an offline time period during which the home appliance is offline on the cloud server when the application is running in the foreground;

[0091] A first determining module 54 is configured to determine a second online time period and a maximum online time period corresponding to the home appliance according to the first online time period, the offline time period, and the running time period, wherein the second online time period is used to indicate a time period during which the home appliance is actually displayed online in the application when the application is running in the foreground, and the maximum online time period is used to indicate a maximum time period during which the home appliance is displayed online in the application when the application is running in the foreground;

[0092] The second determining module 56 is configured to determine an online rate of the household appliance on the application according to the second online time period and the longest online time period.

[0093] Through the above-mentioned device, a first online time period during which the home appliance is displayed online on the application, an offline time period during which the home appliance is offline on the cloud server, and a running time period during which the application is running in the foreground are obtained, wherein the application is an application for controlling the home appliance, and the offline time period is used to indicate the offline time period during which the home appliance is offline on the cloud server when the application is running in the foreground; a second online time period and a longest online time period corresponding to the home appliance are determined according to the first online time period, the offline time period, and the running time period, wherein the second online time period is used to indicate the time period during which the home appliance is actually displayed online in the application when the application is running in the foreground, and the longest online time period is used to indicate the longest time period during which the home appliance is displayed online in the application when the application is running in the foreground; and an online rate of the home appliance on the application is determined according to the second online time period and the longest online time period, which solves the problem that the online status of the home appliance on the user side device cannot be accurately estimated through the existing data model of the online rate of the user side device in the related art, and thus the online rate of the home appliance on the user side device can be accurately determined.

[0094] In an exemplary embodiment, the first determination module 54 is used to determine the second online time period corresponding to the home appliance according to the first online time period and the running time period, and to determine the longest online time period corresponding to the home appliance according to the offline time period and the running time period.

[0095] In an exemplary embodiment, the first determination module 54 is used to calculate the intersection time period of the first online time period and the running time period, and determine the intersection time period as the second online time period; calculate the difference time period between the running time period and the offline time period, and determine the difference time period as the longest online time period.

[0096] In an exemplary embodiment, the second determination module 56 is used to determine, based on the second online time period, the online time duration that the home appliance device actually displays as online in the application when the application is running in the foreground, and to determine, based on the longest online time period, the maximum time duration that the home appliance device displays as online in the application; calculate the ratio of the online time duration to the maximum time duration; and determine the ratio as the online rate of the home appliance device on the application.

[0097] In an exemplary embodiment, the acquisition module 52 is used to include at least one of the following: determining the first online time period based on a first time point when the home appliance is displayed online on the application and a second time point when the home appliance is displayed offline on the application, wherein the first time point is prior to the second time point; determining the first online time period based on a first time point when the home appliance is displayed online on the application and a third time point of the last log sent by the application during operation, wherein the first time point is prior to the third time point; determining the first online time period based on a first time point when the home appliance is displayed online on the application and a fourth time point when the application enters the background for the last time during operation, wherein the first time point is prior to the fourth time point.

[0098] In an exemplary embodiment, the acquisition module 52 is used to include at least one of the following: during the running time period when the application is running in the foreground, and there is a first operation in which the home appliance establishes a communication connection with the cloud service, determining the offline time period when the home appliance is offline on the cloud server according to a fifth time point when the application enters the foreground and a sixth time point when the first operation is performed, wherein the fifth time point is prior to the sixth time point; during the running time period when the application is running in the foreground, and there is a second operation in which the home appliance disconnects the communication connection with the cloud service, determining the offline time period when the home appliance is offline on the cloud server according to a seventh time point when the second operation is performed and an eighth time point when the last log sent by the application, wherein the seventh time point is prior to the eighth time point; during the running time period when the application is running in the foreground, and there is a third operation in which the home appliance disconnects the communication connection with the cloud service and a fifth operation in which the home appliance establishes a communication connection, determining the offline time period when the home appliance is offline on the cloud server according to a ninth time point when the third operation is performed and a tenth time point when the fifth operation is performed, wherein the ninth time point is prior to the tenth time point.

[0099] In an exemplary embodiment, the acquisition module 52 is used to determine the eleventh time point for starting the application, the eleventh time point for the application to enter the background, and the eleventh time point for the application to enter the foreground, wherein the eleventh time point is prior to the eleventh time point, and the eleventh time point is prior to the eleventh time point; determine a first operating time period based on the eleventh time point and the eleventh time point, and determine a second operating time period based on the eleventh time point and the eleventh time point; determine the union of the first operating time period and the second operating time period as the operating time period.

[0100] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.

[0101] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:

[0102] S1, obtaining a first online time period during which the home appliance is displayed online on the application, an offline time period during which the home appliance is offline on the cloud server, and a running time period during which the application is running in the foreground, wherein the application is an application for controlling the home appliance, and the offline time period is used to indicate an offline time period during which the home appliance is offline on the cloud server when the application is running in the foreground;

[0103] S2, determining a second online time period and a maximum online time period corresponding to the home appliance according to the first online time period, the offline time period, and the running time period, wherein the second online time period is used to indicate a time period during which the home appliance is actually displayed online in the application when the application is running in the foreground, and the maximum online time period is used to indicate a maximum time period during which the home appliance is displayed online in the application when the application is running in the foreground;

[0104] S3: Determine the online rate of the home appliance on the application according to the second online time period and the longest online time period.

[0105] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0106] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0107] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0108] S1, obtaining a first online time period during which the home appliance is displayed online on the application, an offline time period during which the home appliance is offline on the cloud server, and a running time period during which the application is running in the foreground, wherein the application is an application for controlling the home appliance, and the offline time period is used to indicate an offline time period during which the home appliance is offline on the cloud server when the application is running in the foreground;

[0109] S2, determining a second online time period and a maximum online time period corresponding to the home appliance according to the first online time period, the offline time period, and the running time period, wherein the second online time period is used to indicate a time period during which the home appliance is actually displayed online in the application when the application is running in the foreground, and the maximum online time period is used to indicate a maximum time period during which the home appliance is displayed online in the application when the application is running in the foreground;

[0110] S3: Determine the online rate of the home appliance on the application according to the second online time period and the longest online time period.

[0111] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0112] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0113] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0114] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for determining an online rate, characterized in that: include: Acquire a first online time period during which the home appliance is displayed as online on the application, an offline time period during which the home appliance is offline on the cloud server, and a running time period during which the application is running in the foreground, wherein the application is an application for controlling the home appliance, the offline time period is used to indicate the offline time period during which the home appliance is offline on the cloud server when the application is running in the foreground, and the first online time period is used to indicate the time period during which the home appliance is displayed as online in the application; Determine a second online time period and a maximum online time period corresponding to the home appliance according to the first online time period, the offline time period, and the running time period, wherein the second online time period is used to indicate a time period during which the home appliance is actually displayed as online in the application when the application is running in the foreground, and the maximum online time period is used to indicate a theoretical maximum time period during which the home appliance is displayed as online in the application when the application is running in the foreground; An online rate of the home appliance on the application is determined according to the second online time period and the longest online time period.

2. The method for determining the online rate according to claim 1, characterized in that: Determining a second online time period and a longest online time period corresponding to the household appliance according to the first online time period, the offline time period, and the running time period includes: The second online time period corresponding to the home appliance is determined according to the first online time period and the running time period, and the longest online time period corresponding to the home appliance is determined according to the offline time period and the running time period.

3. The method for determining the online rate according to claim 2, characterized in that: Determining the second online time period corresponding to the household appliance according to the first online time period and the running time period includes: Calculating an intersection time period of the first online time period and the running time period, and determining the intersection time period as the second online time period; Determining the longest online time period corresponding to the household appliance according to the offline time period and the operating time period includes: A difference time period between the running time period and the offline time period is calculated, and the difference time period is determined to be the longest online time period.

4. The method for determining the online rate according to claim 1, characterized in that: Determining the online rate of the household appliance on the application according to the second online time period and the longest online time period includes: Determine, according to the second online time period, the online time period during which the home appliance is actually displayed online in the application when the application is running in the foreground, and determine, according to the maximum online time period, the maximum time period during which the home appliance is displayed online in the application; Calculating the ratio of the online duration to the maximum duration; The ratio is determined as an online rate of the home appliance on the application.

5. The method for determining the online rate according to claim 1, characterized in that: Obtaining the first online time period during which the home appliance is displayed online on the application program includes at least one of the following: Determining the first online time period according to a first time point at which the home appliance is displayed online on the application and a second time point at which the home appliance is displayed offline on the application, wherein the first time point is earlier than the second time point; Determining the first online time period according to a first time point when the home appliance is displayed online on the application and a third time point when the last log is sent by the application during operation, wherein the first time point is prior to the third time point; The first online time period is determined according to a first time point when the home appliance is displayed online on the application and a fourth time point when the application last enters the background during operation, wherein the first time point is prior to the fourth time point.

6. The method for determining the online rate according to claim 1, characterized in that: Obtaining the offline time period during which the home appliance is offline on the cloud server includes at least one of the following: During the running time period when the application is running in the foreground and there is a first operation in which the home appliance establishes a communication connection with the cloud service, determining an offline time period in which the home appliance is offline on the cloud server according to a fifth time point when the application enters the foreground and a sixth time point when the first operation is performed, wherein the fifth time point is prior to the sixth time point; During the running time period when the application is running in the foreground, and there is a second operation in which the home appliance is disconnected from the cloud service, determining the offline time period in which the home appliance is offline on the cloud server according to a seventh time point when the second operation is performed and an eighth time point when the last log is sent by the application, wherein the seventh time point is earlier than the eighth time point; During the running time period when the application is running in the foreground, and there is a third operation of disconnecting the communication connection between the home appliance and the cloud service and a fifth operation of establishing a communication connection, the offline time period when the home appliance is offline on the cloud server is determined according to a ninth time point when the third operation is executed and a tenth time point when the fifth operation is executed, wherein the ninth time point is prior to the tenth time point.

7. The method for determining the online rate according to claim 1, characterized in that: Get the running time period of the application running in the foreground, including: Determine an eleventh time point when the application is started, an eleventh time point when the application enters the background, and a thirteenth time point when the application enters the foreground, wherein the eleventh time point is earlier than the twelfth time point, and the eleventh time point is earlier than the thirteenth time point; determining a first operating time period according to the twelfth time point and the eleventh time point, and determining a second operating time period according to the thirteenth time point and the twelfth time point; A union of the first running time period and the second running time period is determined as the running time period.

8. A device for determining an online rate, characterized in that: include: an acquisition module, used to acquire a first online time period during which the home appliance is displayed as online on the application, an offline time period during which the home appliance is offline on the cloud server, and a running time period during which the application is running in the foreground, wherein the application is an application for controlling the home appliance, the offline time period is used to indicate the offline time period during which the home appliance is offline on the cloud server when the application is running in the foreground, and the first online time period is used to indicate the time period during which the home appliance is displayed as online in the application; A first determining module, configured to determine a second online time period and a maximum online time period corresponding to the home appliance according to the first online time period, the offline time period, and the running time period, wherein the second online time period is used to indicate a time period during which the home appliance is actually displayed as online in the application when the application is running in the foreground, and the maximum online time period is used to indicate a theoretical maximum time period during which the home appliance is displayed as online in the application when the application is running in the foreground; The second determining module is used to determine the online rate of the household appliance on the application according to the second online time period and the longest online time period.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.

Citation Information

Patent Citations

  • Method for carrying out statistics on software utilization rates and adjusting probation periods

    CN106850335A

  • Equipment operation monitoring method based on big data technology

    CN110113567A