Equipment management method, device and system, terminal and readable storage medium

By establishing device communication connections in the smart home system, acquiring and storing configuration data, configuring devices based on configuration data, and storing and collecting data when meeting the conditions, the data pressure problem of home hosts when managing a large number of smart devices is solved, and efficient device management and data storage are achieved.

CN119892539AInactive Publication Date: 2025-04-25GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411869190.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-04-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Home hosts face data pressure when managing a large number of smart devices, especially in device connectivity and data storage.

Method used

By establishing a communication connection with the smart device to be connected, the target type of the device is determined, the configuration data is acquired and stored during the first connection, the device is configured based on the configuration data when it is not the first connection, and the collected data is stored when the preset conditions are met.

Benefits of technology

It realizes convenient device configuration and data storage, reduces the cumbersomeness and storage pressure of data interaction, and improves the efficiency and stability of intelligent device management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892539A_ABST
    Figure CN119892539A_ABST
Patent Text Reader

Abstract

The invention provides a device management method, a gateway, a terminal and a readable storage medium, which are applied to the technical field of smart home, and the method comprises the following steps: establishing a communication connection with a to-be-connected smart device, and determining a target device type of the smart device; under the condition that the intelligent equipment of the target equipment type is connected for the first time, obtaining configuration data of the intelligent equipment, and storing the configuration data; the intelligent equipment is used for running based on the configuration data; the configuration data is associated with the target equipment type; under the condition that the intelligent device of the target device type is not connected for the first time, configuring the intelligent device based on the configuration data so as to enable the intelligent device to operate based on the configuration data; according to the data storage method and device, the collected data of the intelligent device are obtained, the collected data are stored under the condition that the collected data meet the preset storage condition, and the data storage pressure in device management can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of smart home technology, and in particular, to a device management method, apparatus, system, electronic terminal, and computer-readable storage medium. Background Art

[0002] With the rapid development of smart devices, the home host, as the core of the smart home system, undertakes multiple tasks such as device management, data storage and user interaction. The devices that need to be managed include smart lamps, smart speakers, smart appliances, etc.

[0003] In the related art, the number of devices connected to a home host is gradually increasing, and these devices themselves also generate a large amount of data. The home host needs to manage the data generated by these devices, which makes the home host have a large data pressure when managing the devices. Summary of the invention

[0004] In view of the above problems, embodiments of the present application are proposed to provide a device management method, apparatus, system, electronic terminal and computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0005] In a first aspect, an embodiment of the present application discloses a device management method, including:

[0006] Establishing a communication connection with a smart device to be connected, and determining a target device type of the smart device;

[0007] When a smart device of the target device type is connected for the first time, obtaining configuration data of the smart device and storing the configuration data; the smart device is used to operate based on the configuration data; the configuration data is associated with the target device type;

[0008] In a case where it is not the first time that a smart device of the target device type is connected, configuring the smart device based on the configuration data so that the smart device operates based on the configuration data;

[0009] Acquire the collected data of the smart device, and store the collected data if the collected data meets the preset storage conditions.

[0010] In a second aspect, an embodiment of the present application discloses a device management apparatus, the device comprising:

[0011] A device type module, used to establish a communication connection with a smart device to be connected, and determine a target device type of the smart device;

[0012] a configuration determination module, configured to obtain configuration data of the smart device and store the configuration data when the smart device of the target device type is connected for the first time; the smart device is configured to operate based on the configuration data; and the configuration data is associated with the target device type;

[0013] a configuration application module, configured to configure the smart device based on the configuration data when it is not the first time to connect to the smart device of the target device type, so that the smart device runs based on the configuration data;

[0014] The data storage module is used to obtain the collected data of the smart device and store the collected data if the collected data meets the preset storage conditions.

[0015] In a third aspect, the present application also discloses a device management system, the system comprising:

[0016] Home host, smart devices;

[0017] The home host is used to implement the steps of the device management method as described in the first aspect;

[0018] The smart device is used to send data to the home host when connected to the home host; the data at least includes collected data.

[0019] In a fourth aspect, an embodiment of the present application further discloses an electronic terminal, comprising a processor and a memory, wherein the memory stores programs or instructions that can be executed on the processor, and when the programs or instructions are executed by the processor, the steps of the device management method described in the first aspect are implemented.

[0020] In a fifth aspect, an embodiment of the present application further discloses a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the device management method described in the first aspect are implemented.

[0021] In the embodiment of the present application, by establishing a communication connection with the smart device to be connected, the target device type of the smart device is determined, and when the smart device of the target device type is connected for the first time, the configuration data of the smart device is obtained and stored. When the smart device of the target device type is not connected for the first time, the smart device is configured based on the configuration data, so that the smart device runs based on the configuration data, and the collected data of the smart device is obtained. When the collected data meets the preset storage conditions, the collected data is stored. The device type that is not connected for the first time can be conveniently configured based on the device type, avoiding the interaction and storage of configuration data for the smart device that is not connected for the first time, reducing the tediousness of data interaction and the pressure of data storage, and storing the collected data when it meets the conditions, which can further reduce the data management pressure on the smart device, and finally reduce the management pressure of the smart device. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a step diagram of a device management method provided by an embodiment of the present application;

[0023] Figure 2 is a step diagram of another device management method provided by an embodiment of the present application;

[0024] Figure 3 is a flowchart of device access and data storage provided by an embodiment of the present application;

[0025] Figure 4 is a block diagram of a device management apparatus provided in an embodiment of the present application;

[0026] Figure 5 is a block diagram of a device management system provided in an embodiment of the present application;

[0027] Figure 6 is a block diagram of an electronic terminal provided in an embodiment of the present application;

[0028] Figure 7 It is a block diagram of another electronic terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0030] refer to Figure 1 , which shows a step diagram of a device management method provided by an embodiment of the present application, the method comprising:

[0031] Step 101: establish a communication connection with a smart device to be connected, and determine a target device type of the smart device.

[0032] In the disclosed embodiment of the present invention, the steps of the device management method may be performed by a home host, which may be a large-screen device set at a fixed position in a home environment, or a portable mobile device. Users may control smart devices in the home environment, such as smart air conditioners, smart refrigerators, and smart light bulbs, based on the home host.

[0033] The process of establishing a communication connection between the home host and the smart device may include:

[0034] 1. Device discovery: The home host needs to discover and identify smart devices first. The home host can send broadcast signals. After receiving the broadcast, the smart devices in the connectable state respond to the home host with their own information, including device type, model, unique identifier, etc., so that the home host can identify them. The home host can also continuously scan the surrounding network environment to find smart devices that comply with specific communication protocols (such as wireless network Wi-Fi, Bluetooth, ZigBee).

[0035] 2. Establish a connection: After discovering the smart device, the home host needs to establish a communication connection with the device. According to the communication protocols supported by the smart device and the home host, select the appropriate communication protocol for connection. For example, for smart devices that need to transmit a large amount of data in real time and have high bandwidth requirements (such as smart cameras), you can choose the Wi-Fi protocol; and for some low-power devices that do not require high data transmission volume (such as sensors), you can choose ZigBee or Bluetooth protocols. If the communication protocol requires pairing and authentication processes (such as Bluetooth), you can perform the corresponding pairing operations including entering the pairing code, confirming the device information, and other steps.

[0036] Once the connection is established successfully, the smart device and the central control can perform data transmission and interaction. The smart device can send its own device information, such as device type and model, to the home host, and the home host can determine the target device type of the smart device based on this information. The target device type can be an air conditioner, refrigerator, TV, or other device type or a more detailed device model.

[0037] In addition, for smart devices connected via Wi-Fi, network configuration can be performed. The home host can send information such as the Wi-Fi network's service set identifier (SSID, Service Set Identifier) ​​and password to the smart device, enabling it to join the Wi-Fi network, allowing the smart device to communicate with the home host and other devices via Wi-Fi.

[0038] Step 102, when a smart device of the target device type is connected for the first time, obtaining configuration data of the smart device and storing the configuration data; the smart device is used to operate based on the configuration data; and the configuration data is associated with the target device type.

[0039] In the disclosed embodiment, if the home host is connected to a smart device belonging to the target device type for the first time, data can be interacted with the smart device to obtain the configuration data of the smart device. Configuration data can refer to relevant data generated by the user in the process of using the smart device. For example, in the case of a smart air conditioner, the user can set a specific user mode, such as mode 1: temperature 26 degrees, wind speed 2 gears, up and down swing air supply, etc.; in the case of a smart refrigerator, the user can set the temperature of the refrigerator compartment, the temperature of the freezer compartment, and others. These data generated during the user's use can be used as configuration data.

[0040] The home host stores the acquired configuration data, and the configuration data can be stored locally, such as in the local database of the home host, using a relational database management system MySQL, or a non-relational database NoSQL such as MongoDB for management. It can also interact with the server and store the configuration data in the server to reduce local storage pressure.

[0041] Smart devices run based on existing configuration data and can meet users' needs for device usage. It is understandable that different target device types correspond to different configuration data. For example, the data of smart air conditioners and smart refrigerators may be very different. Furthermore, if the target device type is distinguished based on the model, the configuration data of smart devices of different models, such as smart air conditioner model A and smart air conditioner model B, may also be different.

[0042] Step 103 : When it is not the first time to connect to a smart device of the target device type, configure the smart device based on the configuration data so that the smart device runs based on the configuration data.

[0043] In the disclosed embodiment, if the target device type of the currently connected smart device is not the first time that the home host is connected to it, it means that a smart device of the target device type has been connected before, and the home host has correspondingly obtained relevant configuration data. Then, based on the configuration data of the target device type, the currently connected smart device can be directly configured so that the smart device runs based on the configuration data, and thus the smart device can provide functions that meet the user's needs once connected.

[0044] Step 104, acquiring the collected data of the smart device, and storing the collected data if the collected data meets a preset storage condition.

[0045] In the disclosed embodiment, after the first connection and acquisition of configuration data, or after the device configuration is performed when the device is not connected for the first time, the collected data of each smart device can continue to be acquired. The collected data of different smart devices can be at least partially different, for example, the collected data of the smart air conditioner is temperature data and wind speed data, and the collected data of the smart humidifier is humidity data and temperature data.

[0046] For the acquired collected data, it can be checked whether the collected data meets the preset storage conditions. If the preset storage conditions are met, the collected data can be considered as core data and needs to be stored. The preset storage conditions can be conditions on the amount of data, the data type, and other contents. For example, if the amount of collected data is too small, it will not be stored; if the data type of the collected data does not meet a specific type, it will not be stored.

[0047] Data analysis algorithms (such as machine learning algorithms) can also be used to identify which data are core data that meet the preset storage conditions. Data can be marked based on their importance (for example, if a field of data or a piece of data is frequently used by a user for a preset number of times), and the specific judgment process of whether to store data based on the specific content of the preset storage conditions is not limited here.

[0048] In summary, in the embodiments of the present application, through the embodiments of the present application, by establishing a communication connection with the smart device to be connected, the target device type of the smart device is determined, and when the smart device of the target device type is connected for the first time, the configuration data of the smart device is obtained and stored, and when the smart device of the target device type is not connected for the first time, the smart device is configured based on the configuration data, so that the smart device runs based on the configuration data, and the collected data of the smart device is obtained, and when the collected data meets the preset storage conditions, the collected data is stored. The device type that is not connected for the first time can be conveniently configured based on the device type, avoiding the interaction and storage of configuration data for the smart device of the device type that is not connected for the first time, reducing the tediousness of data interaction and the pressure of data storage, and storing the collected data when it meets the conditions, which can further reduce the data management pressure on the smart device, and ultimately reduce the management pressure of the smart device.

[0049] refer to Figure 2 , which shows a step diagram of another device management method provided by an embodiment of the present application, the method comprising:

[0050] Step 201, establishing a communication connection with a smart device to be connected, and determining a target device type of the smart device;

[0051] Step 202, when a smart device of the target device type is connected for the first time, obtaining configuration data of the smart device and storing the configuration data; the smart device is used to operate based on the configuration data; the configuration data is associated with the target device type;

[0052] Step 203, in the case where it is not the first time to connect to the smart device of the target device type, configure the smart device based on the configuration data so that the smart device runs based on the configuration data;

[0053] Step 204: Acquire the collected data of the smart device, and store the collected data if the collected data meets a preset storage condition.

[0054] For details of the above steps 201-204, please refer to the above Figure 1 The embodiments are not described in detail here.

[0055] Optionally, the step 201 of establishing a communication connection with a smart device to be connected and determining a target device type of the smart device includes:

[0056] Sub-step 2011, establishing a communication connection with a smart device to be connected, and obtaining a device information file of the smart device; the device information file is in a preset file format;

[0057] Sub-step 2012: parsing the device information file based on the preset file format, obtaining the device type carried in the device information file to determine the target device type of the smart device.

[0058] In the disclosed embodiment, after establishing a communication connection with the smart device to be connected, the smart device may actively send a device information file to the home host, and the format of the device information file is a preset file format.

[0059] For example, it can be JSON (JavaScript Object Notation), which is a lightweight data exchange format based on a subset of JavaScript, easy to machine parse and generate, and can be parsed by multiple programming languages; it can also be eXtensible Markup Language (XML), which is a subset of the standard generalized markup language and can be used to mark data, define data types, and allow users to define markup languages. XML has good scalability, separates content from form, follows strict grammatical requirements, and has good value preservation; it can also be comma-separated values ​​(CSV), which is a CSV file that lists data structure tables stored in digital form, with related item (member) groups separated from other items (members) by commas, and rows in the table correspond to rows in the CSV file, with fields in the same row separated by commas. The file format is not specifically limited here.

[0060] When both the home host and the smart device determine to perform data exchange based on a preset file format, the smart device sends a file in the preset file format, and the home host can parse the file in a corresponding manner. For example, for a file in JSON format, the parsing tool JSONint can be used for parsing; for a file in XML format, the Document Object Model (DOM) can be used for parsing.

[0061] The embodiment of the present disclosure is implemented by establishing a communication connection with a smart device to be connected, obtaining a device information file of the smart device, the device information file is in a preset file format, parsing the device information file based on the preset file format, obtaining the device type carried in the device information file to determine the target device type of the smart device. Convenient and stable communication can be achieved between the home host and the smart device, improving the efficiency and stability of device management.

[0062] Optionally, the step of obtaining the collected data of the smart device includes:

[0063] Sub-step 2041, based on a preset time interval, sending a query request to the smart device to obtain collected data; the smart device is used to receive and respond to the query request and return the collected data;

[0064] Sub-step 2042, when the smart device triggers a preset event and returns the collected data, the collected data is obtained; the smart device is configured to actively send the collected data when the preset event occurs.

[0065] In the disclosed embodiment, the home host can perform scheduled polling based on a preset time interval, such as every hour or every day, and actively send a query request to the device, and the smart device is used to receive and respond to the query request and return the collected data. The returned collected data can be the data collected during the time period between the last received query request and the currently received query request.

[0066] Alternatively, the smart device may be configured with an event trigger mechanism, and when a specific event (such as a switch action, a fault alarm, etc.) occurs in the device, the collected data is actively sent to the home host. After receiving the collected data, the home host may process the data immediately or periodically based on another time interval.

[0067] The embodiments of the present disclosure are implemented by sending a query request to a smart device based on a preset time interval, and the smart device receives and responds to the query request and returns the collected data. When the smart device triggers a preset event and returns the collected data, the collected data is obtained. The collected data can be obtained stably by actively polling at a fixed time, and the smart device triggers the time to return the data, thereby improving the fault tolerance of data acquisition and the stability of device management.

[0068] Optionally, when the collected data meets a preset storage condition, the step of storing the collected data includes:

[0069] Sub-step 2043, determining the data type of the collected data, and determining the historical collected data belonging to the data type; the historical collected data is the data belonging to the data type that was stored most recently;

[0070] Sub-step 2044, when the difference between the values ​​of the collected data and the historical collected data is greater than a preset threshold, the collected data is stored.

[0071] In the embodiment of the present disclosure, after acquiring the collected data of the smart device, the data type of the collected data can be determined first. The data type can be temperature data, humidity data, door magnetic data, etc., which is not specifically limited here.

[0072] After determining the data type of the currently collected data, the historical collected data belonging to the data type can be determined, and the historical collected data can be the most recently stored data belonging to the data type. For example, currently, the smart device returns temperature data, and the most recently stored temperature data belonging to the temperature type can be determined from the data stored locally on the home host.

[0073] The values ​​of the collected data and the historical collected data are compared, and when the difference between the values ​​of the collected data and the historical collected data is greater than a preset threshold, the collected data is stored.

[0074] In implementing the embodiments of the present disclosure, by determining the data type of the collected data and determining the historical collected data belonging to the data type, the historical collected data is the data belonging to the data type that was stored most recently, and when the numerical difference between the collected data and the historical collected data is greater than a preset threshold, the collected data is stored. By judging whether the numerical difference between the current collected data and the historical collected data is greater than the preset threshold, the preset storage condition can be used to screen out data with obvious data fluctuations and store them, thereby avoiding the storage pressure of storing all data. At the same time, the less data stored can still effectively reflect the corresponding situation or state, thereby avoiding the problem of being unable to accurately monitor the situation or state.

[0075] Optionally, when the collected data meets a preset storage condition, the step of storing the collected data includes:

[0076] Determine the target data type of the collected data and determine a preset type set;

[0077] When the target data type is consistent with any data type in the preset type set, the collected data is stored.

[0078] In the embodiment of the present disclosure, after acquiring the collected data, the target data type of the collected data can be determined, and the specific process is not repeated here. And a preset type set is determined, and the preset type set can be stored locally on the home host or obtained by the home host from a server. The preset type set indicates the data type that needs to be stored.

[0079] For example, temperature data: directly affects the control of air conditioning and heating, and has high business value. Humidity data: affects the control of humidifiers, and has high business value. Infrared data: affects the operation of security systems, and has high business value. Frequency of use: Temperature data: updated once a minute, with high frequency of use. Humidity data: updated once every ten minutes, with medium frequency of use. Infrared data: updated once a second, with high frequency of use. Temperature data: medium frequency of change, small amplitude of change. Humidity data: low frequency of change, large amplitude of change. Infrared data: high frequency of change, large amplitude of change. Based on business, frequency or other more factors, it can be comprehensively determined that the core data includes: temperature data, infrared data, and door magnetic data; non-core data includes: humidity data. Then the preset type set can include temperature data, infrared data, and door magnetic data.

[0080] When the preset type set includes multiple data types, if the target data type is consistent with any data type in the preset type set, the collected data will be stored. For example, if the target data type of the current collected data is A, and the data types included in the preset type set are A, B, C, and D, the current collected data can be stored.

[0081] In the implementation of the embodiments of the present disclosure, by determining the target data type of the collected data and determining the preset type set, the collected data is stored when the target data type is consistent with any data type in the preset type set. It is possible to determine whether to store the collected data based on the data type, avoid missing the collected data of a specific data type, and improve the accuracy of data storage.

[0082] Optionally, each collected data is associated with a plurality of attribute parameters; when the collected data meets a preset storage condition, the step of storing the collected data includes:

[0083] In the case where the collected data meets the preset storage conditions, a target attribute is determined in the preset attribute set; the target attribute is associated with multiple storage areas; each storage area corresponds to a different attribute parameter;

[0084] Determining, among a plurality of attribute parameters associated with the collected data, a target attribute parameter corresponding to the target attribute, and a target storage area corresponding to the target attribute parameter;

[0085] The collected data is stored in the target storage area.

[0086] In the disclosed embodiment, each collected data is associated with a plurality of attribute parameters, and the attribute parameters may include priority, collection frequency, data size, data timeliness, data security, data life cycle, and others. Among them, the attribute parameters of the collection parameters of the same data type may be the same. For example, the priority parameter of temperature data A may be the same as the priority parameter of temperature data B, the priority parameter of temperature data may be greater than the priority parameter of humidity data, the collection frequency parameter of temperature data may be once per minute, and the collection frequency parameter of humidity data may be once every ten minutes.

[0087] When it has been determined that the collected data meets the preset storage conditions, that is, the collected data needs to be stored, the target attribute can be determined in the preset attribute set for classified storage of different collected data. The target attribute is associated with multiple storage areas, and each storage area corresponds to different attribute parameters. For example, the target attribute is a collection frequency parameter. When the collection frequency parameter is in the range of 10 to 20 times (per minute), it can be used for the first storage area. When the collection frequency parameter is in the range of 21 to 30 times (per minute), it can be used for the second storage area.

[0088] For example, frequently used data is stored in a fast-access second storage area such as a solid state drive (SSD), while infrequently used data is stored in a slower first storage area such as a mechanical hard disk (HDD). Alternatively, a hierarchical storage structure is used to store data in different database tables or collections to improve data retrieval efficiency.

[0089] Since the collected data is associated with multiple attribute parameters, it is necessary to determine the target attribute parameter corresponding to the target attribute among the multiple attribute parameters, and then determine the target storage area corresponding to the target attribute parameter, so that the current collected data can be stored in the target storage area.

[0090] In the implementation of the embodiment of the present disclosure, when the collected data meets the preset storage conditions, the target attribute for classification is determined in the preset attribute set, and the target attribute parameter corresponding to the target attribute and the target storage area corresponding to the target attribute parameter are determined among the multiple attribute parameters associated with the collected data, and the collected data to be stored is stored in the target storage area. It is possible to flexibly classify data from different angles based on different target attributes, and store each collected data separately according to the attribute parameters associated with each collected data, thereby improving the flexibility and accuracy of data storage.

[0091] Optionally, the method further includes:

[0092] For each smart device, obtain configuration data and collection data of the smart device;

[0093] Based on the configuration data and the collected data, a backup data set of the smart device is constructed.

[0094] In the embodiment of the present disclosure, for each smart device, corresponding configuration data and collection data may be obtained from a data storage location such as a server, wherein when the smart device is connected to the home host, the home host may first use the configuration data corresponding to the smart device as basic backup data. In the subsequent process after the connection is completed, the home host may use the collection data returned by the smart device as incremental data of the basic backup data, and may merge the basic backup data and the incremental data to construct a backup data set of the smart device.

[0095] In addition, the backup data set may also include information such as device model, manufacturer, serial number, device power, voltage, specifications, etc. The backup data set may contain all necessary information for subsequent management and updating. For example, when a smart device fails, the smart device may be repaired based on the backup data set.

[0096] When implementing the embodiments of the present disclosure, for each smart device, the configuration data and collected data of the smart device are obtained, and a backup data set of the smart device is constructed based on the configuration data and the collected data. This can form a data backup of the smart device, facilitate the management and update of the smart device, and improve the stability of device management.

[0097] Optionally, the step of configuring the smart device based on the configuration data when it is not the first time to connect to the smart device of the target device type includes:

[0098] In the case where it is not the first time to connect to the smart device of the target device type, determining target configuration data corresponding to the target device type in the configuration data set; the configuration data set includes multiple device types and associated configuration data;

[0099] The smart device is configured based on the configuration data.

[0100] In the embodiment of the present disclosure, when it is not the first time to connect to a smart device of the current target device type, it means that the current target device type already has corresponding configuration data, that is, the configuration data is obtained and stored when the smart device of the current target device type is connected for the first time. However, since there may be smart devices of multiple device types connected, and the home host also stores multiple corresponding configuration data. Therefore, it is necessary to determine the corresponding target configuration data according to the current target device type, and then configure the smart device based on the target configuration data, for example, the target configuration data can be transmitted to the smart device, or the operating parameters of the smart device can be modified based on the target configuration data.

[0101] By implementing the embodiments of the present disclosure, when it is not the first time to connect a smart device of the target device type, in a configuration data set including multiple device types and associated configuration data, the target configuration data corresponding to the target device type is determined, and the smart device is configured based on the configuration data. When the home host has connected smart devices of multiple device types and has stored configuration data of multiple device types, the target configuration data corresponding to the current target device type can be accurately determined and configured, thereby improving the accuracy of device management.

[0102] Figure 3 is a flow chart of device access and data storage provided by an embodiment of the present disclosure;

[0103] Step 301, start;

[0104] Step 302, device access;

[0105] Step 303, the home host completes basic backup based on the configuration data and other data;

[0106] Step 304, performing dynamic data monitoring on the collected data;

[0107] Step 305, determining whether the data change exceeds a threshold, that is, whether the difference between the current data and the historical data exceeds a threshold;

[0108] Step 306: if the change does not exceed the threshold, return to dynamic data monitoring;

[0109] Step 307: if the change exceeds the threshold, continue to determine whether it is core data;

[0110] Step 308: if the currently collected data is non-core data, then return to dynamic data monitoring;

[0111] Step 309: if the currently collected data is core data, the core data is marked and stored in a classified manner;

[0112] Step 310, partition and store core data;

[0113] Step 311, configuration data association, that is, configuration data of the same device type is used in association;

[0114] Step 312, user notification, that is, after completing the quick configuration of the newly connected smart device based on the existing configuration data, the user can be notified that the configuration is completed.

[0115] Configuration data and other data are used as the basic package for the first backup. Subsequently, dynamic monitoring is performed to determine whether the collected data is core data, and the core data is used as an incremental package for data update.

[0116] The core data is determined based on conditions such as the amount of change in the acquisition frequency data, and effective partition storage is performed. For the access of the same type of devices, the stored configuration data is directly associated and used to avoid the need for users to repeat various tedious configuration operations. At the same time, it avoids repeatedly storing configuration data for the same type of device, reducing storage pressure. The corresponding beneficial effects include: reducing storage requirements. By partitioning the storage of different core data, the storage requirements of the home host are reduced, and storage costs are reduced; improving data management efficiency: by identifying and storing core data, the data management process is simplified, and the system's response speed and processing capabilities are improved; optimizing user experience: by reducing redundant operations, users can complete the settings more quickly when connecting new devices, which improves the user experience of the smart home system.

[0117] In summary, in the embodiment of the present application, by establishing a communication connection with the smart device to be connected, the target device type of the smart device is determined, and when the smart device of the target device type is connected for the first time, the configuration data of the smart device is obtained and stored, and when the smart device of the target device type is not connected for the first time, the smart device is configured based on the configuration data, so that the smart device runs based on the configuration data, and the collected data of the smart device is obtained, and when the collected data meets the preset storage conditions, the collected data is stored. The device type that is not connected for the first time can be conveniently configured based on the device type, avoiding the interaction and storage of configuration data for the smart device of the device type that is not connected for the first time, reducing the tediousness of data interaction and the pressure of data storage, and storing the collected data when it meets the conditions, which can further reduce the data management pressure on the smart device, and ultimately reduce the management pressure of the smart device.

[0118] Figure 4 The present invention provides a device management apparatus 40, which includes:

[0119] The device type module 401 is used to establish a communication connection with a smart device to be connected and determine a target device type of the smart device;

[0120] The configuration determination module 402 is used to obtain configuration data of the smart device and store the configuration data when the smart device of the target device type is connected for the first time; the smart device is used to operate based on the configuration data; the configuration data is associated with the target device type;

[0121] A configuration application module 403, configured to configure the smart device based on the configuration data when it is not the first time to connect to the smart device of the target device type, so that the smart device runs based on the configuration data;

[0122] The data storage module 404 is used to obtain the collected data of the smart device and store the collected data if the collected data meets the preset storage conditions.

[0123] Optional, device type module, including:

[0124] The interval acquisition submodule is used to send a query request to the smart device based on a preset time interval to obtain the collected data; the smart device is used to receive and respond to the query request and return the collected data;

[0125] The trigger acquisition submodule is used to acquire the collected data when the smart device triggers a preset event and returns the collected data; the smart device is configured to actively send the collected data when the preset event occurs.

[0126] Optionally, a data storage module includes:

[0127] A data comparison submodule is used to determine the data type of the collected data and determine the historical collected data belonging to the data type; the historical collected data is the most recently stored data belonging to the data type;

[0128] The difference storage submodule is used to store the collected data when the difference between the values ​​of the collected data and the historical collected data is greater than a preset threshold.

[0129] Optionally, a data storage module includes:

[0130] A type set submodule, used to determine the target data type of the collected data and determine a preset type set;

[0131] The type conforming submodule is used to store the collected data when the target data type is consistent with any data type in the preset type set.

[0132] Optionally, each collected data is associated with multiple attribute parameters; the data storage module includes:

[0133] The attribute screening submodule is used to determine the target attribute in the preset attribute set when the collected data meets the preset storage conditions; the target attribute is associated with multiple storage areas; each storage area corresponds to different attribute parameters;

[0134] An attribute area submodule, used to determine a target attribute parameter corresponding to the target attribute and a target storage area corresponding to the target attribute parameter among a plurality of attribute parameters associated with the collected data;

[0135] The attribute storage submodule is used to store the collected data into the target storage area.

[0136] Optionally, the device further comprises:

[0137] A device collection module, used for acquiring configuration data and collection data of each smart device;

[0138] The device backup module is used to construct a backup data set of the smart device based on the configuration data and the collected data.

[0139] Optional, device type module, including:

[0140] A file format module, used to establish a communication connection with a smart device to be connected, and obtain a device information file of the smart device; the device information file is in a preset file format;

[0141] The file parsing module is used to parse the device information file based on the preset file format, and obtain the device type carried in the device information file to determine the target device type of the smart device.

[0142] Optionally, configure application modules, including:

[0143] A target configuration module, for determining target configuration data corresponding to the target device type in a configuration data set when it is not the first time to connect to a smart device of the target device type; the configuration data set includes a plurality of device types and associated configuration data;

[0144] A device configuration module is used to configure the smart device based on the configuration data.

[0145] In summary, in the embodiment of the present application, by establishing a communication connection with the smart device to be connected, the target device type of the smart device is determined, and when the smart device of the target device type is connected for the first time, the configuration data of the smart device is obtained and stored, and when the smart device of the target device type is not connected for the first time, the smart device is configured based on the configuration data, so that the smart device runs based on the configuration data, and the collected data of the smart device is obtained, and when the collected data meets the preset storage conditions, the collected data is stored. The device type that is not connected for the first time can be conveniently configured based on the device type, avoiding the interaction and storage of configuration data for the smart device of the device type that is not connected for the first time, reducing the tediousness of data interaction and the pressure of data storage, and storing the collected data when it meets the conditions, which can further reduce the data management pressure on the smart device, and ultimately reduce the management pressure of the smart device.

[0146] Figure 5 is a schematic diagram of a device management system provided by an embodiment of the present disclosure; Figure 5 The equipment management system 50 includes:

[0147] Home host 501, smart device 502;

[0148] The home host 501 is used to execute the method steps in the above method embodiment;

[0149] The smart device 502 is used to send data to the home host when connected to the home host; the data at least includes collected data.

[0150] Optionally, home host 501 is used to:

[0151] Based on a preset time interval, a query request is sent to the smart device to obtain the collected data; the smart device is used to receive and respond to the query request and return the collected data;

[0152] When the smart device triggers a preset event and returns collected data, the collected data is acquired; the smart device is configured to actively send the collected data when the preset event occurs.

[0153] Optionally, home host 501 is used to:

[0154] Determine the data type of the collected data, and determine the historical collected data belonging to the data type; the historical collected data is the data belonging to the data type that was stored most recently;

[0155] When the difference between the values ​​of the collected data and the historical collected data is greater than a preset threshold, the collected data is stored.

[0156] Optionally, home host 501 is used to:

[0157] Determine the target data type of the collected data and determine a preset type set;

[0158] When the target data type is consistent with any data type in the preset type set, the collected data is stored.

[0159] Optionally, each collected data is associated with a plurality of attribute parameters; the home host 501 is used to:

[0160] In the case where the collected data meets the preset storage conditions, a target attribute is determined in the preset attribute set; the target attribute is associated with multiple storage areas; each storage area corresponds to a different attribute parameter;

[0161] Determining, among a plurality of attribute parameters associated with the collected data, a target attribute parameter corresponding to the target attribute, and a target storage area corresponding to the target attribute parameter;

[0162] The collected data is stored in the target storage area.

[0163] Optionally, the home host 501 is also used to:

[0164] For each smart device, obtain configuration data and collection data of the smart device;

[0165] Based on the configuration data and the collected data, a backup data set of the smart device is constructed.

[0166] Optionally, home host 501 is used to:

[0167] Establishing a communication connection with a smart device to be connected, and obtaining a device information file of the smart device; the device information file is in a preset file format;

[0168] The device information file is parsed based on the preset file format, and the device type carried in the device information file is acquired to determine the target device type of the smart device.

[0169] Optionally, home host 501 is used to:

[0170] In the case where it is not the first time to connect to the smart device of the target device type, determining target configuration data corresponding to the target device type in the configuration data set; the configuration data set includes multiple device types and associated configuration data;

[0171] The smart device is configured based on the configuration data.

[0172] In summary, in the embodiment of the present application, by establishing a communication connection with the smart device to be connected, the target device type of the smart device is determined, and when the smart device of the target device type is connected for the first time, the configuration data of the smart device is obtained and stored, and when the smart device of the target device type is not connected for the first time, the smart device is configured based on the configuration data, so that the smart device runs based on the configuration data, and the collected data of the smart device is obtained, and when the collected data meets the preset storage conditions, the collected data is stored. The device type that is not connected for the first time can be conveniently configured based on the device type, avoiding the interaction and storage of configuration data for the smart device of the device type that is not connected for the first time, reducing the tediousness of data interaction and the pressure of data storage, and storing the collected data when it meets the conditions, which can further reduce the data management pressure on the smart device, and ultimately reduce the management pressure of the smart device.

[0173] Figure 6 1 is a block diagram of an electronic terminal 1000 shown in an exemplary embodiment. For example, the electronic terminal 1000 may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver terminal, a game console, a tablet terminal, a medical terminal, a fitness terminal, a personal digital assistant, etc.

[0174] Reference Figure 6 The electronic terminal 1000 may include one or more of the following components: a processing component 1002 , a memory 1004 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input / output (I / O) interface 1012 , a sensor component 1014 , and a communication component 1016 .

[0175] The processing component 1002 generally controls the overall operation of the electronic terminal 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.

[0176] The memory 1004 is used to store various types of data to support the operation of the electronic terminal 1000. Examples of such data include instructions for any application or method operating on the electronic terminal 1000, contact data, phone book data, messages, pictures, multimedia, etc. The memory 1004 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0177] The power supply component 1006 provides power to various components of the electronic terminal 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic terminal 1000.

[0178] The multimedia component 1008 includes a screen that provides an output interface between the electronic terminal 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. When the electronic terminal 1000 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0179] The audio component 1010 is used to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC), and when the electronic terminal 1000 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is used to receive an external audio signal. The received audio signal can be further stored in the memory 1004 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.

[0180] I / O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0181] The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the electronic terminal 1000. For example, the sensor assembly 1014 can detect the open / closed state of the electronic terminal 1000, the relative positioning of components, such as the display and keypad of the electronic terminal 1000, and the sensor assembly 1014 can also detect the position change of the electronic terminal 1000 or a component of the electronic terminal 1000, the presence or absence of contact between the user and the electronic terminal 1000, the orientation or acceleration / deceleration of the electronic terminal 1000, and the temperature change of the electronic terminal 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0182] The communication component 1016 is used to facilitate wired or wireless communication between the electronic terminal 1000 and other terminals. The electronic terminal 1000 can access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0183] In an exemplary embodiment, the electronic terminal 1000 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing terminals (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to implement the device management method provided in the embodiments of the present application.

[0184] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, and the instructions can be executed by the processor 1020 of the electronic terminal 1000 to complete the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage terminal, etc.

[0185] Figure 7 1 is a block diagram of an electronic terminal 1100 shown in an exemplary embodiment. For example, the electronic terminal 1100 may be provided as a server. Figure 7 The electronic terminal 1100 includes a processing component 1122, which further includes one or more processors, and a memory resource represented by a memory 1132, for storing instructions that can be executed by the processing component 1122, such as an application. The application stored in the memory 1132 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1122 is configured to execute instructions to perform a device management method provided in an embodiment of the present application.

[0186] The electronic terminal 1100 may also include a power supply component 1126 configured to perform power management of the electronic terminal 1000, a wired or wireless network interface 1150 configured to connect the electronic terminal 1100 to a network, and an input / output (I / O) interface 1158. The electronic terminal 1100 may operate based on an operating system stored in the memory 1132, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, FreeBSD TM or the like.

[0187] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0188] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A device management method, characterized in that: The method comprises: Establishing a communication connection with a smart device to be connected, and determining a target device type of the smart device; When a smart device of the target device type is connected for the first time, obtaining configuration data of the smart device and storing the configuration data; the smart device is used to operate based on the configuration data; the configuration data is associated with the target device type; In the case where it is not the first time that a smart device of the target device type is connected, configuring the smart device based on the configuration data so that the smart device operates based on the configuration data; Acquire the collected data of the smart device, and store the collected data if the collected data meets the preset storage conditions.

2. The method according to claim 1, characterized in that The step of obtaining the collected data of the smart device includes: Based on a preset time interval, a query request is sent to the smart device to obtain the collected data; the smart device is used to receive and respond to the query request and return the collected data; When the smart device triggers a preset event and returns collected data, the collected data is acquired; the smart device is configured to actively send the collected data when the preset event occurs.

3. The method according to claim 1, characterized in that When the collected data meets the preset storage conditions, the step of storing the collected data includes: Determine the data type of the collected data, and determine the historical collected data belonging to the data type; the historical collected data is the data belonging to the data type that was stored most recently; When the difference between the values ​​of the collected data and the historical collected data is greater than a preset threshold, the collected data is stored.

4. The method according to claim 1, characterized in that When the collected data meets the preset storage conditions, the step of storing the collected data includes: Determine the target data type of the collected data and determine a preset type set; When the target data type is consistent with any data type in the preset type set, the collected data is stored.

5. The method according to claim 1, characterized in that Each collected data is associated with multiple attribute parameters; When the collected data meets the preset storage conditions, the step of storing the collected data includes: In the case where the collected data meets the preset storage conditions, a target attribute is determined in the preset attribute set; the target attribute is associated with multiple storage areas; each storage area corresponds to a different attribute parameter; Determining, among a plurality of attribute parameters associated with the collected data, a target attribute parameter corresponding to the target attribute, and a target storage area corresponding to the target attribute parameter; The collected data is stored in the target storage area.

6. The method according to claim 1, characterized in that The method further comprises: For each smart device, obtain configuration data and collection data of the smart device; Based on the configuration data and the collected data, a backup data set of the smart device is constructed.

7. The method according to claim 1, characterized in that The step of establishing a communication connection with the smart device to be connected and determining the target device type of the smart device includes: Establishing a communication connection with a smart device to be connected, and obtaining a device information file of the smart device; the device information file is in a preset file format; The device information file is parsed based on the preset file format, and the device type carried in the device information file is acquired to determine the target device type of the smart device.

8. The method according to claim 1, characterized in that The step of configuring the smart device based on the configuration data when the smart device of the target device type is not connected for the first time includes: In the case where it is not the first time to connect to the smart device of the target device type, determining target configuration data corresponding to the target device type in the configuration data set; the configuration data set includes multiple device types and associated configuration data; The smart device is configured based on the configuration data.

9. A device management device, characterized in that: The device comprises: A device type module, used to establish a communication connection with a smart device to be connected, and determine a target device type of the smart device; a configuration determination module, configured to obtain configuration data of the smart device and store the configuration data when the smart device of the target device type is connected for the first time; the smart device is configured to operate based on the configuration data; and the configuration data is associated with the target device type; a configuration application module, configured to configure the smart device based on the configuration data when it is not the first time to connect to the smart device of the target device type, so that the smart device runs based on the configuration data; The data storage module is used to obtain the collected data of the smart device and store the collected data if the collected data meets the preset storage conditions.

10. A device management system, characterized in that: The system comprises: Home host, smart devices; The home host is used to perform the method steps described in any one of claims 1 to 8 above; The smart device is used to send data to the home host when connected to the home host; the data at least includes collected data.

11. An electronic terminal, characterized in that: include: A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method according to any one of claims 1 to 8 is performed.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the terminal where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Intelligent device configuration method and device

    CN104731615A

  • Data storage method and device, data reading method and device, electronic equipment and medium

    CN114416731A

  • Smart home control method, device and equipment and computer readable storage medium

    CN117872792A