Equipment control method and device based on Internet of Things technology, and computing equipment cluster
By adopting the equipment control method based on the Internet of Things technology in the building system, and using the management platform to automatically configure and manage control logic, a large number of problems of low configuration efficiency and difficult management are solved, and efficient control logic management and real-time updates are achieved.
Patent Information
- Application Number
- CN202410231523.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-12-22
- Filing Date
- 2024-02-29
- Publication Date
- 2025-06-24
AI Technical Summary
In building systems, when there are many controllers, it is less efficient to configure control logic for a large number of controllers, and it is difficult to achieve remote real-time update of control logic, resulting in management difficulties.
Using the device control method based on the Internet of Things technology, the control logic is obtained through the management platform, and the control equipment that executes the control logic is configured according to preset rules to realize the automatic configuration and management of the control logic.
It improves the efficiency and management convenience of configuring control logic for control devices, and realizes centralized management and real-time update capabilities of a large number of controllers.
Smart Images

Figure CN120196017A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things technology, and in particular, to a device control method, device, and computing device cluster based on Internet of Things technology. Background Art
[0002] In a building system, control logic can be configured on a controller. Based on the control logic, the operating data of electromechanical devices can be read and the operation of the electromechanical devices can be controlled. Currently, professional technicians can compile control logic files through professional software. As Figure 2 shown, it is generally written into the controller through a serial port or a field bus through a terminal such as a laptop computer.
[0003] However, in a scenario where the number of controllers is large, control logic needs to be configured for a large number of controllers. Since each controller needs to be configured through a terminal, the efficiency of configuring control logic for the controllers is low. Summary of the Invention
[0004] Embodiments of this application provide a device control method, device, and computing device cluster based on Internet of Things technology. The control logic is arranged from the perspective of service devices without considering control devices. The control logic is obtained through a management platform, and control devices for executing the control logic are configured according to preset rules, improving the efficiency of configuring control logic for control devices and the convenience of management.
[0005] In a first aspect, embodiments of this application provide a device control method based on Internet of Things technology. The method is applied to a management platform, and the management platform is used to manage infrastructure, and the infrastructure is connected to at least one control device. The method includes: obtaining control logic, where the control logic is used to indicate that when the operating data of a first service device meets certain conditions, a second service device executes a corresponding task; where the first service device and the second service device are respectively connected to at least one control device; determining, according to the control logic and preset rules, a target control device among at least one control device and a target logic corresponding to the target control device, where the target logic is used to indicate that when it is determined that the operating data of the first service device meets the control conditions, the target control device issues an instruction to the second service device so that the second service device executes the corresponding task; where the preset rules include the connection relationships between the first service device and the second service device and at least one control device; and issuing the target logic to the target control device.
[0006] In this solution, the control logic is arranged from the perspective of service devices without considering control devices. The control logic is obtained through a management platform, and control devices for executing the control logic are configured according to preset rules, improving the efficiency of configuring control logic for control devices and the convenience of management.
[0007] In a possible implementation, determining a target control device in at least one control device and the target logic corresponding to the target control device according to the control logic and preset rules includes: determining a target control device and a data transmission device in at least one control device, and the target logic corresponding to the target control device and the data transmission logic corresponding to the data transmission device according to the control logic and preset rules, where the data transmission logic is used to indicate sending the operation data of the first service device to the target control device;
[0008] The method further includes: sending the data transmission logic to the data transmission device.
[0009] In this solution, the control logic can be split based on preset rules, and the split logic can be configured to multiple control devices, improving the flexibility of control logic configuration. Subsequently, it is convenient to change the multiple control devices with control logic configuration, improving the flexibility of configuring control logic for control devices.
[0010] In a possible implementation, determining a target control device in at least one control device and the target logic corresponding to the target control device according to the control logic and preset rules includes:
[0011] Determining a target control device, a data transmission device, and an instruction transmission device in at least one control device, and the target logic corresponding to the target control device, the data transmission logic corresponding to the data transmission device, and the instruction issuing logic corresponding to the instruction transmission device according to the control logic and preset rules, where the data transmission logic is used to indicate sending the operation data of the first service device to the target control device, and the instruction issuing logic is used to indicate receiving an instruction issued by the target control device and issuing the instruction to the second service device so that the second service device performs a corresponding task;
[0012] The method further includes: sending the data transmission logic to the data transmission device and the instruction issuing logic to the instruction transmission device.
[0013] In this solution, the control logic can be split based on preset rules, and the split logic can be configured to multiple control devices, improving the flexibility of control logic configuration. Subsequently, it is convenient to change the multiple control devices with control logic configuration, improving the flexibility of configuring control logic for control devices.
[0014] In a possible implementation, at least one control device includes a controller and an edge device, and the infrastructure is connected to the controller through the edge device.
[0015] In a possible implementation, the target control device is the same controller to which the first service device and the second service device are connected, the second controller to which the second service device is connected, or the edge device.
[0016] In a possible implementation, when the target control device is the second controller connected to the second service device, the data transmission device is the first controller and the edge device connected to the first service device.
[0017] In a possible implementation, the first service device is connected to multiple controllers; the first controller connected to the first service device is any one of the multiple controllers connected to the first service device;
[0018] The second service device is connected to multiple controllers; the second controller connected to the second service device is any one of the multiple controllers connected to the second service device.
[0019] In a possible implementation, when the target control device is the edge device, the data transmission device is the first controller connected to the first service device, and the instruction transmission device is the second controller connected to the second service device.
[0020] In a possible implementation, the preset rules further include any one or more of the following: balanced available hardware resources of the controller, the controller and the service device being in the same space, and the controller and the service device being in the same network environment.
[0021] In a second aspect, an embodiment of the present application provides a device control device based on Internet of Things technology. The device control device based on Internet of Things technology includes several modules, and each module is used to execute each step in the device control method based on Internet of Things technology provided in the first aspect of the embodiment of the present application. The division of modules is not limited here. For the specific functions executed by each module of the device control device based on Internet of Things technology and the beneficial effects achieved, please refer to the functions of each step in the device control method based on Internet of Things technology provided in the first aspect of the embodiment of the present application, which will not be elaborated here.
[0022] Exemplarily, the device control device based on Internet of Things technology is applied to a management platform. The management platform is used to manage infrastructure, and the infrastructure is connected to at least one control device. The device includes:
[0023] A logic acquisition module, configured to acquire a control logic, where the control logic is used to indicate that when the operation data of a first service device meets certain conditions, a second service device executes a corresponding task; wherein the first service device and the second service device are respectively connected to at least one control device; a configuration module, configured to determine a target control device in at least one control device and a target logic corresponding to the target control device according to the control logic and a preset rule, where the target logic is used to indicate that when the target control device determines that the operation data of the first service device meets the control condition, the target control device issues an instruction to the second service device so that the second service device executes the corresponding task; wherein the preset rule includes the connection relationship between the first service device and the second service device and at least one control device; a distribution module, configured to distribute the target logic to the target control device.
[0024] In a possible implementation manner, the configuration module is configured to determine a target control device and a data transmission device in at least one control device, and a target logic corresponding to the target control device and a data transmission logic corresponding to the data transmission device according to the control logic and the preset rule, where the data transmission logic is used to indicate sending the operation data of the first service device to the target control device;
[0025] The distribution module is further configured to distribute the data transmission logic to the data transmission device.
[0026] In a possible implementation manner, the configuration module is configured to determine a target control device, a data transmission device, and an instruction transmission device in at least one control device, and a target logic corresponding to the target control device, a data transmission logic corresponding to the data transmission device, and an instruction issuance logic corresponding to the instruction transmission device according to the control logic and the preset rule, where the data transmission logic is used to indicate sending the operation data of the first service device to the target control device, and the instruction issuance logic is used to indicate receiving an instruction issued by the target control device and issuing the instruction to the second service device so that the second service device executes the corresponding task;
[0027] The distribution module is further configured to distribute the data transmission logic to the data transmission device and the instruction issuance logic to the instruction transmission device.
[0028] In a possible implementation manner, at least one control device includes a controller and an edge device, and the infrastructure is connected to the controller through the edge device.
[0029] In a possible implementation manner, the target control device is the same controller to which the first service device and the second service device are connected, the second controller to which the second service device is connected, or the edge device.
[0030] In a possible implementation manner, when the target control device is the second controller to which the second service device is connected, the data transmission device is the first controller and the edge device to which the first service device is connected.
[0031] In a possible implementation, the first service device is connected to multiple controllers; the first controller connected by the first service device is any one of the multiple controllers connected by the first service device;
[0032] The second service device is connected to multiple controllers; the second controller connected by the second service device is any one of the multiple controllers connected by the second service device.
[0033] In a possible implementation, when the target control device is an edge device, the data transmission device is the first controller connected by the first service device, and the instruction transmission device is the second controller connected by the second service device.
[0034] In a possible implementation, the preset rules further include any one or more of the following: the available hardware resources of the controller are balanced, the controller and the service device are in the same space, and the controller and the service device are in the same network environment.
[0035] In a third aspect, an embodiment of the present application provides a device control device based on Internet of Things technology, including: at least one memory for storing a program; at least one processor for executing the program stored in the memory, and when the program stored in the memory is executed, the processor is used to execute the method provided in the first aspect.
[0036] In a fourth aspect, an embodiment of the present application provides a device control device based on Internet of Things technology, and the device runs computer program instructions to execute the method provided in the first aspect. Exemplarily, the device may be a chip or a processor.
[0037] In an example, the device may include a processor, and the processor may be coupled to a memory, read instructions in the memory, and execute the method provided in the first aspect according to the instructions. Among them, the memory may be integrated in the chip or the processor, or may be independent of the chip or the processor.
[0038] In a fifth aspect, an embodiment of the present application provides a computing device cluster, including: at least one computing device, each computing device includes a processor and a memory; the processor of at least one computing device is used to execute instructions stored in the memory of at least one computing device, so that the computing device cluster executes the method provided in the first aspect.
[0039] In a sixth aspect, an embodiment of the present application provides a computer storage medium, and instructions are stored in the computer storage medium. When the instructions are run on a computer, the computer is caused to execute the method provided in the first aspect.
[0040] Seventh aspect, an embodiment of the present application provides a computer program product including instructions, which when running on a computer, cause the computer to execute the method provided in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 is a schematic diagram of the architecture of the Internet of Things system provided by an embodiment of the present application;
[0042] Figure 2 is a schematic diagram of the control logic configuration provided by the related art;
[0043] Figure 3 is a flowchart of the device control method based on Internet of Things technology provided by an embodiment of the present application Figure 1 ;
[0044] Figure 4a is a schematic diagram of the control logic provided by an embodiment of the present application Figure 1 ;
[0045] Figure 4b is a schematic diagram of the control logic provided by an embodiment of the present application Figure 2 ;
[0046] Figure 4c is a schematic diagram of the control logic provided by an embodiment of the present application Figure 3 ;
[0047] Figure 5a is a schematic diagram of the control logic deployment provided by an embodiment of the present application Figure 1 ;
[0048] Figure 5b is a schematic diagram of the control logic deployment provided by an embodiment of the present application Figure 2 ;
[0049] Figure 6 is a flowchart of the device control method based on Internet of Things technology provided by an embodiment of the present application Figure 2 ;
[0050] Figure 7 is a schematic diagram of the control logic deployment provided by an embodiment of the present application Figure 3 ;
[0051] Figure 8 is a flowchart of the device control method based on Internet of Things technology provided by an embodiment of the present application Figure 3 ;
[0052] Figure 9 is the fourth schematic diagram of the control logic deployment provided by an embodiment of the present application;
[0053] Figure 10a is a schematic diagram of the deployment of the logic file and the cross - controller logic file provided by an embodiment of the present application;
[0054] Figure 10b It is a schematic diagram of logical file deployment provided by an embodiment of the present application;
[0055] Figure 11 It is a schematic structural diagram of a device control device based on Internet of Things technology provided by an embodiment of the present application;
[0056] Figure 12 It is a schematic structural diagram of a computing device provided by an embodiment of the present application;
[0057] Figure 13 It is a schematic structural diagram of a computing device cluster provided by an embodiment of the present application;
[0058] Figure 14 It is a schematic diagram of a communication scenario between computing devices provided by an embodiment of the present application. Detailed implementation manners
[0059] In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
[0060] In the description of the embodiments of the present application, words such as "exemplary", "for example", or "for illustration" are used to indicate examples, illustrations, or explanations. Any embodiment or design solution described as "exemplary", "for example", or "for illustration" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary", "for example", or "for illustration" is intended to present relevant concepts in a specific manner.
[0061] In the description of the embodiments of the present application, the term "and / or" merely describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, B exists alone, and both A and B exist simultaneously. In addition, unless otherwise specified, the meaning of the term "plurality" refers to two or more. For example, a plurality of systems refers to two or more systems, and a plurality of terminals refers to two or more terminals.
[0062] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. The terms "include", "comprise", "have" and their variants all mean "including but not limited to", unless otherwise particularly emphasized in other ways.
[0063] The following explains some terms in this embodiment. It should be noted that these explanations are for the convenience of those skilled in the art and do not limit the scope of protection required by this application.
[0064] Internet of Things (IoT) platform: An IoT application platform based on technologies such as cloud computing, big data, and artificial intelligence, used to connect and manage IoT devices, and provide data collection, storage, processing, analysis, and application services.
[0065] Gateway: A device with sub-device management functions that proxies sub-devices to communicate with the IoT platform.
[0066] Direct-connected device: An IoT device that is directly connected to the IoT platform and reports its own status through a network connection.
[0067] Mechanical and electrical equipment: Generally refers to mechanical, electrical, and electrical automation equipment. In buildings, it mostly refers to the collective term for mechanical and pipeline equipment other than geotechnical, carpentry, steel bar, and masonry work, such as fresh air units, supply and exhaust fans, water pumps, air conditioners, etc. in buildings.
[0068] Controller: A controller used to control and monitor mechanical and electrical equipment, which can control the connected mechanical and electrical equipment through a control program, such as a Direct Digital Control (DDC) system. It is an automated control system that can detect and control parameters in the production process through a computer or controller. The DDC system calculates based on the set values and control algorithms and outputs the results to the actuator to maintain the controlled parameters within a stable given value range.
[0069] Control logic: A piece of logic running on the controller that adjusts the opening of the chilled water valve and the frequency of the supply fan by collecting the operating data (supply air temperature, supply air pressure, indoor temperature) of mechanical and electrical equipment such as AHU, so as to achieve the controlled object of the mechanical and electrical equipment.
[0070] Serial Interface: Abbreviated as serial port, also known as serial communication interface or serial communication interface (usually refers to the COM interface, which is an extended interface using serial communication mode. The serial port means that data is transmitted sequentially one bit at a time; its characteristic is that the communication line is simple, and only a pair of transmission lines can achieve two-way communication (the telephone line can be directly used as the transmission line), thus greatly reducing the cost, especially suitable for long-distance communication, but the transmission speed is slower.
[0071] Figure 1 Shows an architecture example diagram of an IoT system applied in the embodiment of this application. As Figure 1, the Internet of Things system 100 includes a terminal 110, a management platform 120, an infrastructure 130, edge devices 140, a plurality of controllers 150, and a plurality of service devices 160. Figure 1 In the figure, 2 controllers 150 and 4 service devices 160 are schematically shown. Figure 1 The numbers of the controllers 150 and service devices 160 shown are only for illustration and do not constitute a specific limitation. In specific implementation, there may be more or fewer controllers 150 and service devices 160.
[0072] Among them, the terminal 110 can be but is not limited to various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices. Exemplary embodiments of the terminal 110 involved in this solution include but are not limited to electronic devices running iOS, android, Windows, Harmony OS, or other operating systems. The embodiments of this application do not specifically limit the type of electronic devices. In specific implementation, the terminal 110 can run a management application to configure the management platform 120.
[0073] Among them, the management platform 120 is used to manage the infrastructure 130 and can be deployed on the device resources of the infrastructure 130 or on an electronic device outside the infrastructure 130, such as a server. Exemplarily, the management platform 120 can be an IoT platform.
[0074] Among them, the infrastructure 130 refers to the basic technical settings for services, including various hardware resources and software for managing the hardware resources. For example, the hardware resources can be servers, storage devices, network devices, etc.
[0075] Among them, the edge devices 140 mainly refer to switches, routers, routing switches, IADs, and various MAN / WAN devices installed on the edge network, and are responsible for packet transmission between access devices and core / backbone network devices. Exemplarily, the edge devices 140 can be gateways.
[0076] It should be noted that the management platform 120 can communicate with the terminal 110, the infrastructure 130, and the edge device 140 through a network; by way of example, the wired network can be a cable network, an optical fiber network, a Digital Data Network (DDN), etc., and the wireless network can be a telecommunications network, an internal network, the Internet, a Local Area Network (LAN), a Wide Area Network (WAN), a Wireless Local Area Network (WLAN), a Metropolitan Area Network (MAN), a Public Service Telephone Network (PSTN), a ZigBee network, a Global System for Mobile Communications (GSM) network, etc., or any combination thereof. It can be understood that the network can use any known network communication protocol to achieve communication between different client layers and gateways, and the above network communication protocols can be various wired or wireless communication protocols, such as Ethernet, universal serial bus (USB), FireWire, Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), New Radio (NR), and other communication protocols.
[0077] Among them, the controller 150 can be connected to a number of service devices 160, such as Figure 1As shown, the controller 150 can be connected to two business devices. It should be noted that the controller 150 can be connected to business devices 160 of the same device type, or can be connected to business devices of different device types. The specific details can be determined in combination with the actual situation of the controller, and the embodiment of the present application does not make specific limitations on this. The controller 150 can communicate with the edge device 140, and the controller 150 can communicate with the business device 160 through a network, wherein the network can be a wired network or a wireless network.
[0078] The business device 160 can be understood as a device for implementing a business; illustratively, in the scenario of the Internet of Things, the business device 160 can be an air conditioning unit, a lighting lamp, etc. The business device 160 can communicate with the controller 150 through a network, wherein the network can be a wired network or a wireless network.
[0079] In some scenarios, the controller 150 can read the operation data of the service device 160 and control the operation of the service device 160. The control logic of the service device 160 can be configured on the controller 150. In the building system, the service device 160 is controlled by the controller 150, and the control logic file can be compiled by professional technicians through professional software, such as Figure 2 As shown, the controller 150 is generally written into the controller 150 through a terminal 110 such as a laptop computer through a serial port or a field bus. However, in large and medium-sized parks, the number of controllers 150 is large, and the workload of compiling the control logic of the controller 150 is large, and the control logic cannot be updated remotely in real time, which makes it difficult to update and maintain the control logic, and increases the difficulty of unified management of the control logic of the business equipment 160.
[0080] Based on this, the embodiment of the present application provides the following device control method based on Internet of Things technology, the specific contents of which include: the management platform 120 has the ability to orchestrate, distribute, and update the control logic of the business device 160; in addition, the management platform 120 also has the ability to update the control logic online in real time, thereby reducing the difficulty of unified management of the control logic of the business device 160 and improving the convenience of updating and maintaining the control logic. In the specific implementation, the management platform 120 orchestrates the control logic based on the perspective of the business device 160. The control logic is only used to describe the relationship between the business devices 160. Then, combined with the connection relationship between the business device 160 and the controller 150, the control logic of the business device 160 is configured to the controller 150, or, configured to the controller 150 and the edge device 140. For details, see the following description. Figure 3 Description.
[0081] Next, in combination with the IoT system provided above, a device control method based on IoT technology provided in an embodiment of the present application is introduced in detail.
[0082] Figure 3 It is a schematic flowchart of a device control method based on Internet of Things technology provided by an embodiment of this application. This embodiment can be applied to an electronic device, specifically, it can be applied to a server or a general computer.
[0083] As Figure 3 shown, the device control method based on Internet of Things technology provided by an embodiment of this application at least includes the following steps:
[0084] Step 301, the terminal 110 creates a plurality of control devices and a plurality of service devices 160 on the management platform 120. The plurality of control devices include edge devices 140 and a controller 150. The edge device 140 is connected to the management platform 140.
[0085] In specific implementation, the terminal 110 can run management software. The management software provides a user interface (User Interface, UI). The user can operate the UI interface to create objects on the management platform 120 and configure relevant information of the objects. Among them, the objects can include edge devices 140, a controller 150, and service devices 160. The relevant information of the objects can include the location of the objects, the network where they are located, specification parameters, device tags, etc. Among them, the location where the objects are located can be a building, a floor, a room, etc. The network where the objects are located, such as a serial port number, an IP address, a MAC address. The specification parameters of the objects are used to describe the factory information of the devices, such as the model, the manufacturer, etc. In the scenario where the object is a controller, the number of interfaces of the controller 150 also needs to be described. The device tags are used to describe the users using the objects, such as XXX company. In addition, there can be a corresponding relationship between the device tags. There is a management relationship between the device tags with a corresponding relationship. For example, Company A corresponds to Company B, indicating that Company A can manage the assets of Company B.
[0086] Subsequently, the edge device 140 is connected to the management platform 120. In some possible implementation manners, the terminal 110 can send authentication information to the edge device 140. The authentication information can include a device identifier and a key. The edge device 140 connects to the management platform 120 according to the authentication information.
[0087] It should be noted that the control device can be a device required to control the service device 160, at least including the controller 150. Further, it can also include devices required for communication between controllers 150, such as edge devices 140. In the embodiment of this application, the plurality of control devices including edge devices 140 and a controller 150 are only used as examples and do not constitute specific limitations. The control devices can be flexibly designed in combination with the actual scenario. For the convenience of description and understanding, the embodiment of this application takes the controller 150 and the edge device 140 as examples to illustrate the technical solution.
[0088] Step 302: The terminal 110 sends a preset rule and a control logic to the management platform 120. The control logic is used to indicate that when the operation data of the first service device 160A meets certain conditions, the second service device 160B executes a corresponding task. The first service device 160A and the second service device 160B are connected to at least one control device. The preset rule includes the connection relationship between the first service device 160A and the second service device 160B and the at least one control device.
[0089] In the embodiment of the present application, the at least one control device is multiple controllers 160, or multiple controllers 160 and an edge device 140. The multiple controllers 160 are connected through the edge device 140 to achieve communication.
[0090] Among them, the connection relationship between the first service device 160A and the second service device 160B and the at least one control device can be understood as the controllers 150 that the first service device 160A can be connected to, the controllers 150 that the second service device 160B can be connected to, and the connection methods of the first service device 160A and the second service device 160B to the controllers 150 respectively, such as serial port connection and Ethernet connection. In some possible scenarios, the connection relationship between the first service device 160A and the second service device 160B and the at least one control device can be carried by a file (for the convenience of description and distinction, it can be called a connection relationship file). In specific implementation, considering that the connection relationship between the service device and the control device can be continuously used, in order to reduce the transmission cost, the terminal 110 can send the connection relationship file to the management platform. The connection relationship file can include the connection relationships between all required service devices 160 and all control devices.
[0091] In addition, the preset rule is used to indicate the rule for selecting a control device. In an example, in addition to including the connection relationship between the first service device 160A and the second service device 160B and the at least one control device, the preset rule can also include any one or more of the following configuration strategies:
[0092] The available hardware resources of the controller 140 are balanced, the controller 140 and the service device 160 are in the same space, and the controller 140 and the service device 160 are in the same network environment.
[0093] Among them, the available hardware resources of the controller 140 can be the resources remaining after the controller 140 runs a task. Among them, the tasks run by the controller 140 can be several control logics that need to be executed. If the controller 140 has no control logic that needs to be executed, the controller 140 is an idle device. Among them, the available hardware resources are used to indicate the number of cores of the central processing unit (CPU), the available storage space, etc.
[0094] Among them, the space can be a room, a floor or a building, which can be specifically determined according to actual needs, and the embodiments of the present application do not make specific limitations thereto.
[0095] Among them, the network environment is used to indicate a separate network, which can be formed by all devices connected to the entrance or exit of 1 gateway or 1 router. Devices in the same network environment can communicate with each other. In some possible cases, the network environment can be represented by a subnet, and the same subnet represents the same network environment.
[0096] In some possible implementation manners, the configuration policy in the preset rule can be the default of the platform or configured by the terminal 110. In addition, the configuration policies in the preset rule can have priorities, and different configuration policies have different priorities. The configuration policy corresponds to a decision factor. Exemplarily, the decision factor and its corresponding configuration policy are shown in Table 1 below:
[0097]
[0098] Table 1
[0099] Exemplarily, the order of priorities from high to low can be 1, 2, 3, 4, 5, 6. It should be noted that the above decision factors are only examples and do not constitute specific limitations. The decision factors and the configuration policies of the decision factors can be flexibly set according to the actual situation.
[0100] Among them, the control logic can be used to indicate that when the operation data of several first service devices 160A meet certain conditions, several second service devices 160B perform corresponding tasks. Among them, the operation data is used to describe the parameter values of at least some of the acquisition parameters generated during the operation of the first service 160A that need to be collected. The acquisition parameters are used to summarize the data situation, such as carbon dioxide concentration, sensor data, indoor temperature, etc. The corresponding task is used to indicate the target state of the controlled object of the second service device 160B. Among them, the controlled object is used to describe the object that can be controlled on the service device 160. This object can be hardware such as a cold water valve, or a function such as an exhaust function or a lighting function. Among them, the target state is used to indicate the working state of the controlled object, such as open, closed, opening size, etc. It should be noted that the number of first service devices 160A can be one or more, and the number of second service devices 160B can be one or more. The first service devices 160A and the second service devices 160B can be exactly the same, completely different, or partially the same. The embodiments of the present application do not make specific limitations on this, and can be determined specifically according to the actual situation. Exemplarily, the control logic is used to illustrate that when the operation data of the service device 160A meets certain conditions, the service device 160A and the service device 160B perform corresponding tasks. Exemplarily, the control logic is used to illustrate that based on the operation data of the service device 160A and the service device 160B meeting certain conditions, the service device 160A and the service device 160B perform corresponding tasks.
[0101] For example, the first service device 160A and the second service device 160B are the same. As Figure 4a shown, the control logic is: when the carbon dioxide concentration monitored by the service device 160A is greater than 1000 PPM, the service device 160A turns on the exhaust; or, when the indoor temperature monitored by the service device 160A is greater than 25 °C, the service device 160A opens the cold water valve, and when the indoor temperature is less than 21 °C, the service device 160A closes the cold water valve; or, when the human body sensor (used to monitor whether there is someone, such as an image sensor) of the service device 160A monitors someone, the service device 160A turns on the lighting.
[0102] For example, the first service device 160A and the second service device 160B are different. As Figure 4bAs shown in the figure, the control logic is as follows: when the carbon dioxide concentration detected by the service device 160B is greater than 1000 PPM, the service device 160A and the service device 160B turn on the exhaust; or, when the indoor temperature monitored by the service device 160A is greater than 25 °C, the service device 160A and the service device 160B open the cold water valve, and when the indoor temperature is less than 21 °C, the service device 160A and the service device 160B close the cold water valve; or, when the human body sensor of the service device 160A detects someone, the service device 160A and the service device 160B turn on the lighting.
[0103] For example, the first service device 160A and the second service device 160B are different. As Figure 4c shown in the figure, the control logic is as follows: when the carbon dioxide concentration detected by the service device 160A and the service device 160B is greater than 1000 PPM, the service device 160D turns on the exhaust; or, when the indoor temperature monitored by the service device 160A and the service device 160B is greater than 25 °C, the service device 160C opens the cold water valve, and when the indoor temperature is less than 21 °C, the service device 160C closes the cold water valve. When the indoor temperature is greater than or equal to 21 °C and less than or equal to 25 °C, based on the indoor temperature monitored by the service device 160A and the service device 160B, the opening size of the cold water valve of the service device 160C is determined; or, when the human body sensor of the service device 160A detects someone, the service device 160C and the service device 160D turn on the lighting.
[0104] In some possible implementation manners, the terminal 110 can obtain a control logic template, which is used to indicate the corresponding tasks to be executed when the operation data meets certain conditions; then the terminal 110 can fill in the first service device 160A and the second service device 160B in the control logic template to obtain the control logic.
[0105] Among them, the first service device 160A and the second service device 160B described in the control logic can be considered as the service devices 160 related to the control logic, or it can be considered that the first service device 160A, the second service device 160B, and the control logic are related; specifically, the service device 160 related to the control logic can be understood as the service device 160 that needs to participate in implementing the control logic, which is the first service device 160A and the second service device 160B.
[0106] It should be noted that for each service device 160, there can be multiple control logics related to the service device 160. In specific implementation, several service devices 160 related to different control logics can be completely the same, completely different, or partially the same. The embodiments of the present application do not make specific limitations on this, and can be specifically determined in combination with the actual situation.
[0107] It should be noted that the naming of the first service device 160A and the second service device 160B is only for illustration, does not constitute a specific limitation, and has no special meaning. In some possible scenarios, the first service device 160A and the second service device 160B can also be named as the source service device 160A and the controlled service device 160B, or the first service device 160A and the second service device 160B can also be named as the source-side service device 160A and the controlled-side service device 160B. The embodiments of the present application use the first service device 160A and the second service device 160B as examples to illustrate the solutions provided by the embodiments of the present application.
[0108] In addition, in step 302, the preset rules and the control logic can be sent to the management platform 120 together, or can be sent to the management platform 120 separately. The embodiments of the present application do not make specific limitations on this, and can be flexibly designed according to actual needs.
[0109] Step 303: The management platform 120 determines the target control device in at least one control device and the target logic corresponding to the target control device according to the control logic and the preset rules. The target logic is used to instruct the target control device to send an instruction to the second service device 160B when it is determined that the operation data of the first service device 160A meets the control conditions, so that the second service device 160B performs the corresponding task.
[0110] It should be noted that in this step, the management platform 120 can screen out the target control device that executes the target logic from at least one control device connected to the first service device 160A and the second service device 160B. The target logic is the key logic in the control logic for controlling the second service device 160B, and the target control device that executes the target logic is the key device for controlling the second service device 160B.
[0111] In the embodiments of the present application, for each control logic, when the first service device 160A and the second service device 160B indicated by the control logic are different and connected to the same controller 150, or when the first service device 160A and the second service device 160B are the same, the control logic corresponds to the same controller 150 connected to the first service device 160A and the second service device 160B; when the first service device 160A and the second service device 160B indicated by the control logic are different and connected to different controllers 150, the control logic is split into multiple parts, respectively corresponding to different controllers 150 connected to the first service device 160A and the second service device 160B, and the edge device 140. Any one of the different controllers 150 connected to the first service device 160A and the second service device 160B, and the edge device 140 can be used as the target control device.
[0112] In one example, the target control device may be the same controller 150 to which the first service device 160A and the second service device 160B are connected.
[0113] Exemplarily, for the first service device 160A and the second service device 160B described in the control logic, assuming that the first service device 160A is connected to the controller 150a, and the second service device 160B is connected to the controller 150a and the controller 150b. Since the first service device 160A and the second service device 160B can be connected to the same controller 150a, the controller 150a can be used as the target control device.
[0114] In one example, the target control device may be the controller 150 (which can be called the second controller 150 for the convenience of description and distinction) to which the second service device 160B is connected. In some possible cases, the second controller 150 may be connected to the first service device 150A. In some other possible cases, there may be multiple controllers 150 to which the second service device 160B is connected, and the second controller 150 may be any one of the multiple controllers 150 to which the second service device 160B is connected. For example, the controller 150 with the most available hardware resources, or the controller 150 in the same space as the second service device 160B, such as in the same room, or the controller 150 in the same network environment as the second service device 160B, such as in the same subnet. In specific implementation, the management platform 120 filters out the second controller from the multiple controllers 150 to which the second service device 160B is connected in the order of highest to lowest priority based on the configuration policy; more specifically, the management platform 120 filters the controller 150 according to the configuration policy with the highest priority. If there are multiple filtered-out controllers 150, the priority of the next lower level is reduced, and the filtering continues from the multiple already filtered-out controllers 150 until a unique controller 150 is filtered out.
[0115] Exemplarily, for the first service device 160A and the second service device 160B described in the control logic, assuming that the first service device 160A is connected to the controller 150a, and the second service device 160B is connected to the controller 150b and the controller 150c. The controller 150a needs to process the control logic related to 3 service devices 160, the controller 150b needs to process the control logic related to 1 service device 160, and the controller 150c needs to process the control logic related to 3 service devices 160. The controller 150a, the controller 150b, and the controller 150c can communicate through the same edge device 140, then the controller 150b can be used as the target control device to ensure load balancing as much as possible.
[0116] In one example, the target control device may be the edge device 140 connected to the controller 150 to which the second service device 160B is connected.
[0117] Step 304: The management platform 120 sends the corresponding target logic to the target control device.
[0118] Exemplarily, if the target control device is the second controller 150. In some possible implementation manners, if the management platform 120 can be directly connected to the controller 150, the management platform 120 directly sends the target logic to the target controller; in some other possible implementation manners, if the management platform 120 is connected to the second controller 150 through the edge device 140, the management platform 120 sends the target logic corresponding to the target control device to the edge device 140, and the edge device 140 sends the target logic to the corresponding target controller.
[0119] Exemplarily, if the target control device is the edge device 140, the management platform 120 only needs to send the target logic corresponding to the target control device to the edge device 140.
[0120] In this solution, the control logic is orchestrated from the perspective of the service device without considering the control device. The control logic is obtained through the management platform, and the control device for executing the control logic is configured according to the preset rules, which improves the efficiency of configuring the control logic for the control device and the convenience of management.
[0121] In some possible implementation manners, in step 303, the management platform 120 determines the implementation manners of the target control device based on the connection relationships between the first service device 160A and the second service device 160B and at least one control device in the preset rules, and there are the following two types.
[0122] Implementation manner A1: The management platform 120 determines the same controller 150 to which the first service device 160A and the second service device 160B are connected, and if the available hardware resources of this controller 150 can run the control logic, then this controller is used as the target control device.
[0123] Implementation manner A2: The management platform 120 determines that the first service device 160A and the second service device 160B are connected to different controllers 150, then the second controller 150 to which the second service device 160B is connected, or the edge device 140 connected to the second controller 150 to which the second service device 160B is connected is used as the target control device.
[0124] For implementation method A1, the target logic corresponding to the target control device is the control logic. In some possible cases, there may be multiple identical controllers 150 to which the first service device 160A and the second service device 160B are connected. Then the target controller can be any one of the multiple controllers 150, for example, the controller 150 with the most available hardware resources, or the controller 150 located in the same space as the first service device 160A and the second service device 160B, such as in the same room, or the controller 150 located in the same network environment as the first service device 160A and the second service device 160B, such as in the same subnet. In specific implementation, the management platform 120 filters out the second controller from the multiple identical controllers 150 to which the first service device 160A and the second service device 160B are connected based on the configuration policy in the order of decreasing priority; more specifically, the management platform 120 filters the controller 150 according to the configuration policy with the highest priority. If there are multiple filtered-out controllers 150, the priority of the next lower level is used, and the filtering continues from the multiple already filtered-out controllers 150 until a unique controller 150 is filtered out.
[0125] In one example, the first service device 160A and the second service device 160B are the same.
[0126] Exemplarily, as Figure 4a shown, the control logic is: when the carbon dioxide concentration monitored by the service device 160A is greater than 1000 PPM, the service device 160A turns on the exhaust; where the first service device 160A is the service device 160A, the collected parameter is the carbon dioxide concentration, the second service device 160B is the service device 160A, and the controlled object is the exhaust function. The connection relationship between the controller 150 and the service device 160 is used to illustrate that the service device 160A is connected to the controller 150a. Then as Figure 5a shown, the target control device is the controller 150a.
[0127] Exemplarily, as Figure 4a shown, the control logic is: when the indoor temperature monitored by the service device 160A is greater than 25 °C, the service device 160A opens the cold water valve, and when the indoor temperature is less than 21 °C, the service device 160A closes the cold water valve; where the first service device 160A is the service device 160A, the collected parameter is the indoor temperature, the second service device 160B is the service device 160A, and the controlled object is the cold water valve. The connection relationship between the controller 150 and the service device 160 is used to illustrate that the service device 160A is connected to the controller 150a. Then as Figure 5a shown, the target control device is the controller 150a.
[0128] Exemplarily, as Figure 4aAs shown, the control logic is as follows: when the human body sensor of the service device 160A (used to monitor whether there is a person, such as an image sensor) monitors a person, the service device 160A turns on the lighting; among them, the first service device 160A is the service device 160A, the acquisition parameter is the human body sensor, the second service device 160B is the service device 160A, and the controlled object is the lighting function. The connection relationship between the controller 150 and the service device 160 is used to illustrate that the service device 160A is connected to the controller 150a. Then, as Figure 5a shown, the target control device is the controller 150a.
[0129] In an example, the first service device 160A and the second service device 160B are at least partially different.
[0130] Exemplarily, as Figure 4b shown, the control logic is as follows: when the carbon dioxide concentration monitored by the service device 160B is greater than 1000 PPM, the service device 160A and the service device 160B turn on the exhaust; among them, the first service device 160A is the service device 160A, the acquisition parameter can be the carbon dioxide concentration, the controlled object is the exhaust function, and the second service device 160B is the service device 160A and the service device 160B. The connection relationship between the controller 150 and the service device 160 is used to illustrate that the service device 160A and the service device 160B are connected to the controller 150a. Then, as Figure 5b shown, the target control device is the controller 150a.
[0131] Exemplarily, as Figure 4b shown, the control logic is as follows: when the indoor temperature monitored by the service device 160A is greater than 25 °C, the service device 160A and the service device 160B open the cold water valve, and when the indoor temperature is less than 21 °C, the service device 160A and the service device 160B close the cold water valve; among them, the first service device 160A is the service device 160A, the acquisition parameter can be the indoor temperature, the controlled object is the cold water valve, and the second service device 160B is the service device 160A and the service device 160B. The connection relationship between the controller 150 and the service device 160 is used to illustrate that the service device 160A and the service device 160B are connected to the controller 150a; then, as Figure 5b shown, the target control device is the controller 150a.
[0132] Exemplarily, as Figure 4bAs shown, the control logic is as follows: when the human body sensor of service device 160A monitors that there is someone, service device 160A and service device 160B turn on the lighting; among them, the first service device 160A is service device 160A, the collected parameter can be human body sensor data, the controlled object is the lighting function, and the second service device 160B is service device 160A and service device 160B. The connection relationship between controller 150 and service device 160 is used to illustrate that service device 160A and service device 160B are connected to controller 150a. Then as Figure 5b shown, the target control device is controller 150a.
[0133] For implementation method A2, the target logic corresponding to the target control device is part of the control logic, and the other logics in the control logic correspond to other control devices. In this implementation method, the control logic can be split based on a preset rule, and the split logics are configured to multiple control devices, which improves the flexibility of the control logic configuration. Subsequently, it is convenient to change the multiple control devices with the control logic configuration, and the flexibility of configuring the control logic for the control devices is improved.
[0134] In the embodiments of this application, the target control device and other control devices can be controller 150 and edge device 140. In one example, based on the connection relationship between controller 150 and service device 160, management platform 120 can split the control logic to configure it to multiple controllers 150 and edge devices 140, and obtain the logics corresponding to edge device 140 and multiple controllers 150 respectively. In specific implementation, when management platform 120 determines that the first service device 160A and the second service device 160B are connected to different controllers 150, from the multiple control devices connected by the first service device 160A and the second service device 160B, the target control device and several other control devices are determined, and the control logic is split according to the target control device and the several other control devices, to obtain the target logic corresponding to the target control device and the logics corresponding to the several other control devices respectively (for the convenience of description and distinction, it can be called auxiliary logic).
[0135] In some possible cases, there are 2 other control devices, and the auxiliary logic corresponding to each other control device is used to indicate to send the operation data of the first service device 160A to the target control device; for the convenience of description and distinction, the other control devices can be called data transmission devices, and the auxiliary logic can be called data transmission logic.
[0136] Exemplarily, Figure 6 shows Figure 3 the schematic flowchart of step 303 in the embodiment as shown.
[0137] As Figure 6 shown, in the above Figure 3Based on the illustrated embodiments, in the embodiments of the present application, step 303 may specifically include the following steps:
[0138] Step 303a: The management platform 120 determines, according to the control logic and preset rules, the target control device and data transmission device in at least one control device, as well as the target logic corresponding to the target control device and the data transmission logic corresponding to the data transmission device. The data transmission logic is used to instruct to send the operation data of the first service device 160A to the target control device.
[0139] Then Figure 3 The method further includes the following steps:
[0140] Step 305: The management platform 120 issues the data transmission logic to the data transmission device.
[0141] It should be noted that the data transmission device may be the first controller 150 connected to the first service device 160A and the edge device 140 connected to the first controller 150. In some possible cases, there may be multiple controllers 150 connected to the first service device 160A. Then the first controller 150 may be any one of the multiple controllers 150 connected to the first service device 160A. For example, the controller 150 with the most available hardware resources, or the controller 150 in the same space as the first service device 160A, such as in the same room, or the controller 150 in the same network environment as the first service device 160A, such as in the same subnet. In specific implementation, the management platform 120 filters out the second controller from the same multiple controllers 150 connected to the first service device 160A in the order of priority from high to low based on the configuration policy. More specifically, the management platform 120 filters the controller 150 according to the configuration policy with the highest priority. If there are multiple filtered-out controllers 150, the priority of the next lower level is reduced, and the filtering continues from the multiple already filtered-out controllers 150 until a unique controller 150 is filtered out.
[0142] It is worth noting that considering that the edge device 140 itself has services, in order to ensure the normal operation of the edge device 140, it is preferred to deploy the target logic on the controller 150. In addition, if there are many conditions that the first service device 160A needs to meet in the control logic, it is also necessary to give priority to deploying the target logic on the controller 150 at this time. For example, in the scenario of real-time regulation of the controlled object of the service device 160, it is necessary to continuously adjust the state of the controlled object, such as the opening size of the cold water valve. At this time, more computing power is required. In order to ensure the normal operation of the edge device 140 and reduce the additional computing overhead of the edge device 140, the edge device 140 can only implement the function of data forwarding.
[0143] In the embodiments of the present application, for any control logic, when the first service device 160A and the second service device 160B are different and not connected to the same controller 150, the management platform 120 needs to split the control logic to determine the target logic corresponding to the second controller 150 to which the target control device, such as the second service device 160B, is connected, and the data transmission logic corresponding to the data transmission device, such as the edge device 140 and the first controller 150A to which the first service device 160A is connected. The control logic is implemented by the data transmission logic and the target logic. Exemplarily, the data transmission logic corresponding to the first controller 150 is used to send the operation data of the first service device 160A to the edge device 140, the data transmission logic corresponding to the edge device 140 is used to send the operation data of the first service device 160A to the second controller 150, and the target logic corresponding to the second controller 150 is used to instruct that when the parameter value of the operation data of the first service device 160A, such as the acquisition parameter, meets certain conditions, an instruction is sent to the second service device 160B, and the second service device 160B executes the corresponding task. For example, it can be to turn off or on a certain device or function.
[0144] Exemplarily, as Figure 4c shown, the control logic is: when the carbon dioxide concentration detected by the service device 160A and the service device 160B is greater than 1000 PPM, the service device 160D turns on the exhaust; where the first service device 160A is the service device 160A and the service device 160B, the acquisition parameter is the carbon dioxide concentration, the second service device 160B is the service device 160D, and the controlled object is the exhaust function. The connection relationship between the controller 150 and the service device 160 is used to illustrate that the service device 160A and the service device 160B are connected to the controller 150a, the service device 160C and the service device 160D are connected to the controller 150b, and the controller 150a and the controller 150b are connected to the edge device 140. Then as Figure 7 shown, the data transmission device is the controller 150a and the edge device 140. The data transmission logic corresponding to the controller 150a is to send the carbon dioxide concentration detected by the service device 160A and the service device 160B to the edge device 140, the data transmission logic corresponding to the edge device 140 is to send the carbon dioxide concentration detected by the service device 160A and the service device 160B to the controller 150b, the target control device is the controller 150b, and the target logic is: when the carbon dioxide concentration detected by the service device 160A and the service device 160B is greater than 1000 PPM, send an instruction to the service device 160D to turn on the exhaust.
[0145] Exemplarily, as Figure 4cAs shown, the control logic is as follows: when the indoor temperature monitored by service devices 160A and 160B is greater than 25°C, service device 160C opens the cold water valve; when the indoor temperature is less than 21°C, service device 160C closes the cold water valve; when the indoor temperature is greater than or equal to 21°C and less than or equal to 25°C, the indoor temperature monitored by service devices 160A and 160B is used to determine the opening size of the cold water valve of service device 160C. Among them, the first service device 160A is service devices 160A and 160B, the collected parameter is the indoor temperature, the second service device 160B is service device 160C, and the controlled object is the cold water valve. The connection relationship between controller 150 and service devices 160 is used to illustrate that service devices 160A and 160B are connected to controller 150a, service devices 160C and 160D are connected to controller 150b, and controller 150a and controller 150b are connected to edge device 140. Then, as Figure 7 shown, the data transmission devices are controller 150a and edge device 140. The data transmission logic corresponding to controller 150a is to send the indoor temperature monitored by service devices 160A and 160B to edge device 140. The data transmission logic corresponding to edge device 140 is to send the indoor temperature monitored by service devices 160A and 160B to controller 150b. The target control device is controller 150b, and the target logic is to send an instruction to service device 160C to open the cold water valve when the indoor temperature monitored by service devices 160A and 160B is greater than 25°C, send an instruction to service device 160C to close the cold water valve when the indoor temperature is less than 21°C, and use the indoor temperature monitored by service devices 160A and 160B to determine the opening size of the cold water valve of service device 160C when the indoor temperature is greater than or equal to 21°C and less than or equal to 25°C.
[0146] Exemplarily, as Figure 4c shown, the control logic is as follows: when the human body sensor of service device 160A detects someone, service devices 160C and 160D turn on the lighting. Among them, the first service device 160A is service device 160A, the collected parameter can be the data collected by the human body sensor, the second service device 160B is service device 160D, and the controlled object is the lighting function. The connection relationship between controller 150 and service devices 160 is used to illustrate that service devices 160A and 160B are connected to controller 150a, service devices 160C and 160D are connected to controller 150b, and controller 150a and controller 150b are connected to edge device 140. Then, as Figure 7As shown, the data transmission devices are the controller 150a and the edge device 140. The data transmission logic corresponding to the controller 150a is to send the data monitored by the human body sensor of the service device 160A to the edge device 140. The data transmission logic corresponding to the edge device 140 is to send the data monitored by the human body sensor of the service device 160A to the controller 150b. The target controller 150 is the controller 150b, and the target logic is to send an instruction to turn on the lighting to the service device 160C and the service device 160D when the human body sensor of the service device 160A detects someone.
[0147] In some other possible cases, there are two other control devices. The auxiliary logic corresponding to one other control device is used to instruct to send the operation data of the first service device 160A to the target control device. For the convenience of description and distinction, the other control device can be called a data transmission device, and the auxiliary logic is called data transmission logic; the auxiliary logic corresponding to the other other control device is used to instruct to receive the instruction sent by the target control device and send the instruction to the second service device 160B. For the convenience of description and distinction, the other control device can be called an instruction transmission device, and the auxiliary logic is called instruction sending logic.
[0148] Figure 8 As shown Figure 3 is a schematic flowchart of step 303 in the embodiment shown.
[0149] As Figure 8 shown, based on the above Figure 3 shown embodiment, in the embodiment of the present application, step 303 may specifically include the following steps:
[0150] Step 303b: The management platform 120 determines the target control device, data transmission device, and instruction transmission device among at least one control device according to the control logic and preset rules, as well as the target logic corresponding to the target control device, the data transmission logic corresponding to the data transmission device, and the instruction sending logic corresponding to the instruction transmission device. The data transmission logic is used to instruct to send the operation data of the first service device 160A to the target control device, and the instruction sending logic is used to instruct to receive the instruction sent by the target control device and control the second service device 160B to execute the corresponding task.
[0151] Then Figure 3 the method further includes the following steps:
[0152] Step 305: The management platform 120 issues the data transmission logic to the data transmission device.
[0153] Step 306: The management platform 120 issues the instruction sending logic to the instruction transmission device.
[0154] It should be noted that the data transmission device may be the first controller 150 connected to the first service device 160A, the instruction transmission device may be the second controller 150 connected to the second service device 160B, and the target control device is the edge device connected to the first controller 150 and the second controller 150. It is worth noting that considering that the edge device 140 itself has services, on the basis of ensuring the normal operation of the edge device 140, if the available hardware resources of the controller 150 connected to the second service device 160B are all less, or the conditions that the running data in the control logic needs to meet are less and simpler, it is preferred to deploy the target logic on the edge device 140.
[0155] In the embodiment of the present application, when the target control device executes the target logic, an instruction can be generated, and the generated instruction can be used to indicate the task that the second service device 160B needs to execute.
[0156] It is worth noting that for any control logic, when the first service device 160A and the second service device 160B are different and not connected to the same controller 150, the management platform 120 needs to split the control logic to determine the target logic corresponding to the target control device such as the edge device 140, the data transmission logic corresponding to the data transmission device such as the first controller 150A connected to the first service device 160A, and the instruction issuing device such as the second controller 150 connected to the second service device 160B. The control logic is implemented by the data transmission logic, the instruction transmission logic, and the target logic. Exemplarily, the data transmission logic corresponding to the first controller 150 is used to send the running data of the first service device 160A to the edge device 140. The target logic corresponding to the edge device 140 is used to indicate that when the running data of the first service device 160A, such as the parameter value of the acquisition parameter, meets certain conditions, an instruction is generated and sent to the second controller connected to the second service device 160B. The second controller 150 issues the instruction to the second service device 160B, and the second service device 160B executes the corresponding task.
[0157] Exemplarily, as Figure 4c shown, the control logic is: when the carbon dioxide concentration monitored by the service device 160A and the service device 160B is greater than 1000 PPM, the service device 160D turns on the exhaust; wherein, the first service device 160A is the service device 160A and the service device 160B, the acquisition parameter is the carbon dioxide concentration, the second service device 160B is the service device 160D, and the controlled object is the exhaust function. The connection relationship between the controller 150 and the service device 160 is used to illustrate that the service device 160A and the service device 160B are connected to the controller 150a, the service device 160C and the service device 160D are connected to the controller 150b, and the controller 150a and the controller 150b are connected to the edge device 140. Then as Figure 9As shown, the data transmission device is the controller 150a, the instruction transmission device is the controller 150b, the target control device is the edge device 140, and the data transmission logic is: sending the carbon dioxide concentrations monitored by the service devices 160A and 160B to the controller 150b; the target logic is to determine the instruction to turn on the exhaust of the service device 160D when the carbon dioxide concentrations monitored by the service devices 160A and 160B are greater than 1000 PPM, and to determine the instruction to turn off the exhaust of the service device 160D when the carbon dioxide concentrations monitored by the service devices 160A and 160B are greater than 1000 PPM; the instruction sending logic is to send the instruction corresponding to the service device 160D sent by the controller 150b to the service device 160D.
[0158] Exemplarily, as Figure 4c shown, the control logic is: when the human body sensor of the service device 160A monitors someone, the service devices 160C and 160D turn on the lighting; among them, the first service device 160A is the service device 160A, the collected parameter can be the data collected by the human body sensor, the second service device 160B is the service device 160D, and the controlled object is the lighting function. The connection relationship between the controller 150 and the service devices 160 is used to illustrate that the service devices 160A and 160B are connected to the controller 150a, the service devices 160C and 160D are connected to the controller 150b, and the controller 150a and the controller 150b are connected to the edge device 140. Then as Figure 9 shown, the data transmission device is the controller 150a, the instruction sending device is the controller 150b, the target control device is the edge device 140, and the data transmission logic is: sending the data monitored by the human body sensor of the service device 160A (for indicating whether there is someone) to the edge device 140; the target logic is: when the human body sensor of the service device 160A monitors someone, determining the instruction to turn on the lighting of the service devices 160C and 160D, and when the human body sensor of the service device 160A monitors no one, determining the instruction to turn off the lighting of the service devices 160C and 160D; the instruction sending logic is to send the instruction corresponding to the service device 160D sent by the controller 150b to the service device 160D.
[0159] Exemplarily, as Figure 4cAs shown in the figure, the control logic is as follows: when the indoor temperature monitored by service devices 160A and 160B is greater than 25°C, service device 160C opens the cold water valve; when the indoor temperature is less than 21°C, service device 160C closes the cold water valve; when the indoor temperature is greater than or equal to 21°C and less than or equal to 25°C, based on the indoor temperature monitored by service devices 160A and 160B, determine the opening size of the cold water valve of service device 160C; among them, the first service device 160A is service devices 160A and 160B, the collected parameter is the indoor temperature, the second service device 160B is service device 160C, and the controlled object is the cold water valve. The connection relationship between controller 150 and service devices 160 is used to illustrate that service devices 160A and 160B are connected to controller 150a, service devices 160C and 160D are connected to controller 150b, and controller 150a and controller 150b are connected to edge device 140. Then the data transmission device is controller 150a, the instruction issuing device is controller 150b, the target control device is edge device 140, the data transmission logic is: send the indoor temperature monitored by service devices 160A and 160B to edge device 140, and the target logic is to generate an instruction for service device 160C to open the cold water valve when the indoor temperature monitored by service devices 160A and 160B is greater than 25°C, generate an instruction for service device 160C to close the cold water valve when the indoor temperature is less than 21°C, and the target logic is to determine an instruction indicating the opening size based on the indoor temperature monitored by service devices 160A and 160B when the indoor temperature monitored by service devices 160A and 160B is greater than or equal to 21°C and less than or equal to 25°C; the instruction issuing logic is to issue the instruction corresponding to service device 160D sent by controller 150b to service device 160D.
[0160] It should be noted that in some possible implementation manners, there may be multiple target control devices, and multiple target control devices together implement the target logic. Specifically, the control logic indicates that when the operation data of the first service device 160A meets certain conditions, the corresponding task to be executed by the second service device 160B is determined based on the operation data of the first service device 160A. At this time, the target logic indicates that when the operation data of the first service device 160A meets certain conditions, an instruction is determined based on the operation data of the first service device 160A, and the instruction is sent to the second service device 160B so that the second service device 160B executes the corresponding task. At this time, the logic corresponding to 1 target control device can be used to indicate whether the operation data of the first service device 160A meets certain conditions; another target control device is used to indicate that when the operation data of the first service device 160A meets certain conditions, the corresponding task to be executed by the second service device 160B is determined based on the operation data of the first service device 160A. It should be noted that the target control device can also be an instruction sending device. Specifically, when the target control device is the second controller 150 connected to the second service device 160B, the target control device can be an instruction sending device.
[0161] Exemplarily, as Figure 4c shown, the control logic is: when the indoor temperature monitored by the service device 160A and the service device 160B is greater than or equal to 21°C and less than or equal to 25°C, the opening size of the cold water valve of the service device 160C is determined based on the indoor temperature monitored by the service device 160A and the service device 160B; wherein, the first service device 160A is the service device 160A and the service device 160B, the collected parameter is the indoor temperature, the second service device 160B is the service device 160C, and the controlled object is the cold water valve. The connection relationship between the controller 150 and the service device 160 is used to illustrate that the service device 160A and the service device 160B are connected to the controller 150a, the service device 160C and the service device 160D are connected to the controller 150b, and the controller 150a and the controller 150b are connected to the edge device 140. Then as Figure 9As shown in the figure, the data transmission device is the controller 150a, the target control device is the edge device 140 and the controller 150b, the instruction issuing device is the controller 150b, and the data transmission logic is as follows: send the indoor temperature monitored by the service devices 160A and 160B to the edge device 140. The target logic is that when the indoor temperature monitored by the service devices 160A and 160B is greater than 25°C, the edge device 140 generates an instruction (indicating the opening size of the cold water valve of the service device 160C) and sends it to the controller 150b. When the indoor temperature monitored by the service devices 160A and 160B is greater than or equal to 21°C and less than or equal to 25°C, the controller 150b determines an instruction indicating the opening size based on the indoor temperature monitored by the service devices 160A and 160B. The instruction issuing logic is to issue the instruction indicating the opening size determined by the controller 150b to the service device 160D.
[0162] In some other possible cases, there are 2 other control devices. The auxiliary logic corresponding to one other control device is used to indicate sending the operation data of the first service device 160A to another other control device. For the convenience of description and distinction, this other control device can be called the data transmission device, and the auxiliary logic can be called the data transmission logic; another other control device is used to send the result of whether the first service device 160A meets certain conditions to the target control device. For the convenience of description and distinction, this other control device can be called the judgment transmission device, and the auxiliary logic can be called the judgment transmission logic. In this case, the data transmission device can be the first controller 150 connected to the first service device 160A, and the result transmission device can be the edge device 140 connected to the first controller 150 and the target control device.
[0163] In this case, considering that the hardware resources of the controller 150 are limited and the available hardware resources of the controller 150 connected to the first service device 160A are scarce, at this time, the judgment transmission logic can be deployed on the edge device 140.
[0164] In some other possible scenarios, there are two other control devices. The auxiliary logic corresponding to one other control device is used to indicate the result of determining whether the first service device 160A meets certain conditions, and send this result to another transmission device. For the convenience of description and distinction, this other control device can be called a judgment transmission device, and the auxiliary logic is called judgment transmission logic; the other other control device is used to send the result of whether the first service device 160A meets certain conditions to the target control device. For the convenience of description and distinction, this other control device can be called a result transmission device, and the auxiliary logic is called result transmission logic. In this case, the judgment transmission device can be the first controller 150 connected to the first service device 160A, and the result transmission device can be the edge device 140 connected to the first controller 150 and the target control device.
[0165] In this case, considering that the edge device 140 has its own services, to ensure the normal operation of the edge device 140, it is preferred to deploy the judgment transmission logic on the first controller 150 connected to the first service device 160B. Additionally, if there are many conditions that the first service device 160A needs to meet in the control logic, it is also necessary to preferentially consider deploying the judgment transmission logic on the first controller 150 connected to the first service device 160B.
[0166] It should be noted that the number of the other control devices and the number of the target control devices described above are only examples and do not constitute specific limitations. Specifically, the number of the other control devices and the number of the target control devices can be determined in combination with the actual situation of splitting the control logic.
[0167] It is worth noting that for the above implementation methods A1 and A2, in some possible implementation methods, step 303 can be implemented through the following steps.
[0168] Step S1: Based on the connection relationship between the control logic, the controller 150, and the service device 160 in the preset rules, determine several controllers 150 to which several service devices 160 related to the control logic can be connected respectively.
[0169] It should be noted that each service device 160 related to the control logic is the first service device 160A and the second service device 160B indicated by the control logic; for each service device 160 related to the control logic, each controller 150 connected to this service device 160 is used as the controller 150 to which this service device 160 can be connected.
[0170] Step S2: When there are multiple controllers 150 to which the service device 160 can be connected, based on the other configuration policies in the preset rules, perform screening of the controllers 150 to determine the target controller 150 corresponding to this service device 160.
[0171] In specific implementation, the management platform 120 filters out the second controller from multiple controllers 150 connected to the service device 160 based on the configuration policy in the order of decreasing priority; more specifically, the management platform 120 filters the controller 150 according to the configuration policy with the highest priority. If there are multiple filtered-out controllers 150, the priority is reduced by one level, and the filtering continues from the multiple already filtered-out controllers 150 until a unique controller 150 is filtered out.
[0172] Step S3: When there is only one connectable controller 150 for the service device 160, determine that this controller 150 is the target controller 150 corresponding to the service device 160.
[0173] Step S4: There is one or more service devices 160 related to the control logic, and the one or more service devices 160 are connected to the same target controller 150. The control logic is taken as the target logic corresponding to the target controller 150.
[0174] Exemplarily, if multiple service devices 160 related to the control logic are connected to the same target controller 150, the number of target controllers 150 is 1, and the control logic to be implemented is configured for the target controller 150. For detailed content, reference can be made to the description of Figure 4a 、 Figure 4b 、 Figure 5a 、 Figure 5b above.
[0175] Step S5: There are multiple service devices 160 related to the control logic, and the multiple service devices 160 are connected to different target controllers 150. The control logic is split, and the corresponding logic is configured for different target controllers 150 and edge devices 140 respectively.
[0176] It should be noted that the logic corresponding to the edge device 140 (which can be auxiliary logic or target logic) can be carried by a file (for the convenience of description and distinction, it can be called a cross - controller logic file). In the embodiments of the present application, since the edge device 140 has the functions of data forwarding and data processing, different controllers 150 can communicate through the edge device 140. Therefore, the cross - controller logic file can be deployed on the edge device 140. In specific implementation, the edge device 140 stores the cross - controller logic file. Subsequently, when receiving the operation data of the first service device 160A, the operation data of the first service device 160A is processed based on the cross - controller logic file, such as forwarding the operation data of the first service device 160A to other controllers 150, or generating an instruction based on the operation data of the first service device 160A and forwarding the instruction to at least one controller 150. For detailed content, reference can be made to the description of Figure 4c 、Figure 7 , Figure 9 description.
[0177] In summary, in the embodiments of the present application, the edge device 140 executes the deployed logic, which can forward the operation data of the received first service device 160A to the target control device, or send the result of whether the operation data of the first service device 160A meets certain conditions to the target control device, and can also generate an instruction when the operation data of the first service device 160A meets certain conditions, and send the instruction to the target controller.
[0178] It should be noted that in practical applications, the management platform 120 can process multiple control logics at the same time, so as to determine several logics corresponding to several control devices; for each control device, the several logics corresponding to the device are sent to the control device together. In practical applications, there can be multiple controllers 150 connected to the edge device 140, and the edge device 140 can send the corresponding logic to multiple controllers 150 respectively.
[0179] In the embodiments of the present application, the logic corresponding to the controller 150 is carried by a logic file, and the logic corresponding to the edge device 140 is carried by a cross-controller logic file. Exemplarily, for the Figure 4a and Figure 4b scenarios, the logic file corresponding to the controller 150a is used to indicate the control logic. As shown in Figure 10a , the edge device 140 sends the logic file of the controller a to the controller a. For the Figure 4c scenarios, after the control logic is split, a cross-control logic file, a logic file corresponding to the controller 150a, and a logic file corresponding to the controller 150b are obtained. As shown in Figure 10b , the management platform 120 sends the cross-control logic file, the logic file corresponding to the controller 150a, and the logic file corresponding to the controller 150b to the edge device 140, and the edge device 140 sends the logic file of the controller a to the controller a and the logic file of the controller b to the controller b.
[0180] Based on the above-provided device control method based on the Internet of Things technology, a specific application of the device control method based on the Internet of Things technology is described.
[0181] In some possible scenarios, as shown in Figure 10a , the logic file of the controller a is deployed on the controller a.
[0182] Exemplarily, as shown in Figure 5a , the service device 160A reports the monitored indoor temperature and carbon dioxide concentration; the service device 160B reports the data collected by the monitored human body sensor.
[0183] When the controller a determines that the carbon dioxide concentration monitored by the service device 160A is greater than 1000 PPM, it sends an instruction to the service device 160A to turn on the exhaust, and the service device 160A turns on the exhaust based on this instruction.
[0184] When the controller a determines that the indoor temperature monitored by the service device 160A is greater than 25 °C, it sends an instruction to the service device 160A to open the cold water valve, and the service device 160A opens the cold water valve based on this instruction; when it determines that the indoor temperature monitored by the service device 160A is less than 21 °C, it sends an instruction to the service device 160A to close the cold water valve, and the service device 160A closes the cold water valve based on this instruction.
[0185] When the controller a determines that the human body sensor of the service device 160A detects someone, it sends an instruction to the service device 160A to turn on the lighting, and the service device 160A turns on the lighting based on this instruction.
[0186] Exemplarily, as Figure 5b shown, the service device 160A reports the monitored indoor temperature, carbon dioxide concentration, and data collected by the human body sensor; the service device 160B reports the monitored carbon dioxide concentration and data collected by the human body sensor.
[0187] When the controller a determines that the carbon dioxide concentration monitored by the service device 160A is greater than 1000 PPM, it sends an instruction to turn on the exhaust to the service device 160A and the service device 160B respectively, and the service device 160A and the service device 160B turn on the exhaust respectively based on this instruction.
[0188] When the controller a determines that the indoor temperature monitored by the service device 160A is greater than 25 °C, it sends an instruction to open the cold water valve to the service device 160A and the service device 160B respectively, and the service device 160A and the service device 160B open the cold water valve respectively based on this instruction; when it determines that the indoor temperature monitored by the service device 160A is less than 21 °C, it sends an instruction to close the cold water valve to the service device 160A and the service device 160B respectively, and the service device 160A and the service device 160B close the cold water valve respectively based on this instruction.
[0189] When the controller a determines that the human body sensor of the service device 160A detects someone, it sends an instruction to turn on the lighting to the service device 160A and the service device 160B, and the service device 160A and the service device 160B turn on the lighting respectively based on this instruction.
[0190] In some other possible scenarios, such as Figure 10b shown, the edge device 140 deploys a cross - controller logic file, the controller a deploys a logic file corresponding to the controller a, and the controller b deploys a logic file corresponding to the controller b.
[0191] Exemplarily, as Figure 7 shown, the service device 160A reports the monitored indoor temperature, carbon dioxide concentration, and data collected by the human body sensor; the service device 160B reports the monitored carbon dioxide concentration and data collected by the human body sensor.
[0192] The controller a sends the data collected by the human body sensor monitored by the service device 160A, the carbon dioxide concentration, and the carbon dioxide concentration monitored by the service device 160B to the edge device 140.
[0193] The edge device 140 sends the data collected by the human body sensor monitored by the service device 160A, the carbon dioxide concentration, and the carbon dioxide concentration monitored by the service device 160B to the controller 150b.
[0194] When the controller 150b determines that the carbon dioxide concentrations monitored by the service device 160A and the service device 160B are greater than 1000 PPM, it sends an instruction to the service device 160D to turn on the exhaust, and the service device 160D turns on the exhaust based on this instruction.
[0195] When the controller 150b determines that the indoor temperature monitored by the service device 160A and the service device 160B is greater than 25 °C, it sends an instruction to the service device 160C to open the cold water valve, and the service device 160C opens the cold water valve based on this instruction; when it determines that the indoor temperature monitored by the service device 160A and the service device 160B is less than 21 °C, it sends an instruction to the service device 160C to close the cold water valve, and the service device 160C closes the cold water valve based on this instruction. When the indoor temperature is greater than or equal to 21 °C and less than or equal to 25 °C, it determines the opening size of the cold water valve of the service device 160C and sends an instruction indicating the opening size of the cold water valve to the service device 160C, and the service device 160C controls the opening size of the cold water valve based on this instruction.
[0196] When the controller 150b determines that someone is detected by the human body sensor of the service device 160A, it sends instructions to the service device 160D and the service device 160C respectively to turn on the lighting, and the service device 160D and the service device 160C turn on the lighting respectively based on this instruction.
[0197] Exemplarily, as Figure 9 shown, the service device 160A reports the monitored indoor temperature, carbon dioxide concentration, and data collected by the human body sensor; the service device 160B reports the monitored carbon dioxide concentration and data collected by the human body sensor.
[0198] The controller a sends the data collected by the human body sensor monitored by the service device 160A, the carbon dioxide concentration, and the carbon dioxide concentration monitored by the service device 160B to the edge device 140.
[0199] When the edge device 140 determines that the carbon dioxide concentration monitored by the service devices 160A and 160B is greater than 1000 PPM, it generates an instruction to control the service device 160D to turn on the exhaust, and sends the instruction to the controller 150b. The controller 150b sends this instruction to the service device 160D, and the service device 160D turns on the exhaust based on this instruction.
[0200] When the edge device 140 determines that the indoor temperature monitored by the service devices 160A and 160B is greater than 25 °C, it generates an instruction to control the service device 160C to open the cold water valve, and sends the instruction to the controller 150b. The controller 150b sends this instruction to the service device 160C, and the service device 160C opens the cold water valve based on this instruction; when it determines that the indoor temperature monitored by the service devices 160A and 160B is less than 21 °C, it generates an instruction to control the service device 160C to close the cold water valve, and sends the instruction to the controller 150b. The controller 150b sends this instruction to the service device 160C, and the service device 160C closes the cold water valve based on this instruction; when it determines that the indoor temperature monitored by the service devices 160A and 160B is greater than or equal to 21 °C and less than or equal to 25 °C, it generates an instruction to control the controller 150b to start the opening regulation of the cold water valve, sends the indoor temperature monitored by the service devices 160A and 160B and the instruction to the controller 150b. The controller 150b determines the opening size of the cold water valve of the service device 160C based on the instruction, and sends an instruction indicating the opening size of the cold water valve to the service device 160C. The service device 160C controls the opening size of the cold water valve based on this instruction.
[0201] When the edge device 140 determines that a person is detected by the human body sensor of the service device 160A, it generates an instruction to control the service devices 160D and 160C to turn on the lighting, and sends the instruction to the controller 150b. The controller 150b sends the instruction to the service devices 160D and 160C, and the service devices 160D and 160C turn on the lighting respectively based on this instruction.
[0202] In some possible scenarios, if the operating data of the first service device 160A in the control logic meets certain updated conditions. For example, the terminal 110 can display the control logic, specifically, it can display the logic deployed by each control device such as the controller 150 and the edge device 140; subsequently, the user can update the logic deployed by the control device through the terminal 110, such as modifying the logic, or directly uploading a new logic to replace the old logic to achieve logic update. Subsequently, the management platform 120 can obtain the updated logic corresponding to the control device from the terminal 110 and send the updated logic to the corresponding control device.
[0203] In some other possible scenarios, if the update control logic, for example, the terminal 110 can display the control logic. Subsequently, the user can update the control logic through the terminal 110, such as modifying the control logic, or directly uploading a new control logic to replace the old one to achieve the update of the control logic. Then, the management platform 120 re-executes the above steps 304 to 305 to achieve the update of the control logic.
[0204] In this solution, the control logic can be automatically updated through the management platform, improving the convenience of updating the control logic.
[0205] This application also provides a device control device based on the Internet of Things technology, as Figure 11 shown, including:
[0206] A logic acquisition module, configured to acquire control logic, where the control logic is used to instruct that when the operation data of the first service device meets certain conditions, the second service device executes corresponding tasks; wherein, the first service device and the second service device are respectively connected to at least one control device;
[0207] A configuration module, configured to determine a target control device among at least one control device and a target logic corresponding to the target control device according to the control logic and a preset rule, where the target logic is used to instruct that when the target control device determines that the operation data of the first service device meets the control condition, it issues an instruction to the second service device so that the second service device executes corresponding tasks; wherein, the preset rule includes the connection relationship between the first service device and the second service device and at least one control device;
[0208] A sending module, configured to send the target logic to the target control device.
[0209] Among them, the logic acquisition module, the configuration module, and the sending module can all be implemented by software or by hardware. Exemplarily, next, taking the logic acquisition module as an example, the implementation manner of the logic acquisition module is introduced. Similarly, the implementation manners of the configuration module and the sending module can refer to the implementation manner of the logic acquisition module.
[0210] As an example of a software functional unit, the logic acquisition module may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above computing instance may be one or more. For example, the logic acquisition module may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers for running the code may be distributed in the same region or in different regions. Further, the multiple hosts / virtual machines / containers for running the code may be distributed in the same availability zone (AZ) or in different AZs, and each AZ includes one data center or multiple geographically proximate data centers. Usually, one region may include multiple AZs.
[0211] Similarly, the multiple hosts / virtual machines / containers for running the code may be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, one VPC is set within one region. For cross-region communication between two VPCs within the same region and between VPCs in different regions, a communication gateway needs to be set in each VPC, and the interconnection between VPCs is achieved through the communication gateway.
[0212] As an example of a hardware functional unit, the logic acquisition module may include at least one computing device, such as a server, etc. Or, the logic acquisition module may also be a device implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). Among them, the above PLD may be implemented by a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0213] The multiple computing devices included in the logic acquisition module can be distributed in the same region or in different regions. The multiple computing devices included in the logic acquisition module can be distributed in the same availability zone (AZ) or in different AZs. Similarly, the multiple computing devices included in the logic acquisition module can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Among them, the multiple computing devices can be any combination of computing devices such as servers, application-specific integrated circuits (ASICs), programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), and generic array logic (GALs).
[0214] It should be noted that in other embodiments, the logic acquisition module can be used to execute any step in the device control method based on the Internet of Things technology. The configuration module and the distribution module can both be used to execute any step in the device control method based on the Internet of Things technology. The steps to be implemented by the logic acquisition module, the configuration module, and the distribution module can be specified as needed. The entire function of the device control device based on the Internet of Things technology is realized by separately implementing different steps in the device control method based on the Internet of Things technology through the logic acquisition module, the configuration module, and the distribution module.
[0215] This application also provides a computing device 1200. As Figure 12 shown, the computing device 1200 includes: a bus 1202, a processor 1204, a memory 1206, and a communication interface 1208. The processor 1204, the memory 1206, and the communication interface 1208 communicate with each other through the bus 1202. The computing device 1200 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in the computing device 1200.
[0216] The bus 1202 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 12 only one line is shown in the figure, but it does not mean that there is only one bus or one type of bus. The bus 1202 can include a path for transmitting information between various components of the computing device 1200 (for example, the memory 1206, the processor 1204, and the communication interface 1208).
[0217] The processor 1204 may include any one or more of processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0218] The memory 1206 may include volatile memory, such as random access memory (RAM). The processor 1204 may also include non-volatile memory, such as read-only memory (ROM), flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0219] The memory 1206 stores executable program code, and the processor 1204 executes the executable program code to respectively implement the functions of the foregoing logic acquisition module, configuration module, and distribution module, thereby implementing the device control method based on the Internet of Things technology. That is, the memory 1206 stores instructions for executing the device control method based on the Internet of Things technology.
[0220] The communication interface 1208 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1200 and other devices or a communication network.
[0221] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device may be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device may also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0222] As Figure 13 shown, the computing device cluster includes at least one computing device 1200. The memory 1206 in one or more of the computing devices 1200 in the computing device cluster may store the same instructions for executing the device control method based on the Internet of Things technology.
[0223] In some possible implementations, the memories 1206 of one or more computing devices 1200 in the computing device cluster may also store some instructions for executing the device control method based on Internet of Things technology respectively. In other words, the combination of one or more computing devices 1200 can jointly execute the instructions for executing the device control method based on Internet of Things technology.
[0224] It should be noted that the memories 1206 in different computing devices 1200 in the computing device cluster may store different instructions, which are respectively used to execute some functions of the device control device based on Internet of Things technology. That is to say, the instructions stored in the memories 1206 of different computing devices 1200 can implement the functions of one or more of the logic acquisition module, the configuration module, and the distribution module.
[0225] In some possible implementations, one or more computing devices in the computing device cluster can be connected through a network. Among them, the network can be a wide area network or a local area network, etc. Figure 14 A possible implementation is shown. As Figure 14 shown, two computing devices 1200A and 1200B are connected through a network. Specifically, they are connected to the network through the communication interfaces in each computing device. In this type of possible implementation, the memory 1206 in the computing device 1200A stores the instructions for executing the function of the logic acquisition module. At the same time, the memory 1206 in the computing device 1200B stores the instructions for executing the functions of the configuration module and the distribution module.
[0226] Figure 14 The connection method between the computing device clusters shown is considered because the device control method based on Internet of Things technology provided in this application needs to process a large amount of control logic and distribute a large amount, so it is considered to hand over the functions implemented by the configuration module and the distribution module to the computing device 1200B for execution.
[0227] It should be understood that Figure 14 the function of the computing device 1200A shown can also be completed by multiple computing devices 1200. Similarly, the function of the computing device 1200B can also be completed by multiple computing devices 1200.
[0228] The embodiment of the present application also provides a computer program product containing instructions. The computer program product can be a software or program product containing instructions that can run on a computing device or be stored in any available medium. When the computer program product runs on at least one computing device, it causes at least one computing device to execute the device control method based on Internet of Things technology, or the device control method based on Internet of Things technology.
[0229] An embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computing device can store, or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc. The computer-readable storage medium includes instructions that direct the computing device to execute a device control method based on Internet of Things technology, or direct the computing device to execute a device control method based on Internet of Things technology.
[0230] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution is prior or subsequent. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0231] The basic principles of the present application have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, benefits, effects, etc. mentioned in the present application are only examples and not limitations. It cannot be considered that these advantages, benefits, effects, etc. are essential for each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purposes of illustration and easy understanding, rather than limitations. The above details do not limit the present disclosure to necessarily adopt the above specific details to implement.
[0232] The block diagrams of the devices, apparatuses, equipment, and systems involved in the present disclosure are only illustrative examples and do not intend to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open-ended words, meaning "including but not limited to", and can be used interchangeably with each other. The words "or" and "and" used herein refer to the word "and / or", and can be used interchangeably with each other, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to", and can be used interchangeably with each other.
[0233] It also needs to be pointed out that in the devices, equipment, and methods of the present disclosure, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent solutions of the present disclosure.
[0234] The above description has been given for purposes of illustration and description. In addition, this description does not intend to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions, and sub-combinations thereof.
[0235] It is understood that the various numerical numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application.
Claims
1. A device control method based on Internet of Things technology, characterized in that: The method is applied to a management platform, the management platform is used to manage infrastructure, the infrastructure is connected to at least one control device, and the method includes: Acquire control logic, where the control logic is used to instruct the second service device to perform a corresponding task when the operation data of the first service device meets a certain condition; wherein the first service device and the second service device are respectively connected to at least one control device; According to the control logic and the preset rules, a target control device in the at least one control device and a target logic corresponding to the target control device are determined, wherein the target logic is used to instruct the target control device to issue an instruction to the second service device so that the second service device performs a corresponding task when determining that the operation data of the first service device meets the control condition; wherein the preset rules include a connection relationship between the first service device and the second service device and the at least one control device; The target logic is sent to the target control device.
2. The method according to claim 1, characterized in that The determining, according to the control logic and the preset rule, a target control device in the at least one control device and a target logic corresponding to the target control device includes: According to the control logic and the preset rule, determine a target control device and a data transmission device in the at least one control device, as well as a target logic corresponding to the target control device and a data transmission logic corresponding to the data transmission device, wherein the data transmission logic is used to instruct to send the operation data of the first service device to the target control device; The method further comprises: The data transmission logic is sent to the data transmission device.
3. The method according to claim 1, characterized in that The determining, according to the control logic and the preset rule, a target control device in the at least one control device and a target logic corresponding to the target control device includes: According to the control logic and the preset rule, determine a target control device, a data transmission device, and an instruction transmission device in the at least one control device, as well as a target logic corresponding to the target control device, a data transmission logic corresponding to the data transmission device, and an instruction issuing logic corresponding to the instruction transmission device, wherein the data transmission logic is used to instruct that the operation data of the first service device is sent to the target control device, and the instruction issuing logic is used to instruct that an instruction issued by the target control device is received and the instruction is issued to the second service device so that the second service device performs a corresponding task; The method further comprises: The data transmission logic is sent to the data transmission device, and the instruction sending logic is sent to the instruction transmission device.
4. The method according to any one of claims 1 to 3, characterized in that: The at least one control device includes a controller and an edge device, and the infrastructure is connected to the controller through the edge device.
5. The method according to claim 4, characterized in that The target control device is the same controller to which the first service device and the second service device are connected, the second controller to which the second service device is connected, or the edge device; When the target control device is a second controller connected to the second service device, the data transmission device is a first controller and the edge device connected to the first service device; When the target control device is the edge device, the data transmission device is a first controller connected to the first service device, and the instruction transmission device is a second controller connected to the second service device.
6. The method according to claim 5, characterized in that The first service device is connected to multiple controllers; the first controller connected to the first service device is any controller among the multiple controllers connected to the first service device; The second service device is connected to multiple controllers; the second controller to which the second service device is connected is any one of the multiple controllers to which the second service device is connected.
7. The method according to any one of claims 1 to 6, characterized in that: The preset rules also include any one or more of the following: The available hardware resources of the controller are balanced, the controller and the business equipment are in the same space, and the controller and the business equipment are in the same network environment.
8. A device control device based on Internet of Things technology, characterized in that: The device is applied to a management platform, the management platform is used to manage infrastructure, the infrastructure is connected to at least one control device, and the device includes: A logic acquisition module, used to acquire control logic, wherein the control logic is used to instruct the second service device to perform a corresponding task when the operation data of the first service device meets certain conditions; wherein the first service device and the second service device are respectively connected to at least one control device; a configuration module, configured to determine, according to the control logic and preset rules, a target control device in the at least one control device and a target logic corresponding to the target control device, wherein the target logic is configured to instruct the target control device to issue an instruction to the second service device so that the second service device performs a corresponding task when determining that the operation data of the first service device meets the control condition; wherein the preset rules include a connection relationship between the first service device and the second service device and the at least one control device; A sending module is used to send the target logic to the target control device.
9. The device according to claim 8, characterized in that The configuration module is used to determine, according to the control logic and the preset rule, a target control device and a data transmission device in the at least one control device, as well as a target logic corresponding to the target control device and a data transmission logic corresponding to the data transmission device, wherein the data transmission logic is used to instruct to send the operation data of the first service device to the target control device; The sending module is further used to send the data transmission logic to the data transmission device.
10. The device according to claim 8, characterized in that The configuration module is used to determine, according to the control logic and the preset rule, a target control device, a data transmission device and an instruction transmission device in the at least one control device, as well as a target logic corresponding to the target control device, a data transmission logic corresponding to the data transmission device and an instruction issuing logic corresponding to the instruction transmission device, the data transmission logic being used to instruct that the operation data of the first service device is sent to the target control device, and the instruction issuing logic being used to instruct that an instruction issued by the target control device is received and the instruction is issued to the second service device so that the second service device performs a corresponding task; The sending module is further used to send the data transmission logic to the data transmission device and the instruction sending logic to the instruction transmission device.
11. The device according to any one of claims 8 to 10, characterized in that: The at least one control device includes at least one controller and an edge device, and the infrastructure is connected to the at least one controller through the edge device.
12. The device according to claim 11, characterized in that The target control device is the same controller to which the first service device and the second service device are connected, the second controller to which the second service device is connected, or the edge device; When the target control device is a second controller connected to the second service device, the data transmission device is a first controller and the edge device connected to the first service device; When the target control device is the edge device, the data transmission device is a first controller connected to the first service device, and the instruction transmission device is a second controller connected to the second service device.
13. The device according to claim 12, characterized in that The first service device is connected to multiple controllers; the first controller connected to the first service device is any controller among the multiple controllers connected to the first service device; The second service device is connected to multiple controllers; the second controller to which the second service device is connected is any one of the multiple controllers to which the second service device is connected.
14. The device according to any one of claims 8 to 13, characterized in that The preset rules also include any one or more of the following: The available hardware resources of the controller are balanced, the controller and the business equipment are in the same space, and the controller and the business equipment are in the same network environment.
15. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 7.
16. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 7.
17. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to any one of claims 1 to 7.