Control method and device of Internet of Things equipment and related equipment
Receive and parse the operation information of IoT devices through object model rules to achieve control of functional granularity, solve the scalability problem when the device type or model changes in the existing technology, and improve the control efficiency and adaptation of IoT devices. sex.
Patent Information
- Application Number
- CN202310340354.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-15
AI Technical Summary
Existing IoT device control methods need to readjust or add automation rules when the device type or model changes, resulting in low scalability and difficulty in adapting to the control needs of multiple devices.
Using object model rules, by receiving the operation information of IoT devices, determine the functions it supports, and based on the trigger conditions and execution actions of the target object model rules, send control instructions to the corresponding devices to achieve functional granular control, which is suitable for a wide range of IoT devices.
It improves the control efficiency and scalability of IoT devices, reduces the manual configuration of rules, and reduces the difficulty of adaptation when device types and models change.
Smart Images

Figure CN118784685A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a control method, device and related equipment of Internet of Things equipment. Background Art
[0002] With the rapid development of IoT technology, more and more IoT devices are used in people's lives. In order to control IoT devices, automation rules for controlling IoT devices are usually set on the control device. The control device controls the IoT devices based on the pre-set automation rules.
[0003] Currently, the automation rules pre-set in the control device are for specific IoT devices or specific types of IoT devices. When new devices are connected to the network and need to be controlled, the staff needs to readjust or add automation rules, and the scalability of the IoT is low. Summary of the invention
[0004] The embodiments of the present application provide a control method, device and related equipment for an Internet of Things device, which can utilize physical model rules to control the Internet of Things device based on the functions of the Internet of Things device, thereby improving the scalability of the Internet of Things.
[0005] In the first aspect, the present application provides a control method for an Internet of Things device. When the method is specifically implemented, the operation information sent by the first Internet of Things device is received. Among them, the operation information includes a first data identifier and a first detection data corresponding to the first data identifier. The first data identifier is used to indicate the first function supported by the first Internet of Things device. The trigger condition of the target object model rule corresponds to the first function, and the execution action corresponds to the second function. Based on the operation information, the first function supported by the first Internet of Things device can be determined, and it is determined that the first detection data meets the trigger condition of the target object model rule. In response to determining that the first detection data meets the trigger condition of the target object model rule, a control instruction is sent to the Internet of Things device that supports the second function, that is, the second Internet of Things device. The control instruction is used to instruct the second Internet of Things device to execute the execution action of the target object model rule. In this way, the control of the Internet of Things device with functional granularity achieved by using the target object model rule will not be limited to the specific model and type of the Internet of Things device, and can be more widely applied to Internet of Things devices, thereby improving the control efficiency of Internet of Things devices.
[0006] In one possible implementation, the first data identifier is a first device identifier of the first IoT device. The method also includes obtaining a first device identifier and a first function identifier sent by the first IoT device. The first function identifier is used to identify the first function. Based on the first device identifier and the first function identifier, it can be determined that the first IoT device supports the first function. A correspondence between the first device identifier and the first function is established. In this way, when the first device identifier is subsequently received, based on the correspondence between the first device identifier and the first function, it can be determined that the first IoT device supports the first function.
[0007] In a possible implementation, the first data identifier is a function name of the first function. Based on the function name of the first function, it can be determined that the first IoT device that sends the operation information supports the first function.
[0008] In one possible implementation, the second IoT device supports the second function based on a second data identifier sent by the second IoT device. The second data identifier is pre-acquired. The method also includes acquiring a second data identifier sent by the second IoT device. The second data identifier is used to indicate that the second IoT device supports the second function. After acquiring the second data identifier, it is determined that the second IoT device supports the second function based on the second data identifier.
[0009] In one possible implementation, the second data identifier is a second device identifier of the second IoT device. The method also includes receiving a second function identifier sent by the second IoT device. The second function identifier is used to identify the second function. Based on the second device identifier and the second function identifier sent by the second IoT device, it is possible to determine that the second IoT device supports the second function, and establish a corresponding relationship between the second device identifier and the second function, so that it is subsequently determined that the second IoT device that sends the second device identifier supports the second function based on the received second device identifier.
[0010] In a possible implementation manner, the second data identifier is a function name of the second function.
[0011] In a possible implementation, the target object model rule also includes a location condition. Before sending a control instruction to the second IoT device corresponding to the second data identifier, the location information of the first IoT device is first obtained, and it is confirmed that the location information of the first IoT device meets the location condition. Then the control instruction is sent to the second IoT device whose location information meets the location condition. In this way, the control of the IoT device at a specific location can be achieved.
[0012] In a second aspect, the present application provides a control device for an Internet of Things device, the device comprising:
[0013] A receiving unit, configured to receive operation information sent by a first Internet of Things device, wherein the operation information includes a first data identifier and first detection data corresponding to the first data identifier, wherein the first data identifier is used to indicate that the first Internet of Things device supports a first function;
[0014] A sending unit is used to send a control instruction to a second Internet of Things device in response to determining that the first detection data meets the triggering condition of the target object model rule, the second Internet of Things device supports a second function, the control instruction is used to instruct the second Internet of Things device to execute an execution action of the target object model rule, the triggering condition of the target object model rule corresponds to the first function, and the execution action corresponds to the second function.
[0015] In a possible implementation, the first data identifier is a first device identifier of the first Internet of Things device, and the receiving unit is further used to receive the first device identifier and a first function identifier sent by the first Internet of Things device, where the first function identifier is used to identify a first function;
[0016] The device also includes:
[0017] An establishing unit is used to establish a corresponding relationship between the first device identifier and the first function.
[0018] In a possible implementation manner, the first data identifier is a function name of the first function.
[0019] In a possible implementation manner, the receiving unit is further used to obtain a second data identifier sent by the second Internet of Things device, where the second data identifier is used to indicate that the second Internet of Things device supports the second function;
[0020] The device also includes:
[0021] A determining unit is used to determine, based on the second data identifier, whether the second Internet of Things device supports the second function.
[0022] In a possible implementation, the second data identifier is a second device identifier of the second Internet of Things device, and the receiving unit is further used to receive a second function identifier sent by the second Internet of Things device, where the second function identifier is used to identify a second function;
[0023] The establishing unit is further used to establish a corresponding relationship between the second device identifier and the second function.
[0024] In a possible implementation manner, the second data identifier is a function name of the second function.
[0025] In a possible implementation manner, the target object model rule further includes a location condition, and the receiving unit is further configured to obtain the location information of the first Internet of Things device before sending the control instruction to the second Internet of Things device corresponding to the second data identifier;
[0026] The device also includes:
[0027] A confirmation unit, configured to confirm that the location information of the first IoT device satisfies the location condition;
[0028] The sending unit is used to send a control instruction to the second IoT device, including:
[0029] The sending unit is used to send a control instruction to a second Internet of Things device whose location information meets the location condition.
[0030] In a third aspect, the present application provides a device, comprising at least one processor and at least one memory; the at least one memory is used to store instructions, and the at least one processor executes the instructions stored in the at least one memory, so that the device executes the control method of the Internet of Things device in the above-mentioned first aspect or any possible implementation of the first aspect.
[0031] In a fourth aspect, the present application provides a computing device cluster, the computing device cluster includes at least one computing device, the at least one computing device includes at least one processor and at least one memory; the at least one memory is used to store instructions, and the at least one processor executes the instructions stored in the at least one memory, so that the computing device cluster executes the control method of the Internet of Things device in the above-mentioned first aspect or any possible implementation of the first aspect. It should be noted that the memory can be integrated into the processor or can be independent of the processor. The at least one computing device may also include a bus. The processor is connected to the memory via a bus. The memory may include a readable memory and a random access memory.
[0032] In a fifth aspect, the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on at least one computing device, the at least one computing device executes the method described in the first aspect or any one of the implementations of the first aspect.
[0033] In a sixth aspect, the present application provides a computer program product comprising instructions, which, when executed on at least one computing device, enables the at least one computing device to execute the method described in the first aspect or any one of the implementations of the first aspect.
[0034] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of the structure of an Internet of Things provided in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of a flow chart of a control method for an Internet of Things device provided in an embodiment of the present application;
[0037] Figure 3 A structural schematic diagram of a control device for an Internet of Things device is also provided for an embodiment of the present application;
[0038] Figure 4 A schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0039] Figure 5 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The scheme in the embodiments provided in this application will be described below in conjunction with the drawings in this application.
[0041] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances. This is just a way of distinguishing objects with the same attributes when describing the embodiments of this application.
[0042] In some scenarios of the actual application of IoT devices, the control device needs to obtain the data collected by the IoT device, and control the linkage between the IoT device and other IoT devices or control the IoT device to perform specific actions based on the acquired data and the pre-configured automation rules. The pre-configured automation rules in the control device are basically implemented by triggers and action mechanisms. When the conditions of the trigger are met, the trigger triggers the execution of a specific action. At present, the automation rules can be set based on a single IoT device or based on IoT devices of a specific product type. For the automation rules set for a single IoT device, the specific device that needs to be processed based on the automation rules can be determined based on the device identification. For example, in the IoT scenario of a smart home, an automation rule for controlling a lighting device for a specific device identification is pre-set. Among them, the trigger condition of the trigger is the detection of the door opening action, and the action mechanism is to turn on the lighting device. In the application process, when the control device detects the door opening through other IoT devices, the trigger condition of the trigger is met, and based on the automation rules, the lighting device with the specific device identification is controlled to perform the opening action. For the automation rules set for IoT devices of a specific product type, the specific device that needs to be processed based on the automation rules can be determined for a specific product model. For another example, in the IoT scenario of a park, an automation rule is pre-set to control the fire extinguisher for a specific product model. The trigger condition of the trigger is the detection of smoke, and the action mechanism is to turn on the fire extinguisher. During the application process, when the control device detects smoke through other IoT devices, the trigger condition of the trigger is met, and based on the automation rule, the fire extinguisher of the specific product model is controlled to perform the opening action.
[0043] The automation rules set for a single IoT device are only applicable to the configuration of a smaller-scale IoT. When there are many devices connected to the IoT, or the number of IoT devices updated is high, it is necessary to manually adjust or add automation rules to adapt to each IoT device, which is inconvenient to control the IoT devices and difficult to expand the IoT. The automation rules set for IoT devices of specific product models can only be set for existing IoT devices. When IoT devices of new product types are online, the automation rules also need to be reconfigured. In addition, IoT devices of different product types with the same or similar functions also need to be configured with corresponding automation rules respectively. This requires staff to configure a large number of automation rules, and it is also inconvenient to expand the IoT.
[0044] Based on this, the embodiments of the present application provide a control method, device and related equipment for an Internet of Things device. The method can be performed by a control device in the Internet of Things. The control device in the Internet of Things is connected to other Internet of Things devices to process data sent by the Internet of Things devices and to control the Internet of Things devices. The embodiments of the present application do not limit the specific type of the control device. For example, the control device is a gateway, a router, a server, an operation and maintenance platform, a mobile terminal, etc. that can be connected to the Internet of Things device and control the Internet of Things device.
[0045] The control device pre-configures the physical model rules. The physical model rules include trigger conditions and execution actions. The trigger conditions correspond to the first function, and the execution actions correspond to the second function. Based on the physical model rules, the control device can control the IoT device with the second function to execute the execution action of the physical model rules when the detection data provided by the IoT device with the first function meets the trigger conditions. Specifically, as an example, see Figure 1 As shown, this figure is a schematic diagram of the structure of an Internet of Things provided by an embodiment of the present application. The Internet of Things includes a control device 101, an Internet of Things device 102, an Internet of Things device 103, and an Internet of Things device 104. The control device 101 is connected to the Internet of Things device 102, the Internet of Things device 103, and the Internet of Things device 104 respectively. The control device 101 obtains the operating data reported by the Internet of Things device 102, the Internet of Things device 103, and the Internet of Things device 104, and controls the Internet of Things devices based on the obtained operating data and the object model rules.
[0046] Below Figure 1 Taking the IoT structure shown in the figure as an example, three application scenarios are introduced respectively.
[0047] The first type: smart life application scenarios.
[0048] The control device 101 is a home router. The control device 101 is pre-configured with target model rules. The target model rules include trigger conditions and execution actions. Among them, the trigger condition is that the light intensity is less than 5 lux and the movement of an object is detected. The execution action is to control the lighting device to turn on. The trigger conditions correspond to the first function, i.e., light intensity detection, and the first function, i.e., motion detection function. The execution action corresponds to the second function, i.e., lighting function. The Internet of Things device 102 is a light intensity detector 102, the Internet of Things device 103 is a motion sensor 103, and the Internet of Things device 104 is a lighting device 104. The first data identifier of the light intensity detector 102 is sun.brightness. sun.brightness indicates that the light intensity detector 102 has a light intensity detection function, i.e., the first function. The first data identifier of the motion sensor 103 is motion.detection. motion.detection indicates that the motion sensor 103 has a motion detection function, i.e., the first function. The second data identifier of the lighting device 104 is light.switch. light.switch indicates that the lighting device 104 has a lighting function, that is, a second function.
[0049] The control device 101 receives a first data identifier, i.e., sun.brightness, sent by the light intensity detector 102, and first detection data corresponding to the first data identifier, i.e., light intensity detection data. The control device 101 receives a first data identifier, i.e., motion.detection, sent by the motion sensor 103, and first detection data corresponding to the first data identifier, i.e., motion detection data. The triggering condition of the target model rule corresponds to the light intensity detection function supported by the light intensity detector 102 and the motion detection function supported by the motion sensor 103. When the light intensity detection data is less than 5 lux and the motion detection data indicates that an object is detected to be moving, the control device 101 determines that the triggering condition of the target model rule is satisfied. The control device 101 sends a control instruction for turning on the indicator light to the lighting device 104 having a lighting function. In this way, when the light intensity is less than 5 lux and an object is detected to be moving, the light can be controlled to be on. The target model rule can be applied to control scenarios including an IoT device having a light intensity detection function, an IoT device having a motion detection function, and an IoT device having a lighting function. When there is a need to add or adjust IoT devices in the future, there is no need to be restricted by the specific product types of IoT devices and specific IoT devices. It is possible to match IoT devices with light intensity detection function, motion detection function and lighting function, thereby improving the scalability of the IoT.
[0050] The second type: smart park application scenarios.
[0051] The control device 101 is a park operation and maintenance platform. The control device 101 is pre-configured with target model rules. The target model rules include trigger conditions and execution actions. Among them, the trigger condition is the detection of a fire alarm. The execution action is to close the elevator and open the fire door. The trigger condition corresponds to the first function, that is, the fire alarm detection function. The execution actions correspond to the second function, that is, the elevator control function and the second function, that is, the fire door control function. The Internet of Things device 102 is a fire detector 102, the Internet of Things device 103 is an elevator 103, and the Internet of Things device 104 is a fire door 104. The first data identifier of the fire detector 102 is fireAlarm.Detection. FireAlarm.Detection indicates that the fire detector 102 has a fire alarm detection function, that is, the first function. The second data identifier of the elevator 103 is elevator.switch. Elevator.switch indicates that the elevator 103 has an elevator control function, that is, the second function. The second data identifier of the fire door 104 is FireDoor.switch. FireDoor.switch indicates that the fire door 104 has a fire door control function, that is, the second function.
[0052] The control device 101 receives the first data identifier, fireAlarm.Detection, and the first detection data corresponding to fireAlarm.Detection, that is, the fire detection data, sent by the fire detector 102. When a fire is detected, the control device 101 determines the triggering condition that satisfies the target object model rule. The control device 101 sends a control instruction for controlling the elevator to close to the elevator 103 having an elevator control function, and sends a control instruction for controlling the fire door to close to the fire door 104 having a fire door control function. In this way, when a fire is detected, the elevator and the fire door can be controlled to close. In this way, the matching of IoT devices with fire detection function, elevator control function and fire door control function can be achieved, thereby improving the scalability of the IoT.
[0053] The third type: smart tunnel application scenario.
[0054] The control device 101 is an edge gateway. The control device 101 pre-configures the target object model rules. The target object model rules include trigger conditions and execution actions. Among them, the trigger condition is that the carbon monoxide concentration is detected to exceed the threshold. The execution action is to set the traffic light to all red and turn on the lighting device. The trigger condition corresponds to the first function, that is, the carbon monoxide detection function. The execution action corresponds to the second function, that is, the traffic light control function and the second function, that is, the lighting function. The Internet of Things device 102 is a carbon monoxide concentration detector 102, the Internet of Things device 103 is a traffic light 103, and the Internet of Things device 104 is a lighting device 104. The first data identifier of the carbon monoxide concentration detector 102 is CO.concentrationValue (carbon monoxide.concentration value). CO.concentrationValue indicates that the carbon monoxide concentration detector 102 has a carbon monoxide detection function, that is, the first function. The second data identifier of the traffic light 103 is trafficlight.runStatus (traffic light.running status). Trafficlight.runStatus indicates that the traffic light 103 has a traffic light control function, that is, the second function. The second data identifier of the lighting device 104 is light.switch. Light.switch indicates that the lighting device 104 has a lighting function, that is, the second function.
[0055] The control device 101 receives the first data identifier CO.concentrationValue sent by the carbon monoxide concentration detector 102, and the first detection data corresponding to the first data identifier, that is, the carbon monoxide concentration detection data. When it is detected that the carbon monoxide concentration exceeds the threshold, the control device 101 determines the trigger condition that satisfies the target object model rule. The control device 101 sends a control instruction for controlling the traffic light to display red to the traffic light 103 with the traffic light control function, and sends a control instruction for controlling the lighting device to turn on to the lighting device 104 with the lighting function. In this way, when carbon monoxide is detected, the traffic light can be controlled to display red and the lighting device can be turned on. In this way, the matching of Internet of Things devices with the first carbon oxide concentration detection function, the traffic light control function and the lighting function can be achieved, thereby improving the scalability of the Internet of Things.
[0056] The above three scenarios are only examples. The control method of the Internet of Things device provided in the embodiments of the present application can be used in the control scenarios of other Internet of Things devices.
[0057] Next, various non-limiting specific implementation methods of the control method of the Internet of Things device provided in the embodiments of the present application are described in detail.
[0058] See also Figure 2 As shown, this figure is a flow chart of a control method for an Internet of Things device provided in an embodiment of the present application. The control method for an Internet of Things device can be applied to a control device in the Internet of Things. The control device is connected to the Internet of Things device to realize control of the Internet of Things device. The method includes the following steps:
[0059] S201: Receive a first data identifier sent by a first Internet of Things device, and first detection data corresponding to the first data identifier, wherein the first data identifier is used to indicate that the first Internet of Things device supports a first function. The first Internet of Things device is an Internet of Things device that has a first function and sends a first data identifier and first detection data to a control device. The first function is a function possessed by the first Internet of Things device, and corresponds to a trigger condition of a target object model rule. As an example, the first function is an attribute of the first Internet of Things device, or, for example, an event that can be processed by the first Internet of Things device, or, for example, a method that can be provided by the first Internet of Things device. Among them, attributes can also be called functional points. Events can also be called alarms. Methods can also be called services, commands, or interfaces.
[0060] It should be noted that the number of the first IoT devices can be one or more. As an example, the number of the first IoT devices is multiple, as described above. Figure 1 Taking the application scenario of smart life shown in the figure as an example, the light intensity detector 102 and the motion sensor 103 are both first IoT devices. As another example, the number of first IoT devices is one. Figure 1 Taking the application scenario of the smart tunnel shown in the figure as an example, the carbon monoxide concentration detector is the first IoT device. The carbon monoxide concentration detection function of the carbon monoxide concentration detector is the first function.
[0061] In addition, the first functions of different first IoT devices may be the same or different, and the same first IoT device may have one or more first functions.
[0062] For example, as an example, the trigger condition of the target model rule is that the environmental data is lower than the threshold, and the execution action is to turn on the environmental purification device. The first IoT device can be an environmental detection device. The environmental detection device has an environmental detection function, which is the first function. Multiple environmental detection devices are set within a certain range, and the environmental data detected based on the environmental detection function are sent to the control device for processing. As another example, Figure 1Taking the application scenario of smart life shown in the figure as an example, the light intensity detection function of the light intensity detector 102 and the motion detection function of the motion sensor 103 are different first functions. The above two examples are examples of a first IoT device having a first function. As another example, the trigger condition of the target model rule is that the light intensity is less than 5 lux and the movement of an object is detected. The execution action of the target model rule is to control the light to turn on. The first IoT device is a multifunctional sensor including a light intensity detection function and a motion detection function. The multifunctional sensor supports two first functions, namely, the light intensity detection function and the motion detection function.
[0063] The embodiment of the present application does not limit the manner of receiving the first data identifier and the first detection data sent by the first Internet of Things device. In one possible implementation, the first Internet of Things device sends the first data identifier and the first detection data respectively. The control device receives the first data identifier and the first detection data sent by the first Internet of Things device respectively. In another possible implementation, the first Internet of Things device sends the first data identifier and the first detection data at the same time. As an example, the first Internet of Things device sends operation information to the control device. The operation information includes the first data identifier of the first Internet of Things device and the first detection data corresponding to the first data identifier. The control device obtains the first data identifier and the first detection data from the acquired operation information. Among them, the first data identifier is used to indicate that the first Internet of Things device supports the first function. The first detection data is collected by the first Internet of Things device based on the first function. The embodiment of the present application does not limit the specific type of the first data identifier.
[0064] In a possible implementation, the first data identifier is a first device identifier of a first Internet of Things device. The first device identifier of the first Internet of Things device is used to identify the first Internet of Things device. The first device identifier of the first Internet of Things device can reflect that the first Internet of Things device supports the first function. For example, the first device identifier can be a device code of the first Internet of Things device, or a product code of the first Internet of Things device. The device code or product code of the first Internet of Things device can reflect the functions supported by the first Internet of Things device.
[0065] The first device identifier needs to establish a corresponding relationship with the first function supported by the first IoT device in advance. In this way, the first device identifier can indicate that the first IoT device supports the first function. In one possible implementation, after the first IoT device establishes a connection with the control device, the first IoT device sends the first device identifier and the first function identifier to the control device. The control device obtains the first device identifier and the first function identifier of the first IoT device. The first function identifier is used to identify the first function. As an example, the first function identifier is the function name of the first function. The control device establishes a corresponding relationship between the first device identifier and the first function. In this way, after the subsequent control device receives the first device identifier, that is, the first data identifier, it can match the target object model rule based on the first function corresponding to the first device identifier, or determine whether the first detection data meets the triggering condition of the target object model rule.
[0066] In another possible implementation, the first data identifier is a function name of the first function. The function name of the first function can directly indicate that the first IoT device supports the first function. As an example, the function name of the first function can be the field name corresponding to the first detection data. In this way, the first detection data transmitted by the first IoT device can be processed quickly and effectively without the need to configure the first IoT device in advance, thereby achieving plug-and-play of the first IoT device and improving the use speed of the first IoT device.
[0067] The first detection data is data obtained by the first IoT device based on the first function. The embodiment of the present application does not limit the specific type of the first detection data, and the specific type of the first detection data is determined based on the first function. The first detection data can be a specific value, or a state value obtained by detection.
[0068] S202: In response to determining that the first detection data meets the triggering condition of the target object model rule, sending a control instruction to the second Internet of Things device.
[0069] The control device can determine whether the first detection data meets the triggering condition of the target object model rule. The target object model rule is a model rule corresponding to a predetermined triggering condition and a first function. The embodiment of the present application does not limit the implementation method of determining the target object model rule. In one possible implementation method, each time the control device obtains the first data identifier, it queries the target object model rule corresponding to the triggering condition and the first function based on the first function indicated by the first data identifier. In another possible implementation method, the control device determines the target object model rule to be used based on the first data identifier transmitted for the first time by the first Internet of Things device. And after subsequently receiving the first detection data corresponding to the first data identifier transmitted by the first Internet of Things device, the control device directly determines whether the first detection data meets the triggering condition of the target object model rule.
[0070] The embodiment of the present application does not limit the source of the target object model rule. In one possible implementation, the control device queries the locally stored object model rules for the target object model rule whose trigger condition corresponds to the first function. In another possible implementation, the control device can send a query request to the device storing the object model rule. The device storing the object model rule is, for example, a server connected to the control device. The query request includes functional information of the first function. The functional information of the first function is, for example, the functional name of the first function, or the functional identifier of the first function. The device storing the object model rule queries the target object model rule corresponding to the first function based on the query request including the functional information of the first function. The device storing the object model rule feeds back the target object model rule to the control device. The control device can store the target object model rule received from the device storing the object model rule locally.
[0071] In a possible implementation, the target object model rule has an adjustable activation state. When the user needs to apply the target object model rule, the user adjusts the target object model rule to an activated state. When the user does not need to apply the target object model rule, the user can adjust the target object model rule to an inactivated state. In this way, flexible control of the application of the object model rule is achieved.
[0072] The control device determines whether the first detection data satisfies the triggering condition of the target object model rule. It should be noted that in some possible implementations, the control device can obtain the first detection data corresponding to different first functions. Correspondingly, the triggering condition of the target object model rule includes sub-conditions corresponding to different first functions. When the first detection data satisfies the sub-conditions corresponding to the corresponding first function, and the sub-conditions of different first functions are all satisfied, it is determined that the first detection data satisfies the triggering condition of the target object model rule. As an example, Figure 1 Taking the application scenario of smart life shown as an example, the control device obtains the light intensity detection data corresponding to sun.brightness sent by the light intensity detector 102. The control device obtains the motion detection data corresponding to motion.detection sent by the motion sensor 103. The triggering condition of the target object model rule is that the light intensity is less than 5 lux and the movement of an object is detected. Among them, the light intensity less than 5 lux is a sub-condition corresponding to the light intensity detection function. The movement of an object is detected as a sub-condition corresponding to the motion detection function. When the control device determines that the light intensity detection data collected using the light intensity detection function meets the sub-condition that the light intensity is less than 5 lux, and the motion detection data collected using the motion detection function meets the sub-condition that the movement of an object is detected, it is determined that the first detection data obtained meets the triggering condition of the target object model rule.
[0073] If the control device determines that the first detection data meets the triggering condition of the target object model rule, it controls the second Internet of Things device to execute the execution action of the target object model rule. The second Internet of Things device is an Internet of Things device that supports the second function. The execution action of the target object model rule corresponds to the second function. The execution action of the target object model rule can be executed by the Internet of Things device with the second function. It should be noted that the second Internet of Things device can be the same Internet of Things device as the first Internet of Things device, or a different Internet of Things device from the first Internet of Things device. And the number of second Internet of Things devices can be one or more. As an example, Figure 1 Taking the smart park application scenario shown as an example, the second IoT devices are elevators 103 and fire doors 104. The second functions of different second IoT devices can be the same or different. In addition, the same second IoT device can have one or more second functions.
[0074] In addition, the embodiments of the present application do not limit the specific implementation method of determining the IoT device that supports the second function, that is, the second IoT device. As an example, the control device determines that the second IoT device supports the second function based on the second data identifier sent by the second IoT device. The second data identifier is used to indicate that the second IoT device supports the second function.
[0075] The embodiment of the present application does not limit the specific type of the second data identifier.
[0076] In one possible implementation, the second data identifier is a second device identifier of the second Internet of Things device. The second device identifier is used to identify the second Internet of Things device. The second device identifier can be an identifier reflecting the second function supported by the second Internet of Things device. For example, the device identifier of the second Internet of Things device can be a device code of the second Internet of Things device, or a product code of the second Internet of Things device. The device code or product code of the second Internet of Things device can reflect the functions supported by the second Internet of Things device.
[0077] The second device identifier of the second IoT device needs to establish a correspondence with the second function supported by the second IoT device in advance. In one possible implementation, after the second IoT device establishes a connection with the control device, the second IoT device sends the second device identifier and the second function identifier to the control device. The second function identifier is used to identify the second function. As an example, the second function identifier is the function name of the second function. The control device establishes a correspondence between the second device identifier and the second function. In this way, when the subsequent control device needs to control the IoT device with the second function based on the target object model rule, it can determine that the second IoT device has the second function based on the correspondence between the second device identifier and the second function, and then control the second IoT device.
[0078] In another possible implementation, the second data identifier is a function name of the second function. The function name of the second function can directly indicate the second function supported by the second IoT device. As an example, the function name of the second function can be the field name corresponding to the second detection data sent by the second IoT device to the control device. After receiving the second detection data sent by the second IoT device, the control device controls the second IoT device based on the function name of the second function, thereby realizing plug-and-play of the second IoT device and improving the use speed of the IoT device.
[0079] The embodiments of the present application do not limit the method of determining the second IoT device to which the control instruction is to be sent. In one possible implementation, if it is determined that the trigger condition of the target object model rule is met, the control device queries the connected IoT device for an IoT device that supports the second function, that is, the second IoT device. In another possible implementation, if it is determined that the trigger condition of the target object model rule is met, the control device determines the second IoT device to which the control instruction is to be sent based on the historical data of controlling the IoT device using the target object model rule.
[0080] The control device generates a control instruction according to the execution action of the target object model rule, and sends the control instruction to the second Internet of Things device. The second Internet of Things device can execute the execution action of the target object model rule based on the acquired control instruction.
[0081] Based on the above S201-S202, it can be known that the target object model rules corresponding to the first function and the second function can be used to control the IoT devices from the functional dimension. The target object model rules are not targeted at specific devices or product types, and can be applied to a wider range of devices or products, thereby improving the scalability of the IoT. Moreover, in the scenario of a large number of IoT devices, the use of object model rules to achieve automatic control of IoT devices can improve operational efficiency, reduce manual operations for configuring rules for each IoT device, and reduce the probability of problems.
[0082] In a possible implementation, when using the target model rule to control the IoT device, the scope of the IoT device also needs to be considered. Among them, the scope can be a location, or an organization to which the IoT device belongs, and this application does not limit this. For example, in the application scenario of a smart home, it is necessary to control the IoT devices belonging to a family. For another example, in the application scenario of a smart park, it is necessary to control the IoT devices belonging to the same park, or to control the IoT devices in a building in the park. The embodiment of the present application also provides a control method for an IoT device. The target model rule also includes a scope condition. The scope condition is used to determine the scope conditions that the first IoT device and the second IoT device need to meet. The scope condition can reflect the scope of application of the target model rule. The embodiment of the present application does not limit the type of scope condition. For example, the scope condition is a label. For another example, the scope condition is a range parameter.
[0083] In response to determining that the first detection data meets the triggering condition of the target object model rule in the above S202, before sending the control instruction to the second IoT device, the method further includes the following steps:
[0084] A1: Obtain range information of the first IoT device.
[0085] The range information of the first Internet of Things device is used to indicate the range to which the first Internet of Things device belongs. As an example, the range condition is specifically a location condition. The range of the first Internet of Things device can be the geographical location of the entity of the first Internet of Things device. For example, the range information is a location tag. The location tag can be set in advance according to the geographical location of the first Internet of Things device. For example, the same location tag is set for Internet of Things devices belonging to the same building. For another example, the range information is the positioning data of the geographical location of the first Internet of Things device. The range information can be generated by the positioning function possessed by the first Internet of Things device. As another example, the location of the first Internet of Things device can be the network location of the first Internet of Things device. The range information can be the network address of the first Internet of Things device.
[0086] The embodiments of the present application do not limit the manner in which the control device obtains the range information of the first Internet of Things device. In one possible implementation, after the first Internet of Things device establishes a connection with the control device, the first Internet of Things device sends the range information of the first Internet of Things device to the control device. In another possible implementation, the first Internet of Things device simultaneously sends one or more of the first data identifier and the first detection data, as well as the range information to the control device. Based on the range information of the first Internet of Things device, the control device determines whether the position of the first Internet of Things device meets the range condition of the target object model rule.
[0087] A2: Confirm that the range information of the first IoT device meets the range condition.
[0088] The control device determines whether the range information of the first Internet of Things device meets the range condition. After confirming that the range information of the first Internet of Things device meets the range condition, a control instruction is sent to the second Internet of Things device. The embodiment of the present application does not limit the specific implementation method of the control device to determine whether the range information of the first Internet of Things device meets the range condition. The determination of whether the range information meets the range condition can be determined based on the specific type of the range information. As an example, both the range information and the range condition are represented by tags. The control device determines whether the range information is the same as the range condition. If the range information is the same as the range condition, it means that the range information meets the range condition. As another example, the range information is the network address of the first Internet of Things device. The range condition is the network number of the network. The control device determines whether the range information belongs to the range condition. If the range information belongs to the range condition, it means that the range information meets the range condition.
[0089] In such a case, the execution action of the target object model rule needs to be executed by the second IoT device that meets the scope condition. The embodiment of the present application provides a specific implementation method of sending a control instruction to the second IoT device, including:
[0090] Send a control instruction to a second Internet of Things device whose range information satisfies the range condition.
[0091] The range information of the second IoT device is used to indicate the range of the second IoT device. The range of the second IoT device is represented in the same manner as the range of the first IoT device.
[0092] The embodiments of the present application do not limit the manner in which the control device obtains the range information of the second IoT device. In one possible implementation, the second IoT device sends the range information to the control device after establishing a connection with the control device. In another possible implementation, the second IoT device sends other data to the control device, for example, when the second data is identified, the range information of the second IoT device is sent at the same time. The control device can determine whether the range of the second IoT device meets the range condition of the target object model rule based on the range information of the second IoT device obtained.
[0093] The control device sends a control instruction to the second Internet of Things device whose range information meets the range condition, thereby controlling the second Internet of Things device that meets the range condition.
[0094] In this way, based on the scope conditions included in the target object model rules, the IoT devices that meet the scope conditions can be controlled to achieve more accurate control of the IoT devices. In addition, by adjusting the scope conditions, the object model rules can be quickly promoted in different scenarios.
[0095] Based on the control method of the Internet of Things device provided in the embodiment of the present application, see Figure 3 As shown, the present application embodiment also provides a schematic diagram of the structure of a control device 300 of an Internet of Things device. The control device 300 of the Internet of Things device can achieve Figure 2 The control method of the Internet of Things device shown in the figure is a structural schematic diagram of a control device of an Internet of Things device provided in an embodiment of the present application. The control device 300 of the Internet of Things device includes a receiving unit 301 and a sending unit 302. The functions of each module in the control device 300 of the Internet of Things device can be specifically referred to Figure 2 The receiving unit 301 is used to implement Figure 2 S201 of the embodiment shown; sending unit 302, used to implement Figure 2 S202 of the illustrated embodiment.
[0096] Specifically, the receiving unit 301 is used to receive operation information sent by a first Internet of Things device, where the operation information includes a first data identifier and first detection data corresponding to the first data identifier, where the first data identifier is used to indicate that the first Internet of Things device supports a first function;
[0097] The sending unit 302 is used to send a control instruction to a second Internet of Things device in response to determining that the first detection data meets the triggering condition of the target object model rule, the second Internet of Things device supports a second function, and the control instruction is used to instruct the second Internet of Things device to execute the execution action of the target object model rule, the triggering condition of the target object model rule corresponds to the first function, and the execution action corresponds to the second function.
[0098] In a possible implementation, the first data identifier is a first device identifier of the first IoT device, and the receiving unit 301 is further configured to receive the first device identifier and a first function identifier sent by the first IoT device, where the first function identifier is used to identify a first function;
[0099] The device also includes:
[0100] An establishing unit is used to establish a corresponding relationship between the first device identifier and the first function.
[0101] In a possible implementation manner, the first data identifier is a function name of the first function.
[0102] In a possible implementation, the receiving unit 301 is further configured to obtain a second data identifier sent by the second Internet of Things device, where the second data identifier is used to indicate that the second Internet of Things device supports the second function;
[0103] The device also includes:
[0104] A determining unit is used to determine, based on the second data identifier, whether the second Internet of Things device supports the second function.
[0105] In a possible implementation, the second data identifier is a second device identifier of the second Internet of Things device, and the receiving unit 301 is further used to receive a second function identifier sent by the second Internet of Things device, where the second function identifier is used to identify a second function;
[0106] The establishing unit is further used to establish a corresponding relationship between the second device identifier and the second function.
[0107] In a possible implementation manner, the second data identifier is a function name of the second function.
[0108] In a possible implementation, the target object model rule further includes a location condition, and the receiving unit 301 is further configured to obtain the location information of the first Internet of Things device before sending the control instruction to the second Internet of Things device corresponding to the second data identifier;
[0109] The device also includes:
[0110] A confirmation unit, configured to confirm that the location information of the first IoT device satisfies the location condition;
[0111] The sending unit 302 is used to send a control instruction to the second IoT device, including:
[0112] The sending unit 302 is used to send a control instruction to a second IoT device whose location information meets the location condition.
[0113] Figure 4 The schematic diagram of the structure of a computing device is shown. The control device 300 of the IoT device can be deployed on the computing device. The computing device can be a computing device in a cloud environment (such as a server), or a computing device in an edge environment, or a terminal device, etc., which can be used to implement the above Figure 3 The device of the embodiment shown has the functions of a receiving module 301 and a sending module 302 .
[0114] like Figure 4As shown, computing device 400 includes processor 410, memory 420, communication interface 430 and bus 440. Processor 410, memory 420 and communication interface 430 communicate through bus 440. Bus 440 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 The communication interface 430 is used to communicate with the outside, for example, to receive the operation information sent by the first IoT device.
[0115] Among them, the processor 410 can be a central processing unit (CPU), an application specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits. The processor 410 can also be an integrated circuit chip with signal processing capabilities. In the implementation process, the functions of each module in the control device of the Internet of Things device can be completed by the hardware integrated logic circuit or software instructions in the processor 410. The processor 410 can also be a general processor, a digital signal process (DSP), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. Among them, the general processor can be a microprocessor or the processor can also be any conventional processor, etc., and the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 420, and the processor 410 reads the information in the memory 420 and completes part or all of the functions in the control device of the Internet of Things device in combination with its hardware.
[0116] The memory 420 may include a volatile memory, such as a random access memory (RAM), or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a HDD, or a SSD.
[0117] The memory 420 stores executable codes, and the processor 410 executes the executable codes to execute the method executed by the control device of the aforementioned Internet of Things device.
[0118] Specifically, in implementing Figure 3 In the case of the embodiment shown, and Figure 3 In the case where the receiving module 301 and the sending module 302 described in the embodiment are implemented by software, the execution Figure 3 The software or program code required for the functions of the receiving module 301 and the sending module 302 is stored in the memory 420. The interaction between the receiving module 301 and other devices is realized through the communication interface 430. The processor is used to execute the instructions in the memory 420 to implement the method executed by the control device of the Internet of Things device.
[0119] Figure 5 A schematic diagram of the structure of a computing device cluster is shown. Figure 5 The computing device cluster 50 shown includes multiple computing devices, and the control device applied to the Internet of Things device can be distributedly deployed on multiple computing devices in the computing device cluster 50. Figure 5 As shown, the computing device cluster 50 includes multiple computing devices 500 , each computing device 500 includes a memory 520 , a processor 510 , a communication interface 530 and a bus 540 , wherein the memory 520 , the processor 510 , and the communication interface 530 are communicatively connected to each other via the bus 540 .
[0120] The processor 510 may be a CPU, a GPU, an ASIC, or one or more integrated circuits. The processor 510 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, some functions of the control device of the Internet of Things device may be completed by the hardware integrated logic circuit or software instructions in the processor 510. The processor 510 may also be a DSP, an FPGA, a general-purpose processor, other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and may implement or execute some methods, steps, and logic block diagrams disclosed in the embodiments of the present application. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc., and the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 520. In each computing device 500, the processor 510 reads the information in the memory 520, and in combination with its hardware, some functions of the control device of the Internet of Things device may be completed.
[0121] The memory 520 may include ROM, RAM, static storage device, dynamic storage device, hard disk (e.g., SSD, HDD), etc. The memory 520 may store program codes, for example, part or all of the program codes for implementing the receiving module 301, part or all of the program codes for implementing the sending module 302, etc. For each computing device 500, when the program code stored in the memory 520 is executed by the processor 510, the processor 510 executes part of the method executed by the control device of the Internet of Things device based on the communication interface 530, such as one part of the computing device 500 may be used to execute the method executed by the above-mentioned receiving module 301, and another part of the computing device 500 is used to execute the method executed by the above-mentioned sending module 302. The memory 520 may also store data, for example: intermediate data or result data generated by the processor 510 during the execution process.
[0122] The communication interface 503 in each computing device 500 is used for external communication, such as interacting with other computing devices 500 .
[0123] The bus 540 may be a peripheral component interconnect standard bus or an extended industry standard architecture bus. For ease of representation, Figure 5 The bus 540 in each computing device 500 is represented by only one thick line, but this does not mean that there is only one bus or one type of bus.
[0124] The plurality of computing devices 500 establish communication paths through a communication network to implement the functions of the control device of the IoT device. Any computing device may be a computing device in a cloud environment (e.g., a server), or a computing device in an edge environment, or a terminal device.
[0125] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is executed on one or more computing devices, the one or more computing devices execute any of the control methods of the Internet of Things devices in the above-mentioned embodiments.
[0126] In addition, the embodiment of the present application further provides a computer program product, and when the computer program product is executed by one or more computing devices, the one or more computing devices execute any of the control methods of the aforementioned Internet of Things devices. The computer program product can be a software installation package, and when any of the control methods of the aforementioned Internet of Things devices needs to be used, the computer program product can be downloaded and executed on a computer.
[0127] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the units indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0128] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0129] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0130] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
[0131] Those skilled in the art should be aware that in one or more of the above examples, the functions described in this application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0132] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific implementation method of the present application.
[0133] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A control method for an Internet of Things device, characterized in that: The method is applied to a control device, and the method comprises: Receive a first data identifier sent by a first Internet of Things device and first detection data corresponding to the first data identifier, where the first data identifier is used to indicate that the first Internet of Things device supports a first function; In response to determining that the first detection data meets the triggering condition of the target object model rule, a control instruction is sent to a second Internet of Things device, the second Internet of Things device supports a second function, and the control instruction is used to instruct the second Internet of Things device to execute the execution action of the target object model rule, the triggering condition of the target object model rule corresponds to the first function, and the execution action corresponds to the second function.
2. The method according to claim 1, characterized in that The first data identifier is a first device identifier of the first Internet of Things device, and the method further includes: Receive a first device identifier and a first function identifier sent by the first Internet of Things device, where the first function identifier is used to identify a first function; A correspondence between the first device identifier and the first function is established.
3. The method according to claim 1, characterized in that The first data identifier is a function name of a first function.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Acquire a second data identifier sent by the second Internet of Things device, where the second data identifier is used to indicate that the second Internet of Things device supports the second function; Determine, based on the second data identifier, that the second Internet of Things device supports the second function.
5. The method according to claim 4, characterized in that The second data identifier is a second device identifier of the second Internet of Things device, and the method further includes: receiving a second function identifier sent by the second Internet of Things device, where the second function identifier is used to identify a second function; A correspondence between the second device identifier and the second function is established.
6. The method according to claim 4, characterized in that The second data identifier is a function name of a second function.
7. The method according to any one of claims 1 to 6, characterized in that: The target object model rule further includes a range condition. Before sending the control instruction to the second Internet of Things device corresponding to the second data identifier, the method further includes: Obtaining range information of the first IoT device; Confirming that the range information of the first IoT device satisfies the range condition; The sending of the control instruction to the second IoT device includes: Send a control instruction to a second Internet of Things device whose range information satisfies the range condition.
8. A control device for an Internet of Things device, characterized in that: The device comprises: A receiving unit, configured to receive operation information sent by a first Internet of Things device, wherein the operation information includes a first data identifier and first detection data corresponding to the first data identifier, wherein the first data identifier is used to indicate that the first Internet of Things device supports a first function; A sending unit is used to send a control instruction to a second Internet of Things device in response to determining that the first detection data meets the triggering condition of the target object model rule, the second Internet of Things device supports a second function, the control instruction is used to instruct the second Internet of Things device to execute an execution action of the target object model rule, the triggering condition of the target object model rule corresponds to the first function, and the execution action corresponds to the second function.
9. The device according to claim 8, characterized in that The first data identifier is a first device identifier of the first Internet of Things device, and the receiving unit is further used to receive the first device identifier and a first function identifier sent by the first Internet of Things device, where the first function identifier is used to identify a first function; The device also includes: An establishing unit is used to establish a corresponding relationship between the first device identifier and the first function.
10. The device according to claim 8, characterized in that The first data identifier is a function name of a first function.
11. The device according to any one of claims 8 to 10, characterized in that: The receiving unit is further used to obtain a second data identifier sent by the second Internet of Things device, where the second data identifier is used to indicate that the second Internet of Things device supports the second function; The device also includes: A determining unit is used to determine, based on the second data identifier, whether the second Internet of Things device supports the second function.
12. The device according to claim 11, characterized in that The second data identifier is a second device identifier of the second Internet of Things device, and the receiving unit is further used to receive a second function identifier sent by the second Internet of Things device, where the second function identifier is used to identify a second function; The establishing unit is further used to establish a corresponding relationship between the second device identifier and the second function.
13. The device according to claim 11, characterized in that The second data identifier is a function name of a second function.
14. The device according to any one of claims 8 to 13, characterized in that: The target object model rule also includes a location condition, and the receiving unit is further used to obtain the location information of the first Internet of Things device before sending the control instruction to the second Internet of Things device corresponding to the second data identifier; The device also includes: A confirmation unit, configured to confirm that the location information of the first IoT device satisfies the location condition; The sending unit is used to send a control instruction to the second IoT device, including: The sending unit is used to send a control instruction to a second Internet of Things device whose location information meets the location condition.
15. A device, characterized in that The device comprises a processor and a memory; The processor is configured to execute instructions stored in the memory, so that the device performs the method according to any one of claims 1 to 7.
16. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor is configured to execute instructions stored in the memory, so that 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 computer-readable storage medium stores instructions, which, when executed on at least one computing device, enable the at least one computing device to perform the method according to any one of claims 1 to 7.
Citation Information
Cited By
Method and apparatus for controlling internet-of-things device, and related device
EP4683304A1
Method and apparatus for controlling internet-of-things device, and related device
WO2024199508A1
