Equipment state reporting method and electronic equipment

By dynamically adjusting the status data reporting frequency of IoT devices based on the communication connection status between the user terminal and the server, the problem of fixed reporting frequency in the prior art is solved, and better server load management and user experience are achieved.

CN119449877APending Publication Date: 2025-02-14QINGDAO HISENSE SMART LIFE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310950342.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-31
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the prior art, when reporting status data of IoT devices, the fixed reporting frequency leads to excessive server bandwidth, traffic and storage pressure or poor user experience.

Method used

According to the communication connection status between the user terminal and the server, the online or offline status of the user terminal is determined, and the status data is reported using high-frequency and low-frequency reporting strategies respectively. The first reporting strategy is adopted in the online state (high reporting frequency) and the second reporting strategy is adopted in the offline state (low reporting frequency).

Benefits of technology

It takes into account the bandwidth, traffic, storage pressure and user experience of the server, ensuring that users can view the latest status data of IoT devices in real time, while reducing the load on the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449877A_ABST
    Figure CN119449877A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment state reporting method and electronic equipment, and the method comprises the steps: determining whether a user terminal is in an online state or an offline state according to a communication connection state between the user terminal and a server; when the user terminal is in the online state, the Internet of Things equipment is controlled to report the state data to the server according to the first reporting strategy with relatively high reporting frequency, so that a user can check the latest state data of the Internet of Things equipment in real time, and the user experience is improved. When the user terminal is in the off-line state, the Internet of Things device is controlled to report the state data to the server according to the second reporting strategy with the low reporting frequency, due to the fact that the user terminal is in the off-line state, the low reporting frequency is non-inductive to a user, and the user experience is not affected; and the bandwidth, the flow and the storage pressure of the server can be reduced. Therefore, an equipment state reporting scheme giving consideration to the bandwidth, the flow and the storage pressure of the server and the user experience is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and in particular to a device status reporting method and an electronic device. Background Art

[0002] In the field of Internet of Things technology, IoT devices need to report their own status data to the server (cloud); if users want to remotely view the status data of IoT devices or control IoT devices on user terminals, such as mobile phones or other terminals, the IoT devices must be connected to the server. If users need to view the latest real-time status data of IoT devices, the IoT devices must report the device status data to the server in real time, so that the user terminal can view the latest status data of the device.

[0003] The prior art pre-sets a fixed reporting frequency, and the IoT devices report status data according to the fixed reporting frequency. The problem with the prior art is that when the frequency is high, the IoT device status data is frequently reported, which puts great pressure on the server's bandwidth, traffic and storage. When the frequency is low, the IoT device status data reporting frequency is low, and users cannot view the latest status data of the IoT devices in real time, resulting in a poor user experience. Summary of the invention

[0004] The present application provides a device status reporting method and an electronic device, which are used to provide a device status reporting solution that takes into account the bandwidth, flow, storage pressure of the server and the user experience.

[0005] In a first aspect, the present application provides a device status reporting method, the method comprising:

[0006] Determine the status information of the user terminal according to the communication connection status between the user terminal and the server; wherein the status information includes online status information and offline status information;

[0007] Determine an Internet of Things device associated with the user terminal, and if it is determined that the status information is online status information, control the Internet of Things device to report the status data of the Internet of Things device to the server according to a first reporting strategy; if it is determined that the status information is offline status information, control the Internet of Things device to report the status data of the Internet of Things device to the server according to a second reporting strategy; wherein a first reporting frequency corresponding to the first reporting strategy is greater than a second reporting frequency corresponding to the second reporting strategy.

[0008] In a second aspect, the present application provides a device status reporting apparatus, the apparatus comprising:

[0009] A determination module, used to determine the status information of the user terminal according to the communication connection status between the user terminal and the server; wherein the status information includes online status information and offline status information;

[0010] A status data reporting module is used to determine an Internet of Things device associated with the user terminal. If the status information is determined to be online status information, the Internet of Things device is controlled to report the status data of the Internet of Things device to the server according to a first reporting strategy; if the status information is determined to be offline status information, the Internet of Things device is controlled to report the status data of the Internet of Things device to the server according to a second reporting strategy; wherein a first reporting frequency corresponding to the first reporting strategy is greater than a second reporting frequency corresponding to the second reporting strategy.

[0011] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0012] Memory, used to store computer programs;

[0013] The processor is used to implement the method steps when executing the program stored in the memory.

[0014] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described are implemented.

[0015] The present application provides a device status reporting method and an electronic device, the method comprising: determining status information of a user terminal according to a communication connection status between the user terminal and a server; wherein the status information comprises online status information and offline status information; determining an Internet of Things device associated with the user terminal, and if it is determined that the status information is online status information, controlling the Internet of Things device to report the status data of the Internet of Things device to the server according to a first reporting strategy; if it is determined that the status information is offline status information, controlling the Internet of Things device to report the status data of the Internet of Things device to the server according to a second reporting strategy; wherein a first reporting frequency corresponding to the first reporting strategy is greater than a second reporting frequency corresponding to the second reporting strategy.

[0016] The above technical solution has the following advantages or beneficial effects:

[0017] In this application, it is determined whether the user terminal is online or offline based on the communication connection status between the user terminal and the server. When the user terminal is online, the IoT device is controlled to report status data to the server according to the first reporting strategy with a higher reporting frequency, thereby ensuring that the user can view the latest status data of the IoT device in real time and improving the user experience. When the user terminal is offline, the IoT device is controlled to report status data to the server according to the second reporting strategy with a lower reporting frequency. Since the user terminal is offline, the lower reporting frequency is imperceptible to the user, and will not affect the user experience, and can reduce the server's bandwidth, traffic, and storage pressure. Thereby realizing a device status reporting solution that takes into account the server's bandwidth, traffic, storage pressure, and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 Schematic diagram of the device status reporting process provided for this application;

[0020] Figure 2 A schematic diagram of a process for determining the status information of the user terminal provided in the present application;

[0021] Figure 3 A schematic diagram of the process of controlling an IoT device to report the status data of the IoT device to a server provided in this application;

[0022] Figure 4 A schematic diagram of the process of controlling an IoT device to report the status data of the IoT device to a server provided in this application;

[0023] Figure 5 Schematic diagram of the reporting frequency update process provided for this application;

[0024] Figure 6 Schematic diagram of the reporting frequency update process provided for this application;

[0025] Figure 7 Schematic diagram of the device status reporting process provided for this application;

[0026] Figure 8 Schematic diagram of the device status reporting process provided for this application;

[0027] Fig. 9 The IoT device status reporting architecture diagram provided for this application;

[0028] Fig.10 The flow chart of scheduled reporting and status change reporting provided for this application;

[0029] Fig.11 Update the device reporting status diagram based on the user's online and offline status provided by this application;

[0030] Fig.12 A schematic diagram of the structure of the device status reporting device provided for this application;

[0031] Fig.13 This is a schematic diagram of the electronic device structure provided in this application. DETAILED DESCRIPTION

[0032] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0033] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0034] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.

[0035] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0036] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0037] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0038] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

[0039] Figure 1 The schematic diagram of the device status reporting process provided for this application includes the following steps:

[0040] S101: Determine status information of a user terminal according to a communication connection status between the user terminal and a server; wherein the status information includes online status information and offline status information.

[0041] S102: Determine an Internet of Things device associated with the user terminal, and if it is determined that the status information is online status information, control the Internet of Things device to report the status data of the Internet of Things device to the server according to a first reporting strategy; if it is determined that the status information is offline status information, control the Internet of Things device to report the status data of the Internet of Things device to the server according to a second reporting strategy; wherein a first reporting frequency corresponding to the first reporting strategy is greater than a second reporting frequency corresponding to the second reporting strategy.

[0042] The device status reporting method provided in the present application is applied to an electronic device, which may be a PC, a tablet computer, or other device.

[0043] The electronic device obtains the communication connection status between the user terminal and the server, the server includes a cloud server, and the user terminal includes a user's mobile phone or other mobile terminal. According to the communication connection status between the user terminal and the server, the status information of the user terminal is determined. Optionally, if the communication connection status between the user terminal and the server is established, the status information of the user terminal is determined to be online status information; if the communication connection status between the user terminal and the server is not established, the status information of the user terminal is determined to be offline status information.

[0044] Determine the IoT device associated with the user terminal. Optionally, when the user terminal establishes an association relationship with the IoT device, the association relationship between the user terminal and the IoT device can be saved. The IoT device is, for example, an air conditioner, a temperature and humidity monitoring device, a refrigerator, an oven, and the like.

[0045] When the status information of the user terminal is online status information, priority is given to users viewing the status data of the IoT device in real time to ensure user experience. Therefore, if the status information is determined to be online status information, the IoT device is controlled to report the status data of the IoT device to the server according to the first reporting strategy. The first reporting frequency corresponding to the first reporting strategy is higher. Taking the IoT device as an air conditioner as an example, the status data of the IoT device is, for example, the temperature of the air conditioner, the wind speed of the air conditioner, the operating mode of the air conditioner, etc. The operating modes of the air conditioner include cooling mode, heating mode, dehumidification mode, etc.

[0046] When the status information of the user terminal is offline status information, since the user does not view the status data of the IoT device, the bandwidth, flow and storage pressure of the server are given priority at this time. Therefore, if the status information is determined to be offline status information, the IoT device is controlled to report the status data of the IoT device to the server according to the second reporting strategy. The second reporting frequency corresponding to the second reporting strategy is lower.

[0047] In this application, it is determined whether the user terminal is online or offline based on the communication connection status between the user terminal and the server. When the user terminal is online, the IoT device is controlled to report status data to the server according to the first reporting strategy with a higher reporting frequency, thereby ensuring that the user can view the latest status data of the IoT device in real time and improving the user experience. When the user terminal is offline, the IoT device is controlled to report status data to the server according to the second reporting strategy with a lower reporting frequency. Since the user terminal is offline, the lower reporting frequency is imperceptible to the user, and will not affect the user experience, and can reduce the server's bandwidth, traffic, and storage pressure. Thereby realizing a device status reporting solution that takes into account the server's bandwidth, traffic, storage pressure, and user experience.

[0048] Figure 2 A schematic diagram of a process for determining the status information of the user terminal provided in the present application, wherein determining the status information of the user terminal according to the communication connection status between the user terminal and the server comprises the following steps:

[0049] S201: Obtain the communication connection status between the user terminal and the server. If the user terminal and the server are in a Transmission Control Protocol TCP long connection state, determine that the status information of the user terminal is online status information; or obtain the behavior of the user terminal calling the application programming interface API of the server, and determine that the status information of the user terminal is online status information.

[0050] S202: If the communication connection status between the user terminal and the server is not established, determine that the status information of the user terminal is offline status information.

[0051] In the present application, the following two methods are included but not limited to detect whether the user terminal is in an online state. Method 1: If it is detected that the user terminal and the server are in a Transmission Control Protocol TCP long connection state, the status information of the user terminal is determined to be online status information. Method 2: The behavior of the user terminal calling the application programming interface API of the server is obtained, and the status information of the user terminal is determined to be online status information. It can also be that when it is detected that the user terminal and the server have established a connection in other communication methods, the status information of the user terminal is determined to be online status information. If the communication connection state between the user terminal and the server is that the connection is not established, the status information of the user terminal is determined to be offline status information.

[0052] Figure 3 A schematic diagram of a process of controlling an IoT device to report status data of the IoT device to a server provided in the present application, wherein controlling the IoT device to report status data of the IoT device to the server comprises the following steps:

[0053] S301: If it is determined that the status information is online status information, control the Internet of Things device to report the status data of the Internet of Things device to the server at a preset first time interval.

[0054] S302: If it is determined that the status information is offline status information, control the Internet of Things device to report the status data of the Internet of Things device to the server at a preset second time interval; wherein the preset first time interval is smaller than the preset second time interval.

[0055] The reporting strategy provided in this application is a timed reporting strategy. The time interval for timed reporting, some IoT devices report the status data of IoT devices once every certain time interval, and some IoT devices report the status data of IoT devices only after the time interval from the last report reaches the threshold requirement. The smaller this parameter is set, the more timely the server data is updated, but the more data is transmitted; the larger the parameter is set, the less data is transmitted, but the status data update of IoT devices is delayed.

[0056] Based on the above considerations, the present application determines that the user terminal status information is online status information, and controls the IoT device to report the status data of the IoT device to the server at a preset first time interval, where the preset first time interval is a relatively short time interval, such as 30 seconds, 60 seconds, etc. If the status information is determined to be offline status information, the IoT device is controlled to report the status data of the IoT device to the server at a preset second time interval, where the preset second time interval is a relatively long time interval, such as 120 seconds, 150 seconds, etc.

[0057] Figure 4 A schematic diagram of a process of controlling an IoT device to report status data of the IoT device to a server provided in the present application, wherein controlling the IoT device to report status data of the IoT device to the server comprises the following steps:

[0058] S401: If it is determined that the status information is online status information, control the Internet of Things device to report the status data of the Internet of Things device to the server when the change amount of the status parameter of the Internet of Things device reaches a preset first threshold.

[0059] S402: If it is determined that the status information is offline status information, control the Internet of Things device to report the status data of the Internet of Things device to the server when the change in the status parameter of the Internet of Things device reaches a preset second threshold; wherein the preset first threshold is less than the preset second threshold.

[0060] The reporting strategy of this application is a parameter change reporting strategy. The threshold of the change of the IoT device status data. The IoT device status data will be reported only after the change from the last reported IoT device status data reaches a certain threshold. For example, for temperature data, if the threshold is set to 1 degree, then only one status data will be reported during the temperature rise from 25 degrees to 26 degrees; if the threshold is set to 0.1 degrees, then the temperature rises by 0.1 degrees, and one status data will be reported. If the temperature rises by 1 degree, 10 status data may be reported. The smaller this parameter is set, the more timely the server status data is updated, the more timely the user-perceived IoT device status data synchronization is, and the corresponding data volume transmission is also larger; the larger the parameter design, the slower the server IoT device status data is updated, and the user-perceived IoT device status data synchronization is not timely, but the corresponding data volume is small. For example, in the above example, the temperature rises from 25 degrees to 25.5 degrees and then drops back to 25 degrees. The threshold is set to 0.1 degrees. The user can view the temperature change in real time on the application app side. When the threshold is set to 1 degree, the user cannot observe the temperature change on the app side, which will affect the user experience.

[0061] Based on the above considerations, in this application, if it is determined that the status information of the user terminal is online status information, the IoT device is controlled to report the status data of the IoT device to the server when the change amount of the status parameter of the IoT device reaches a preset first threshold; the preset first threshold is a smaller threshold, taking temperature data as an example, the preset first threshold is, for example, 0.1 degrees, 0.2 degrees, etc. If it is determined that the status information is offline status information, the IoT device is controlled to report the status data of the IoT device to the server when the change amount of the status parameter of the IoT device reaches a preset second threshold; the preset second threshold is a larger threshold, taking temperature data as an example, the preset second threshold is, for example, 1 degree, 2 degrees, etc.

[0062] In this application, in order to further improve the accuracy of the status data reported by the IoT device, the method also includes:

[0063] Obtain the load request amount of the server, and when the load request amount is greater than a preset first load threshold, control the Internet of Things device to reduce the reporting frequency, and report the status data of the Internet of Things device to the server according to the reduced reporting frequency; when the load request amount is less than a preset second load threshold, control the Internet of Things device to increase the reporting frequency, and report the status data of the Internet of Things device to the server according to the increased reporting frequency; wherein the preset first load threshold is greater than the preset second load threshold.

[0064] In the present application, the load request amount of the server is obtained, and the reporting frequency of the IoT device is adjusted according to the load request amount. When the load request amount is greater than the preset first load threshold, the IoT device is controlled to reduce the reporting frequency. The preset first load threshold is, for example, a larger threshold such as 100M, 200M, etc. The preset first load threshold can also be determined according to the maximum load of the server. For example, 80% or 85% of the maximum load of the server is used as the preset first load threshold. If the reporting strategy is a timed reporting strategy, reducing the reporting frequency can be increasing the preset time interval. If the reporting strategy of the present application is a parameter change reporting strategy, reducing the reporting frequency can be increasing the preset threshold corresponding to the parameter change amount. Then, the status data of the IoT device is reported to the server according to the reduced reporting frequency.

[0065] When the load request amount is less than the preset second load threshold, the IoT device is controlled to increase the reporting frequency. The preset second load threshold is, for example, a smaller threshold such as 10M, 20M, etc. The preset second load threshold can also be determined according to the maximum load of the server. For example, 20% or 25% of the maximum load of the server is used as the preset second load threshold. If the reporting strategy is a timed reporting strategy, increasing the reporting frequency may be to reduce the preset time interval. If the reporting strategy of the present application is a parameter change reporting strategy, increasing the reporting frequency may be to reduce the preset threshold corresponding to the parameter change amount. Then, the status data of the IoT device is reported to the server according to the increased reporting frequency.

[0066] Figure 5 The schematic diagram of the reporting frequency update process provided for this application includes the following steps:

[0067] S501: Obtain the load request amount of the server. When the load request amount is greater than a preset first load threshold, control the Internet of Things device to reduce a reporting frequency, and report status data of the Internet of Things device to the server according to the reduced reporting frequency.

[0068] S502: When the load request amount is less than a preset second load threshold, control the IoT device to increase the reporting frequency, and report the status data of the IoT device to the server according to the increased reporting frequency; wherein the preset first load threshold is greater than the preset second load threshold.

[0069] In this application, in order to further improve the accuracy of the status data reported by the IoT device, the method also includes:

[0070] Acquire first time information of the user terminal being in online state information and second time information of the user terminal being in offline state information within a preset historical time period;

[0071] Determine, according to the first time information and the second time information, a first predicted time range for the user terminal to be in online state information and a second predicted time range for the user terminal to be in offline state information by using user profiling technology;

[0072] If the current time point is within the first prediction time range, the Internet of Things device is controlled to increase the reporting frequency, and report the status data of the Internet of Things device to the server according to the increased reporting frequency; if the current time point is within the second prediction time range, the Internet of Things device is controlled to reduce the reporting frequency, and report the status data of the Internet of Things device to the server according to the reduced reporting frequency.

[0073] The first time information of the user terminal being online and the second time information of the user terminal being offline in a preset historical time period are obtained. The preset historical time period may be a historical period of one month, two months, three months, etc. For each day in the preset historical time period, the first time information of the user terminal being online and the second time information of the user terminal being offline on that day are obtained.

[0074] According to the first time information of the user terminal being in the online state information and the second time information of the user terminal being in the offline state information every day in the preset historical time period, the user portrait technology is used to determine the first predicted time range of the user terminal being in the online state information and the second predicted time range of the user terminal being in the offline state information. For example, the first predicted time range of the user terminal being in the online state information is determined to be from 9 to 11 a.m. every day, and the second predicted time range of the user terminal being in the offline state information is determined to be from 1 a.m. to 3 a.m. every day. If the current time point is in the first predicted time range, the Internet of Things device is controlled to increase the reporting frequency, and report the status data of the Internet of Things device to the server according to the increased reporting frequency; for example, if the current time point is 10 a.m., the reporting frequency is increased. If the current time point is in the second predicted time range, the Internet of Things device is controlled to reduce the reporting frequency, and report the status data of the Internet of Things device to the server according to the reduced reporting frequency; for example, if the current time point is 2 a.m., the reporting frequency is reduced.

[0075] If the reporting strategy is a timed reporting strategy, reducing the reporting frequency may be to increase the preset time interval. If the reporting strategy of the present application is a parameter change reporting strategy, reducing the reporting frequency may be to increase the preset threshold corresponding to the parameter change amount. Then, the status data of the IoT device is reported to the server according to the reduced reporting frequency. If the reporting strategy is a timed reporting strategy, increasing the reporting frequency may be to reduce the preset time interval. If the reporting strategy of the present application is a parameter change reporting strategy, increasing the reporting frequency may be to reduce the preset threshold corresponding to the parameter change amount. Then, the status data of the IoT device is reported to the server according to the increased reporting frequency.

[0076] Figure 6 The schematic diagram of the reporting frequency update process provided for this application includes the following steps:

[0077] S601: Acquire first time information of the online state information of the user terminal and second time information of the offline state information of the user terminal within a preset historical time period.

[0078] S602: Determine, based on the first time information and the second time information, a first predicted time range for the online state information and a second predicted time range for the offline state information of the user terminal using user profiling technology.

[0079] S603: If the current time point is within the first prediction time range, control the IoT device to increase the reporting frequency, and report the status data of the IoT device to the server according to the increased reporting frequency; if the current time point is within the second prediction time range, control the IoT device to reduce the reporting frequency, and report the status data of the IoT device to the server according to the reduced reporting frequency.

[0080] In this application, in order to further improve the accuracy of the status data reported by the IoT device, Figure 7 The device status reporting process diagram provided for this application includes the following steps:

[0081] S701: If it is determined that the status information is online status information, determine display status data and non-display status data according to the category of the status data of the IoT device.

[0082] S702: Control the Internet of Things device to report the display status data of the Internet of Things device to the server according to the first reporting strategy; control the Internet of Things device to report the non-display status data of the Internet of Things device to the server according to the second reporting strategy.

[0083] Display status data includes data that the user can see on the user terminal, and non-display status data includes data that the user cannot see on the user terminal. Taking the IoT device as an air conditioner as an example, display status data includes temperature, operating mode, wind speed, etc., and non-display status data includes operating voltage value, operating power value, etc. of the air conditioner. Control the IoT device to report the display status data of the IoT device to the server according to the first reporting strategy; control the IoT device to report the non-display status data of the IoT device to the server according to the second reporting strategy. This can further take into account the user experience and server load.

[0084] In the present application, controlling the IoT device to report the status data of the IoT device to the server includes:

[0085] Obtain a pre-saved list of IoT devices associated with the user terminal, and obtain online or offline information of each IoT device recorded in the list of IoT devices;

[0086] Control the online IoT device to report the status data of the IoT device to the server.

[0087] The method further comprises:

[0088] Sending a corresponding reporting strategy to an offline IoT device according to the status information of the user terminal;

[0089] When the offline IoT device comes online, the IoT device is controlled to report the status data of the IoT device to the server according to the reporting strategy.

[0090] This ensures that when offline IoT devices come online, they can report status data according to appropriate reporting strategies.

[0091] Figure 8 The device status reporting process diagram provided for this application includes the following steps:

[0092] S801: Determine status information of the user terminal according to the communication connection status between the user terminal and the server; wherein the status information includes online status information and offline status information; obtain a pre-saved list of IoT devices associated with the user terminal, and obtain online or offline information of each IoT device recorded in the list of IoT devices.

[0093] S802: Determine the Internet of Things device associated with the user terminal, and if it is determined that the status information is online status information, control the online Internet of Things device to report the status data of the Internet of Things device to the server according to a first reporting strategy; if it is determined that the status information is offline status information, control the online Internet of Things device to report the status data of the Internet of Things device to the server according to a second reporting strategy; wherein a first reporting frequency corresponding to the first reporting strategy is greater than a second reporting frequency corresponding to the second reporting strategy.

[0094] S803: Send a corresponding reporting strategy to the offline IoT device according to the status information of the user terminal; when the offline IoT device comes online, control the IoT device to report the status data of the IoT device to the server according to the reporting strategy.

[0095] This application determines the real-time reporting frequency of IoT devices based on the actual usage behavior of users, reducing the amount of useless data while ensuring user experience. IoT devices implement different status reporting strategies based on user information in different time periods.

[0096] Reduce the amount of communication data between IoT devices and servers, reduce the bandwidth pressure of server services, reduce bandwidth and traffic usage, and reduce the business costs of server services. For the sake of convenience, the simplified model is as follows. Taking the online volume of millions of devices as an example, for a better user experience, the device is required to report the device status once every minute on average, and the number of device status reports per day is 1.44 billion; assuming that each user is online for 1 hour a day, the device is required to report the device status once every minute on average when the user is online, and the device is required to report the device status once every 2 minutes on average when the user is offline, and the number of status reports per day is 750 million. In the end, the traffic and device status are reduced by 48%, and the bandwidth and traffic costs of the server are also reduced accordingly. Of course, the actual situation is much more complicated than the simplified model. The status report of some devices is greatly affected by timeliness and external environment, and the average online time of users is generally lower than 1 hour.

[0097] It does not affect the user's final usage experience. When the user is using it, the device reports the device status at a high frequency, and the user can perceive a higher degree of real-time performance. When the user is offline, the IoT device reports the device status at a lower frequency, which has less impact on the user.

[0098] Fig. 9 The IoT device status reporting architecture diagram provided for this application requires that the IoT device be connected to the server if the user wants to remotely view the status of the IoT device on a mobile phone or other terminal or control the IoT device. Fig. 9 In the IoT cloud, if users need to view the latest real-time status of IoT devices, the IoT devices need to report the device status to the cloud in real time, so that the mobile phone or other terminals can view the latest status of the device.

[0099] Fig.10 The flow chart of scheduled reporting and status change reporting provided for this application shows that there are two main types of status reporting for IoT devices: scheduled reporting of the real-time status of IoT devices, that is, reporting the device status once every certain time interval. This reporting is mainly to prevent the device status in the cloud from being updated in a timely manner due to packet loss during network communication. Status reporting when the device status changes, that is, the device status of the IoT device has changed. At this time, the differential or full information of the device change needs to be sent to the cloud, so that the cloud can obtain the latest real-time status of the device.

[0100] Fig.11In the device reporting status diagram based on the user's online and offline status update provided in this application, parameter information such as the reporting time interval and status change threshold of the IoT device is no longer a fixed one or several values, but is determined by the status information of the user terminal associated with the IoT device. When the server finds that the user is using a mobile phone / other terminal, it sends more aggressive reporting parameters to the IoT device. At this time, the IoT device uses smaller time intervals, change thresholds and other parameters to determine the status reporting of the IoT device. At this time, the reporting frequency is high, and the user can perceive the status update of the IoT device in a timely manner; when the user exits the app / system, the server sends more conservative reporting parameters to the device. At this time, the IoT device uses larger time intervals, change thresholds and other parameters to determine the status reporting of the IoT device. Since the user has exited the use, he cannot perceive the slow update of the IoT device status data, and the pressure on the server is relatively small.

[0101] The reporting parameters of the present application may be issued by the cloud, or may not be issued by the cloud. Instead, the IoT device may be factory-installed or preset with two or more sets of reporting parameters, or the device may obtain two or more sets of reporting parameter configurations from other systems or devices, such as from the cloud or from a gateway when connected to the cloud; the cloud only needs to notify the device which set of parameters to use when the user is online or offline, or notify the device of the user's online and offline behavior, and the device may decide for itself which set of parameters to use to control the frequency of device status reporting.

[0102] Optimization based on user time, that is, calculating the user's time according to the time zone of the user associated with the IoT device, and pushing different reporting frequency parameters or configuration information to the device at different times;

[0103] Based on the optimization of user configuration, the custom configuration of the device status (display status data) that users need to use can be reported at a higher frequency, while other status (non-display status data) is still reported at a lower frequency;

[0104] Based on the optimization of cloud load, the reporting frequency of the device is determined according to the load request of the cloud service. When the cloud load is high, relatively low reporting configuration parameters are sent to the device. When the cloud load is low, relatively high reporting configuration parameters can be sent to the device.

[0105] Based on the optimization of user portraits, the user's usage behavior is predicted according to the user portrait drawn according to the user's usage behavior, and then the reporting frequency of the device is determined.

[0106] The process of updating the reporting frequency of the device status based on the user's offline state is divided into three parts:

[0107] User online behavior:

[0108] When users use it on mobile phones or other terminals, the cloud can obtain the user's online behavior, including but not limited to: perception of long-connection communication between the terminal and the cloud; perception based on the user's call to the cloud API behavior, etc.

[0109] After the cloud obtains the user's online behavior, it starts to query the list of devices associated with the user.

[0110] Check whether these devices are online. For online devices, notify the devices to change the reporting frequency.

[0111] If the device is online, query the user online reporting configuration parameters corresponding to the category, model and other categories of the device. The configuration includes the general attribute reporting frequency and the special device attribute reporting frequency.

[0112] The reporting frequency update instruction is sent to the device through the sending channel, and the latest user online configuration parameters are sent to the device.

[0113] After receiving the reporting configuration parameters from the online user, the device adjusts its reporting frequency according to the new parameters.

[0114] Regardless of whether the device is online or not, the cloud records the parameter group information currently used by the device.

[0115] User offline behavior:

[0116] A user's offline behavior is similar to their online behavior and is described briefly here.

[0117] The cloud obtains the user's offline behavior, queries the list of devices associated with the user, and queries whether these devices are online. If the device is online, it queries the configuration parameters reported by the user's offline device and sends the configuration parameters reported by the user's offline device to the device. After the device receives the configuration parameters reported by the user offline, it adjusts its reporting frequency according to the new parameters. Regardless of whether the device is online or not, the cloud records the parameter group information currently used by the device.

[0118] Device online behavior:

[0119] After the device goes online, it needs to know the device reporting configuration parameters it uses and request a cloud query. The cloud queries the reporting configuration parameters that the device should use based on the device's identification information. These parameters have been recorded in the user's online and offline behaviors. If there is no corresponding record, it is necessary to find the user managed by this device and query whether this or these users are online. If the user is online, the reporting configuration parameters of the online user are used. If all users are offline, the reporting configuration parameters of the offline user are used.

[0120] User offline behavior:

[0121] Based on the optimization of user time, the user's time is calculated according to the time zone of the user associated with the IoT device, and different reporting frequency parameters or configuration information are pushed to the device at different times;

[0122] For example, according to the statistics of the terminal usage rate of users in the second half of the night, the reporting configuration parameters with a relatively low reporting frequency are sent to the device end; and during the peak period of user usage, the reporting configuration parameters with a relatively high reporting frequency are sent to the device end.

[0123] Based on the optimization of cloud load, the reporting frequency of the device is determined according to the load request of the cloud service. When the cloud load is high, relatively low reporting configuration parameters are sent to the device. When the cloud load is low, relatively high reporting configuration parameters can be sent to the device.

[0124] Based on the optimization of user configuration, the custom configuration of the device status that the user needs to use can be reported at a higher frequency, while other statuses are still reported at a lower frequency. For example, if the user configures the device association setting to automatically start the air conditioner when the indoor temperature is high, then the temperature-related attributes of the user's device should be reported with a higher frequency reporting parameter, while other attributes should be reported with a lower frequency configuration parameter.

[0125] Based on the optimization of user portrait, the user's usage behavior is predicted according to the user portrait drawn according to the user's usage behavior, and then the reporting frequency of the device is determined. For example, if the user portrait finds that the user often logs in between 9 and 10 pm, then the cloud can automatically send a higher frequency reporting parameter configuration to the device at 9 o'clock.

[0126] Fig.12 The schematic diagram of the device status reporting device structure provided for this application includes:

[0127] The determination module 121 is used to determine the status information of the user terminal according to the communication connection status between the user terminal and the server; wherein the status information includes online status information and offline status information;

[0128] The status data reporting module 122 is used to determine the Internet of Things device associated with the user terminal. If it is determined that the status information is online status information, the Internet of Things device is controlled to report the status data of the Internet of Things device to the server according to a first reporting strategy; if it is determined that the status information is offline status information, the Internet of Things device is controlled to report the status data of the Internet of Things device to the server according to a second reporting strategy; wherein a first reporting frequency corresponding to the first reporting strategy is greater than a second reporting frequency corresponding to the second reporting strategy.

[0129] The determination module 121 is used to obtain the communication connection status between the user terminal and the server. If the user terminal and the server are in a transmission control protocol TCP long connection state, the status information of the user terminal is determined to be online status information; or the behavior of the user terminal calling the application programming interface API of the server is obtained, and the status information of the user terminal is determined to be online status information; if the communication connection status between the user terminal and the server is that the connection is not established, the status information of the user terminal is determined to be offline status information.

[0130] The status data reporting module 122 is used to control the Internet of Things device to report the status data of the Internet of Things device to the server at a preset first time interval if it is determined that the status information is online status information; if it is determined that the status information is offline status information, control the Internet of Things device to report the status data of the Internet of Things device to the server at a preset second time interval; wherein the preset first time interval is smaller than the preset second time interval.

[0131] The status data reporting module 122 is used to control the Internet of Things device to report the status data of the Internet of Things device to the server when the change in the status parameter of the Internet of Things device reaches a preset first threshold if the status information is determined to be online status information; and to control the Internet of Things device to report the status data of the Internet of Things device to the server when the change in the status parameter of the Internet of Things device reaches a preset second threshold if the status information is determined to be offline status information; wherein the preset first threshold is less than the preset second threshold.

[0132] The status data reporting module 122 is used to obtain the load request amount of the server. When the load request amount is greater than a preset first load threshold, the Internet of Things device is controlled to reduce the reporting frequency, and the status data of the Internet of Things device is reported to the server according to the reduced reporting frequency; when the load request amount is less than a preset second load threshold, the Internet of Things device is controlled to increase the reporting frequency, and the status data of the Internet of Things device is reported to the server according to the increased reporting frequency; wherein the preset first load threshold is greater than the preset second load threshold.

[0133] The status data reporting module 122 is used to obtain the first time information of the online status information of the user terminal and the second time information of the offline status information of the user terminal within a preset historical time period; based on the first time information and the second time information, use user portrait technology to determine the first predicted time range of the online status information and the second predicted time range of the offline status information of the user terminal; if the current time point is within the first predicted time range, control the Internet of Things device to increase the reporting frequency, and report the status data of the Internet of Things device to the server according to the increased reporting frequency; if the current time point is within the second predicted time range, control the Internet of Things device to reduce the reporting frequency, and report the status data of the Internet of Things device to the server according to the reduced reporting frequency.

[0134] The status data reporting module 122 is used to determine display status data and non-display status data according to the category of the status data of the Internet of Things device if it is determined that the status information is online status information; control the Internet of Things device to report the display status data of the Internet of Things device to the server according to the first reporting strategy; and control the Internet of Things device to report the non-display status data of the Internet of Things device to the server according to the second reporting strategy.

[0135] The status data reporting module 122 is used to obtain a pre-saved list of IoT devices associated with the user terminal, and obtain the online or offline information of each IoT device recorded in the IoT device list; and control the online IoT device to report the status data of the IoT device to the server.

[0136] The status data reporting module 122 is used to send a corresponding reporting strategy to the offline IoT device according to the status information of the user terminal; when the offline IoT device comes online, the IoT device is controlled to report the status data of the IoT device to the server according to the reporting strategy.

[0137] The present application also provides an electronic device, such as Fig.13 As shown, it includes: a processor 131, a communication interface 132, a memory 133 and a communication bus 134, wherein the processor 131, the communication interface 132, and the memory 133 communicate with each other through the communication bus 134;

[0138] The memory 133 stores a computer program, and when the program is executed by the processor 131, the processor 131 executes any of the above method steps.

[0139] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0140] The communication interface 132 is used for communication between the above electronic device and other devices.

[0141] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0142] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.

[0143] The present application also provides a computer storage readable storage medium, wherein the computer readable storage medium stores a computer program executable by an electronic device, and when the program runs on the electronic device, the electronic device implements any of the above method steps when executing.

[0144] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0145] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A device status reporting method, characterized in that: The method comprises: Determine the status information of the user terminal according to the communication connection status between the user terminal and the server; wherein the status information includes online status information and offline status information; Determine an Internet of Things device associated with the user terminal, and if it is determined that the status information is online status information, control the Internet of Things device to report the status data of the Internet of Things device to the server according to a first reporting strategy; if it is determined that the status information is offline status information, control the Internet of Things device to report the status data of the Internet of Things device to the server according to a second reporting strategy; wherein a first reporting frequency corresponding to the first reporting strategy is greater than a second reporting frequency corresponding to the second reporting strategy.

2. The method according to claim 1, characterized in that Determining the status information of the user terminal according to the communication connection status between the user terminal and the server includes: Acquire the communication connection status between the user terminal and the server, and if the user terminal and the server are in a Transmission Control Protocol TCP long connection state, determine that the status information of the user terminal is online status information; or acquire the behavior of the user terminal calling the application programming interface API of the server, and determine that the status information of the user terminal is online status information; If the communication connection status between the user terminal and the server is that the connection is not established, it is determined that the status information of the user terminal is offline status information.

3. The method according to claim 1, characterized in that Controlling the Internet of Things device to report the status data of the Internet of Things device to the server includes: If it is determined that the status information is online status information, control the Internet of Things device to report the status data of the Internet of Things device to the server at a preset first time interval; if it is determined that the status information is offline status information, control the Internet of Things device to report the status data of the Internet of Things device to the server at a preset second time interval; wherein the preset first time interval is smaller than the preset second time interval.

4. The method according to claim 1, characterized in that Controlling the Internet of Things device to report the status data of the Internet of Things device to the server includes: If it is determined that the status information is online status information, the Internet of Things device is controlled to report the status data of the Internet of Things device to the server when the change in the status parameter of the Internet of Things device reaches a preset first threshold; if it is determined that the status information is offline status information, the Internet of Things device is controlled to report the status data of the Internet of Things device to the server when the change in the status parameter of the Internet of Things device reaches a preset second threshold; wherein the preset first threshold is less than the preset second threshold.

5. The method according to claim 1, characterized in that The method further comprises: Obtain the load request amount of the server, and when the load request amount is greater than a preset first load threshold, control the Internet of Things device to reduce the reporting frequency, and report the status data of the Internet of Things device to the server according to the reduced reporting frequency; when the load request amount is less than a preset second load threshold, control the Internet of Things device to increase the reporting frequency, and report the status data of the Internet of Things device to the server according to the increased reporting frequency; wherein the preset first load threshold is greater than the preset second load threshold.

6. The method according to claim 1, characterized in that The method further comprises: Acquire first time information of the online state information of the user terminal and second time information of the offline state information of the user terminal within a preset historical time period; Determine, according to the first time information and the second time information, a first predicted time range for the user terminal to be in online state information and a second predicted time range for the user terminal to be in offline state information by using user profiling technology; If the current time point is within the first prediction time range, the Internet of Things device is controlled to increase the reporting frequency, and report the status data of the Internet of Things device to the server according to the increased reporting frequency; if the current time point is within the second prediction time range, the Internet of Things device is controlled to reduce the reporting frequency, and report the status data of the Internet of Things device to the server according to the reduced reporting frequency.

7. The method according to claim 1, characterized in that The method further comprises: If it is determined that the status information is online status information, determining display status data and non-display status data according to the category of the status data of the IoT device; Control the Internet of Things device to report the display status data of the Internet of Things device to the server according to the first reporting strategy; control the Internet of Things device to report the non-display status data of the Internet of Things device to the server according to the second reporting strategy.

8. The method according to claim 1, characterized in that The controlling the IoT device to report the status data of the IoT device to the server comprises: Obtain a pre-saved list of IoT devices associated with the user terminal, and obtain online or offline information of each IoT device recorded in the list of IoT devices; Control the online IoT device to report the status data of the IoT device to the server.

9. The method according to claim 8, characterized in that The method further comprises: Sending a corresponding reporting strategy to an offline IoT device according to the status information of the user terminal; When the offline IoT device comes online, the IoT device is controlled to report the status data of the IoT device to the server according to the reporting strategy.

10. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 9 when executing a program stored in a memory.