Multi-device management method and device based on Internet of Things
By generating device management requirements and combining basic functions, the problem of unified control caused by differences in device data models in the Internet of Things is solved, and efficient management without compatible protocols is achieved.
Patent Information
- Application Number
- CN202510854013.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-23
- Publication Date
- 2025-11-11
AI Technical Summary
In the Internet of Things (IoT) field, different devices have different data models, resulting in poor unified control and management, and serious compatibility issues with standardized protocols.
By acquiring the basic information and control objectives of the equipment to be controlled, equipment management requirements are generated. Based on the combination of requirements and basic functions, calculation expressions are generated and sent to the terminal equipment to determine control commands, thereby achieving unified control of the equipment.
Without relying on standardized data protocols, terminal devices can perform targeted adjustments by executing calculation expressions locally, avoiding compatibility issues and improving the effectiveness of unified control and management.
Smart Images

Figure CN120935207A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things (IoT) technology, and for example to a method and apparatus for managing multiple devices based on IoT. Background Technology
[0002] In the field of the Internet of Things (IoT), with the development of technology, more and more devices are interconnected through networks, covering a wide range of application areas such as smart homes, industrial automation, smart cities, and agricultural IoT. However, the data models of different devices often differ, which poses a significant challenge to unified control and management.
[0003] In related technologies, standardized data protocols are generally used to reduce differences between devices. However, due to the wide variety of protocols and the differences in the implementation of protocols by different manufacturers, there are compatibility issues with standardized protocols. Therefore, the effect of unified control and management for different devices is currently poor. Summary of the Invention
[0004] This application aims to provide a method and apparatus for managing multiple devices based on the Internet of Things (IoT).
[0005] According to one aspect of this application, a multi-device management method based on the Internet of Things is proposed, comprising: acquiring basic information and control objectives of the device to be controlled, and generating device management requirements based on the basic information and control objectives; determining relevant basic functions based on the device management requirements; combining the relevant basic functions based on the device management requirements to generate corresponding calculation expressions; and sending the calculation expressions to terminal devices so that the terminal devices can determine control instructions based on the calculation expressions and regulate the device to be controlled according to the control instructions.
[0006] According to some embodiments, basic information and control objectives of the device to be controlled are obtained, and device management requirements are generated based on the basic information and control objectives, including: obtaining basic information and control objectives; determining the current operating state and target operating state of the device to be controlled from the control objectives; and determining the basic information, current operating state and target operating state as device management requirements.
[0007] According to some embodiments, based on the device management requirements, the relevant basic functions are combined to generate corresponding calculation expressions, including: detecting pre-stored calculation expressions of the relevant basic functions corresponding to the device management requirements; if the pre-stored calculation expressions exist, determining the pre-stored calculation expressions as the calculation expressions corresponding to the device management requirements; if the pre-stored calculation expressions do not exist, combining the relevant basic functions to generate the calculation expressions.
[0008] According to some embodiments, in the absence of the pre-stored calculation expression, the relevant basic functions are combined to generate the calculation expression, including: extracting basic information, current operating status, and target operating status from device management requirements when the pre-stored calculation expression does not exist; determining the device attributes of the device to be controlled based on the basic information; combining the relevant basic functions accordingly based on the device attributes; and setting parameters for the combined relevant basic functions based on the current operating status and the target operating status to generate the calculation expression.
[0009] According to some embodiments, based on the device management requirements, the relevant basic functions are combined to generate corresponding calculation expressions, and the method further includes: storing the generated calculation expression if the pre-stored calculation expression does not exist.
[0010] According to some embodiments, based on equipment management requirements, relevant basic functions are determined, including: obtaining preset basic calculation functions, logic control functions, and function meanings; extracting features from equipment management requirements to determine multiple requirement features; obtaining preset requirement relationships corresponding to the requirement features; and determining relevant basic functions based on the preset requirement relationships, requirement features, basic calculation functions, logic control functions, and function meanings.
[0011] According to some embodiments, based on preset demand relationships, demand characteristics, basic calculation functions, logic control functions, and function meanings, relevant basic functions are determined, including: matching demand characteristics with function meanings to determine corresponding basic calculation functions; matching preset demand relationships with function meanings to determine corresponding logic control functions; and determining the corresponding basic calculation functions and corresponding logic control functions as relevant basic functions.
[0012] According to one aspect of this application, a multi-device management device based on the Internet of Things is proposed, comprising:
[0013] The requirements determination module is used to obtain the basic information and control objectives of the equipment to be controlled, and generate equipment management requirements based on the basic information and control objectives.
[0014] The function determination module is used to determine relevant basic functions based on equipment management requirements; wherein, the relevant basic functions are used to characterize basic computational units;
[0015] The expression determination module is used to combine relevant basic functions based on device management requirements to generate corresponding calculation expressions;
[0016] The sending module is used to send the calculated expression to the terminal device, so that the terminal device can determine the control command based on the calculated expression and regulate the device to be controlled according to the control command.
[0017] Optionally, the requirements determination module is specifically used for:
[0018] Obtain basic information and control objectives;
[0019] Determine the current operating state and target operating state of the equipment to be controlled from the control objectives;
[0020] Basic information, current operating status, and target operating status are defined as equipment management requirements.
[0021] Optionally, the expression determination module is specifically used for:
[0022] Detect the pre-stored calculation expressions of the relevant basic functions corresponding to the device management requirements;
[0023] If the pre-stored calculation expression exists, the pre-stored calculation expression will be determined as the calculation expression corresponding to the device management requirement;
[0024] If the pre-stored calculation expression does not exist, the relevant basic functions are combined to generate the calculation expression.
[0025] Optionally, when the expression determination module combines the relevant basic functions to generate the calculation expression in the absence of the pre-stored calculation expression, it is specifically used for:
[0026] If the pre-stored calculation expression does not exist, extract basic information, current operating status, and target operating status from the equipment management requirements;
[0027] Based on the basic information, determine the equipment attributes of the device to be controlled;
[0028] Based on the device attributes, the relevant basic functions are combined accordingly;
[0029] Based on the current running state and the target running state, the parameters of the combined basic functions are set to generate the calculation expression.
[0030] Optionally, the expression determination module is also specifically used for:
[0031] If the pre-stored calculation expression does not exist, the generated calculation expression will be stored.
[0032] Optionally, the function determination module is specifically used for:
[0033] Obtain the preset basic calculation functions, logic control functions, and function meanings;
[0034] Feature extraction is performed on equipment management requirements to identify multiple requirement characteristics;
[0035] Obtain the preset demand relationships corresponding to the demand characteristics;
[0036] Based on the pre-defined demand relationships, demand characteristics, basic calculation functions, logic control functions, and function meanings, the relevant basic functions are determined.
[0037] Optionally, the function determination module, based on preset demand relationships, demand characteristics, basic calculation functions, logic control functions, and function meanings, determines relevant basic functions, specifically for:
[0038] Match the demand characteristics with the function meanings to determine the corresponding basic calculation functions;
[0039] Match the pre-defined requirements with the meaning of the functions to determine the corresponding logic control functions;
[0040] The corresponding basic calculation functions and corresponding logic control functions are identified as the relevant basic functions.
[0041] According to one aspect of this application, an electronic device is provided, comprising: a processor; and a memory storing a computer program that, when executed by the processor, causes the processor to perform the method described above.
[0042] According to one aspect of this application, a non-transitory computer-readable medium is proposed, on which readable instructions are stored, which, when executed by a processor, cause the processor to perform the method described above.
[0043] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit this application.
[0044] Beneficial effects:
[0045] Through the embodiments provided in this application, based on the basic information of the device to be controlled and the control objectives, the device management requirements of different devices to be controlled are specifically determined. Based on these device management requirements, a calculation expression is constructed using a combination of basic functions and sent to the terminal device. During the management process, there is no need to use standardized data protocols to reduce differences between devices; the terminal device only needs to execute the calculation expression locally to generate corresponding control commands for targeted regulation of multiple devices to be controlled. The calculation expression involves mathematical or logical operations and does not depend on a specific protocol, thereby avoiding compatibility issues and improving the effectiveness of unified control and management for different devices. Attached Figure Description
[0046] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings, without exceeding the scope of protection claimed by this application.
[0047] Figure 1 A flowchart illustrating the IoT-based multi-device management method provided in this application embodiment;
[0048] Figure 2 A schematic diagram illustrating the multi-device management process provided in an embodiment of this application;
[0049] Figure 3 A schematic diagram of the terminal device management process provided in the embodiments of this application;
[0050] Figure 4 A block diagram of an IoT-based multi-device management device provided in an embodiment of this application;
[0051] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0052] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, they are provided so that this application will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted.
[0053] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0054] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0055] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0056] It should be understood that although the terms first, second, third, etc., may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another. Therefore, the first component discussed below may be referred to as the second component without departing from the teachings of this application. As used herein, the term "and / or" includes all combinations of any one and more of the associated listed items.
[0057] For specific implementation details, please refer to the following examples.
[0058] Figure 1 This is a flowchart illustrating a multi-device management method based on the Internet of Things (IoT) provided in an embodiment of this application. This method can be applied to a comprehensive control server. Figure 1 As shown, the method includes steps S10, S11, S12 and S13.
[0059] In step S10, the basic information and control objectives of the device to be controlled are obtained, and device management requirements are generated based on the basic information and control objectives.
[0060] In this application, the types and quantities of devices to be controlled vary depending on the application scenario, and the manufacturers of these devices may differ, resulting in different models. In the field of smart homes, the devices to be controlled may include various types of lighting, automatic doors and windows, etc. The control target can be used to characterize the adjustment target for the operating state of the devices to be controlled, such as adjusting smart curtains from their original 0% open state (closed) to 100% open state.
[0061] In some implementations, basic information and control objectives can be input by the user or preset. The basic information and control objectives are treated as a whole as equipment management requirements.
[0062] In step S11, the relevant basic functions are determined according to the equipment management requirements.
[0063] In this application, the relevant basic functions can be used to represent basic computational units, which can be commonly used functions, such as addition (Add(a,b)) and conditional judgment (If(value,trueCase,falseCase)).
[0064] Multiple related basic functions and their corresponding relationships with different device management requirements can be pre-defined. Based on device management needs, the corresponding basic function can be directly matched.
[0065] In step S12, based on the equipment management requirements, the relevant basic functions are combined to generate the corresponding calculation expressions.
[0066] In this application, function combination methods corresponding to different device management needs can be pre-defined. Based on these function combination methods, relevant basic functions are combined to obtain corresponding calculation expressions. For example: EXPR1 = $model.dpValue, this expression means to get the value of the variable, which comes from the current value of the dpValue field in the local device model. EXPR2 = Div(ToFloat($value),10), this expression means to get the new value of the variable value after conversion of precision. If value = 88, the output is 8.8. EXPR3 = Map($value,1,“open”,2,“stop”,3,"close"), this expression means to convert the value of the variable value into a status description string. If value = 1, the output is “open”; if value = 3, the output is “close”.
[0067] In step S13, the calculated expression is sent to the terminal device so that the terminal device can determine the control command based on the calculated expression and regulate the device to be controlled according to the control command.
[0068] In this application, a terminal device can be pre-configured to interact with the integrated control server. This terminal device can be a user's device, allowing the user to send control objectives and other required information to the server.
[0069] A control hub module can be pre-built on the terminal device. This module has fair functions such as data acquisition, model parsing, expression execution, and control command generation. The server can send the calculated expression to the terminal device, which can then activate the device to be controlled. The control hub module on the terminal device can obtain the relevant operating data of the device to be controlled according to the calculated expression, and then substitute it into the calculation to obtain the control command for each device. For multiple devices to be controlled with different models, the terminal device can achieve unified control and management by sending the control command to each device. For example, for temperature control equipment, it can calculate the indoor and outdoor temperature difference and adjust the working mode of the air conditioner or heater.
[0070] In some implementation methods, the management process can be referenced. Figure 2 The diagram illustrates a multi-device management process. Figure 2As shown, the basic calculation function and logic control function are assembled to obtain the calculation expression. The configuration platform (i.e., the integrated control server) can bind the calculation expression to the device (i.e., the device to be controlled). The integrated control server sends the calculation expression to the terminal device, which parses the expression and generates control commands, which are then sent to the intelligent device (i.e., the device to be controlled) for execution to achieve regulation.
[0071] Figure 3 This is a schematic diagram of the terminal device management process provided in the embodiments of this application, with reference to... Figure 3 The terminal device can parse the calculation expression 1 issued by the integrated control server, generate control commands, and control IoT device 1...IoT device n, which are waiting to be controlled. In other implementations, after receiving the control command, the device to be controlled reports its operating status, so that the integrated control server can further generate a calculation expression 2 for the current operating status and send it to the terminal device for parsing.
[0072] This application, based on the basic information and control objectives of the devices to be controlled, specifically identifies the device management requirements for different devices. Based on these requirements, a calculation expression is constructed using a combination of fundamental functions and sent to the terminal device. During management, there is no need to use standardized data protocols to reduce differences between devices; the terminal device only needs to execute the calculation expression locally to generate corresponding control commands for targeted regulation of multiple devices. The calculation expression involves mathematical or logical operations, does not rely on specific protocols, avoids compatibility issues, and thus improves the effectiveness of unified control and management for different devices.
[0073] According to some embodiments, basic information and control objectives can be obtained; the current operating state and target operating state of the device to be controlled can be determined from the control objectives; and the basic information, current operating state and target operating state can be determined as device management requirements.
[0074] In this application, the current operating state can be used to characterize the initial operating state of the device to be controlled, for example, smart light A is currently illuminating at 70% brightness. The target operating state can be used to characterize the state to which the device to be controlled is to be adjusted, for example, smart light A needs to be turned off, i.e., illuminating at 0% brightness. Basic information may include the model of the device to be controlled, the sensor type, and control parameters, etc.
[0075] In some implementations, the system can first receive the control objectives and pre-stored basic information sent by the user. The current operating state and the target operating state are then extracted from the control objectives, and the basic information, current operating state, and target operating state are combined as a whole to form the device management requirements.
[0076] This application combines basic equipment information (such as model and performance parameters) and control objectives to dynamically generate suitable equipment management requirements, ensuring a high degree of matching between control strategies and equipment characteristics, thereby improving management accuracy. By comparing the current operating state with the target operating state, the specific requirements for equipment regulation (such as adjustment range and optimization direction) are clarified, providing a reliable basis for the generation of subsequent calculation expressions and enhancing the pertinence and effectiveness of control.
[0077] According to some embodiments, pre-stored calculation expressions of relevant basic functions corresponding to equipment management requirements can be detected; if a pre-stored calculation expression exists, it is determined as the calculation expression corresponding to the equipment management requirements; if a pre-stored calculation expression does not exist, the relevant basic functions are combined to generate a calculation expression.
[0078] In this application, the calculated expressions generated under different circumstances can be stored. When a new management task begins, it can first check whether a pre-stored calculated expression corresponding to the task exists. If it exists, the pre-stored calculated expression can be directly called as the calculated expression for device management requirements. If no pre-stored calculated expression exists, the relevant basic functions are combined according to the above operations to generate the calculated expression.
[0079] This application employs a pre-stored expression detection mechanism to avoid redundant calculations and resource waste, enabling rapid response to commonly used control strategies and significantly reducing the system's computational load. When a pre-stored expression is missing, it automatically switches to dynamic generation mode, ensuring the system can provide effective control solutions in various scenarios.
[0080] According to some embodiments, in the absence of a pre-stored calculation expression, basic information, current operating status, and target operating status can be extracted from device management requirements; based on the basic information, the device attributes of the device to be controlled can be determined; based on the device attributes, relevant basic functions can be combined accordingly; based on the current operating status and the target operating status, the parameters of the combined relevant basic functions can be set to generate a calculation expression.
[0081] In this application, different devices to be controlled have different device attributes, which may be due to the different models used. Device attributes may include, for example, linear / nonlinear control characteristics, response delay time, etc. The device attributes of different devices to be controlled and the corresponding data combination methods can be preset and stored.
[0082] In some implementations, basic information (such as device type and hardware specifications), current operating status (such as real-time data like temperature and RPM), and target operating status (such as set temperature and target RPM) can be parsed from the device management requirements. Device attributes are matched to the basic information, and corresponding combinations are obtained to arrive at a preliminary expression. Then, the current and target operating statuses can be used as parameters to populate this preliminary expression, resulting in the calculated expression.
[0083] In other implementations, a suitable basic function library (such as PID control functions, fuzzy logic functions, state machine functions, etc.) can be selected based on the device attributes. For example, if the device attribute is linear control (such as a constant temperature chamber), a proportional-integral (PI) function is combined; if it is nonlinear control (such as intelligent lighting), a conditional judgment function and a smoothing filter function are combined. Function parameters (such as PID coefficients and threshold ranges) are set based on the difference between the current state and the target state (e.g., Δtemperature = target value - current value). If the target state is dynamically changing (such as progressive dimming), a time variable is introduced, for example, brightness = initial value + (target value - initial value) * time decay coefficient.
[0084] This application automatically matches the optimal combination of basic functions by identifying equipment attributes, ensuring a high degree of compatibility between the control algorithm and equipment characteristics. Based on basic equipment information, it dynamically adjusts the function combination strategy to generate personalized control schemes. By combining the differences between the current operating state and the target state in real time, it automatically optimizes function parameter configuration, combining only necessary functional functions to avoid redundant calculations, improving the operating efficiency of terminal equipment. Automatic parameter configuration reduces manual intervention and lowers system maintenance costs.
[0085] According to some embodiments, the generated calculation expression can be stored even if the pre-stored calculation expression does not exist.
[0086] In the absence of pre-stored calculation expressions, the generated calculation expressions can be stored for direct use in the next management task of the same type.
[0087] According to some embodiments, preset basic calculation functions, logic control functions, and function meanings can be obtained; features of equipment management requirements can be extracted to determine multiple requirement features; preset requirement relationships corresponding to the requirement features can be obtained; and relevant basic functions can be determined based on the preset requirement relationships, requirement features, basic calculation functions, logic control functions, and function meanings.
[0088] In this application, basic calculation functions, logical control functions, and the meanings of different functions can be predefined. Basic calculation functions can include value-retrieving classes, such as variable value `$model`, array index value `list[index]`, Map value `map.key`, and integer value `ToInt(a)`, etc.; they can include calculation classes, such as addition `Add(a,b)`, subtraction `Sub(a,b)`, multiplication `Mul(a,b)`, division `Div(a,b)`, and maximum value `Max(a,b)`, etc., and can also include other types. Logical control functions can include logical operation classes, such as AND operation `And(a,b)`, OR operation `Or(a,b)`, NOT operation `Not(a)`, and comparison function `Compare(a,b)`, etc.; they can include logical control classes, such as conditional judgment `If(value,trueCase,falseCase)`, matching operation `Map(value,case_1,value_1,...)`, etc., and can also include other types.
[0089] In some implementations, feature extraction can be performed on device management requirements first, such as preset feature types like "on," "off," and "under certain conditions," resulting in multiple requirement features. The relationship between different requirement features can be pre-defined; for example, when A is between 0 and 300, B is in the Open state, otherwise B is in the Close state. Using preset requirement relationships, requirement features, basic calculation functions, logic control functions, and function meanings as tags, relevant basic functions can be matched and searched.
[0090] This application achieves precise matching between control requirements and basic functions through multi-dimensional requirement feature extraction. An intelligent mapping mechanism is established based on preset requirement relationships to ensure that the selected functions fully adapt to equipment management needs. Flexible combinations of basic calculation functions and logic control functions meet diverse control requirements. The function library is dynamically expandable, and the addition of new functions does not affect the existing matching mechanism. Candidate functions are quickly filtered based on requirement features, significantly reducing computational resource consumption, avoiding function redundancy, and ensuring that the generated expressions are concise and efficient.
[0091] According to some embodiments, demand characteristics can be matched with function meanings to determine the corresponding basic calculation functions; preset demand relationships can be matched with function meanings to determine the corresponding logic control functions; and the corresponding basic calculation functions and corresponding logic control functions can be determined as relevant basic functions.
[0092] This application first matches demand characteristics with function meanings to obtain basic computational functions that have the same objective as the demand characteristics. Then, it matches preset demand relationships with function meanings to obtain logical control functions that have the same association as the preset demand relationships. Finally, it combines the obtained basic computational functions and logical control functions as a whole as relevant basic functions.
[0093] This application ensures that the selected basic calculation functions accurately meet the computational requirements of equipment control through a dual matching of demand characteristics and function semantics. It intelligently matches logic control functions based on preset demand relationships to achieve accurate expression of control logic. By adopting a method of separating, matching, and then combining calculation functions and logic functions, it enhances the flexibility of function selection, supports independent expansion and optimization of different types of functions, and maintains the clarity of the system architecture.
[0094] According to other embodiments, pre-defined, more complex or advanced basic calculation functions and logic control functions can be simplified and stored in advance. For example:
[0095] The expressions `AND(Compare(value, min))` and `Compare(max, value)` are used to determine whether `value` is between `min` and `max`. This expression, composed of nested basic calculation functions and logical control functions, is not very intuitive. A more advanced interval judgment function, `Interval(value, min, max)`, can be defined to replace the aforementioned formula and achieve equivalent computational power.
[0096] Users can define custom calculation expressions on their terminal devices. In some implementations, the terminal device can use a graphical interface to support user customization.
[0097] The following describes an apparatus embodiment of this application, which can be used to perform the method embodiment of this application. For details not disclosed in the apparatus embodiment of this application, please refer to the method embodiment of this application.
[0098] Figure 4 This is a block diagram of a multi-device management device based on the Internet of Things (IoT) provided in an embodiment of this application. Figure 4 As shown, the IoT-based multi-device management device 400 includes a demand determination module 401, a function determination module 402, an expression determination module 403, and a sending module 404.
[0099] The requirement determination module 401 is used to obtain the basic information and control objectives of the equipment to be controlled, and generate equipment management requirements based on the basic information and control objectives.
[0100] The function determination module 402 is used to determine relevant basic functions based on equipment management requirements; wherein, the relevant basic functions are used to characterize basic calculation units;
[0101] The expression determination module 403 is used to combine relevant basic functions based on device management requirements to generate corresponding calculation expressions;
[0102] The sending module 404 is used to send the calculated expression to the terminal device so that the terminal device can determine the control command based on the calculated expression and regulate the device to be controlled according to the control command.
[0103] Optionally, the requirements determination module 401 is specifically used for:
[0104] Obtain basic information and control objectives;
[0105] Determine the current operating state and target operating state of the equipment to be controlled from the control objectives;
[0106] Basic information, current operating status, and target operating status are defined as equipment management requirements.
[0107] Optionally, the expression determination module 403 is specifically used for:
[0108] Detect the pre-stored calculation expressions of the relevant basic functions corresponding to the device management requirements;
[0109] If the pre-stored calculation expression exists, the pre-stored calculation expression will be determined as the calculation expression corresponding to the device management requirement;
[0110] If the pre-stored calculation expression does not exist, the relevant basic functions are combined to generate the calculation expression.
[0111] Optionally, when the expression determination module 403 combines the relevant basic functions to generate the calculation expression in the absence of the pre-stored calculation expression, it is specifically used for:
[0112] If the pre-stored calculation expression does not exist, extract basic information, current operating status, and target operating status from the equipment management requirements;
[0113] Based on the basic information, determine the equipment attributes of the device to be controlled;
[0114] Based on the device attributes, the relevant basic functions are combined accordingly;
[0115] Based on the current running state and the target running state, the parameters of the combined basic functions are set to generate the calculation expression.
[0116] Optionally, the expression determination module 403 is also specifically used for:
[0117] If the pre-stored calculation expression does not exist, the generated calculation expression will be stored.
[0118] Optionally, the function determination module 402 is specifically used for:
[0119] Obtain the preset basic calculation functions, logic control functions, and function meanings;
[0120] Feature extraction is performed on equipment management requirements to identify multiple requirement characteristics;
[0121] Obtain the preset demand relationships corresponding to the demand characteristics;
[0122] Based on the pre-defined demand relationships, demand characteristics, basic calculation functions, logic control functions, and function meanings, the relevant basic functions are determined.
[0123] Optionally, the function determination module 402, when determining relevant basic functions based on preset demand relationships, demand characteristics, basic calculation functions, logic control functions, and function meanings, is specifically used for:
[0124] Match the demand characteristics with the function meanings to determine the corresponding basic calculation functions;
[0125] Match the pre-defined requirements with the meaning of the functions to determine the corresponding logic control functions;
[0126] The corresponding basic calculation functions and corresponding logic control functions are identified as the relevant basic functions.
[0127] The device performs functions similar to those described above; other functions are described in the preceding text and will not be repeated here.
[0128] Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application, such as... Figure 5 As shown, the electronic device 500 of this embodiment may include a memory 501 and a processor 502.
[0129] The memory 501 stores a computer program, which, when executed by the processor 502, causes the processor 502 to perform the method described in the above embodiments.
[0130] The processor 502 and the memory 501 are connected, for example, via a bus.
[0131] Optionally, the electronic device 500 may also include a transceiver. It should be noted that in practical applications, the transceiver is not limited to one, and the structure of the electronic device 500 does not constitute a limitation on the embodiments of this application.
[0132] Processor 502 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 502 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0133] A bus can include a pathway for transmitting information between the aforementioned components. The bus can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, only one thick line is used in the diagram, but this does not imply that there is only one bus or one type of bus.
[0134] The memory 501 may be a ROM (Read Only Memory) or other type of static storage device capable of storing static information and instructions, RAM (Random Access Memory) or other type of dynamic storage device capable of storing information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0135] The memory 501 is used to store application code that executes the solution of this application, and its execution is controlled by the processor 502. The processor 502 is used to execute the application code stored in the memory 501 to implement the content shown in the foregoing method embodiments.
[0136] Electronic devices include, but are not limited to: mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (such as in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Servers can also be included. Figure 5 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0137] The electronic device in this embodiment can be used to execute the method of any of the above embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.
[0138] This application also provides a non-transitory computer-readable storage medium storing computer-readable instructions thereon, which, when executed by a processor, cause the processor to perform the method as described in the above embodiments.
[0139] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a non-transitory computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0140] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this application. Furthermore, any changes or modifications made by those skilled in the art based on the ideas of this application, and on the specific implementation methods and application scope of this application, are all within the scope of protection of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A multi-device management method based on the Internet of Things, characterized in that, include: Obtain the basic information and control objectives of the device to be controlled, and generate device management requirements based on the basic information and control objectives; Based on the equipment management requirements, relevant basic functions are determined; wherein, the relevant basic functions are used to characterize basic computational units; Based on the aforementioned device management requirements, the relevant basic functions are combined to generate corresponding calculation expressions; The calculated expression is sent to the terminal device so that the terminal device can determine the control command based on the calculated expression and regulate the device to be controlled according to the control command.
2. The method according to claim 1, characterized in that, The process of acquiring basic information and control objectives of the device to be controlled, and generating device management requirements based on the basic information and control objectives, includes: Obtain the basic information and the control objective; The current operating state and target operating state of the device to be controlled are determined from the control objective. The basic information, the current operating status, and the target operating status are determined as the device management requirements.
3. The method according to claim 2, characterized in that, The process of combining the relevant basic functions based on the device management requirements to generate corresponding calculation expressions includes: Detect the pre-stored calculation expressions of the relevant basic functions corresponding to the device management requirements; If the pre-stored calculation expression exists, the pre-stored calculation expression will be determined as the calculation expression corresponding to the device management requirement; If the pre-stored calculation expression does not exist, the relevant basic functions are combined to generate the calculation expression.
4. The method according to claim 3, characterized in that, The step of combining the relevant basic functions to generate the calculation expression when the pre-stored calculation expression does not exist includes: If the pre-stored calculation expression does not exist, extract the basic information, the current operating status, and the target operating status from the device management requirements; Based on the basic information, determine the device attributes of the device to be controlled; Based on the device attributes, the relevant basic functions are combined accordingly; Based on the current running state and the target running state, the parameters of the combined basic functions are set to generate the calculation expression.
5. The method according to claim 3, characterized in that, The step of combining the relevant basic functions based on the device management requirements to generate corresponding calculation expressions also includes: If the pre-stored calculation expression does not exist, the generated calculation expression will be stored.
6. The method according to claim 1, characterized in that, The determination of relevant basic functions based on the device management requirements includes: Obtain the preset basic calculation functions, logic control functions, and function meanings; Feature extraction is performed on the equipment management requirements to determine multiple requirement features; Obtain the preset demand relationship corresponding to the demand characteristics; Based on the preset demand relationship, the demand characteristics, the basic calculation function, the logic control function, and the meaning of the function, the relevant basic function is determined.
7. The method according to claim 6, characterized in that, The process of determining the relevant basic functions based on the preset demand relationships, demand characteristics, basic calculation functions, logic control functions, and the meanings of the functions includes: Match the required characteristics with the meaning of the function to determine the corresponding basic calculation function; The preset requirement relationship is matched with the meaning of the function to determine the corresponding logic control function; The corresponding basic calculation function and the corresponding logic control function are determined as the relevant basic functions.
8. A multi-device management device based on the Internet of Things, characterized in that, include: The requirement determination module is used to obtain the basic information and control objectives of the device to be controlled, and generate device management requirements based on the basic information and control objectives. The function determination module is used to determine the relevant basic functions based on the device management requirements. The expression determination module is used to combine the relevant basic functions based on the device management requirements to generate corresponding calculation expressions; The sending module is used to send the calculated expression to the terminal device, so that the terminal device can determine the control command based on the calculated expression and regulate the device to be controlled according to the control command.
9. An electronic device, characterized in that, include: processor; A memory storing a computer program that, when executed by the processor, causes the processor to perform the method as described in any one of claims 1-7.
10. A non-transitory computer-readable storage medium, characterized in that, It stores computer-readable instructions that, when executed by a processor, cause the processor to perform the method as described in any one of claims 1-7.