Device control method and apparatus based on internet of things technology, and computing device cluster
By adopting the equipment control method based on the Internet of Things technology in the building system and using the management platform configuration control logic, the problem of low configuration efficiency in multi-controller scenarios is solved, and efficient control logic management is achieved.
Patent Information
- Application Number
- PCT/CN2024/117922
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-29
- Filing Date
- 2024-09-10
- Publication Date
- 2025-06-26
AI Technical Summary
In building systems, when there are many controllers, the efficiency of configuring control logic for a large number of controllers is low, resulting in increased management difficulty.
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 improve configuration efficiency and management convenience.
It realizes the efficiency improvement and management of configuring control logic for control devices, and is suitable for unified management of multi-controller scenarios.
Smart Images

Figure CN2024117922_26062025_PF_FP_ABST
Abstract
Description
Device control method, device and computing device cluster based on Internet of Things technology
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on December 22, 2023, with application number 202311785261.4 and application name “A device control method and device based on Internet of Things technology”, and the Chinese patent application filed with the State Intellectual Property Office of China on February 29, 2024, with application number 202410231523.0 and application name “Device control method, device and computing device cluster based on Internet of Things technology”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of Internet of Things technology, and in particular to a device control method, apparatus, and computing device cluster based on Internet of Things technology. Background Art
[0003] In building systems, controllers can be configured with control logic, which can be used to read and control the operating data of electromechanical equipment. Currently, professional technicians can create control logic files using specialized software, as shown in Figure 2. These files are typically written to the controller via a serial port or fieldbus via a terminal such as a laptop.
[0004] However, in a scenario where there are a large number of controllers, 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 the control logic for the controllers is low.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a device control method, apparatus, and computing device cluster based on Internet of Things technology. The control logic is orchestrated from the perspective of business devices without considering the control devices. The control logic is obtained through a management platform, and the control devices that execute the control logic are configured according to preset rules, thereby improving the efficiency of configuring the control logic for the control devices and the convenience of management.
[0007] In the first aspect, an embodiment of the present application provides a device control method based on Internet of Things technology, which is applied to a management platform, which is used to manage infrastructure, and the infrastructure is connected to at least one control device. The method includes: obtaining control logic, and the control logic is used to indicate that when the operating data of the first business device meets certain conditions, the second business device performs a corresponding task; wherein the first business device and the second business device are respectively connected to at least one control device; according to the control logic and preset rules, a target control device in at least one control device and a target logic corresponding to the target control device are determined, and the target logic is used to indicate that when the target control device determines that the operating data of the first business device meets the control conditions, it sends an instruction to the second business device so that the second business device performs the corresponding task; wherein the preset rules include the connection relationship between the first business device and the second business device and at least one control device; and sending the target logic to the target control device.
[0008] In this solution, the control logic is arranged from the perspective of business devices without considering the control devices. The control logic is obtained through the management platform, and the control devices that execute the control logic are configured according to preset rules, which improves the efficiency of configuring the control logic for the control devices and the convenience of management.
[0009] In one possible implementation, determining, according to the control logic and preset rules, a target control device in at least one control device and a target logic corresponding to the target control device includes: determining, according to the control logic and preset rules, a target control device and a 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, wherein the data transmission logic is used to instruct that the operating data of the first service device be sent to the target control device;
[0010] The method further includes: sending the data transmission logic to the data transmission device.
[0011] In this solution, the control logic can be split based on preset rules, and the split logic can be configured to multiple control devices, which improves the flexibility of the control logic configuration. It is convenient to subsequently change the control logic configuration of multiple control devices, thereby improving the flexibility of configuring the control logic for the control devices.
[0012] In one possible implementation, determining a target control device and a target logic corresponding to the target control device in at least one control device according to the control logic and a preset rule includes:
[0013] Determine, based on the control logic and preset rules, a target control device, a data transmission device, and an instruction transmission device in at least one control device, 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 issuing logic corresponding to the instruction transmission device, wherein the data transmission logic is used to instruct the transmission of operating data of the first service device to the target control device, and the instruction issuing logic is used to instruct the reception of instructions issued by the target control device and the issuance of the instructions to the second service device so that the second service device performs the corresponding task;
[0014] The method further includes: sending data transmission logic to the data transmission device and sending instruction logic to the instruction transmission device.
[0015] In this solution, the control logic can be split based on preset rules, and the split logic can be configured to multiple control devices, which improves the flexibility of the control logic configuration. It is convenient to subsequently change the control logic configuration of multiple control devices, thereby improving the flexibility of configuring the control logic for the control devices.
[0016] In a possible implementation, at least one control device includes a controller and an edge device, and the infrastructure is connected to the controller via the edge device.
[0017] 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, a second controller to which the second service device is connected, or an edge device.
[0018] In a possible implementation, when the target control device is a second controller connected to the second service device, the data transmission device is a first controller and an edge device connected to the first service device.
[0019] In a possible implementation, 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;
[0020] 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.
[0021] In a possible implementation, when the target control device is an 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.
[0022] In a possible implementation, the preset rules further include any one or more of the following: balancing of available hardware resources of the controller, the controller and the service equipment being in the same space, and the controller and the service equipment being in the same network environment.
[0023] In a second aspect, an embodiment of the present application provides an IoT-based device control device. The IoT-based device control device includes several modules, each of which is used to execute each step of the IoT-based device control method provided in the first aspect of the embodiment of the present application. The division of modules is not limited herein. For the specific functions performed and beneficial effects achieved by each module of the IoT-based device control device, please refer to the functions of each step of the IoT-based device control method provided in the first aspect of the embodiment of the present application, and will not be repeated here.
[0024] Exemplarily, a device control apparatus based on Internet of Things technology is applied to a management platform, which is used to manage infrastructure connected to at least one control device. The apparatus includes:
[0025] A logic acquisition module is used to acquire control logic, where the control logic is used to instruct the second business device to perform a corresponding task when the operating data of the first business device meets certain conditions; wherein the first business device and the second business device are respectively connected to at least one control device; a configuration module is used to determine, based on the control logic and preset rules, a target control device in at least one control device and a target logic corresponding to the target control device, where the target logic is used to instruct the target control device to issue an instruction to the second business device so that the second business device performs a corresponding task when it determines that the operating data of the first business device meets the control conditions; wherein the preset rules include the connection relationship between the first business device and the second business device and at least one control device; a issuing module is used to issue the target logic to the target control device.
[0026] In one possible implementation, the configuration module is configured to determine, based on the control logic and a preset rule, a target control device and a data transmission device in 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 configured to instruct that the operating data of the first service device be sent to the target control device;
[0027] The sending module is also used to send data transmission logic to the data transmission device.
[0028] In one possible implementation, a configuration module is configured to determine, based on control logic and preset rules, a target control device, a data transmission device, and an instruction transmission device in 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 issuance logic corresponding to the instruction transmission device, wherein the data transmission logic is configured to instruct that operating data of the first service device be sent to the target control device, and the instruction issuance logic is configured to instruct that an instruction issued by the target control device be received and issued to a second service device so that the second service device performs a corresponding task;
[0029] The sending module is also used to send data transmission logic to the data transmission device and instruction sending logic to the instruction transmission device.
[0030] In a possible implementation, at least one control device includes a controller and an edge device, and the infrastructure is connected to the controller via the edge device.
[0031] 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, a second controller to which the second service device is connected, or an edge device.
[0032] In a possible implementation, when the target control device is a second controller connected to the second service device, the data transmission device is a first controller and an edge device connected to the first service device.
[0033] In a possible implementation, 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;
[0034] 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.
[0035] In a possible implementation, when the target control device is an 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.
[0036] In a possible implementation, the preset rules further include any one or more of the following: balancing of available hardware resources of the controller, the controller and the service equipment being in the same space, and the controller and the service equipment being in the same network environment.
[0037] In a third aspect, an embodiment of the present application provides an equipment control device based on Internet of Things technology, comprising: at least one memory for storing programs; at least one processor for executing the programs 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.
[0038] In a fourth aspect, an embodiment of the present application provides a device control apparatus based on Internet of Things technology, which runs computer program instructions to execute the method provided in the first aspect. Exemplarily, the apparatus can be a chip or a processor.
[0039] In one example, the apparatus may include a processor, which may be coupled to a memory, read instructions from the memory, and execute the method provided in the first aspect according to the instructions. The memory may be integrated into a chip or processor, or may be independent of the chip or processor.
[0040] In a fifth aspect, an embodiment of the present application provides a computing device cluster, comprising: at least one computing device, each computing device comprising 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.
[0041] In a sixth aspect, an embodiment of the present application provides a computer storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the method provided in the first aspect.
[0042] In a seventh aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method provided in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] FIG1 is a schematic diagram of the architecture of an Internet of Things system provided in an embodiment of the present application;
[0044] FIG2 is a schematic diagram of a control logic configuration provided by the related art;
[0045] FIG3 is a flow chart of a device control method based on Internet of Things technology according to an embodiment of the present application;
[0046] FIG4 a is a first schematic diagram of the control logic provided in an embodiment of the present application;
[0047] FIG4 b is a second schematic diagram of the control logic provided in an embodiment of the present application;
[0048] FIG4c is a third schematic diagram of the control logic provided in an embodiment of the present application;
[0049] FIG5a is a first schematic diagram of a control logic deployment according to an embodiment of the present application;
[0050] FIG5 b is a second schematic diagram of the control logic deployment provided in an embodiment of the present application;
[0051] FIG6 is a second flow chart of a device control method based on Internet of Things technology according to an embodiment of the present application;
[0052] FIG7 is a third schematic diagram of the control logic deployment provided in an embodiment of the present application;
[0053] FIG8 is a third flow chart of a device control method based on Internet of Things technology according to an embodiment of the present application;
[0054] FIG9 is a fourth schematic diagram of the control logic deployment provided in an embodiment of the present application;
[0055] FIG10a is a schematic diagram of a logic file and cross-controller logic file deployment provided by an embodiment of the present application;
[0056] FIG10b is a schematic diagram of a logical file deployment provided by an embodiment of the present application;
[0057] FIG11 is a schematic structural diagram of a device control device based on Internet of Things technology provided in an embodiment of the present application;
[0058] FIG12 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0059] FIG13 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;
[0060] FIG14 is a schematic diagram of a communication scenario between computing devices provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] In order to make the purpose, 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.
[0062] In the description of the embodiments of the present application, words such as "exemplary," "for example," or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary," "for example," or "for example" in the embodiments of the present application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary," "for example," or "for example" is intended to present the relevant concepts in a concrete manner.
[0063] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, B exists alone, and A and B exist at the same time. In addition, unless otherwise specified, the term "plurality" means two or more. For example, "multiple systems" refers to two or more systems, and "multiple terminals" refers to two or more terminals.
[0064] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly identifying the technical features being referred to. Thus, features specified as "first" or "second" may explicitly or implicitly include one or more of such features. The terms "include," "comprising," "having," and their variations all mean "including but not limited to," unless otherwise specifically emphasized.
[0065] The following is an explanation of some of the terms used in this embodiment. It should be noted that these explanations are for the purpose of facilitating understanding by those skilled in the art and are not intended to limit the scope of protection claimed in this application.
[0066] Internet of Things (IoT) platform: an IoT application platform based on cloud computing, big data, artificial intelligence and other technologies, used to connect and manage IoT devices and provide data collection, storage, processing, analysis and application services.
[0067] Gateway: A device that manages sub-devices and acts as an agent for sub-devices to communicate with the IoT platform.
[0068] Directly connected devices: IoT devices that are directly connected to the IoT platform and report their status through the network.
[0069] Mechanical and electrical equipment: generally refers to machinery, electrical appliances and electrical automation equipment. In construction, it mostly refers to the general term for machinery and piping equipment other than geotechnical, carpentry, steel bars and mud and water equipment, such as fresh air units, supply and exhaust fans, water pumps, air conditioners, etc. in buildings.
[0070] Controllers are used to control and monitor electromechanical equipment. These controllers can control connected electromechanical equipment through control programs, such as direct digital control (DDC). This type of automated control system uses a computer or controller to monitor and control parameters in the production process. DDC systems calculate parameters based on set values and control algorithms and output the results to actuators, thereby maintaining the controlled parameters within a stable set range.
[0071] Control logic: A section of logic running on the controller that collects operating data (supply air temperature, supply air pressure, indoor temperature) from electromechanical equipment such as AHUs, adjusts the opening of the cold water valve and the frequency of the supply fan, and thus achieves the controlled object of the electromechanical equipment.
[0072] Serial Interface: Serial port, also known as serial communication interface or serial communication interface (usually refers to COM interface, which is an expansion interface using serial communication. Serial port refers to the sequential transmission of data one bit at a time. Its characteristic is that the communication line is simple. Only one pair of transmission lines can realize two-way communication (telephone lines can be directly used as transmission lines), which greatly reduces the cost and is particularly suitable for long-distance communication, but the transmission speed is slow.
[0073] Figure 1 shows an example architecture diagram of an IoT system used in an embodiment of the present application. As shown in Figure 1, IoT system 100 includes a terminal 110, a management platform 120, infrastructure 130, an edge device 140, a plurality of controllers 150, and a plurality of service devices 160. Figure 1 schematically illustrates two controllers 150 and four service devices 160. The number of controllers 150 and service devices 160 shown in Figure 1 is merely an example and does not constitute a specific limitation. In a specific implementation, more or fewer controllers 150 and service devices 160 may be included.
[0074] Among them, the terminal 110 can be, but is not limited to, various personal computers, laptops, 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 equipped with iOS, Android, Windows, Harmony OS, or other operating systems. The embodiment of this application does not specifically limit the type of electronic device. In a specific implementation, the terminal 110 can run a management application to configure the management platform 120.
[0075] The management platform 120 is used to manage the infrastructure 130 and can be deployed in the device resources of the infrastructure 130 or in electronic devices such as servers outside the infrastructure 130. For example, the management platform 120 can be an IoT platform.
[0076] The infrastructure 130 refers to the basic technical settings provided for the service, including various hardware resources and software for managing the hardware resources. For example, the hardware resources may be servers, storage devices, network devices, etc.
[0077] The edge device 140 mainly refers to switches, routers, routing switches, IADs, and various MAN / WAN devices installed on the edge network, responsible for transmitting data packets between access devices and core / backbone network devices. For example, the edge device 140 can be a gateway.
[0078] It should be noted that the management platform 120 can communicate with the terminal 110, the infrastructure 130, and the edge device 140 through the network; for example, the wired network can be a cable network, a fiber optic 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 switched telephone network (PSTN), a ZigBee network, a mobile phone (Global System for Mobile Communications, GSM) network, etc. or any combination thereof. It will be understood that the network may use any known network communication protocol to implement communication between different client layers and gateways. The above-mentioned network communication protocol may be various wired or wireless communication protocols, such as Ethernet, universal serial bus (USB), fire wire, 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.
[0079] The controller 150 can be connected to multiple business devices 160. As shown in Figure 1, 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 to business devices of different device types. The specific configuration can be determined based on the actual situation of the controller, and this embodiment of the application does not specifically limit this. The controller 150 can communicate with the edge device 140, and the controller 150 can communicate with the business device 160 via a network, where the network can be a wired network or a wireless network.
[0080] The service device 160 can be understood as a device for implementing a service. For example, in the Internet of Things scenario, the service device 160 can be an air conditioning unit, a lighting fixture, etc. The service device 160 can communicate with the controller 150 via a network, which can be a wired network or a wireless network.
[0081] In some scenarios, the controller 150 can read the operating data of the business device 160 and control the operation of the business device 160. The control logic for the business device 160 can be configured on the controller 150. In the building system, the business device 160 is controlled by the controller 150. The control logic file can be compiled by professional technicians using professional software, as shown in Figure 2. It 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 campuses, the number of controllers 150 is large, and the workload of compiling the control logic of the controller 150 is large. In addition, the control logic cannot be updated remotely in real time, which makes the update and maintenance of the control logic difficult, and increases the difficulty of unified management of the control logic of the business device 160.
[0082] 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, please refer to the description of Figure 3 below.
[0083] 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.
[0084] Figure 3 is a flow chart of a device control method based on Internet of Things technology provided by an embodiment of the present application. This embodiment can be applied to electronic devices, specifically servers or general computers.
[0085] As shown in FIG3 , the device control method based on Internet of Things technology provided in the embodiment of the present application includes at least the following steps:
[0086] In step 301 , the terminal 110 creates multiple control devices and multiple service devices 160 on the management platform 120 . The multiple control devices include edge devices 140 and controllers 150 . The edge devices 140 are connected to the management platform 140 .
[0087] In a specific implementation, the terminal 110 can run management software, and the management software provides a user interface (UI). Users can operate the UI interface to create objects on the management platform 120 and configure relevant information of the objects; wherein, the objects may include edge devices 140, controllers 150 and business devices 160; the relevant information of the objects may include the location of the object, the network it is located in, specification parameters, device tags, etc.; wherein, the location of the object may be a building, floor, room, etc.; the network where the object is located, such as the serial port number, IP address, MAC address; the specification parameters of the object are used to describe the factory information of the device, such as model, 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 tag is used to describe the user who uses the object, such as XXX Company. In addition, there can be a corresponding relationship between device tags, and device tags with corresponding relationships have a management relationship, such as Company A corresponds to Company B, indicating that Company A can manage the assets of Company B.
[0088] Subsequently, the edge device 140 is connected to the management platform 120. In some possible implementations, the terminal 110 may send authentication information to the edge device 140. The authentication information may include a device identifier and a key. The edge device 140 connects to the management platform 120 based on the authentication information.
[0089] It should be noted that the control device can be a device required to control the business device 160, including at least a controller 150, and can further include devices required for communication between the controllers 150, such as the edge device 140. In the embodiment of the present application, multiple control devices including the edge device 140 and the controller 150 are merely examples and do not constitute a specific limitation. The control device can be flexibly designed in combination with the actual scenario. For ease of description and understanding, the embodiment of the present application uses the controller 150 and the edge device 140 as an example to illustrate the technical solution.
[0090] In step 302, the terminal 110 sends preset rules and control logic to the management platform 120. The control logic is used to instruct the second business device 160B to perform a corresponding task when the operating data of the first business device 160A meets certain conditions; the first business device 160A and the second business device 160B are connected to at least one control device; the preset rules include the connection relationship between the first business device 160A and the second business device 160B and the at least one control device.
[0091] In an embodiment of the present application, at least one control device is a plurality of controllers 160 , or a plurality of controllers 160 and an edge device 140 , and the plurality of controllers 160 are connected through the edge device 140 to achieve communication.
[0092] The connection relationship between the first service device 160A and the second service device 160B and at least one control device can be understood as the controller 150 to which the first service device 160A can connect, the controller 150 to which the second service device 160B can connect, and the connection method between the first service device 160A and the second service device 160B and the controller 150, such as serial port connection or Ethernet connection. In some possible scenarios, the connection relationship between the first service device 160A and the second service device 160B and at least one control device can be stored in a file (for ease of description and distinction, referred to as a connection relationship file). In a specific implementation, considering that the connection relationship between service devices and control devices can be used continuously, to reduce transmission costs, the terminal 110 can send a connection relationship file to the management platform. The connection relationship file may include the connection relationships between all required service devices 160 and all control devices.
[0093] In addition, the preset rules are used to indicate the rules for selecting the control device. In one example, in addition to including the connection relationship between the first service device 160A and the second service device 160B and at least one control device, the preset rules may also include any one or more of the following configuration strategies:
[0094] 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.
[0095] 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 does not have any 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.
[0096] The space may be a room, a floor or a building, which may be determined based on actual needs, and the embodiments of the present application do not specifically limit this.
[0097] A network environment refers to a single network, which can be formed by all devices connected to the ingress or egress of a gateway or router. Devices in the same network environment can communicate with each other. In some cases, a network environment can be represented by a subnet, and the same subnet represents the same network environment.
[0098] In some possible implementations, the configuration policy in the preset rule may be a platform default or configured by the terminal 110. In addition, the configuration policy in the preset rule may have a priority, and different configuration policies may have different priorities. The configuration policy corresponds to a decision factor. For example, the decision factor and its corresponding configuration policy are shown in Table 1 below:
[0099] Table 1
[0100] For example, the order of priority from high to low may be 1, 2, 3, 4, 5, 6. It should be noted that the above decision factors are merely examples and do not constitute a specific limitation, and the decision factors and their configuration strategies may be flexibly set according to actual conditions.
[0101] The control logic can be used to instruct several second business devices 160B to execute corresponding tasks when the operating data of several first business devices 160A meets certain conditions. The operating data describes the values of at least some of the collected parameters generated during the operation of the first business device 160A. The collected parameters summarize the data and can include, for example, carbon dioxide concentration, sensor data, and indoor temperature. The corresponding tasks indicate the target state of the controlled objects of the second business devices 160B. The controlled objects describe the objects on the business devices 160 that can be controlled. These objects can be hardware such as a chilled water valve or functions such as ventilation or lighting. The target state indicates the operating state of the controlled objects, such as open, closed, or the size of the opening. It should be noted that there can be one or more first business devices 160A, and one or more second business devices 160B. The first business devices 160A and the second business devices 160B can be identical, completely different, or partially identical. This is not specifically limited in this embodiment and can be determined based on actual circumstances. Exemplarily, the control logic is used to illustrate that when the operating data of business device 160A meets certain conditions, business device 160A and business device 160B perform corresponding tasks; exemplary, the control logic is used to illustrate that when the operating data of business device 160A and business device 160B meet certain conditions, business device 160A and business device 160B perform corresponding tasks.
[0102] For example, the first business device 160A and the second business device 160B are the same, as shown in Figure 4a, and the control logic is: when the carbon dioxide concentration monitored by the business device 160A is greater than 1000PPM, the business device 160A turns on the exhaust; or, when the indoor temperature monitored by the business device 160A is greater than 25°C, the business device 160A opens the cold water valve, and when the indoor temperature is less than 21°C, the business 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 business device 160A detects someone, the business device 160A turns on the lighting.
[0103] For example, the first business device 160A and the second business device 160B are different, as shown in Figure 4b, and the control logic is: when the carbon dioxide concentration monitored by the business device 160B is greater than 1000PPM, the business device 160A and the business device 160B turn on the exhaust; or, when the indoor temperature monitored by the business device 160A is greater than 25°C, the business device 160A and the business device 160B open the cold water valve, and when the indoor temperature is less than 21°C, the business device 160A and the business device 160B close the cold water valve; or, when the human body sensor of the business device 160A detects the presence of someone, the business device 160A and the business device 160B turn on the lighting.
[0104] For example, the first business device 160A and the second business device 160B are different, as shown in Figure 4c, and the control logic is: when the carbon dioxide concentration monitored by the business device 160A and the business device 160B is greater than 1000 PPM, the business device 160D turns on the exhaust; or, when the indoor temperature monitored by the business device 160A and the business device 160B is greater than 25°C, the business device 160C opens the cold water valve; when the indoor temperature is less than 21°C, the business 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 opening size of the cold water valve of the business device 160C is determined based on the indoor temperature monitored by the business device 160A and the business device 160B; or, when the human body sensor of the business device 160A detects someone, the business device 160C and the business device 160D turn on the lighting.
[0105] In some possible implementations, the terminal 110 can obtain a control logic template, which is used to indicate the corresponding tasks that need to be executed when the operating data meets certain conditions; then the terminal 110 can fill in the first business device 160A and the second business device 160B in the control logic template to obtain the control logic.
[0106] Among them, the first business device 160A and the second business device 160B described in the control logic can be considered as business devices 160 related to the control logic, or the first business device 160A, the second business device 160B, and the control logic can be considered to be related; specifically, the business devices 160 related to the control logic can be understood as the business devices 160 that need to participate in implementing the control logic, namely the first business device 160A and the second business device 160B.
[0107] It is worth noting that each service device 160 may have multiple control logics associated with the service device 160. In a specific implementation, the service devices 160 associated with different control logics may be completely identical, completely different, or partially identical. This embodiment of the application does not specifically limit this, and the specific determination can be made based on actual circumstances.
[0108] It should be noted that the naming of the first service device 160A and the second service device 160B is merely an example and does not constitute a specific limitation or have any special meaning. In some possible scenarios, the first service device 160A and the second service device 160B may also be named the source service device 160A and the controlled service device 160B, or the first service device 160A and the second service device 160B may also be named the source-end service device 160A and the controlled-end service device 160B. This embodiment of the present application uses the first service device 160A and the second service device 160B as an example to illustrate the solution provided in this embodiment of the present application.
[0109] In addition, in step 302, the preset rules and control logic can be sent to the management platform 120 together, or they can be sent to the management platform 120 separately. The embodiment of the present application does not make specific limitations on this, and the specific design can be flexibly combined with actual needs.
[0110] In 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 based on the control logic and preset rules. The target logic is used to instruct the target control device to send instructions to the second business device 160B when it determines that the operating data of the first business device 160A meets the control conditions, so that the second business device 160B performs the corresponding task.
[0111] It should be noted that in this step, the management platform 120 may select a 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 within the control logic that controls the second service device 160B, and the target control device that executes the target logic is the key device that controls the second service device 160B.
[0112] In an embodiment of the present application, for each control logic, when the first business device 160A and the second business device 160B indicated by the control logic are different and are connected to the same controller 150, or when the first business device 160A and the second business device 160B are the same, the control logic corresponds to the same controller 150 connected to the first business device 160A and the second business device 160B; when the first business device 160A and the second business device 160B indicated by the control logic are different and the connected controllers 150 are different, the control logic is split into multiple parts, corresponding to the different controllers 150 connected to the first business device 160A and the second business device 160B, and the edge device 140, wherein the different controllers 150 connected to the first business device 160A and the second business device 160B, and any device in the edge device 140 can be used as the target control device.
[0113] In an 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.
[0114] For example, for the first business device 160A and the second business device 160B described in the control logic, it is assumed that the first business device 160A is connected to the controller 150a, and the second business device 160B is connected to the controller 150a and the controller 150b. Since the first business device 160A and the second business device 160B can be connected to the same controller 150a, the controller 150a can be used as the target control device.
[0115] In one example, the target control device may be the controller 150 connected to the second service device 160B (for ease of description and distinction, referred to as the second controller 150). In some possible scenarios, the second controller 150 may be connected to the first service device 150A. In other possible scenarios, the second service device 160B may be connected to multiple controllers 150, and the second controller 150 may be any of the multiple controllers 150 connected to the second service device 160B, such as the controller 150 with the most available hardware resources, or a controller 150 located in the same space, such as a room, as the second service device 160B, or a controller 150 located in the same network environment, such as the same subnet, as the second service device 160B. In a specific implementation, the management platform 120 selects the second controller from the multiple controllers 150 connected to the second business device 160B in order of priority from high to low based on the configuration policy; more specifically, the management platform 120 selects the controller 150 according to the configuration policy with the highest priority. If there are multiple controllers 150 selected, the priority is lowered by one level, and the selection is continued from the multiple controllers 150 that have been selected until a unique controller 150 is selected.
[0116] For example, for the first business device 160A and the second business device 160B described by the control logic, it is assumed that the first business device 160A is connected to the controller 150a, and the second business device 160B is connected to the controller 150b and the controller 150c. The controller 150a needs to process the control logic related to 3 business devices 160, the controller 150b needs to process the control logic related to 1 business device 160, and the controller 150c needs to process the control logic related to 3 business devices 160. The controllers 150a, 150b and 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.
[0117] In an 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.
[0118] Step 304: The management platform 120 sends the corresponding target logic to the target control device.
[0119] For example, if the target control device is the second controller 150, in some possible implementations, 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 other possible implementations, 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.
[0120] For example, if the target control device is the edge device 140 , the management platform 120 may simply send the target logic corresponding to the target control device to the edge device 140 .
[0121] In this solution, the control logic is arranged from the perspective of business devices without considering the control devices. The control logic is obtained through the management platform, and the control devices that execute the control logic are configured according to preset rules, which improves the efficiency of configuring the control logic for the control devices and the convenience of management.
[0122] In some possible implementations, in step 303 , the management platform 120 determines the target control device based on the connection relationship between the first service device 160A and the second service device 160B and at least one control device in the preset rule. There are two possible implementations as follows.
[0123] Implementation A1: The management platform 120 determines that the first service device 160A and the second service device 160B are connected to the same controller 150 , and the available hardware resources of the controller 150 are capable of running the control logic, and then uses the controller as the target control device.
[0124] Implementation method A2: The management platform 120 determines that the first business device 160A and the second business device 160B are connected to different controllers 150, then the second controller 150 connected to the second business device 160B, or the edge device 140 connected to the second controller 150 connected to the second business device 160B, is used as the target control device.
[0125] For implementation A1, the target logic corresponding to the target control device is the control logic. In some possible scenarios, the first service device 160A and the second service device 160B may be connected to multiple identical controllers 150. The target controller may be any controller 150 among the multiple controllers 150, such as the controller 150 with the most available hardware resources, the controller 150 located in the same space, such as a room, as the first service device 160A and the second service device 160B, or the controller 150 located in the same network environment, such as the same subnet, as the first service device 160A and the second service device 160B. In a specific implementation, the management platform 120 selects the second controller from the multiple identical controllers 150 connected to the first service device 160A and the second service device 160B, based on the configuration policy, in descending order of priority. More specifically, the management platform 120 selects the controller 150 according to the configuration policy with the highest priority. If multiple controllers 150 are selected, the priority is lowered by one level and the selection continues from the selected controllers 150 until a single controller 150 is selected.
[0126] In one example, the first service device 160A and the second service device 160B are the same.
[0127] For example, as shown in Figure 4a, the control logic is: when the carbon dioxide concentration monitored by service device 160A exceeds 1000 ppm, service device 160A activates the exhaust function. Here, first service device 160A is service device 160A, the collected parameter is carbon dioxide concentration, second service device 160B is service device 160A, and the controlled object is the exhaust function. The connection relationship between controller 150 and service device 160 illustrates the connection between service device 160A and controller 150a. As shown in Figure 5a, the target controlled device is controller 150a.
[0128] For example, as shown in Figure 4a, the control logic is as follows: when the indoor temperature monitored by service device 160A is greater than 25°C, service device 160A opens the cold water valve; when the indoor temperature is less than 21°C, service device 160A closes the cold water valve. Here, first service device 160A is service device 160A, the collected parameter is the indoor temperature, second service device 160B is service device 160A, and the controlled object is the cold water valve. The connection relationship between controller 150 and service device 160 illustrates the connection between service device 160A and controller 150a. As shown in Figure 5a, the target controlled device is controller 150a.
[0129] For example, as shown in Figure 4a, the control logic is as follows: when a human presence sensor (for monitoring occupancy, such as an image sensor) on service device 160A detects a person, service device 160A turns on the lighting. First service device 160A is service device 160A, the acquisition parameter is the human presence sensor, second service device 160B is service device 160A, and the controlled object is the lighting function. The connection relationship between controller 150 and service device 160 illustrates the connection between service device 160A and controller 150a. As shown in Figure 5a, the target controlled device is controller 150a.
[0130] In one example, the first service device 160A and the second service device 160B are at least partially different.
[0131] For example, as shown in Figure 4b, the control logic is as follows: when the carbon dioxide concentration monitored by service device 160B exceeds 1000 ppm, service devices 160A and 160B activate exhaust ventilation. Here, the first service device 160A is service device 160A, the collected parameter may be carbon dioxide concentration, and the controlled object is the exhaust function. The second service device 160B is service device 160A and service device 160B. The connection relationship between controller 150 and service device 160 illustrates the connection between service device 160A and service device 160B and controller 150a. As shown in Figure 5b, the target controlled device is controller 150a.
[0132] For example, as shown in Figure 4b, the control logic is as follows: when the indoor temperature monitored by service device 160A is greater than 25°C, service device 160A and service device 160B open the cold water valve; when the indoor temperature is less than 21°C, service device 160A and service device 160B close the cold water valve. Here, the first service device 160A is service device 160A, the collected parameter may be the indoor temperature, and the controlled object is the cold water valve. The second service device 160B is service device 160A and service device 160B. The connection relationship between controller 150 and service device 160 illustrates the connection between service device 160A and service device 160B and controller 150a. As shown in Figure 5b, the target controlled device is controller 150a.
[0133] For example, as shown in Figure 4b, the control logic is as follows: when the human presence sensor of service device 160A detects a person, service device 160A and service device 160B turn on the lighting. Here, the first service device 160A is service device 160A, the collected parameters can be human presence sensor data, and the controlled object is the lighting function. The second service device 160B is service device 160A and service device 160B. The connection relationship between controller 150 and service device 160 illustrates the connection between service device 160A and service device 160B and controller 150a. As shown in Figure 5b, the target controlled device is controller 150a.
[0134] For implementation A2, the target logic corresponding to the target control device is part of the control logic, and the remaining logic in the control logic corresponds to other control devices. In this implementation, the control logic can be split based on preset rules and then assigned to multiple control devices. This increases the flexibility of the control logic configuration, facilitates subsequent changes to multiple control devices assigned to the control logic, and improves the flexibility of configuring control logic for control devices.
[0135] In the embodiment of the present application, the target control device and the other control devices may be the controller 150 and the edge device 140. In one example, the management platform 120 may split the control logic based on the connection relationship between the controller 150 and the business device 160 to configure the multiple controllers 150 and edge devices 140, and obtain the logic corresponding to the edge device 140 and the multiple controllers 150. In a specific implementation, when the management platform 120 determines that the first business device 160A and the second business device 160B are connected to different controllers 150, the management platform 120 determines the target control device and several other control devices from the multiple control devices connected to the first business device 160A and the second business device 160B, and splits the control logic 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 logic corresponding to the several other control devices (for the sake of ease of description and distinction, it can be called auxiliary logic).
[0136] In some possible cases, there are two other control devices, and the auxiliary logic corresponding to each other control device is used to instruct the operation data of the first business device 160A to be sent to the target control device; for the sake of convenience of description and distinction, the other control device can be called a data transmission device, and the auxiliary logic can be called a data transmission logic.
[0137] Exemplarily, FIG6 shows a flow chart of step 303 in the embodiment shown in FIG3 .
[0138] As shown in FIG6 , based on the embodiment shown in FIG3 , in the embodiment of the present application, step 303 may specifically include the following steps:
[0139] Step 303a, the management platform 120 determines the target control device and data transmission device in 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 and the data transmission logic corresponding to the data transmission device. The data transmission logic is used to indicate that the operating data of the first business device 160A is sent to the target control device.
[0140] The method of FIG3 further includes the following steps:
[0141] Step 305: The management platform 120 sends the data transmission logic to the data transmission device.
[0142] 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 scenarios, the first service device 160A may be connected to multiple controllers 150. In this case, the first controller 150 may be any one of the multiple controllers 150 connected to the first service device 160A, such as the controller 150 with the most available hardware resources, the controller 150 located in the same space, such as a room, as the first service device 160A, or the controller 150 located in the same network environment, such as the same subnet, as the first service device 160A. In a specific implementation, the management platform 120 selects the second controller from the multiple controllers 150 connected to the first service device 160A based on the configuration policy, in descending order of priority. More specifically, the management platform 120 selects the controller 150 based on the configuration policy with the highest priority. If multiple controllers 150 are selected, the priority of the selected controller 150 is lowered by one level, and the selection continues from the selected controllers 150 until a single controller 150 is selected.
[0143] It is worth noting that, considering that the edge device 140 has its own business, in order to ensure the normal operation of the edge device 140, priority is given to deploying the target logic on the controller 150. In addition, if the first business device 160A needs to meet more conditions in the control logic, priority is also given to deploying the target logic on the controller 150. For example, in the scenario of real-time control of the controlled object of the business device 160, it is necessary to continuously adjust the state of the controlled object, such as the opening size of the cold water valve. In this case, more computing power is required; in order to ensure the normal operation of the edge device 140, it is necessary to reduce the additional computing overhead of the edge device 140. In this case, the edge device 140 can only implement the data forwarding function.
[0144] In an embodiment 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, determine the target logic corresponding to the target control device, such as the second controller 150 connected to the second service device 160B, and the data transmission logic corresponding to the first controller 150A connected to the data transmission device, such as the edge device 140. The control logic is implemented by the data transmission logic and the target logic. For example, the data transmission logic corresponding to the first controller 150 is used to send the operating data of the first service device 160A to the edge device 140, and the data transmission logic corresponding to the edge device 140 is used to send the operating data of the first service device 160A to the second controller 150. The target logic corresponding to the second controller 150 is used to instruct that when the operating data of the first service device 160A, such as the parameter value of the acquisition parameter, meets certain conditions, an instruction is issued to the second service device 160B, and the second service device 160B performs the corresponding task, such as turning on or off a certain device or function.
[0145] For example, as shown in Figure 4c, the control logic is as follows: when the carbon dioxide concentration monitored by service devices 160A and 160B exceeds 1000 ppm, service device 160D activates the exhaust function. First service device 160A refers to service devices 160A and 160B, and the collected parameter is carbon dioxide concentration. Second service device 160B refers to service device 160D, and the controlled object is the exhaust function. The connection relationship between controller 150 and service devices 160 illustrates that service devices 160A and 160B are connected to controller 150a, service devices 160C and 160D are connected to controller 150b, and controllers 150a and 150b are connected to edge device 140. As shown in Figure 7, the data transmission devices are controller 150a and edge device 140. The data transmission logic corresponding to controller 150a is to send the carbon dioxide concentration monitored by business device 160A and business device 160B to edge device 140. The data transmission logic corresponding to edge device 140 is to send the carbon dioxide concentration monitored by business device 160A and business device 160B to controller 150b. The target control device is controller 150b, and the target logic is: when the carbon dioxide concentration monitored by business device 160A and business device 160B is greater than 1000PPM, send an instruction to turn on exhaust to business device 160D.
[0146] For example, as shown in Figure 4c, 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; and 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 determines the opening size of the cold water valve of service device 160C. Here, the first service device 160A is service device 160A and service device 160B, the acquisition 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 illustrates that service devices 160A and 160B are connected to controller 150a, service devices 160C and 160D are connected to controller 150b, and controllers 150a and 150b are connected to edge device 140. As shown in Figure 7, 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 business device 160A and business device 160B to edge device 140. The data transmission logic corresponding to edge device 140 is to send the indoor temperature monitored by business device 160A and business device 160B to controller 150b. The target control device is controller 150b. The target logic is to send an instruction to open the cold water valve to business device 160C when the indoor temperature monitored by business device 160A and business device 160B is greater than 25°C. When the indoor temperature is less than 21°C, an instruction to close the cold water valve is sent to business device 160C. 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 business device 160A and business device 160B determines the opening size of the cold water valve of business device 160C.
[0147] For example, as shown in Figure 4c, the control logic is as follows: when the human presence sensor of service device 160A detects a person, service devices 160C and 160D turn on the lighting. Here, the first service device 160A is service device 160A, and the collected parameters can be data collected by the human presence 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 illustrates that service devices 160A and 160B are connected to controller 150a, service devices 160C and 160D are connected to controller 150b, and controllers 150a and 150b are connected to edge device 140. As shown in Figure 7, the data transmission devices are controller 150a and edge device 140. The data transmission logic corresponding to controller 150a is to send the data monitored by the human body sensor of business device 160A to edge device 140. The data transmission logic corresponding to edge device 140 is to send the data monitored by the human body sensor of business device 160A to controller 150b. The target controller 150 is controller 150b. The target logic is to send a command to turn on the lighting to business device 160C and business device 160D when the human body sensor of business device 160A detects someone.
[0148] In other possible situations, there are two other control devices. The auxiliary logic corresponding to one other control device is used to instruct the operation data of the first business device 160A to be sent 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 can be called a data transmission logic; the auxiliary logic corresponding to the other other control device is used to instruct the reception of the instruction sent by the target control device and send the instruction to the second business device 160B. For the convenience of description and distinction, the other control device can be called an instruction transmission device, and the auxiliary logic can be called an instruction sending logic.
[0149] FIG8 is a schematic flow chart of step 303 in the embodiment shown in FIG3 .
[0150] As shown in FIG8 , based on the embodiment shown in FIG3 , in the embodiment of the present application, step 303 may specifically include the following steps:
[0151] In step 303b, the management platform 120 determines the target control device, data transmission device, and instruction transmission device in 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 issuing logic corresponding to the instruction transmission device. The data transmission logic is used to instruct the operation data of the first business device 160A to be sent to the target control device, and the instruction issuing logic is used to instruct the reception of instructions issued by the target control device to control the second business device 160B to perform the corresponding task.
[0152] The method of FIG3 further includes the following steps:
[0153] Step 305: The management platform 120 sends the data transmission logic to the data transmission device.
[0154] Step 306: The management platform 120 sends the instruction sending logic to the instruction transmission device.
[0155] 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 may be 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 has its own 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 relatively few, or if the operating data in the control logic needs to meet relatively few and simple conditions, it is preferred to deploy the target logic on the edge device 140.
[0156] In the embodiment of the present application, the target control device executes the target logic and may generate an instruction, and the generated instruction may be used to instruct the second service device 160B to perform a task.
[0157] It is worth noting that for any control logic, when the first business device 160A and the second business device 160B are different and not connected to the same controller 150, the management platform 120 needs to split the control logic, determine the target control device, such as the target logic corresponding to the edge device 140, the data transmission device, such as the data transmission logic corresponding to the first controller 150A connected to the first business device 160A, and the instruction issuing device, such as the second controller 150 connected to the second business device 160B. The control logic is implemented by the data transmission logic, instruction transmission logic, and target logic. For example, the data transmission logic corresponding to the first controller 150 is used to send the operating data of the first business device 160A to the edge device 140, and the target logic corresponding to the edge device 140 is used to indicate that when the operating data of the first business 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 business device 160B. The second controller 150 issues the instruction to the second business device 160B, and the second business device 160B performs the corresponding task.
[0158] For example, as shown in Figure 4c, the control logic is as follows: when the carbon dioxide concentration monitored by service devices 160A and 160B exceeds 1000 ppm, service device 160D activates the exhaust function. First service device 160A refers to service devices 160A and 160B, and the collected parameter is carbon dioxide concentration. Second service device 160B refers to service device 160D, and the controlled object is the exhaust function. The connection relationship between controller 150 and service devices 160 illustrates that service devices 160A and 160B are connected to controller 150a, service devices 160C and 160D are connected to controller 150b, and controllers 150a and 150b are connected to edge device 140. As shown in Figure 9, 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 concentration monitored by the business device 160A and the business device 160B to the controller 150b; the target logic is to determine the instruction for the business device 160D to turn on the exhaust when the carbon dioxide concentration monitored by the business device 160A and the business device 160B is greater than 1000PPM, and to determine the instruction for the business device 160D to turn off the exhaust when the carbon dioxide concentration monitored by the business device 160A and the business device 160B is greater than 1000PPM; the instruction sending logic is to send the instruction corresponding to the business device 160D sent by the controller 150b to the business device 160D.
[0159] For example, as shown in Figure 4c, the control logic is as follows: when the human presence sensor of service device 160A detects a person, service devices 160C and 160D turn on the lighting. Here, the first service device 160A is service device 160A, and the collected parameters can be data collected by the human presence 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 illustrates that service devices 160A and 160B are connected to controller 150a, service devices 160C and 160D are connected to controller 150b, and controllers 150a and 150b are connected to edge device 140. As shown in Figure 9, the data transmission device is the controller 150a, the instruction issuing 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 business device 160A to the edge device 140 (used to indicate whether there is someone); the target logic is: when the human body sensor of the business device 160A monitors that there is someone, determining the instruction for the business device 160C and the business device 160D to turn on the lighting; when the human body sensor of the business device 160A monitors that there is no one, determining the instruction for the business device 160C and the business device 160D to turn off the lighting; the instruction issuing logic is to issue the instruction corresponding to the business device 160D sent by the controller 150b to the business device 160D.
[0160] For example, as shown in Figure 4c, 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; and when the indoor temperature 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 service device 160C is determined based on the indoor temperature monitored by service devices 160A and 160B. Here, the first service device 160A is service device 160A and service device 160B, the acquisition 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 controllers 150a and 150b are connected to edge device 140. The data transmission device is controller 150a, the instruction issuing device is controller 150b, the target control device is edge device 140, and the data transmission logic is: the indoor temperature monitored by business device 160A and business device 160B is sent to edge device 140. The target logic is that when the indoor temperature monitored by business device 160A and business device 160B is greater than 25°C, an instruction is generated for business device 160C to open the cold water valve; when the indoor temperature is less than 21°C, an instruction is generated for business device 160C to close the cold water valve. The target logic is that when the indoor temperature monitored by business device 160A and business device 160B is greater than or equal to 21°C and less than or equal to 25°C, an instruction indicating the opening size is determined based on the indoor temperature monitored by business device 160A and business device 160B; the instruction issuing logic is to issue the instruction corresponding to business device 160D sent by controller 150b to business device 160D.
[0161] It is worth noting that in some possible implementations, there may be multiple target control devices, which together implement target logic. Specifically, the control logic indicates that when the operating 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 operating data of the first service device 160A. In this case, the target logic indicates that when the operating data of the first service device 160A meets certain conditions, an instruction is determined based on the operating data of the first service device 160A and issued to the second service device 160B to cause the second service device 160B to execute the corresponding task. In this case, the logic corresponding to one target control device can be used to indicate whether the operating data of the first service device 160A meets certain conditions; and another target control device can be used to indicate, when the operating data of the first service device 160A meets certain conditions, the corresponding task to be executed by the second service device 160B based on the operating data of the first service device 160A. It should be noted that the target control device may also be an instruction issuing device. Specifically, when the target control device is the second controller 150 connected to the second service device 160B, the target control device may be an instruction issuing device.
[0162] For example, as shown in Figure 4c, the control logic is as follows: 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 opening size of the cold water valve of service device 160C is determined based on the indoor temperature monitored by service devices 160A and 160B. Here, the first service device 160A is service device 160A and service device 160B, the acquisition 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 controllers 150a and 150b are connected to edge device 140. As shown in Figure 9, the data transmission device is the controller 150a, the target control devices are the edge device 140 and the controller 150b, the instruction issuing device is the controller 150b, and the data transmission logic is: sending the indoor temperature monitored by the business device 160A and the business device 160B to the edge device 140. The target logic is that when the indoor temperature monitored by the business device 160A and the business device 160B is greater than 25°C, the edge device 140 generates an instruction (instructing to adjust the opening size of the cold water valve of the business device 160C) and sends it to the controller 150b. The controller 150b determines the instruction indicating the opening size based on the indoor temperature monitored by the business device 160A and the business device 160B (greater than or equal to 21°C and less than or equal to 25°C). The instruction issuing logic is to issue the instruction indicating the opening size determined by the controller 150b to the business device 160D.
[0163] In some other possible scenarios, there are two other control devices. The auxiliary logic corresponding to one other control device is used to instruct the transmission of the operating data of the first service device 160A to another other control device. For ease of description and distinction, this other control device can be referred to as a data transmission device, and the auxiliary logic as data transmission logic. The other other control device is used to transmit the result of whether the first service device 160A meets certain conditions to the target control device. For ease of description and distinction, this other control device can be referred to as a judgment transmission device, and the auxiliary logic as 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.
[0164] In this case, considering that the hardware resources of the controller 150 are limited, the available hardware resources of the controller 150 connected to the first service device 160A are relatively few. In this case, the judgment transmission logic may be deployed on the edge device 140 .
[0165] 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 sends this result to another transmission device. For ease of description and distinction, this other control device can be referred to as a judgment transmission device, and the auxiliary logic as 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 ease of description and distinction, this other control device can be referred to as a result transmission device, and the auxiliary logic as 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.
[0166] In this case, considering that edge device 140 itself has services, to ensure the normal operation of edge device 140, it is preferred to deploy the judgment and transmission logic on the first controller 150 connected to the first service device 160B. In addition, if the control logic requires that the first service device 160A meet a large number of conditions, it is also necessary to prioritize deploying the judgment and transmission logic on the first controller 150 connected to the first service device 160B.
[0167] It should be noted that the number of other control devices and the number of target control devices described above are merely examples and do not constitute a specific limitation. The number of other control devices and the number of target control devices can be determined based on the actual situation of splitting the control logic.
[0168] It is worth noting that, for the above implementation manner A1 and implementation manner A2, in some possible implementation manners, step 303 can be implemented through the following steps.
[0169] Step S1 : Based on the control logic and the connection relationship between the controller 150 and the service devices 160 in the preset rules, determine a number of controllers 150 to which a number of service devices 160 related to the control logic can be connected.
[0170] It should be noted that each business device 160 related to the control logic is the first business device 160A and the second business device 160B indicated by the control logic; for each business device 160 related to the control logic, each controller 150 connected to the business device 160 is used as a controller 150 connectable to the business device 160.
[0171] Step S2: When there are multiple controllers 150 to which the service device 160 can connect, the controllers 150 are screened based on other configuration strategies in the preset rules to determine the target controller 150 corresponding to the service device 160.
[0172] In a specific implementation, the management platform 120 selects a second controller from the multiple controllers 150 connected to the business device 160 based on the configuration policy in descending order of priority; more specifically, the management platform 120 selects the controller 150 according to the configuration policy with the highest priority. If there are multiple controllers 150 selected, the priority is lowered by one level, and the selection is continued from the multiple controllers 150 that have been selected until a unique controller 150 is selected.
[0173] Step S3 : When there is only one controller 150 to which the service device 160 can connect, determine the controller 150 as the target controller 150 corresponding to the service device 160 .
[0174] Step S4 : There are one or more service devices 160 related to the control logic. The one or more service devices 160 are connected to the same target controller 150 , and the control logic is used as the target logic corresponding to the target controller 150 .
[0175] For example, if multiple service devices 160 with related 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 details, please refer to the description of Figures 4a, 4b, 5a, and 5b above.
[0176] Step S5: There are multiple business devices 160 related to the control logic. The multiple business devices 160 are connected to different target controllers 150. The control logic is split and corresponding logic is configured for different target controllers 150 and edge devices 140 respectively.
[0177] 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 sake of ease of description and distinction, it can be called a cross-controller logic file). In the embodiment of the present application, since the edge device 140 has the functions of data forwarding and data processing, different controllers 150 can communicate between the edge device 140, so the cross-controller logic file can be deployed on the edge device 140. In the specific implementation, the edge device 140 will store the cross-controller logic file. Subsequently, when receiving the operating data of the first business device 160A, the operating data of the first business device 160A will be processed based on the cross-controller logic file, such as forwarding the operating data of the first business device 160A to other controllers 150, and for another example, generating instructions based on the operating data of the first business device 160A, and forwarding the instructions to at least one controller 150. For details, please refer to the above description of Figures 4c, 7, and 9.
[0178] In summary, in the embodiment of the present application, the edge device 140 executes the deployed logic, and can forward the received operating data of the first business device 160A to the target control device, and can also send the result of whether the operating data of the first business device 160A meets certain conditions to the target control device, and can also generate instructions when the operating data of the first business device 160A meets certain conditions and send the instructions to the target controller.
[0179] It should be noted that in actual applications, the management platform 120 can process multiple control logics simultaneously, thereby determining the logics corresponding to multiple control devices. For each control device, the logics corresponding to that device are sent to the control device. In actual applications, the edge device 140 may be connected to multiple controllers 150, and the edge device 140 can send the corresponding logic to each of the controllers 150.
[0180] In an embodiment 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. For example, for the scenarios of Figures 4a and 4b, 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 controller a to controller a. For the scenario of Figure 4c, 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 controller a to controller a and the logic file of controller b to controller b.
[0181] Based on the device control method based on the Internet of Things technology provided above, the specific application of the device control method based on the Internet of Things technology is explained.
[0182] In some possible scenarios, as shown in FIG10 a , controller a is deployed with logic files of controller a.
[0183] For example, as shown in FIG5 a , 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.
[0184] When the controller a determines that the carbon dioxide concentration monitored by the service device 160A is greater than 1000 PPM, the controller a sends an instruction to turn on the exhaust to the service device 160A, and the service device 160A turns on the exhaust based on the instruction.
[0185] When controller a determines that the indoor temperature monitored by business device 160A is greater than 25°C, it sends an instruction to business device 160A to open the cold water valve, and business device 160A opens the cold water valve based on the instruction; when it determines that the indoor temperature monitored by business device 160A is less than 21°C, it sends an instruction to business device 160A to close the cold water valve, and business device 160A closes the cold water valve based on the instruction.
[0186] When the controller a determines that the human body sensor of the service device 160A detects the presence of a person, it sends a lighting-on instruction to the service device 160A, and the service device 160A turns on the lighting based on the instruction.
[0187] For example, as shown in FIG5b , 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.
[0188] When controller a determines that the carbon dioxide concentration monitored by service device 160A is greater than 1000 PPM, it sends an instruction to start exhaust to service device 160A and service device 160B respectively, and service device 160A and service device 160B respectively start exhaust based on the instruction.
[0189] When controller a determines that the indoor temperature monitored by business device 160A is greater than 25°C, it sends instructions to business device 160A and business device 160B to open the cold water valve respectively, and business device 160A and business device 160B open the cold water valve based on the instruction; when it determines that the indoor temperature monitored by business device 160A is less than 21°C, it sends instructions to business device 160A and business device 160B to close the cold water valve respectively, and business device 160A and business device 160B close the cold water valve based on the instruction.
[0190] When the controller a determines that the human body sensor of the service device 160A detects the presence of a person, it sends a lighting-on instruction to the service device 160A and the service device 160B. The service device 160A and the service device 160B respectively turn on the lighting based on the instruction.
[0191] In other possible scenarios, as shown in FIG10 b , the edge device 140 is deployed with a cross-controller logic file, controller a is deployed with a logic file corresponding to controller a, and controller b is deployed with a logic file corresponding to controller b.
[0192] For example, as shown in FIG7 , 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.
[0193] Controller a sends the data collected by the human body sensor monitored by the service device 160A and the carbon dioxide concentration, and the carbon dioxide concentration monitored by the service device 160B to the edge device 140 .
[0194] The edge device 140 sends the data collected by the human body sensor monitored by the service device 160A and the carbon dioxide concentration, and the carbon dioxide concentration monitored by the service device 160B to the controller 150 b .
[0195] When the controller 150b determines that the carbon dioxide concentration monitored by the service device 160A and the service device 160B is greater than 1000 PPM, the controller 150b sends an instruction to turn on the exhaust to the service device 160D, and the service device 160D turns on the exhaust based on the instruction.
[0196] When the controller 150b determines that the indoor temperature monitored by the business device 160A and the business device 160B is greater than 25°C, the controller 150b sends an instruction to open the cold water valve to the business device 160C, and the business device 160C opens the cold water valve based on the instruction; when the controller 150b determines that the indoor temperature monitored by the business device 160A and the business device 160B is less than 21°C, the controller 150b sends an instruction to close the cold water valve to the business device 160C, and the business device 160C closes the cold water valve based on the instruction. When the indoor temperature is greater than or equal to 21°C and less than or equal to 25°C, the controller 150b determines the opening size of the cold water valve of the business device 160C, and sends an instruction indicating the opening size of the cold water valve to the business device 160C, and the business device 160C controls the opening size of the cold water valve based on the instruction.
[0197] When the controller 150b determines that the human body sensor of the service device 160A detects the presence of a person, it sends a lighting-on instruction to the service device 160D and the service device 160C. The service devices 160D and 160C turn on the lighting based on the instruction.
[0198] For example, as shown in FIG9 , 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.
[0199] Controller a sends the data collected by the human body sensor monitored by the service device 160A and the carbon dioxide concentration, and the carbon dioxide concentration monitored by the service device 160B to the edge device 140 .
[0200] When the edge device 140 determines that the carbon dioxide concentration monitored by the business device 160A and the business device 160B is greater than 1000 PPM, it generates an instruction to control the business device 160D to turn on the exhaust, and sends the instruction to the controller 150b. The controller 150b sends the instruction to the business device 160D, and the business device 160D turns on the exhaust based on the instruction.
[0201] When the edge device 140 determines that the indoor temperature monitored by the business device 160A and the business device 160B is greater than 25°C, it generates an instruction to control the business device 160C to open the cold water valve, and sends the instruction to the controller 150b. The controller 150b sends the instruction to the business device 160C, and the business device 160C opens the cold water valve based on the instruction. When the edge device 140 determines that the indoor temperature monitored by the business device 160A and the business device 160B is less than 21°C, it generates an instruction to control the business device 160C to close the cold water valve, and sends the instruction to the controller 150b. The controller 150b sends the instruction to the business device 160C. The service device 160C closes the cold water valve based on the instruction; when it is determined that 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, it generates an instruction to control the controller 150b to start the opening regulation of the cold water valve, and sends the indoor temperature monitored by the service device 160A and the service device 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 the 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 the instruction.
[0202] When the edge device 140 determines that the human body sensor of the business device 160A monitors the presence of a person, it generates an instruction to control the business device 160D and the business device 160C to turn on the lighting, and sends the instruction to the controller 150b. The controller 150b sends the instruction to the business device 160D and the business device 160C, and the business device 160D and the business device 160C turn on the lighting based on the instruction.
[0203] In some possible scenarios, if the operating data of the first service device 160A in the control logic meets certain conditions and is updated, for example, the terminal 110 can display the control logic, specifically the logic deployed for each control device, such as the controller 150 and the edge device 140; subsequently, the user can update the deployed logic of the control device through the terminal 110, such as by modifying the logic or directly uploading new logic to replace the old logic, thereby updating the logic. Subsequently, the management platform 120 can obtain the updated logic corresponding to the control device from the terminal 110 and distribute the updated logic to the corresponding control device.
[0204] In other possible scenarios, if the control logic is updated, for example, the terminal 110 may display the control logic. Subsequently, the user may update the control logic through the terminal 110, such as by modifying the control logic or directly uploading the new control logic to replace the old control logic, thereby updating the control logic. The management platform 120 then re-executes steps 304 to 305 to update the control logic.
[0205] In this solution, the control logic can be automatically updated through the management platform, which improves the convenience of updating the control logic.
[0206] The present application also provides a device control device based on Internet of Things technology, as shown in FIG11 , comprising:
[0207] a logic acquisition module, configured to acquire control logic, wherein the control logic is configured to instruct the second service device to perform a corresponding task when the operating 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;
[0208] a configuration module, configured to determine, based on the control logic and preset rules, a target control device and a target logic corresponding to the target control device in at least one control device, wherein the target logic is configured to instruct the target control device to issue an instruction to the second service device to cause the second service device to perform a corresponding task upon determining that the operating data of the first service device satisfies a control condition; wherein the preset rules include a connection relationship between the first service device, the second service device, and the at least one control device;
[0209] The sending module is used to send the target logic to the target control device.
[0210] The logic acquisition module, configuration module, and delivery module can all be implemented via software or hardware. For example, the implementation of the logic acquisition module will be described below using the logic acquisition module as an example. Similarly, the implementation of the configuration module and delivery module can refer to the implementation of the logic acquisition module.
[0211] 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. Furthermore, the 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 used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple geographically close data centers. Typically, a region may include multiple AZs.
[0212] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.
[0213] As an example of a hardware functional unit, the logic acquisition module may include at least one computing device, such as a server. Alternatively, the logic acquisition module may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0214] 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 AZ or in different AZs. Similarly, the multiple computing devices included in the logic acquisition module can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.
[0215] 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, and the configuration module and the sending module can both be used to execute any step in the device control method based on the Internet of Things technology. The steps that the logic acquisition module, the configuration module, and the sending module are responsible for implementing can be specified as needed. The full functions of the device control device based on the Internet of Things technology can be realized by respectively 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 sending module.
[0216] This application also provides a computing device 1200. As shown in Figure 12, computing device 1200 includes a bus 1202, a processor 1204, a memory 1206, and a communication interface 1208. Processor 1204, memory 1206, and communication interface 1208 communicate with each other via bus 1202. 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 computing device 1200.
[0217] Bus 1202 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG12 shows a single bus line, but this does not imply a single bus or type of bus. Bus 1202 may include a path for transmitting information between various components of computing device 1200 (e.g., memory 1206, processor 1204, and communication interface 1208).
[0218] The processor 1204 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0219] 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, hard disk drive (HDD), or solid state drive (SSD).
[0220] Memory 1206 stores executable program code, which processor 1204 executes to implement the functions of the aforementioned logic acquisition module, configuration module, and delivery module, thereby implementing the device control method based on IoT technology. In other words, memory 1206 stores instructions for executing the device control method based on IoT technology.
[0221] 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.
[0222] Embodiments of the present application also provide a computing device cluster. The computing device cluster includes at least one computing device. The computing device can 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 can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.
[0223] As shown in Figure 13, the computing device cluster includes at least one computing device 1200. The memory 1206 in one or more 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.
[0224] In some possible implementations, the memory 1206 of one or more computing devices 1200 in the computing device cluster may also store partial instructions for executing the device control method based on the Internet of Things technology. In other words, the combination of one or more computing devices 1200 can jointly execute instructions for executing the device control method based on the Internet of Things technology.
[0225] It should be noted that the memory 1206 in different computing devices 1200 in the computing device cluster can store different instructions, each for executing a portion of the functions of the device control apparatus based on IoT technology. In other words, the instructions stored in the memory 1206 in different computing devices 1200 can implement the functions of one or more of the logic acquisition module, the configuration module, and the delivery module.
[0226] In some possible implementations, one or more computing devices in a computing device cluster may be connected via a network. The network may be a wide area network (WAN) or a local area network (LAN), etc. FIG14 illustrates a possible implementation. As shown in FIG14 , two computing devices 1200A and 1200B are connected via a network. Specifically, the connection to the network is made via a communication interface in each computing device. In this type of possible implementation, the memory 1206 in the computing device 1200A stores instructions for executing the functions of the logic acquisition module. Simultaneously, the memory 1206 in the computing device 1200B stores instructions for executing the functions of the configuration module and the delivery module.
[0227] The connection method between the computing device clusters shown in Figure 14 can be considered to be that the device control method based on Internet of Things technology provided in this application needs to process more control logic and issue a large amount of control logic, so it is considered to entrust the functions implemented by the configuration module and the issuing module to the computing device 1200B for execution.
[0228] It should be understood that the functionality of the computing device 1200A shown in FIG14 may also be implemented by multiple computing devices 1200. Similarly, the functionality of the computing device 1200B may also be implemented by multiple computing devices 1200.
[0229] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored on any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes a device control method based on Internet of Things technology, or a device control method based on Internet of Things technology.
[0230] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device 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 (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute a device control method based on the Internet of Things technology, or instruct the computing device to execute a device control method based on the Internet of Things technology.
[0231] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0232] The basic principles of the present application have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, and effects mentioned in this application are merely illustrative and not restrictive, and it should not be assumed that these advantages, strengths, and effects are required of each embodiment of the present disclosure. In addition, the specific details disclosed above are merely illustrative and for ease of understanding, and are not restrictive. The above details do not limit the present disclosure to necessarily being implemented using the above specific details.
[0233] The block diagrams of the devices, devices, equipment, and systems involved in this disclosure are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, devices, equipment, and systems can be connected, arranged, or configured in any manner. Words such as "include," "comprise," "have," and the like are open-ended words, meaning "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or" and can be used interchangeably therewith, 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 therewith.
[0234] It should also be noted that in the apparatus, device, and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0235] The above description has been provided for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
[0236] It will be understood that the various numerical numbers involved in the embodiments of the present application are merely distinctions for the convenience of description and are not intended 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 a target control device in the at least one control device according to the control logic and preset rules; and a target logic corresponding to the target control device, the target logic being 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 a control condition; wherein the preset rule includes 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.
Citation Information
Patent Citations
Service process arrangement method and device and readable medium
CN112583898A
Resource management method and device, equipment and storage medium
CN115129423A
Rule engine processing method and device, electronic equipment and storage medium
CN117093619A
Service management method and system, and related device
WO2023193470A1