Gateway equipment, Internet of Things system and communication control method thereof
By configuring different reporting methods for different types of status information in the Internet of Things system, the problem of status reporting delay and packet loss caused by network congestion is solved, and the reliability of linkage between functional devices is improved.
Patent Information
- Application Number
- CN202510290467.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-11
- Publication Date
- 2025-07-01
AI Technical Summary
In the Internet of Things system, as the number of devices and states increases, the amount of data to be transmitted in the network increases significantly, resulting in network congestion, and then there are delays in status reporting or data packet loss problems, affecting the reliability of linkage between devices.
By configuring different reporting methods for different types of status information, we ensure the reporting success rate of status information that affects the linkage of functional devices. The specific methods include using feedback or no feedback based on the role of status information in the linkage control logic and the urgency of information, and determining the corresponding reporting priority.
It improves the reliability of linkage between functional devices, ensures the success rate of reporting status information, reduces network traffic, avoids delay and packet loss problems, and improves user experience.
Smart Images

Figure CN120238462A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of the Internet of Things, and more particularly, to a gateway device, an Internet of Things system, and a communication control method thereof. Background Art
[0002] In the Internet of Things system, in order to achieve the user's automated control experience, the linkage between functional devices is usually realized through a gateway device, that is, through pre-configured linkage control logic. When the gateway device receives the status change or event trigger information of any one of the functional devices, the gateway device will control other related functional devices according to the corresponding linkage control logic, so as to achieve the linkage effect. The reliability of the functional device linkage depends to a large extent on the success rate of the status reporting of the functional devices. As the number of devices and the number of device statuses increase, the amount of data to be transmitted in the network will increase significantly, resulting in network congestion, and then problems such as status reporting delay or data packet loss, affecting the reliability of the device linkage. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a gateway device, an Internet of Things system, and a communication control method thereof, so as to ensure the success rate of reporting status information that affects the linkage of functional devices by configuring different reporting methods for different types of status information, and improve the reliability of the linkage between functional devices.
[0004] In a first aspect, an embodiment of the present invention provides a communication control method for a gateway device, the method comprising:
[0005] Receiving different types of status information reported by a functional device, and different types of status information of the functional device adopt corresponding reporting methods;
[0006] Based on the received status information of the functional devices having a linkage relationship, executing corresponding linkage control logic to control a target device to perform a corresponding target operation. In the linkage relationship, the execution operation corresponding to the subsequent functional device is affected by the previous functional device;
[0007] Wherein, the reporting methods of different types of status information of the functional device are determined according to the role of the status information in the linkage control logic and / or the information urgency.
[0008] In a second aspect, an embodiment of the present invention provides a communication control method for an Internet of Things system, the Internet of Things system comprising a plurality of functional devices and at least one gateway device, the method comprising:
[0009] The functional device reports different types of status information to the corresponding gateway device by adopting corresponding reporting methods;
[0010] The gateway device executes corresponding linkage control logic based on the status information of function devices with a linkage relationship received, to control a target device to perform a corresponding target operation. In the linkage relationship, the execution operation corresponding to a subsequent function device is affected by a previous function device;
[0011] Wherein, the reporting manner of different types of status information of the function devices is determined according to the role of the status information in the linkage control logic and / or the information urgency.
[0012] In a third aspect, an embodiment of the present invention provides an Internet of Things system, which includes:
[0013] A plurality of function devices, configured to report different types of status information to the corresponding gateway device in a corresponding reporting manner;
[0014] At least one gateway device, configured to execute corresponding linkage control logic based on the status information of function devices with a linkage relationship received, to control a target device to perform a corresponding target operation. In the linkage relationship, the execution operation corresponding to a subsequent function device is affected by a previous function device;
[0015] Wherein, the reporting manner of different types of status information of the function devices is determined according to the role of the status information in the linkage control logic and / or the information urgency.
[0016] In a fourth aspect, an embodiment of the present invention provides a gateway device, including a memory, a processor, and a network interface. The memory is used to store one or more computer program instructions. Among them, the one or more computer program instructions are executed by the processor to implement the method as described in the first aspect of the embodiment of the present invention.
[0017] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it implements the method as described in the first aspect and / or the second aspect of the embodiment of the present invention.
[0018] In a sixth aspect, an embodiment of the present invention provides a computer program product. When the computer program product runs on at least one computer, it causes the at least one computer to execute the method as described in the first aspect and / or the second aspect of the embodiment of the present invention.
[0019] In an embodiment of the present invention, the Internet of Things system includes multiple functional devices and at least one gateway device. The gateway device receives different types of status information reported by the functional devices and executes corresponding linkage control logic based on the received status information of the functional devices having a linkage relationship to control a target device to perform a corresponding target operation. In the linkage relationship, the execution operation corresponding to the subsequent functional device is affected by the previous functional device. Among them, different types of status information of the functional devices adopt corresponding reporting methods. Thus, the embodiment of the present invention can configure different reporting methods for different types of status information to ensure the reporting success rate of the status information affecting the linkage of the functional devices and improve the reliability of the linkage between the functional devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Through the following description of the embodiments of the present invention with reference to the drawings, the above and other objects, features, and advantages of the present invention will become clearer. In the drawings:
[0021] Figure 1 is a schematic diagram of the Internet of Things system according to an embodiment of the present invention;
[0022] Figure 2 is a flowchart of a communication control method for the Internet of Things system according to an embodiment of the present invention;
[0023] Figure 3 is a schematic diagram of the control process of the Internet of Things system according to an embodiment of the present invention;
[0024] Figure 4 is a flowchart of a method for updating reporting configuration information according to an embodiment of the present invention;
[0025] Figure 5 is a flowchart of another method for updating reporting configuration information according to an embodiment of the present invention;
[0026] Figure 6 is a flowchart of yet another method for updating reporting configuration information according to an embodiment of the present invention;
[0027] Figure 7 is a flowchart of a communication control method for the gateway device according to an embodiment of the present invention;
[0028] Figure 8 is a schematic diagram of a communication control device for the gateway device according to an embodiment of the present invention;
[0029] Figure 9 is a schematic diagram of the gateway device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0030] The present application will be described based on embodiments, but the present application is not limited to these embodiments. In the following detailed description of the present application, some specific details are described in detail. Those skilled in the art can fully understand the present application without the description of these details. In order to avoid obscuring the essence of the present application, well-known methods, processes, procedures, components, and circuits are not described in detail.
[0031] In addition, those of ordinary skill in the art should understand that the accompanying drawings provided herein are for illustrative purposes only, and the drawings are not necessarily drawn to scale.
[0032] Unless the context clearly requires otherwise, the words "including", "comprising", and the like throughout the application shall be construed in an inclusive sense rather than an exclusive or exhaustive sense; that is, the meaning of "including but not limited to".
[0033] In the description of the present application, it should be understood that the terms "first", "second", etc. are used only for descriptive purposes and cannot be construed as indicating or implying relative importance. In addition, in the description of the present application, unless otherwise specified, the meaning of "a plurality" is two or more.
[0034] For the solutions described in this specification and the embodiments, if they involve personal information processing, they will be processed on the premise of having a legal basis (such as obtaining the consent of the personal information subject, or being necessary for performing a contract, etc.), and will only be processed within the specified or agreed scope. If the user refuses to process personal information other than the necessary information required for the basic functions, it will not affect the user's use of the basic functions.
[0035] When communicating between devices, usually two status reporting methods are provided: 1. The method that requires feedback (such as the status reporting method with ACK, etc.), 2. The method without feedback (such as the status reporting without ACK, etc.). Among them, when the device uses the reporting method with ACK, it will wait for the gateway device to reply with ACK. When the device does not receive the ACK sent by the gateway, it will try to report again until it receives the confirmation information with ACK from the gateway device. Although this method can ensure the reliability of reporting, it increases the network communication volume and will cause a delay in status reporting. When the device uses the reporting method without ACK, it cannot guarantee the success rate of status reporting, and the gateway device may have problems that the inter-device linkage control logic cannot be executed due to the inability to receive the device status normally, which will further lead to the inability to implement the corresponding automated control scenario and a poor user experience. Therefore, the embodiments of the present invention provide a gateway device, an Internet of Things system, and a communication control method thereof, so as to ensure the reporting success rate of the status information affecting the linkage of functional devices by configuring different reporting methods for different types of status information, and improve the reliability of the linkage between functional devices.
[0036] Figure 1 is a schematic diagram of the Internet of Things system according to an embodiment of the present invention. As Figure 1 shown, the Internet of Things system according to an embodiment of the present invention includes at least one gateway device 10 and a plurality of functional devices. In this embodiment, taking the plurality of functional devices including functional device A, functional device B, and functional device C in a linkage control logic as an example. Among them, the status information of a certain attribute category of functional device A is used to start the automation control scenario corresponding to the linkage control logic, and the status information of a certain attribute type in functional device B is used as a judgment condition to judge whether functional device C is controlled to execute the corresponding target action. Functional device C is controlled to execute the corresponding target action when the status information of the corresponding attribute category of functional device A indicates that the automation control scenario is started and the status information of the corresponding attribute type of functional device B meets the corresponding conditions. It can be seen that if some of the corresponding status information affecting the execution of the linkage control logic in functional device A and functional device B is lost or inconsistent, it may lead to problems that the corresponding linkage control logic does not execute or executes incorrectly, greatly affecting the reliability of the execution of the linkage control logic. Therefore, in this embodiment, corresponding reporting methods are configured for different status information of the functional devices to ensure the reporting reliability of the status information affecting the execution of the linkage control logic, and further ensure the reliability of the execution of the linkage control logic.
[0037] Further, in this embodiment, the gateway device can parse the linkage control logic, determine the status information and other types of status information of each functional device that affect the execution of the linkage control logic, and configure corresponding reporting methods for various types of status information, and then send the reporting methods of various types of status information to the corresponding functional devices, so that the functional devices report various types of status information based on the corresponding reporting methods. In other alternative implementation manners, the corresponding linkage control logic can also be parsed in other devices, and the reporting methods corresponding to various types of status information of each functional device are determined, and the reporting methods of various types of status information of each functional device are respectively configured to the corresponding functional devices and gateway devices. It should be understood that this embodiment does not limit the configuration method of the reporting methods of various types of status information in each functional device and the gateway device.
[0038] In this embodiment, the reporting method for different types of status information of the functional device is determined based on the role of the status information in the corresponding linkage control logic. Further optionally, the reporting method includes a feedback-required method and a non-feedback method. Further, for the status information of the functional device that plays a role in the linkage control logic, the feedback-required method can be adopted to ensure the reporting success rate of this type of status information, and thus ensure the reliable execution of the corresponding linkage control logic. For the status information of the functional device that does not affect the execution of the linkage control logic, the non-feedback method can be adopted to reduce the communication data volume in the network, avoid network congestion, thereby reducing the information reporting delay, and further ensuring the reliable execution of the corresponding linkage control logic.
[0039] Further, the reporting method for different types of status information of the functional device can also be affected by the urgency of the corresponding status information. Further optionally, the reporting method can also include the reporting frequency. This embodiment can also select the reporting method that requires feedback and the reporting frequency based on the urgency of information reporting to ensure the communication reliability of the system. It should be understood that the urgency of the status information can be set independently based on information such as different types of functional devices and corresponding automation control scenarios.
[0040] In an alternative implementation, different types of status information of the functional device have corresponding reporting priorities. Among them, the reporting priorities of different types of status information of the functional device are determined based on the role of the status information in the corresponding linkage control logic and / or the urgency of the information. Optionally, this embodiment does not limit the method of dividing the reporting priority levels. It can include two levels of high priority and low priority, or three levels of high priority, medium priority, and low priority, or can include more levels of division based on the actual situation, and no further examples are given here.
[0041] Further, in this embodiment, the status information that affects the execution of the corresponding linkage control logic and the status information with a higher urgency can be determined as high priority, and other types of status information can be determined as low priority. It should be understood that the reporting method adopted for the high-priority status information can be either the feedback-required method or the non-feedback method. This embodiment controls the system communication through the cooperation of two dimensions, namely the reporting method and the reporting priority, to ensure the execution reliability of the linkage control logic and the security and reliability of the system communication. This embodiment does not limit the specific cooperation method of the two dimensions of the reporting method and the reporting priority, and it can be configured based on the application situation of the actual system.
[0042] For Figure 1Taking the Internet of Things system as an example, among them, the status information of the A1 attribute class that the functional device A needs to report is the status information that affects whether the corresponding linkage control logic starts to execute. The status information of the A2 and other attribute classes that the functional device A needs to report is the status information that does not affect the corresponding linkage control logic and has a relatively low urgency level. Then, the reporting method of the A1 attribute class status can be configured as a feedback-required method, and the reporting priority is configured as a high priority. The reporting method of the A2 attribute class status can be configured as a non-feedback method, and the reporting priority is configured as a low priority. The status information of the B1 attribute class that the functional device B needs to report is the status information that affects the corresponding linkage control logic. B2 that the functional device B needs to report is the status information that does not affect the corresponding linkage control logic but has a relatively high urgency level. Then, the reporting method of the B1 attribute class status can be configured as a feedback-required method, and the reporting priority is configured as a high priority. The reporting method of the B2 attribute class status can be configured as a non-feedback method, and the reporting priority is configured as a high priority. The functional device C is the device that executes the final target operation under control. The reported status information does not affect the execution of the linkage control logic. Therefore, the reporting methods of the status information of all attributes of the functional device C can be configured as a feedback-required method, and the reporting priority is configured as a high priority. However, it should be understood that if the functional device B has status information that does not affect the execution of the linkage control logic and has a relatively low urgency level, it can configure a non-feedback reporting method and a low reporting priority. Similarly, if the functional device C has status information that does not affect the execution of the linkage control logic but has a relatively high urgency level, it can configure a non-feedback reporting method and a high reporting priority. The reporting methods and reporting priorities of various status information corresponding to the functional devices A-C in this embodiment are only exemplary. It should be understood that this embodiment is not limited thereto, and it can be configured based on the actual application situation.
[0043] Taking the air conditioner automation control scenario including functional devices such as door magnetic sensors, temperature sensors, and air conditioners as an example, assume that functional device A is a door magnetic sensor, functional device B is a temperature sensor, and functional device C is an air conditioner. The linkage control logic in this scenario is as follows: The door magnetic switch state reported by the door magnetic sensor indicates that the door is open. Query whether the temperature reported by the temperature sensor meets the air conditioner opening condition (for example, the temperature is greater than the first threshold or less than the second threshold), and then turn on the air conditioner. Based on this, in this embodiment, the reporting method of the door magnetic switch state that the door magnetic sensor needs to report can be configured as a feedback-required method, and the reporting priority can be configured as a high priority. The reporting methods of other states of the door magnetic sensor (such as battery level, etc.) can be configured as a non-feedback method, and the reporting priority can be configured as a low priority. The temperature information that the temperature sensor needs to report is configured as a feedback-required method, and the reporting priority is configured as a high priority. Further, the temperature sensor can also report temperature alarm information. For example, when the temperature sensor detects that the current temperature is too high and may cause danger, etc., it generates and reports temperature alarm information. Then, the reporting method of the temperature alarm information can be configured as a non-feedback method, and the reporting priority can be configured as a high priority. Further optionally, for alarm information with a relatively high level of urgency such as temperature alarm information, this embodiment can report this type of information periodically until the alarm event disappears. The status information such as the target temperature that the air conditioner needs to report does not affect the execution of the linkage control logic. Therefore, its reporting method can be configured as a non-feedback method, and the reporting priority can be configured as a low priority.
[0044] Further, in this embodiment, functional devices such as functional device A, functional device B, and functional device C report different types of status information to the gateway device 10 based on the pre-configured reporting methods and reporting priorities. When the gateway device 10 receives the status information with the reporting method of feedback-required, it sends a confirmation message to the corresponding functional device to indicate that it has received the status information. Further, if a functional device sends a status information based on the feedback-required method and does not receive the confirmation message feedback from the gateway device 10 within a predetermined time, it resends the status information to ensure the reporting success rate of the status information.
[0045] Further, the gateway device 10 executes the corresponding linkage control logic based on the received status information of the functional devices with a linkage relationship to control the target device to perform the corresponding target operation. In the linkage relationship, the execution operation corresponding to the subsequent functional device is affected by the previous functional device. Taking the above air conditioner automation control scenario as an example, after the gateway device 10 receives the status information indicating that the door is open reported by the door magnetic sensor, it queries whether the temperature reported by the temperature sensor meets the air conditioner opening condition. If it meets the condition, it controls the air conditioner to turn on. Among them, whether the air conditioner is turned on is affected by whether the door is open and the temperature detected by the temperature sensor.
[0046] Further optionally, if the linkage control logic in the Internet of Things system changes, that is, the start conditions and / or judgment conditions of the corresponding automated control scenarios change, the status information affecting the linkage control logic will also change accordingly. Therefore, in this embodiment, the reporting methods and / or reporting priorities of various types of status information of each functional device can also be updated. Further, the gateway device 10 of this embodiment can parse the updated linkage control logic to determine the status information affecting it, and then determine the reporting methods and / or reporting priorities of various types of status information, generate the reporting configuration information of each functional device, and send it to the corresponding functional device, so that each functional device updates the reporting methods and / or reporting priorities of the corresponding status information.
[0047] In other alternative implementation manners, when the linkage control logic changes and the reporting configuration information of each functional device is determined, after the gateway device 10 receives status information inconsistent with the updated reporting configuration information, it can send a response instruction carrying the reporting configuration information to the corresponding functional device, so that the corresponding functional device updates the reporting methods and / or reporting priorities of the corresponding status information. Further, if the current reporting method of the status information received by the gateway device 10 is the feedback-required method, the gateway device 10 can also carry the reporting configuration information in the feedback confirmation message, so that the corresponding functional device updates the reporting method of the corresponding status information. It should be understood that this embodiment does not limit the update configuration method of the reporting method and reporting priority of the status information after the linkage control logic changes, as long as it can be updated based on the actual situation.
[0048] In a further alternative implementation manner, if the current network congestion parameter of the Internet of Things system is greater than the parameter threshold, the corresponding forwarding node can be controlled to partially or completely discard low-priority status information to ensure the reporting success rate of high-priority status information, reduce the latency of the linkage control logic, and thus ensure the reliability of the execution of the linkage control logic. In other alternative implementation manners, when the network is congested, this embodiment can also reduce the reporting frequency of low-priority status information to reduce the amount of data in the network, so as to ensure the reporting success rate of high-priority status information, reduce the latency of the linkage control logic, and improve the reliability of the execution of the linkage control logic. This embodiment does not limit the adjustment strategy based on priority when the network is congested, as long as it can improve the reporting success rate of high-priority status information.
[0049] In the above embodiments, the functional devices A - C in the Internet of Things system are mainly used as examples for illustration. It should be understood that the number of functional devices in the Internet of Things system is not limited in this embodiment. In this Internet of Things system, multiple functional devices can be connected to the same gateway device 10. If there are multiple gateway devices 10, the functional devices can be connected to the corresponding one or more gateway devices 10 based on actual situations (such as location, communication type, etc.). The communication connection method of each functional device in the Internet of Things system is not limited in this embodiment, and no further examples will be given here.
[0050] The Internet of Things system of this embodiment includes multiple functional devices and at least one gateway device. The gateway device receives different types of status information reported by the functional devices and executes corresponding linkage control logics based on the received status information of the functional devices with a linkage relationship to control the target device to perform corresponding target operations. In the said linkage relationship, the execution operation corresponding to the subsequent functional device is affected by the previous functional device. Among them, different types of status information of the functional devices adopt corresponding reporting methods. Thus, the embodiments of the present invention can configure different reporting methods for different types of status information to ensure the reporting success rate of the status information affecting the linkage of the functional devices and improve the reliability of the linkage between the functional devices.
[0051] Figure 2 is a flowchart of the communication control method of the Internet of Things system according to the embodiments of the present invention. As Figure 2 shown, this embodiment takes the Internet of Things system including the gateway device 10 and the functional devices A - C as an example. Among them, for the functional device A, its corresponding status A1 is reported in a feedback - required manner, and the status A2 is reported in a non - feedback manner. For the functional device B, its corresponding status B1 is reported in a feedback - required manner. For the functional device C, its corresponding status C1 is reported in a non - feedback manner. The communication control method of this embodiment includes the following steps:
[0052] Step S1, the functional device A reports the status A1 in a feedback - required manner.
[0053] Step S2, the functional device A reports the status A2 in a non - feedback manner.
[0054] Step S3, after receiving the status information from the functional device A, the gateway device 10 feeds back the confirmation information corresponding to the status A1 to the functional device A.
[0055] Furthermore, if the functional device A does not receive the confirmation information corresponding to the status A1 sent by the gateway device 10 within the predetermined time, it will re - send the status A1 to the gateway device 10 to ensure the reporting success rate of the status A1 and further ensure the execution reliability of the linkage control logic.
[0056] Step S4, the functional device B reports the status B1 in a feedback-required manner.
[0057] Step S5, after receiving the status information from the functional device B, the gateway device 10 feeds back the confirmation information corresponding to the status B1 to the functional device B.
[0058] Furthermore, if the functional device B does not receive the confirmation information corresponding to the status B1 sent by the gateway device 10 within the predetermined time, it resends the status B1 to the gateway device 10 to ensure the reporting success rate of the status B1, and further ensure the execution reliability of the linkage control logic.
[0059] Step S6, the functional device C reports the status C1 in a non-feedback manner.
[0060] Step S7, the gateway device 10 executes the corresponding linkage control logic based on the received status information of the functional devices with linkage relationships. Specifically, the gateway device 10 determines whether to start and execute the corresponding linkage control logic through the status information A1, and queries the status B1 after determining to start. If the status B1 meets the corresponding conditions, a control instruction is generated.
[0061] Step S8, the gateway device 10 issues the control instruction to the functional device C.
[0062] Step S9, the functional device C executes the corresponding target operation in response to the control instruction.
[0063] It should be understood that this embodiment does not limit the execution order of the above steps. For example, the execution order of the reporting steps of the functional devices A, B, and C, the execution order between some reporting steps, feedback steps, and the steps where the gateway device executes the control logic, etc. It executes the corresponding steps based on the triggering situation of the actual application, and the execution order of the steps in various situations will not be specifically described here.
[0064] Figure 3 It is a schematic diagram of the control process of the Internet of Things system according to an embodiment of the present invention. Furthermore, in this embodiment, the functional device A, the functional device B, and the functional device C are respectively taken as a door magnetic sensor, a temperature sensor, and an air conditioner as examples to specifically describe the execution process of the corresponding linkage control logic.
[0065] In an alternative implementation, the linkage control logic of this embodiment can be implemented using the TCA (Trigger Condition Action) rule. Among them, Trigger represents the trigger event, Condition represents the condition, and Action represents the action. Further, the door magnetic sensor can be the device corresponding to Trigger, the temperature sensor can be the device corresponding to Condition, and the air conditioner can be the device corresponding to Action. It should be understood that in some automation control scenarios corresponding to the linkage control logic, the device corresponding to Condition may or may not exist, and whether to configure the corresponding condition can be determined according to the actual application scenario. For example, in the scenario of automatically turning on the air conditioner, if the condition for turning on the air conditioner is not set, the linkage control logic can be set as: after the door magnetic function device is turned on, turn on the air conditioner. If the control opening condition is set, the linkage control logic can be set as: after the door magnetic function device is turned on, detect the temperature of the temperature sensor, and turn on the air conditioner when the temperature reaches the air conditioner opening condition.
[0066] Furthermore, the chained control logic of this embodiment is not limited to being implemented using the TCA rule. Any command setting format that can represent the chained control relationship of functional devices in the corresponding automation control scenario can be applied in this embodiment, as long as it can enable the functional devices involved in the corresponding automation control scenario to be chained and controlled. This embodiment will not list all the implementation methods of the chained control logic format one by one here.
[0067] In this embodiment, after the user determines the configuration information of each functional device in the Internet of Things system in each automation control scenario, the corresponding linkage control logic is formed and configured into the gateway device, so that the gateway device can control and implement the corresponding automation control scenario based on this linkage control logic.
[0068] Such as Figure 3As shown, in this embodiment, the functional devices in the Internet of Things system include a door magnetic sensor 31, a temperature sensor 32, and an air conditioner 33, and the Internet of Things system further has a gateway device 34. Further optionally, a control logic engine 342 is provided in the gateway device 34 for parsing the corresponding linkage control logic and performing corresponding control operations based on the received status information. The control logic engine has a corresponding memory 341 for storing the status information of each functional device. It should be understood that this embodiment does not limit the type of memory for recording the status of each functional device, and it can be implemented based on existing storage types or storage forms capable of storing status information, and will not be specifically described herein. It should be understood that this embodiment does not limit the hardware device of the gateway device 34 for processing the linkage control logic. It can be in an existing processing module or an independent processing module can be set up, which can be set based on specific hardware configuration information of the gateway device 34 and will not be specifically described herein.
[0069] Further, the door magnetic sensor 31, the temperature sensor 32, and the air conditioner 33 report corresponding status information based on the pre-configured reporting methods and / or reporting priorities of various types of status information. After receiving the corresponding status information, the gateway device 34 determines whether to generate and send a confirmation message to the corresponding functional device according to the corresponding reporting method.
[0070] Further, the control logic engine 342 in the gateway device 34 can perform the following steps to implement the execution of the linkage control logic. The specific steps include:
[0071] Step S31, determining the status information of the door magnetic sensor 31. Further, the control logic engine 342 of this embodiment can periodically query the status information reported by the door magnetic sensor 31 in the memory 341 that affects the start and execution of the linkage control logic to determine whether the door magnetic is open. In other alternative implementation manners, the memory 341 can periodically query the status information reported by the door magnetic sensor 31 that affects the start and execution of the linkage control logic, and when the status information of the door magnetic being open is queried, send a message indicating that the door magnetic is open to the control logic engine 342.
[0072] Step S32: Determine the temperature information in response to the door magnetic sensor being opened. In an alternative implementation, the control logic engine 342 queries the temperature information stored in the memory 341 in response to the door magnetic sensor being opened. In another alternative implementation, the control logic engine 342 periodically queries the temperature information stored in the memory 341 and determines the most recently queried temperature information when it determines that the door magnetic sensor is opened, so as to determine whether the temperature information meets the air conditioner turning-on condition. In other alternative implementations, the memory 341 can periodically query whether the temperature information reported by the temperature sensor 32 meets the air conditioner turning-on condition, and when the temperature information meets the air conditioner turning-on condition, periodically send the temperature information that meets the condition or a condition met message to the control logic engine 342. It should be understood that this embodiment does not limit the interaction relationship between the memory 341 and the control logic engine 342 in the gateway device 34, as long as it can implement the execution of the linkage control logic.
[0073] Step S33: Generate a control instruction in response to the temperature information meeting the air conditioner turning-on condition. That is, the control logic engine 342 generates a control instruction in response to the door magnetic sensor being opened and the temperature information meeting the air conditioner turning-on condition.
[0074] Step S34: Send the control instruction to the air conditioner 33 to control the air conditioner 33 to turn on.
[0075] The embodiment of the present invention can configure the corresponding linkage control logic through the gateway device to implement the corresponding automated control scenario, improving the user's automated control experience.
[0076] In an alternative implementation, if the linkage control logic in the Internet of Things system changes, that is, the start condition and / or judgment condition of the corresponding automated control scenario change, the status information affecting the linkage control logic will also change accordingly. Therefore, in response to the change in the linkage control logic, the gateway device in this embodiment sends the reported configuration information to each relevant functional device in a predetermined manner to update the reporting method and / or reporting priority for each functional device to report the corresponding status information.
[0077] Figure 4 It is a flowchart of a method for updating the reported configuration information according to an embodiment of the present invention. The gateway device in this embodiment sends the reported configuration information to each relevant functional device respectively in response to the change in the linkage control logic. This embodiment takes the Internet of Things system including the gateway device 10 and functional devices A - C as an example. The method for updating the reported configuration information in this embodiment includes the following steps:
[0078] Step S41, the gateway device 10 parses the changed linkage control logic to determine the reporting configuration information of the corresponding functional devices. Since the functional devices involved in the parsed linkage control logic may also change. For example, if the functional devices involved in the linkage control logic before the change are functional devices A - C, the functional devices involved in the changed linkage control logic may be functional devices B and C, or may also involve information functional devices.
[0079] In this embodiment, taking the state information that the reporting methods or reporting priorities of all functional devices A - C have changed after the linkage control logic changes as an example.
[0080] Step S42, the gateway device 10 sends the reporting configuration information a to the functional device A, so that the functional device A updates the reporting methods and / or reporting priorities of its various status information.
[0081] Step S43, the gateway device 10 sends the reporting configuration information b to the functional device B, so that the functional device B updates the reporting methods and / or reporting priorities of its various status information.
[0082] Step S44, the gateway device 10 sends the reporting configuration information c to the functional device C, so that the functional device C updates the reporting methods and / or reporting priorities of its various status information.
[0083] It should be understood that the above steps S42 - S44 can be executed simultaneously or successively, and this embodiment does not limit their execution order.
[0084] The embodiment of the present invention can update the reporting configuration information of each functional device in a timely manner based on the change of the linkage control logic, so as to further ensure the execution reliability of the linkage control logic.
[0085] Figure 5 It is a flowchart of another method for updating reporting configuration information according to an embodiment of the present invention. The gateway device in this embodiment responds to the change of the linkage control logic and receives the status information that the reporting configuration information has not changed, and feeds back a response instruction carrying the reporting configuration information to the corresponding functional device. Taking the process of updating the reporting configuration information of the functional device A as an example, specifically, the method for updating the reporting configuration information in this embodiment includes the following steps:
[0086] Step S51, the gateway device 10 parses the changed linkage control logic to determine the reporting configuration information of the corresponding functional devices.
[0087] Step S52, the functional device A reports the status information a1 to the gateway device 10.
[0088] Step S53: In response to the need to change the reporting configuration information for the reported status information a1, the gateway device 10 generates a response instruction carrying the changed reporting configuration information.
[0089] Step S54: The gateway device 10 feeds back the response instruction to the functional device A so that the functional device A can update the reporting method and / or reporting priority of the status information a1.
[0090] For example, if after the linkage control logic is changed, the status information a1 changes from affecting the linkage control logic to not affecting the linkage change logic, the reporting method and reporting priority of the status information a1 change from the feedback required method and high priority to the no-feedback method and low priority.
[0091] The embodiment of the present invention can update the reporting configuration information of each functional device in a timely manner based on the change of the linkage control logic, so as to further ensure the execution reliability of the linkage control logic.
[0092] Figure 6 It is a flowchart of another method for updating the reporting configuration information according to an embodiment of the present invention. In response to the change of the linkage control logic and the current reporting method of the received status information being the feedback required method, the gateway device in this embodiment carries the reporting configuration information in the feedback confirmation information. Taking the reporting method of the functional device A before the change as the feedback required method as an example, the process of updating the configuration information in this embodiment is described in detail. Specifically, the method for updating the reporting configuration information in this embodiment includes the following steps:
[0093] Step S61: The gateway device 10 analyzes the changed linkage control logic to determine the reporting configuration information of the corresponding functional device.
[0094] Step S62: The functional device A reports the status information a2 to the gateway device 10. Among them, the reporting method of the status information a2 is the feedback required method.
[0095] Step S63: In response to receiving the status information a2 and the reporting configuration information of the status information a2 needing to be changed, the gateway device 10 generates a confirmation information carrying the changed reporting configuration information.
[0096] Step S44: The gateway device 10 feeds back the confirmation information to the functional device A, so that while the functional device A knows that the status information a2 has been successfully sent, the functional device A can update the reporting method and / or reporting priority of the status information a2.
[0097] In the embodiment of the present invention, after the linkage control logic changes, the gateway device can carry the changed reporting configuration information when feeding back the confirmation information, so that there is no need to create an additional configuration update message, and while realizing the timely update of the reporting configuration information of each functional device, the amount of data in the network is reduced.
[0098] In a further optional implementation, the communication control method of the Internet of Things system in this embodiment further includes: if the current network congestion parameter of the Internet of Things system is greater than the parameter threshold, some or all of the low-priority status information can be controlled to be discarded by the corresponding forwarding node, so as to ensure the reporting success rate of the high-priority status information, and further ensure the reliability of the execution of the linkage control logic.
[0099] The Internet of Things system according to the embodiment of the present invention includes a plurality of functional devices and at least one gateway device. The gateway device receives different types of status information reported by the functional devices, and executes corresponding linkage control logic based on the received status information of the functional devices having a linkage relationship to control the target device to execute the corresponding target operation. In the linkage relationship, the execution operation corresponding to the subsequent functional device is affected by the previous functional device. Among them, different types of status information of the functional devices adopt corresponding reporting methods. Thus, the embodiment of the present invention can configure different reporting methods for different types of status information to ensure the reporting success rate of the status information affecting the linkage of the functional devices, and improve the reliability of the linkage between the functional devices.
[0100] Figure 7 It is a flowchart of the communication control method of the gateway device according to the embodiment of the present invention. As Figure 7 shown, the communication control method of the gateway device according to the embodiment of the present invention includes the following steps:
[0101] Step S110, receiving different types of status information reported by the functional devices. Among them, different types of status information of the functional devices adopt corresponding reporting methods. The reporting methods of different types of status information of the functional devices are determined according to the role of the status information in the linkage control logic and / or the information urgency.
[0102] Step S120, executing corresponding linkage control logic based on the received status information of the functional devices having a linkage relationship to control the target device to execute the corresponding target operation. Among them, in the linkage relationship, the execution operation corresponding to the subsequent functional device is affected by the previous functional device.
[0103] Further, different types of status information of the functional devices have corresponding reporting priorities, and the reporting priorities of different types of status information of the functional devices are determined according to the role of the status information in the linkage control logic and / or the information urgency.
[0104] Further, the reporting methods of different types of status information of the functional devices are the feedback required method or the no-feedback method. The communication control method of the gateway device according to the embodiment of the present invention further includes: in response to receiving the status information reported by the functional device and the reporting method of the status information is the feedback required method, sending confirmation information to the corresponding functional device.
[0105] Further, the communication control method of the gateway device according to the embodiment of the present invention further includes: in response to a change in the linkage control logic, sending the reported configuration information to each relevant functional device respectively. In another alternative implementation, the gateway node, in response to a change in the linkage control logic and receiving status information indicating that the reported configuration information has not changed, feeds back a response instruction carrying the reported configuration information to the corresponding functional device. In other alternative implementations, the gateway node, in response to a change in the linkage control logic and the current reporting method of the received status information being the feedback required method, carries the reported configuration information in the feedback confirmation information.
[0106] It should be understood that the specific manner of the communication control method of the gateway node in this embodiment is similar to that in the Internet of Things system, and will not be described in detail here.
[0107] The Internet of Things system according to the embodiment of the present invention includes a plurality of functional devices and at least one gateway device. The gateway device receives different types of status information reported by the functional devices, and executes corresponding linkage control logic based on the received status information of the functional devices having a linkage relationship to control the target device to execute corresponding target operations. In the linkage relationship, the execution operation corresponding to the subsequent functional device is affected by the previous functional device. Among them, different types of status information of the functional devices adopt corresponding reporting methods. Thus, the embodiment of the present invention can configure different reporting methods for different types of status information to ensure the reporting success rate of the status information affecting the linkage of the functional devices, and improve the reliability of the linkage between the functional devices.
[0108] Figure 8 It is a schematic diagram of the communication control device of the gateway device according to the embodiment of the present invention. As Figure 8 shown, the communication control device 8 of the gateway device according to the embodiment of the present invention includes a status receiving unit 81 and an execution unit 82.
[0109] The status receiving unit 81 is configured to receive different types of status information reported by the functional devices, and different types of status information of the functional devices adopt corresponding reporting methods. The execution unit 82 is configured to execute corresponding linkage control logic based on the received status information of the functional devices having a linkage relationship to control the target device to execute corresponding target operations. In the linkage relationship, the execution operation corresponding to the subsequent functional device is affected by the previous functional device. Among them, the reporting method of different types of status information of the functional devices is determined according to the role of the status information in the linkage control logic and / or the information urgency.
[0110] The Internet of Things system according to an embodiment of the present invention includes a plurality of functional devices and at least one gateway device. The gateway device receives different types of status information reported by the functional devices, and executes corresponding linkage control logics based on the received status information of the functional devices having a linkage relationship to control a target device to execute corresponding target operations. In the linkage relationship, the execution operations corresponding to the subsequent functional devices are affected by the previous functional devices. Among them, different types of status information of the functional devices adopt corresponding reporting methods. Thus, the embodiment of the present invention can configure different reporting methods for different types of status information to ensure the reporting success rate of the status information affecting the linkage of the functional devices, and improve the reliability of the linkage between the functional devices.
[0111] Figure 9 It is a schematic diagram of the gateway device according to an embodiment of the present invention. In this embodiment, the gateway device 9 can be any device that plays a gateway function in the Internet of Things system. Such as Figure 9 shown, the gateway device 9: includes at least one processor 91; and, a memory 92 communicatively connected to at least one processor 91; and, a network interface 93 for communicating with the functional devices. The network interface 93 receives and sends data under the control of the processor 91. Among them, the memory 92 stores instructions executable by at least one processor 91, and the instructions are executed by at least one processor 91 to implement the communication control method of the above-mentioned gateway device. Further, the memory 92 can also store the status information reported by the functional devices. In other alternative implementation manners, the status information reported by the functional devices can also be stored in other storage devices.
[0112] Specifically, the gateway device includes: one or more processors 91 and a memory 92, Figure 9 taking one processor 91 as an example. The processor 91 and the memory 92 can be connected by a bus or other means, Figure 9 taking the connection by a bus as an example. The memory 92, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The processor 91 executes various functional applications and data processing of the device by running the non-volatile software programs, instructions, and modules stored in the memory 92, that is, implements the communication control method of the above-mentioned gateway device.
[0113] The memory 92 may include a program storage area and a data storage area. The program storage area may store an operating system and application programs required for at least one function. The data storage area may store an option list and the like. In addition, the memory 92 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 92 may optionally include a memory remotely provided with respect to the processor 91, and these remote memories may be connected to an external device through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0114] One or more modules are stored in the memory 92 and, when executed by one or more processors 91, execute the communication control method of the gateway device in any of the above method embodiments.
[0115] The above product can execute the method provided in the embodiments of the present application, and has corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in this embodiment, reference may be made to the method provided in the embodiments of the present application.
[0116] The Internet of Things system according to the embodiment of the present invention includes a plurality of functional devices and at least one gateway device. The gateway device receives different types of status information reported by the functional devices, and executes corresponding linkage control logics based on the received status information of the functional devices having a linkage relationship to control a target device to execute corresponding target operations. In the linkage relationship, the execution operation corresponding to a subsequent functional device is affected by a preceding functional device, wherein different types of status information of the functional devices adopt corresponding reporting methods. Thus, the embodiment of the present invention can configure different reporting methods for different types of status information to ensure the reporting success rate of the status information affecting the linkage of the functional devices and improve the reliability of the linkage between the functional devices.
[0117] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, and the computer-readable program is used for a computer to execute some or all of the above method embodiments.
[0118] That is, those skilled in the art can understand that all or part of the steps in the methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0119] The foregoing are only the preferred embodiments of the present application and are not used to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.
Claims
1. A communication control method for a gateway device, characterized in that: The method comprises: Receiving different types of status information reported by functional devices, wherein the different types of status information of the functional devices are reported in corresponding manners; Executing corresponding linkage control logic based on the received state information of the functional devices having linkage relationship, so as to control the target device to execute the corresponding target operation, wherein the execution operation corresponding to the subsequent functional device is affected by the preceding functional device in the linkage relationship; The reporting method of different types of status information of the functional device is determined according to the role of the status information in the linkage control logic and / or the urgency of the information.
2. The method according to claim 1, characterized in that Different types of status information of the functional device have corresponding reporting priorities, and the reporting priorities of different types of status information of the functional device are determined according to the role of the status information in the linkage control logic and / or the urgency of the information.
3. The method according to claim 1, characterized in that The reporting mode of different types of status information of the functional device is a feedback-required mode or a feedback-free mode, and the method further includes: In response to receiving the status information reported by the functional device and the reporting mode of the status information is a feedback-required mode, feedback confirmation information to the functional device.
4. The method according to claim 1, characterized in that: The method further comprises: In response to a change in the linkage control logic, configuration information is sent and reported to each of the related functional devices.
5. The method according to claim 1, characterized in that The method further comprises: In response to a change in the linkage control logic and receiving status information indicating that the reported configuration information has not been changed, a response instruction carrying the reported configuration information is fed back to the corresponding functional device.
6. The method according to claim 1, characterized in that The method further comprises: In response to the linkage control logic being changed and the current reporting mode of the received status information being a feedback-required mode, the reporting configuration information is carried in the feedback confirmation information.
7. A communication control method for an Internet of Things system, characterized in that: The Internet of Things system includes multiple functional devices and at least one gateway device, and the method includes: The functional device reports different types of status information to the corresponding gateway device using corresponding reporting methods; The gateway device executes corresponding linkage control logic based on the received state information of the functional devices having linkage relationship, so as to control the target device to execute the corresponding target operation, wherein in the linkage relationship, the execution operation corresponding to the subsequent functional device is affected by the preceding functional device; The reporting method of different types of status information of the functional device is determined according to the role of the status information in the linkage control logic and / or the urgency of the information.
8. The method according to claim 7, characterized in that Different types of status information of the functional device have corresponding reporting priorities. The reporting priorities of different types of status information of the functional device are determined according to the role of the status information in the linkage control logic and / or the urgency of the information. The reporting method of different types of status information of the functional device is a feedback-required method or a no-feedback method.
9. The method according to claim 8, characterized in that The method further comprises: In response to a current network congestion parameter being greater than a parameter threshold, some or all of the low-priority state information is discarded.
10. The method according to claim 8, characterized in that The method further comprises: In response to a change in the linkage control logic, the gateway device sends reporting configuration information to each of the related functional devices in a predetermined manner.
11. An Internet of Things system, characterized in that: The Internet of Things system includes: A plurality of functional devices are configured to report different types of status information to corresponding gateway devices using corresponding reporting methods; At least one gateway device is configured to execute corresponding linkage control logic based on received status information of functional devices having linkage relationships, so as to control the target device to execute corresponding target operations, wherein the execution operation corresponding to the subsequent functional device is affected by the preceding functional device in the linkage relationship; The reporting method of different types of status information of the functional device is determined according to the role of the status information in the linkage control logic and / or the urgency of the information.
12. A gateway device, comprising a memory, a processor and a network interface, characterized in that: The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1 to 6.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
14. A computer program product, characterized in that When the computer program product is run on at least one computer, the at least one computer is caused to execute the method according to any one of claims 1 to 10.