Equipment status update methods, apparatus, storage media and electronic devices

CN116506247BActive Publication Date: 2025-12-02QINGDAO HAIER TECH +2
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310319878.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2025-12-02
Estimated Expiration
2043-03-28

AI Technical Summary

Technical Problem

[0003]然而,随着用户使用智能设备次数的增加,导致以家庭为单位的设备状态的更新频率越来越频繁,对服务器造成的压力越来越大,物联网平台需要投入更多的服务器资源来满足日益增加的需求

Benefits of technology

[0025]本申请提供的设备状态更新方法、装置、存储介质及电子装置,首先,获取目标用户的活跃状态等级。之后,基于所述目标用户的活跃状态等级确定与目标账户相关联的至少一个智能设备的设备状态更新频率。最后,基于所述设备状态更新频率更新所述至少一个智能设备的设备状态信息。如此,使得物联网平台能够按照用户的活跃度调整与用户对应的家庭相关联的智能设备的设备状态信息,不仅降低设备状态更新对服务器资源的占用,还提高服务器资源的利用率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116506247B_ABST
    Figure CN116506247B_ABST
Patent Text Reader

Abstract

This application discloses a device status update method, apparatus, storage medium, and electronic device, relating to the field of smart home technology. The device status update method includes: obtaining the activity level of a target user; determining the device status update frequency of at least one smart device associated with a target account based on the target user's activity level; and updating the device status information of the at least one smart device based on the device status update frequency. The target account is a user account registered by the target user on an Internet of Things (IoT) platform. The device status update method, apparatus, storage medium, and electronic device provided in this application are used to reduce the resource consumption of server updates and improve the utilization rate of server resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home technology, and in particular to a device status update method, apparatus, storage medium and electronic device. Background Technology

[0002] With the increasing popularity of smart home devices, more and more users are installing various smart devices indoors and remotely accessing and controlling them through applications provided by the Internet of Things (IoT) platform.

[0003] However, as users use smart devices more frequently, the frequency of device status updates within households is increasing, putting greater pressure on servers. IoT platforms need to invest more server resources to meet the growing demand.

[0004] Therefore, there is an urgent need for a technical solution that can make reasonable use of server resources without affecting the real-time access of data to users, so as to effectively reduce the resource consumption of device status updates. Summary of the Invention

[0005] The purpose of this application is to provide a device status update method, apparatus, storage medium, and electronic device to reduce the occupation of server resources by device status updates and improve the utilization rate of server resources.

[0006] This application provides a device status update method applied to an Internet of Things (IoT) platform, the method comprising:

[0007] Obtain the activity level of the target user; determine the device status update frequency of at least one smart device associated with the target account based on the activity level of the target user; update the device status information of the at least one smart device based on the device status update frequency; wherein, the target account is the user account registered by the target user on the Internet of Things platform.

[0008] Optionally, after updating the device status information of the at least one smart device based on the device status update frequency, the method further includes: receiving a target access request from the user device used by the target user for the device status information of the at least one smart device; in response to the target access request, sending the device status information of the at least one smart device to the user device, and adjusting the activity level of the target user.

[0009] Optionally, adjusting the activity level of the target user includes: obtaining historical access records of the target user for device status information of the at least one smart device; determining the total number of accesses to the device status information of the at least one smart device and the daily access frequency of the device status information within a statistical period based on the historical access records; adjusting the activity level of the target user based on the total number of accesses and / or the daily access frequency; wherein the activity level of the target user is positively correlated with the total number of accesses and / or the daily access frequency.

[0010] Optionally, updating the device status information of the at least one smart device based on the device status update frequency includes: generating a device data reporting strategy for the at least one smart device based on the device status update frequency; obtaining device data of the at least one smart device based on the device data reporting strategy; and updating the device status information of the at least one smart device based on the obtained device data of the at least one smart device and each update time point indicated by the device status update frequency.

[0011] Optionally, generating a device data reporting strategy for the at least one smart device based on the device status update frequency includes: determining a first update time for the device status information of the at least one smart device according to the device status update frequency; determining a second update time for each smart device in the at least one smart device to report device data according to the first update time; and generating the device data reporting strategy based on the second update time for each smart device in the at least one smart device to report device data. The first update time and the second update time include multiple time points of equal number, and there is a time difference between the first time point in the first update time and the second time point in the second update time; the second time point is the time point corresponding to the first time point among the multiple time points of the second update time, and the second time point is a time point prior to the first time point.

[0012] Optionally, obtaining device data of the at least one smart device based on the device data reporting strategy includes: sending the device data reporting strategy to the at least one smart device; and receiving device data reported by the at least one smart device at the time indicated by the device data reporting strategy.

[0013] Optionally, obtaining device data of the at least one smart device based on the device data reporting strategy includes: sending a device data acquisition request to the at least one smart device at a time point indicated by the device data reporting strategy; and receiving device data sent by the at least one smart device in response to the device data acquisition request.

[0014] This application also provides a device for updating device status, including:

[0015] The module includes an acquisition module for acquiring the activity level of a target user; a determination module for determining the device status update frequency of at least one smart device associated with a target account based on the activity level of the target user; and a data update module for updating the device status information of the at least one smart device based on the device status update frequency. The target account is a user account registered by the target user on the IoT platform.

[0016] Optionally, the device further includes: a receiving module, a sending module, and a level adjustment module; the receiving module is configured to receive a target access request from the user device used by the target user for device status information of the at least one smart device; the sending module is configured to send the device status information of the at least one smart device to the user device in response to the target access request; and the level adjustment module is configured to adjust the activity level of the target user.

[0017] Optionally, the acquisition module is further configured to acquire historical access records of the target user for the device status information of the at least one smart device; the determination module is further configured to determine, based on the historical access records, the total number of accesses to the device status information of the at least one smart device within a statistical period and the daily access frequency of the device status information; the level adjustment module is specifically configured to adjust the activity level of the target user based on the total number of accesses and / or the daily access frequency; wherein the activity level of the target user is positively correlated with the total number of accesses and / or the daily access frequency.

[0018] Optionally, the device further includes: a generation module; the generation module is configured to generate a device data reporting strategy for the at least one smart device based on the device status update frequency; the acquisition module is further configured to acquire device data of the at least one smart device based on the device data reporting strategy; and the data update module is specifically configured to update the device status information of the at least one smart device based on the acquired device data of the at least one smart device and each update time point indicated by the device status update frequency.

[0019] Optionally, the determining module is further configured to determine a first update time for the device status information of the at least one smart device based on the device status update frequency; the determining module is further configured to determine a second update time for each smart device in the at least one smart device to report device data based on the first update time; the generating module is specifically configured to generate the device data reporting strategy based on the second update time for each smart device in the at least one smart device to report device data; wherein, the first update time and the second update time include a plurality of time points of the same number, and there is a time difference between the first time point in the first update time and the second time point in the second update time; the second time point is the time point corresponding to the first time point among the plurality of time points in the second update time, and the second time point is a time point before the first time point.

[0020] Optionally, the sending module is further configured to send the device data reporting strategy to the at least one smart device; the receiving module is further configured to receive device data reported by the at least one smart device at the time point indicated by the device data reporting strategy.

[0021] Optionally, the sending module is further configured to send a device data acquisition request to the at least one smart device at the time point indicated by the device data reporting strategy; the receiving module is further configured to receive device data sent by the at least one smart device in response to the device data acquisition request.

[0022] This application also provides an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute, through the computer program, steps of implementing the device state update method as described above.

[0023] This application also provides a computer-readable storage medium comprising a stored program, wherein the program, when executed, implements the steps of any of the device state update methods described above.

[0024] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the device state update methods described above.

[0025] The device status update method, apparatus, storage medium, and electronic device provided in this application first obtain the activity level of a target user. Then, based on the target user's activity level, the device status update frequency of at least one smart device associated with the target account is determined. Finally, the device status information of the at least one smart device is updated based on the device status update frequency. This allows the IoT platform to adjust the device status information of smart devices associated with the user's household according to the user's activity level, reducing the server resource consumption of device status updates and improving server resource utilization. Attached Figure Description

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

[0027] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0028] Figure 1 This is a schematic diagram of the hardware environment for an interaction method of a smart device according to an embodiment of this application;

[0029] Figure 2 This is one of the flowcharts illustrating the device status update method provided in this application;

[0030] Figure 3 This is the second flowchart illustrating the device status update method provided in this application;

[0031] Figure 4 This is a schematic diagram of the device status update device provided in this application;

[0032] Figure 5 This is a schematic diagram of the electronic device provided in this application. Detailed Implementation

[0033] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0034] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0035] According to one aspect of the embodiments of this application, a device status update method is provided. This device status update method is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligence house ecosystems. Optionally, in this embodiment, the above-mentioned device status update method can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.

[0036] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.

[0037] In related technologies, users can view the device status information of various smart devices installed in their homes through an application provided by an IoT platform. Specifically, when a user needs to view the device status information of the smart devices installed in their home, the application installed on the user's device can remotely call the query interface provided by the IoT platform to obtain the device status information of the smart devices installed in the user's home that has been stored and calculated on the IoT platform.

[0038] In practical applications, IoT platforms pre-calculate device status information to improve the response speed of user data, allowing for direct interface acquisition. Simultaneously, to ensure the timeliness of user data, the IoT platform updates user data according to a preset update frequency. However, as the number of users increases, the pressure on servers from updating user data grows significantly. To ensure stable server operation, service providers need to increase the number of servers to meet computing demands, greatly increasing service costs.

[0039] To address the aforementioned technical problems in related technologies, this application provides a device status update method that can adjust the update frequency of user data based on user activity, thereby reducing server pressure and improving server resource utilization.

[0040] The device status update method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0041] like Figure 2 As shown in the embodiment of this application, a device status update method is provided, which may include the following steps 201 to 203:

[0042] Step 201: Obtain the activity level of the target user.

[0043] For example, the target user can be a registered user of the IoT platform. The target user can log in to the IoT platform based on their registered target account and query the device status information of the smart device bound to the target account through the application provided by the IoT platform.

[0044] For example, the IoT platform can assign a corresponding activity level to each user based on the user's activity level. Different activity levels are used to represent different levels of activity. In this embodiment, the activity level can be divided into 1 to 5 levels.

[0045] Step 202: Determine the device status update frequency of at least one smart device associated with the target account based on the target user's activity level.

[0046] The target account is the user account registered by the target user on the Internet of Things platform.

[0047] For example, after obtaining the activity level of the target user, the device status update frequency of at least one smart device associated with the target account can be determined based on the activity level of the target user.

[0048] For example, the target account can be associated with one or more smart devices. Typically, the smart devices associated with the target account can be divided by household. A user account can include one or more households. This embodiment of the application describes the case of a user account including one household. For the case of a user account including multiple households, the relevant descriptions in this embodiment of the application can be referred to.

[0049] Specifically, step 202 above may include any one of steps 202a1 to 202a3:

[0050] Step 202a1: When the target user's activity level is at the first level, determine the device status update frequency of the at least one smart device as the first frequency.

[0051] Step 202a2: When the target user's activity level is the second level, determine the device status update frequency of the at least one smart device as the second frequency.

[0052] Step 202a3: If the target user's activity level is level three, determine the device status update frequency of the at least one smart device as the third frequency.

[0053] Specifically, the user activity level indicated by the first level is greater than that indicated by the second level; the user activity level indicated by the second level is greater than that indicated by the third level. The first frequency is less than the second frequency, and the second frequency is less than the third frequency. The higher the device status update frequency, the shorter the time interval between device status updates.

[0054] Understandably, for users with low activity levels, the update frequency of device status information of the smart devices associated with their user accounts can be appropriately reduced to save server computing resources and avoid waste.

[0055] For example, when the user's activity level is 1 (i.e., the first level), the device status information update interval can be 1 minute (i.e., the first frequency); when the user's activity level is 2 (i.e., the second level), the device status information update interval can be 30 minutes (i.e., the second frequency); and when the user's activity level is 3 (i.e., the third level), the device status information update interval can be 1 hour (i.e., the third frequency). The IoT platform can set more activity level requirements and adjust the update interval corresponding to each activity level.

[0056] Step 203: Update the device status information of the at least one smart device based on the device status update frequency.

[0057] For example, after determining the device status update frequency, the device status information of at least one smart device can be updated based on that frequency. The device status information corresponding to each user account is stored in a data block of the IoT platform and can be accessed through the interface provided by the IoT platform.

[0058] It should be noted that the database provided in this embodiment is a combination of MySQL and Redis databases. When a user device calls the interface, it first queries the Redis database for user data (i.e., the aforementioned device status information). If the data is not found, it then queries the MySQL database.

[0059] Optionally, in this embodiment of the application, the activity level can be evaluated each time a user accesses the device status information.

[0060] For example, after step 203 above, the device status update method provided in this application embodiment may further include the following steps 204 and 205:

[0061] Step 204: Receive the target user's user device's target access request for the device status information of the at least one smart device.

[0062] Step 205: In response to the target access request, send the device status information of the at least one smart device to the user equipment, and adjust the activity status level of the target user.

[0063] For example, the target access request is initiated by the user device used by the target user. After receiving the target access request, the Internet of Things sends the device status information of at least one smart device to the user device, and re-evaluates the activity status level of the target user based on the target user's access.

[0064] Specifically, step 205 above may include steps 205a1 to 205a3:

[0065] Step 205a1: Obtain the historical access records of the target user for the device status information of the at least one smart device.

[0066] Step 205a2: Based on the historical access records, determine the total number of accesses to the device status information of the at least one smart device within the statistical period and the daily access frequency of the device status information.

[0067] Step 205a3: Adjust the activity level of the target user based on the total number of visits and / or the daily visit frequency.

[0068] The activity level of the target user is positively correlated with the total number of visits and / or the daily visit frequency.

[0069] For example, an IoT platform can determine the total number of times a user accesses device status information of at least one smart device within a statistical period and the daily access frequency of the device status information based on the user's historical access records, and adjust the activity level of the target user based on the total number of accesses and / or the daily access frequency.

[0070] For example, after adjusting the activity level of the target user, the IoT platform can update the device status information of at least one smart device according to the update frequency corresponding to the adjusted activity level.

[0071] Understandably, reassessing a user's activity level each time they access user data allows for timely adjustments to the device status information update frequency, adapting to changes in user activity levels.

[0072] For example, if users access the device status information of smart devices frequently from Monday to Friday, indicating high user activity, the IoT platform can update the device status information at a higher update frequency; if users access the device status information of smart devices less frequently on Saturdays and Sundays, indicating low user activity, the IoT platform can update the device status information at a lower update frequency.

[0073] Optionally, in this embodiment, the IoT platform needs to calculate and update the device status information after acquiring device data from at least one smart device. Furthermore, the process of acquiring device data from at least one smart device also consumes server resources. Therefore, it is necessary to further adjust the reporting frequency and cycle of device data from at least one smart device, in conjunction with the aforementioned adjustment to the device status update frequency.

[0074] Specifically, step 203 above may include the following steps: 203a, 203b, and 203c:

[0075] Step 203a: Based on the device status update frequency, generate a device data reporting strategy for the at least one smart device.

[0076] Step 203b: Obtain device data of the at least one smart device based on the device data reporting strategy.

[0077] Step 203c: Update the device status information of the at least one smart device based on the acquired device data of the at least one smart device and each update time point indicated by the device status update frequency.

[0078] For example, the above-mentioned device data reporting strategy may include multiple data reporting time points, and the IoT platform may obtain device data of at least one smart device based on these multiple data reporting time points.

[0079] Specifically, step 203a above may also include steps 203a1 to 203a3:

[0080] Step 203a1: Determine the first update time of the device status information of the at least one smart device based on the device status update frequency.

[0081] Step 203a2: Determine the second update time for each of the at least one smart devices to report device data based on the first update time.

[0082] Step 203a3: Generate the device data reporting strategy based on the second update time of the device data reported by each of the at least one smart devices.

[0083] Wherein, the first update time and the second update time include a plurality of time points of the same number, and there is a time difference between the first time point in the first update time and the second time point in the second update time; the second time point is the time point corresponding to the first time point among the plurality of time points in the second update time, and the second time point is the time point before the first time point.

[0084] For example, taking the first update time as including the following five time points: 10:00, 14:00, 18:00, 22:00, 02:00; and the second update time as including the following five time points: 09:58, 13:58, 17:58, 21:58, 01:58, smart devices need to report device data to the IoT platform before updating device status information on the IoT platform. This not only reduces the computing pressure on the IoT platform server but also ensures the real-time nature of user data.

[0085] In one possible implementation, in step 203b above, device data reported by at least one smart device can be obtained through two data acquisition methods: proactive reporting by the smart device and proactive acquisition by the IoT platform.

[0086] Specifically, taking the data acquisition method of smart devices actively reporting as an example, step 203b above may include the following steps 203b1 and 203b2:

[0087] Step 203b1: Send the device data reporting strategy to the at least one smart device.

[0088] Step 203b2: Receive device data reported by the at least one smart device at the time point indicated by the device data reporting strategy.

[0089] For example, the IoT platform can send the generated device data reporting strategy to the smart device, enabling the smart device to report device data according to the data reporting time indicated by the strategy. After receiving the device data reported by the smart device, the IoT platform can use the device data the next time the device status information is updated.

[0090] Specifically, taking the data acquisition method actively obtained by the IoT platform as an example, step 203b above may include the following steps 203b3 and 203b4:

[0091] Step 203b3: Send a device data acquisition request to the at least one smart device at the time indicated by the device data reporting strategy.

[0092] Step 203b4: Receive device data sent by the at least one smart device in response to the device data acquisition request.

[0093] For example, the IoT platform can proactively acquire device data according to the time points indicated by the generated device data reporting policy. After receiving the device data reported by the smart device, the IoT platform can use the device data the next time the device status information is updated.

[0094] For example, such as Figure 3 The diagram shows a detailed flowchart of the device status refinement method provided in this application embodiment. When user A accesses device status information on the IoT platform, the query service can retrieve the corresponding user data from the Redis database. If the cache misses, it can query from the MySQL database. Simultaneously, it can trigger a user activity status rating, reassessing user A's activity level. The update service adjusts the update frequency of device status information and the acquisition frequency of smart device data based on the evaluation results. Furthermore, the update service can cache the updated device status information in the Redis database and asynchronously store it in the MySQL database.

[0095] The device status update method provided in this application first obtains the activity level of a target user. Then, based on the target user's activity level, it determines the device status update frequency of at least one smart device associated with the target account. Finally, it updates the device status information of the at least one smart device based on the device status update frequency. This allows the IoT platform to adjust the device status information of smart devices associated with the user's household according to the user's activity level, reducing the server resource consumption of device status updates and improving server resource utilization.

[0096] It should be noted that the device status update method provided in this application embodiment can be executed by a device status update device or a control module within that device for executing the device status update method. This application embodiment uses the execution of the device status update method by a device status update device as an example to illustrate the device status update device provided in this application embodiment.

[0097] It should be noted that, in the embodiments of this application, the device state update methods shown in the accompanying drawings are all illustrated by way of example with reference to one of the accompanying drawings in the embodiments of this application. In specific implementation, the device state update methods shown in the accompanying drawings of the above methods can also be implemented in conjunction with any other accompanying drawings that can be combined with the above embodiments, which will not be elaborated here.

[0098] The device status update apparatus provided in this application is described below, and the device status update method described below can be referred to in correspondence with the device status update method described above.

[0099] Figure 4 This is a schematic diagram of the structure of a device status update apparatus provided in an embodiment of this application, as shown below. Figure 4 As shown, it specifically includes:

[0100] The acquisition module 401 is used to acquire the activity status level of the target user; the determination module 402 is used to determine the device status update frequency of at least one smart device associated with the target account based on the activity status level of the target user; the data update module 403 is used to update the device status information of the at least one smart device based on the device status update frequency; wherein, the target account is the user account registered by the target user on the Internet of Things platform.

[0101] Optionally, the device further includes: a receiving module, a sending module, and a level adjustment module; the receiving module is configured to receive a target access request from the user device used by the target user for device status information of the at least one smart device; the sending module is configured to send the device status information of the at least one smart device to the user device in response to the target access request; and the level adjustment module is configured to adjust the activity level of the target user.

[0102] Optionally, the acquisition module 401 is further configured to acquire historical access records of the target user for the device status information of the at least one smart device; the determination module 402 is further configured to determine, based on the historical access records, the total number of accesses to the device status information of the at least one smart device within a statistical period and the daily access frequency of the device status information; the level adjustment module is specifically configured to adjust the activity level of the target user based on the total number of accesses and / or the daily access frequency; wherein the activity level of the target user is positively correlated with the total number of accesses and / or the daily access frequency.

[0103] Optionally, the device further includes: a generation module; the generation module is configured to generate a device data reporting strategy for the at least one smart device based on the device status update frequency; the acquisition module 401 is further configured to acquire device data of the at least one smart device based on the device data reporting strategy; and the data update module 403 is specifically configured to update the device status information of the at least one smart device based on the acquired device data of the at least one smart device and each update time point indicated by the device status update frequency.

[0104] Optionally, the determining module 402 is further configured to determine a first update time of the device status information of the at least one smart device based on the device status update frequency; the determining module 402 is further configured to determine a second update time of the device data reported by each smart device in the at least one smart device based on the first update time; the generating module is specifically configured to generate the device data reporting strategy based on the second update time of the device data reported by each smart device in the at least one smart device; wherein the first update time and the second update time include a plurality of time points of the same number, and there is a time difference between the first time point in the first update time and the second time point in the second update time; the second time point is the time point corresponding to the first time point among the plurality of time points of the second update time, and the second time point is the time point before the first time point.

[0105] Optionally, the sending module is further configured to send the device data reporting strategy to the at least one smart device; the receiving module is further configured to receive device data reported by the at least one smart device at the time point indicated by the device data reporting strategy.

[0106] Optionally, the sending module is further configured to send a device data acquisition request to the at least one smart device at the time point indicated by the device data reporting strategy; the receiving module is further configured to receive device data sent by the at least one smart device in response to the device data acquisition request.

[0107] The device status update apparatus provided in this application first obtains the activity level of a target user. Then, based on the target user's activity level, it determines the device status update frequency for at least one smart device associated with the target account. Finally, it updates the device status information of the at least one smart device based on the device status update frequency. This allows the IoT platform to adjust the device status information of smart devices associated with the user's household according to the user's activity level, reducing the server resource consumption of device status updates and improving server resource utilization.

[0108] Figure 5 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 5As shown, the electronic device may include a processor 510, a communications interface 520, a memory 530, and a communication bus 540, wherein the processor 510, communications interface 520, and memory 530 communicate with each other via the communication bus 540. The processor 510 can invoke logical instructions in the memory 530 to execute a device status update method, which includes: obtaining the activity level of a target user; determining the device status update frequency of at least one smart device associated with a target account based on the activity level of the target user; and updating the device status information of the at least one smart device based on the device status update frequency; wherein the target account is a user account registered by the target user on the Internet of Things platform.

[0109] Furthermore, the logical instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0110] On the other hand, this application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions, and when the program instructions are executed by a computer, the computer is able to execute the device status update method provided by the above methods. The method includes: obtaining the activity status level of a target user; determining the device status update frequency of at least one smart device associated with a target account based on the activity status level of the target user; and updating the device status information of the at least one smart device based on the device status update frequency; wherein the target account is a user account registered by the target user on the Internet of Things platform.

[0111] In another aspect, this application also provides a computer-readable storage medium, the computer-readable storage medium including a stored program, wherein the program, when running, executes the device status update method provided by the above methods, the method comprising: obtaining the activity status level of a target user; determining the device status update frequency of at least one smart device associated with a target account based on the activity status level of the target user; updating the device status information of the at least one smart device based on the device status update frequency; wherein the target account is a user account registered by the target user on the Internet of Things platform.

[0112] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0113] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0114] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for updating device status, characterized in that, Applications in IoT platforms, including: Obtain the target user's activity level; The device status update frequency of at least one smart device associated with the target account is determined based on the target user's activity level. The device status information of the at least one smart device is updated based on the device status update frequency. Wherein, the target account is the user account registered by the target user on the Internet of Things platform; the target user's activity level is positively correlated with the total number of times the target user accesses the device status information, and / or the daily access frequency of the target user to the device status information; Updating the device status information of the at least one smart device based on the device status update frequency includes: Based on the device status update frequency, determine the first update time of the device status information of the at least one smart device; Based on the first update time, a second update time is determined for each of the at least one smart devices to report device data; Based on the second update time of the device data reported by each of the at least one smart devices, the device data reporting strategy is generated. Based on the device data reporting strategy, obtain device data of the at least one smart device; The device status information of the at least one smart device is updated based on the acquired device data of the at least one smart device and each update time point indicated by the device status update frequency.

2. The device status update method according to claim 1, characterized in that, After updating the device status information of the at least one smart device based on the device status update frequency, the method further includes: Receive a target access request from the user device used by the target user to access the device status information of the at least one smart device; In response to the target access request, the device status information of the at least one smart device is sent to the user equipment, and the activity level of the target user is adjusted.

3. The device status update method according to claim 2, characterized in that, The adjustment of the target user's activity level includes: Obtain the target user's historical access records for the device status information of the at least one smart device; Based on the historical access records, determine the total number of times the device status information of the at least one smart device was accessed and the daily access frequency of the device status information within the statistical period. The activity level of the target user is adjusted based on the total number of visits and / or the daily visit frequency.

4. The device status update method according to claim 1, characterized in that, The first update time and the second update time include the same number of time points, and there is a time difference between the first time point in the first update time and the second time point in the second update time; the second time point is the time point corresponding to the first time point among the multiple time points of the second update time, and the second time point is the time point before the first time point.

5. The device status update method according to claim 1 or 4, characterized in that, The process of obtaining device data for at least one smart device based on the device data reporting strategy includes: The device data reporting strategy is sent to the at least one smart device; Receive device data reported by the at least one smart device at the time point indicated by the device data reporting strategy.

6. The device status update method according to claim 1, characterized in that, The process of obtaining device data for at least one smart device based on the device data reporting strategy includes: Send a device data acquisition request to the at least one smart device at the time indicated by the device data reporting strategy; Receive device data sent by the at least one smart device in response to the device data acquisition request.

7. A device for updating equipment status, characterized in that, The device, applied to an Internet of Things (IoT) platform, includes: The acquisition module is used to obtain the activity level of the target user; The determination module is used to determine the device status update frequency of at least one smart device associated with the target account based on the activity level of the target user. The data update module is used to update the device status information of at least one smart device based on the device status update frequency. Wherein, the target account is the user account registered by the target user on the Internet of Things platform; the target user's activity level is positively correlated with the total number of times the target user accesses the device status information, and / or the daily access frequency of the target user to the device status information; The device further includes: a generation module; The determining module is further configured to determine the first update time of the device status information of the at least one smart device based on the device status update frequency. The determining module is further configured to determine a second update time for each of the at least one smart devices to report device data based on the first update time; The generation module is used to generate the device data reporting strategy based on the second update time of the device data reported by each of the at least one smart devices; The acquisition module is also used to acquire device data of the at least one smart device based on the device data reporting strategy; The data update module is specifically used to update the device status information of the at least one smart device based on the acquired device data of the at least one smart device and each update time point indicated by the device status update frequency.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the device state update method according to any one of claims 1 to 6.

9. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the device state update method according to any one of claims 1 to 6 through the computer program.

Citation Information

Patent Citations

  • Terminal equipment in physical store and information processing method, device and system thereof

    CN111007936A

  • Smart home device data updating method, device and system, and storage medium

    CN112035139A

  • Message pushing strategy determination method, device, equipment and storage medium

    CN112364239A