CN109683494B - Internet of things equipment linkage control system - Google Patents
Internet of things equipment linkage control system Download PDFInfo
- Publication number
- CN109683494B CN109683494B CN201811460143.5A CN201811460143A CN109683494B CN 109683494 B CN109683494 B CN 109683494B CN 201811460143 A CN201811460143 A CN 201811460143A CN 109683494 B CN109683494 B CN 109683494B
- Authority
- CN
- China
- Prior art keywords
- condition
- rule
- module
- data
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000009471 action Effects 0.000 claims abstract description 40
- 238000012216 screening Methods 0.000 claims abstract description 33
- 238000012544 monitoring process Methods 0.000 claims abstract description 10
- 230000001960 triggered effect Effects 0.000 claims abstract description 10
- 238000012545 processing Methods 0.000 claims description 29
- 230000000875 corresponding effect Effects 0.000 claims description 19
- 230000002688 persistence Effects 0.000 claims description 14
- 230000006870 function Effects 0.000 claims description 12
- 238000013507 mapping Methods 0.000 claims description 4
- 230000002159 abnormal effect Effects 0.000 claims description 3
- 230000002085 persistent effect Effects 0.000 claims description 3
- 230000001934 delay Effects 0.000 claims description 2
- 238000011161 development Methods 0.000 claims description 2
- 238000004806 packaging method and process Methods 0.000 claims description 2
- 230000006855 networking Effects 0.000 claims 1
- 238000003973 irrigation Methods 0.000 description 9
- 230000002262 irrigation Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 238000000034 method Methods 0.000 description 5
- 239000002689 soil Substances 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000010076 replication Effects 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a linkage control system of Internet of things equipment, which comprises: a WEB configuration module and a linkage service module; and the linkage service module utilizes the data stored in the database by the WEB configuration module to carry out rule screening, and completes the action of the equipment needing to be operated. The invention can link various Internet of things devices, including but not limited to a single lamp, a charging pile, wifi, a camera, emergency help, well lid monitoring, broadcasting, parking space monitoring and an LED large screen. Wherein, the single lamp, fill electric pile, wifi, promptly seek help, parking stall control, well lid control can be as trigger condition, and single lamp, camera, broadcast and large-size screen can be triggered and carry out the operation. The invention realizes complete user personalized configuration, all trigger conditions and trigger actions are configuration items, and the Internet of things equipment in the smart city is organically combined.
Description
Technical Field
The invention relates to the field of smart cities and Internet of things, in particular to an Internet of things equipment linkage control system.
Background
The prior art document ' linkage control system for water-saving irrigation ' is recorded in agricultural engineering journal ' 2011, 8 th, and in order to save water for farmland irrigation, improve the utilization efficiency of water resources and realize automatic irrigation control, the linkage control system for water-saving irrigation is designed by adopting autonomously designed irrigation control equipment and soil moisture monitoring equipment and transmitting data through a GSM network and integrating soil moisture monitoring, irrigation control and expert decision support. The system consists of a local control cabinet, a data acquisition system and automatic control software, and realizes the functions of real-time soil moisture content monitoring, expert knowledge management, automatic irrigation control according to water demand parameters of different crops and different growth periods and the like. The application in the demonstration area proves that the system is stable and reliable, is convenient to operate, can be widely applied to the fields of large-scale planting, greenhouse, fine agriculture and the like, and has important practical significance for the implementation of water-saving agriculture. The irrigation system is simply a linkage between the soil monitoring and irrigation equipment.
The prior art document "light talk lighting control and intelligent lighting control system" is recorded in "low voltage electrical apparatus" in 2008 th 6, which briefly introduces the basic principle, main implementation manner, and basic requirements for lighting control in different situations. The main functions realized by the intelligent lighting control system are mainly explained, and meanwhile, an application case of the intelligent lighting control system is given. The advantages of the DALI intelligent lighting control system are introduced from the aspects of design, installation and use. However, the document only controls the lighting through the fixed DALI system to realize the linkage of the illuminance sensor and the lamp, however, the urban resource such as the lamp post should become a part of the smart city, and is not as simple as lighting, so that the document cannot be applied to the smart control that can switch on and off the lamp and adjust the brightness by using the linkage between various devices such as illuminance and the like.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a linkage control system for equipment of the Internet of things.
The invention provides an Internet of things equipment linkage control system, which comprises: a WEB configuration module and a linkage service module;
and the linkage service module utilizes the data stored in the database by the WEB configuration module to carry out rule screening, and completes the action of the equipment needing to be operated.
Preferably, the WEB configuration module includes a WEB module;
newly building a condition module: the trigger condition is configured to be set up,
newly building an operation module: configuring a trigger operation;
a rule generation module: generating a rule according to the trigger condition and the trigger operation, wherein the rule comprises a priority, an operation executed after being triggered and an operation execution time after being triggered;
wherein the trigger condition includes the following information:
wherein, the execution operation after being triggered comprises the following information:
preferably, the triggering of the component type is configured to:
preferably, the linkage service module comprises the following modules:
a data receiving module: processing the message sent by the hardware equipment through a RocketMQ, after receiving the message of the RocketMQ, analyzing the data in the Json format, and transmitting the analyzed data to a condition screening module for logic processing;
a condition screening module: performing different logic processing according to different types of equipment to obtain a rule ID, wherein the types of the equipment comprise a single lamp, a charging pile, an AP, emergency help, parking space monitoring, well lid monitoring and an LED advertising screen;
an action screening module: judging the priority of the actions in the rule according to the rule ID to obtain the actions needing to be operated;
an execution action module: packaging the action to be operated into a corresponding data format, sending the data format to a RocketMQ, and sending the data format to each device through a gateway through the RocketMQ to perform corresponding action;
wherein the logic processing flow is as follows:
the first step is as follows: judging which kind of equipment transmitted data according to the data transmitted by the data receiving module, and then finding corresponding logic for processing;
the second step is that: judging whether the code of the equipment is used as a list of condition keys or not in a database db without Redis, if so, performing the third step, and if not, ending the logic processing flow;
the third step: finding all condition keys below the equipment according to the list found in the second step, finding specific values of the conditions according to the condition keys, circularly judging the conditions, recording rule IDs corresponding to the values if the conditions are in accordance, and not recording the rule IDs corresponding to the values if the conditions are not in accordance;
the fourth step: obtaining a List List of rule IDs from the third step, finding all conditions under the rule in Redis according to the rule IDs, judging whether the conditions are met, and recording the rule ID if the conditions are met;
the fifth step: and according to the fourth step, obtaining a List List of the rule IDs which finally meet the conditions, and transmitting the List to an action screening module for logic processing.
And a sixth step: after condition screening, the rule ID meeting the conditions is transmitted to an action screening module for processing.
Preferably, the adopted Redis memory structure is:
specific values of each condition are stored in db0 of Redis, the used data structure is hash, child keys and values of the hash correspond to fields and corresponding values of a condition table in a mysql database, a parent key is a character string formed by CondigCondition and an ID of the condition in the condition table, and if the ID is 1, the parent key is CondigCondigCondition 1;
stored in db1 of Redis is which conditions are contained under each rule, and the data structure used is a List; the key of the condition under the rule is Configresults plus the ID of the rule in the mysql rule table, and the value of the key of the List is the key of all the conditions under the rule;
all condition keys are stored in db3 of Redis and used as traversal uses, and the data structure used by the condition keys is List; only one key in Db3 is the ConfigCoditionList, whose value is all conditional keys present in Db 0;
stored in db4 of Redis are codes of all devices having a condition, used for traversal, and the storage structure used here is also a List; there is also only one key inside the Code of the device with the condition, which is equal to EquipmentCodeList;
stored in db5 of Redis are the conditions owned by each device, using a List data structure; the key of the condition owned by the equipment is the 14-bit code of the equipment, and the value of the key is the key of the condition owned by the equipment;
mapping between the Redis storage key and different types of value values, persisting key value pair data stored in a memory to a hard disk, and expanding the reading performance by using a copying characteristic; wherein: the command of O (1) is safe, and the command of O (N) is used if the order of N is unpredictable, so that the command is avoided; setting a fsync function, and executing the fsync function once every second; looking at the inherent delays, Redis is deployed directly on the physical machine.
Preferably, one of the WEB configuration module and the linkage service module is in an abnormal state, so that the operation of the other is not influenced;
the WEB configuration module is used for storing the trigger conditions, triggering operation, generating trigger rules and managing the trigger rules; the WEB configuration module is mainly divided into a presentation layer, a business logic layer, a data access layer and a database layer, an SSM framework is adopted for development, and MySQL is used for data persistence;
the linkage service module is mainly divided into a logic processing layer and a data persistence layer; the logic processing layer is provided with a data receiving module, a condition screening module, an action screening module and an action executing module;
and a data persistence layer and a linkage service module adopt an implementation mode that a Redis database and Mysql are matched for use.
Compared with the prior art, the invention has the following beneficial effects:
1. the method is developed aiming at multi-equipment and multi-response linkage control. And filtering information reported by a large amount of equipment in real time, screening and triggering corresponding operations.
2. Various internet of things devices in the smart city are organically linked, and the device is independent of agricultural or fire-fighting system devices, so that complete user personalized configuration is realized, and the expandability is extremely high.
3. To camera on the wisdom lamp pole, broadcasting, a key is reported to the police, and equipment such as well lid carries out coordinated control, sets up the rule after, just can trigger the action of another equipment when a condition is answered to certain equipment. And various devices can be accessed, and the expansibility is high.
4. The intelligent lamp post has the advantages that the intelligent lamp posts display 'intelligent', cameras are bound to all the lamp posts, and the cameras automatically turn to response positions after certain alarm is triggered. And after the crowd is too dense, the warning voice is automatically broadcasted. Really serve the city with the wisdom lamp pole.
5. The multiple internet of things equipment will link, including but not limited to the single lamp, fill electric pile, wifi, camera, promptly seek help, well lid control, broadcasting, parking stall control and the big screen of LED. Wherein, the single lamp, fill electric pile, wifi, promptly seek help, parking stall control, well lid control can be as trigger condition, and single lamp, camera, broadcast and large-size screen can be triggered and carry out the operation. The invention realizes complete user personalized configuration, all trigger conditions and trigger actions are configuration items, and the Internet of things equipment in the smart city is organically combined.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
fig. 1 is a system architecture diagram.
Fig. 2 is a functional diagram of the system.
Fig. 3 is a network topology diagram.
Fig. 4 is a database ER diagram.
FIG. 5 is a screenshot of a newly created conditions page interface.
FIG. 6 is a screenshot of a new operation page interface.
FIG. 7 is a rule management page interface screenshot.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
According to the linkage control system of the Internet of things equipment, the related tables are as follows:
TABLE 1 trigger class of function analysis Table
TABLE 2 analysis of conditions available at trigger
TABLE 3 analysis of available conditions when triggered
The invention provides an Internet of things equipment linkage control system, which comprises: a WEB configuration module and a linkage service module;
one of the WEB configuration module and the linkage service module is in an abnormal state, so that the operation of the other one cannot be influenced; and the linkage service module utilizes the data stored in the database by the WEB configuration module to carry out rule screening, and completes the action of the equipment needing to be operated.
A WEB configuration module: storing a trigger condition, triggering operation, generating a trigger rule, and managing the trigger rule; the WEB configuration module is mainly divided into a presentation layer, a business logic layer, a data access layer and a database layer, and is developed by adopting an SSM framework and data persistence is carried out by using MySQL.
The linkage service module is mainly divided into a logic processing layer and a data persistence layer; the logic processing layer is provided with a data receiving module, a condition screening module, an action screening module and an action executing module. The data persistence layer needs to be inquired quickly, so an implementation mode that a Redis database and Mysql are matched for use is selected in the linkage service module.
The system architecture diagram of the present invention is shown in fig. 1, and the system functional diagram is shown in fig. 2. As shown in fig. 3, in the system provided by the present invention, when the system acquires a message from the MQ message queue, the message is analyzed in the first step, and after the useful message is acquired, the message is subjected to two logic processes of condition screening and action screening, and the final action to be performed is screened out by using the information that has been stored in the Redis and Mysql databases by the WEB configuration module; and finally, encapsulating the action and sending the action to the MQ, and finally enabling corresponding hardware to execute the action through the gateway. The program part in the invention can be deployed on windows system or linux system.
The Web module mainly comprises functions of creating conditions, creating operation, generating rules, managing logs and the like. The new condition → operation → rule is a flow, and the previous step and the next step can be performed, and the operations such as deletion and addition can be performed on the selected condition and operation.
And newly building conditions, selecting lamp post equipment or non-lamp post equipment through the upper selection frame, and then selecting equipment, components, functions and the like to generate a trigger condition. After the lamp post equipment is selected, clicking is determined, a modal frame selected by the lamp post is popped up, and non-lamp post equipment is selected to be directly refreshed in an equipment column. After the equipment is selected, a left question mark icon is clicked, and a popup modal box displays the rules occupied by the current equipment and the priority of each rule. As shown in fig. 5.
And newly building operation, namely selecting lamp post equipment or non-lamp post equipment through the upper selection frame, and then selecting equipment, components, functions and the like to generate a trigger operation. After the lamp post equipment is selected, clicking is determined, a modal frame selected by the lamp post is popped up, and non-lamp post equipment is selected to be directly refreshed in an equipment column. As shown in fig. 6.
And finally, generating a rule, entering a rule generating interface after adding conditions and operations, filling priorities and time for executing the operations after triggering, and finishing clicking. As shown in fig. 7.
On the service logic of the linkage service module, the whole linkage service module can be divided into four parts, namely data receiving, condition screening, action screening and action execution.
(1) Data reception
The system processes messages such as alarm messages and notification messages sent by the hardware equipment through the RocktMQ, and after receiving the RocktMQ messages, the service end analyzes the data in the Json format and transmits the analyzed data to the condition screening module processing logic for processing.
(2) At condition screening module, carry out different logic processing according to different equipment, including the single lamp, fill electric pile, AP, promptly seek help, parking stall control, well lid control, LED advertising screen etc.. The logic processing flow is as follows:
1) and judging which kind of equipment transmitted data according to the data transmitted by the data receiving module, and then finding corresponding logic for processing.
2) And a second step of removing the code of the equipment from a certain db of Redis (the db5 can be selected by self but cannot be changed after selection, the sub-library can avoid the repetition of the key to a certain extent and can also make the logic more clear, the same below and the same below), judging whether the code of the equipment is used as the list of the key, and if the code exists, performing a third step, and if the code does not exist, directly skipping the logic judgment and not performing the next step.
3) And finding all condition keys below the equipment according to the list found in the second step, finding specific values of the conditions according to the condition keys, circularly judging the conditions, recording the rule ID if a certain condition is met, and directly skipping the judgment logic to not execute the condition downwards if the condition is not met.
4) And obtaining a List of the rule ID from the third step, finding all conditions below the rule in Redis according to the rule ID, judging whether the conditions are met, and recording the rule ID if all the conditions are met.
5) And D, obtaining a List of the rule ID which finally meets the conditions according to the fourth step, and transmitting the List to an action screening module for logic processing.
6) After condition screening, the rule ID meeting the conditions is transmitted to an action screening module for processing. This section is mainly to prioritize actions in the rules.
7) After action screening, the actions to be done are packaged into corresponding data formats and sent to the RocketMQ, and the actions are sent to each device through the gateway through the RocketMQ to perform corresponding actions.
The Redis memory architecture design is explained below.
Redis is a high-performance Key-Value memory database of nosql, supports a network, and can also be locally persistent. Version 3.0.0Beta supported clusters. To use Redis well, the storage structure of Redis needs to be designed according to the actual service scenario, and the construction rule of key is also very important. Redis' db0 through db5 are used in the present system, each having its own storage structure.
The specific values in each condition are stored in db0, the data structure used here is hash, its child key and value correspond to the fields and corresponding values of the condition table in mysql database, the parent key is a character string consisting of "CondigCondition" plus the ID in this condition table, if ID is 1, the parent key is CondigCondition 1.
Stored in db1 are which conditions are contained under each rule, and the data structure used is a List. Its key is "configresult" plus the rule's ID in the mysql rule table, its value is the key under all conditions of the rule, if the rule ID is 1 and it contains a condition ID of 1, then the representation in db1 is key configresult 1, List with value configresult 1.
db2 is not used at this stage for future supplements.
Stored in db3 are all conditional keys used for traversal use, which use a List of data structures. Only one key in Db3, ConfigCoditionList, has the value of all conditional keys present in Db 0.
db4 stores the codes of all devices that have the condition for traversal use, and the storage structure used here is also a List. It also has only one key inside, which is equal to EquipmentCodeList.
Stored in db5 are the conditions owned by each device, and the data structure used is a List. Its key is the 14-bit code of the device, and the value of this key is the conditional key owned by the device. For example, if the AP ownership condition key of 01070000000001 is CondigCondition2, there will be a List in db with a key of 01070000000001 and a value of CondigCondition 2.
The key technologies and solutions are described below.
Redis is a very fast non-relational database that can store mappings (mapping) between keys (keys) and 5 different types of values (values), can persist key-value pair data stored in memory to hard disks, can use replication features to extend read performance, although Redis is a very fast memory data storage medium, it does not represent that Redis does not create performance issues. Care should be taken at the time of use that some issues have guaranteed the performance of Redis.
Long time consuming commands should be avoided. The time complexity of most read-write commands of Redis is between O (1) and O (N), and the time complexity of each command is explained in text and official documents. Typically, O (1) commands are secure, and O (N) commands require care in their use, and should be avoided if the order of N is unpredictable. For example, executing HGETALL/HKEYS/HVALS commands on Hash data with an unknown field number is typically fast, but takes a multiple of the time if the number of fields in the Hash is extremely large. Redis provides the Slow Log function, which can automatically record commands that take a long time. We can find out which commands take too long and then do the corresponding optimization.
Delay caused by data persistence. The data persistence operation of Redis causes delay, and a reasonable persistence strategy needs to be formulated according to the security level and performance requirements of data. The system adopts the AOF persistence strategy, sets fsync every second once, can keep the persistence correctness to a great extent, and considers the influence on the performance.
Virtual machine induced latency. Now, the linkage configuration subsystem is deployed on the virtual machine, and Redis is also deployed in the same place, so that inherent delay caused by the virtual machine environment may occur naturally. The inherent delay can be viewed by the/redis-cli-intrinsic-latency 100 command. Meanwhile, if the performance of the Redis is high, the Redis should be directly deployed on a physical machine as much as possible.
Those skilled in the art will appreciate that, in addition to implementing the systems, apparatus, and various modules thereof provided by the present invention in purely computer readable program code, the same procedures can be implemented entirely by logically programming method steps such that the systems, apparatus, and various modules thereof are provided in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system, the device and the modules thereof provided by the present invention can be considered as a hardware component, and the modules included in the system, the device and the modules thereof for implementing various programs can also be considered as structures in the hardware component; modules for performing various functions may also be considered to be both software programs for performing the methods and structures within hardware components.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.
Claims (3)
1. The utility model provides a thing networking device coordinated control system which characterized in that includes: a WEB configuration module and a linkage service module;
the linkage service module utilizes the data stored in the database by the WEB configuration module to carry out rule screening to complete the action of the equipment needing to be operated;
the WEB configuration module comprises a Web module;
newly building a condition module: the trigger condition is configured to be set up,
newly building an operation module: configuring a trigger operation;
a rule generation module: generating a rule according to the trigger condition and the trigger operation, wherein the rule comprises a priority, an operation executed after being triggered and an operation execution time after being triggered;
wherein the trigger condition includes the following information:
wherein, the execution operation after being triggered comprises the following information:
the triggering of the component type is configured as:
the linkage service module comprises the following modules:
a data receiving module: processing the message sent by the hardware equipment through a RocketMQ, after receiving the message of the RocketMQ, analyzing the data in the Json format, and transmitting the analyzed data to a condition screening module for logic processing;
a condition screening module: performing different logic processing according to different types of equipment to obtain a rule ID, wherein the types of the equipment comprise a single lamp, a charging pile, an AP, emergency help, parking space monitoring, well lid monitoring and an LED advertising screen;
an action screening module: judging the priority of the actions in the rule according to the rule ID to obtain the actions needing to be operated;
an execution action module: packaging the action to be operated into a corresponding data format, sending the data format to a RocketMQ, and sending the data format to each device through a gateway through the RocketMQ to perform corresponding action;
wherein the logic processing flow is as follows:
the first step is as follows: judging which kind of equipment transmitted data according to the data transmitted by the data receiving module, and then finding corresponding logic for processing;
the second step is that: judging whether the code of the equipment is used as a list of condition keys or not in a database db without Redis, if so, performing the third step, and if not, ending the logic processing flow;
the third step: finding all condition keys below the equipment according to the list found in the second step, finding specific values of the conditions according to the condition keys, circularly judging the conditions, recording rule IDs corresponding to the values if the conditions are in accordance, and not recording the rule IDs corresponding to the values if the conditions are not in accordance;
the fourth step: obtaining a List List of rule IDs from the third step, finding all conditions under the rule in Redis according to the rule IDs, judging whether the conditions are met, and recording the rule ID if the conditions are met;
the fifth step: according to the fourth step, a List of the rule IDs which finally meet the conditions is obtained and is transmitted to an action screening module for logic processing;
and a sixth step: after condition screening, the rule ID meeting the conditions is transmitted to an action screening module for processing.
2. The internet of things device linkage control system according to claim 1, wherein the adopted Redis storage structure is as follows:
specific values of each condition are stored in db0 of Redis, the used data structure is hash, child keys and values of the hash correspond to fields and corresponding values of a condition table in a mysql database, a parent key is a character string formed by CondigCondition and an ID of the condition in the condition table, and if the ID is 1, the parent key is CondigCondigCondition 1;
stored in db1 of Redis is which conditions are contained under each rule, and the data structure used is a List; the key of the condition under the rule is Configresults plus the ID of the rule in the mysql rule table, and the value of the key of the List is the key of all the conditions under the rule;
all condition keys are stored in db3 of Redis and used as traversal uses, and the data structure used by the condition keys is List; only one key in Db3 is the ConfigCoditionList, whose value is all conditional keys present in Db 0;
stored in db4 of Redis are codes of all devices having a condition, used for traversal, and the storage structure used here is also a List; there is also only one key inside the Code of the device with the condition, which is equal to EquipmentCodeList;
stored in db5 of Redis are the conditions owned by each device, using a List data structure; the key of the condition owned by the equipment is the 14-bit code of the equipment, and the value of the key is the key of the condition owned by the equipment;
mapping between the Redis storage key and different types of value values, persisting key value pair data stored in a memory to a hard disk, and expanding the reading performance by using a copying characteristic; wherein: the command of O (1) is safe, and the command of O (N) is used if the order of N is unpredictable, so that the command is avoided; setting a fsync function, and executing the fsync function once every second; looking at the inherent delays, Redis is deployed directly on the physical machine.
3. The Internet of things equipment linkage control system according to claim 1, wherein one of the WEB configuration module and the linkage service module is in an abnormal state, so that the operation of the other one cannot be influenced;
the WEB configuration module is used for storing the trigger conditions, triggering operation, generating trigger rules and managing the trigger rules; the WEB configuration module is divided into a presentation layer, a business logic layer, a data access layer and a database layer, an SSM framework is adopted for development, and MySQL is used for data persistence;
the linkage service module is divided into a logic processing layer and a data persistence layer; the logic processing layer is provided with a data receiving module, a condition screening module, an action screening module and an action executing module;
and a data persistence layer and a linkage service module adopt an implementation mode that a Redis database and Mysql are matched for use.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811460143.5A CN109683494B (en) | 2018-11-30 | 2018-11-30 | Internet of things equipment linkage control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811460143.5A CN109683494B (en) | 2018-11-30 | 2018-11-30 | Internet of things equipment linkage control system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109683494A CN109683494A (en) | 2019-04-26 |
CN109683494B true CN109683494B (en) | 2020-09-08 |
Family
ID=66185185
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811460143.5A Active CN109683494B (en) | 2018-11-30 | 2018-11-30 | Internet of things equipment linkage control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109683494B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111381582B (en) * | 2020-03-11 | 2021-07-23 | 杭州涂鸦信息技术有限公司 | Linkage rule testing method and device |
CN114846415A (en) * | 2020-03-20 | 2022-08-02 | Oppo广东移动通信有限公司 | Rule processing method and device and electronic equipment |
CN112583925B (en) * | 2020-12-23 | 2023-05-23 | 佳讯飞鸿(北京)智能科技研究院有限公司 | Control system and method for Internet of things service, readable storage medium and electronic equipment |
CN112835968A (en) * | 2021-02-01 | 2021-05-25 | 浪潮云信息技术股份公司 | Intelligent equipment linkage method based on Internet of things |
CN113886190B (en) * | 2021-10-22 | 2023-07-14 | 苏州浪潮智能科技有限公司 | Device management system, method, device and storage medium for server |
CN114301953A (en) * | 2021-12-13 | 2022-04-08 | 北京首奥置业有限公司 | Internet of things equipment linkage control method and device, storage medium and electronic device |
CN114513389A (en) * | 2021-12-31 | 2022-05-17 | 佛山市瑞德物联科技有限公司 | Linkage method and linkage device based on edge computing gateway |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101848237A (en) * | 2010-05-10 | 2010-09-29 | 秦野 | Intelligent household information system of internet of things |
CN106127379A (en) * | 2016-06-22 | 2016-11-16 | 中智城信息科技(苏州)有限公司 | A kind of based on lamp networked sensor group with the smart city construction method of cloud computing |
CN106453368A (en) * | 2016-10-27 | 2017-02-22 | 深圳市欧瑞博电子有限公司 | Control method and apparatus of intelligent device |
Family Cites Families (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150019353A1 (en) * | 2012-02-06 | 2015-01-15 | Adstruc, Inc. | System for managing the utilization of a plurality of outdoor advertising units |
CN104601665B (en) * | 2014-12-22 | 2017-11-03 | 西安电子科技大学 | A kind of system and method that high in the clouds real-time simulation is carried out to Internet of Things awareness apparatus |
CN105337828B (en) * | 2015-09-29 | 2019-01-01 | 深圳市安冠科技有限公司 | A kind of network-based equipment collaboration processing system and method |
CN105550818A (en) * | 2015-12-28 | 2016-05-04 | 上海五零盛同信息科技有限公司 | Road illumination facility comprehensive utilization based information management platform |
KR101869233B1 (en) * | 2016-03-08 | 2018-06-20 | 주식회사 로제타텍 | Operating method of process management system for distributed programmable logic controllers adopting internet-of-things configuration |
CN105872075B (en) * | 2016-05-06 | 2018-08-31 | 东莞中科智城软件有限公司 | A method of internet of things equipment is mapped to smart city resource model |
US9894159B2 (en) * | 2016-06-13 | 2018-02-13 | Verizon Patent And Licensing Inc. | Generating consumer internet-of-things data products |
CN107065616A (en) * | 2017-05-08 | 2017-08-18 | 浙江风向标科技有限公司 | Inter-linked controlling method and device, computer-readable recording medium |
CN107864174B (en) * | 2017-07-03 | 2021-07-20 | 华南理工大学 | Rule-based Internet of things equipment linkage method |
CN107272535B (en) * | 2017-07-11 | 2019-06-25 | 武汉虹信技术服务有限责任公司 | A kind of linkage and interlock method of intelligent building management system |
CN107272437B (en) * | 2017-08-01 | 2021-06-04 | 中国联合网络通信集团有限公司 | Intelligent device, control method and control platform thereof, and intelligent device system |
CN107770282A (en) * | 2017-11-02 | 2018-03-06 | 湖北科技学院 | A kind of fire-fighting life-saving rescue system under city complex environment |
CN108182241B (en) * | 2017-12-28 | 2021-03-26 | 深圳市博实结科技有限公司 | Data interaction optimization method and device, server and storage medium |
CN107944059A (en) * | 2017-12-29 | 2018-04-20 | 深圳市中润四方信息技术有限公司西安分公司 | A kind of user behavior analysis method and system based on stream calculation |
-
2018
- 2018-11-30 CN CN201811460143.5A patent/CN109683494B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101848237A (en) * | 2010-05-10 | 2010-09-29 | 秦野 | Intelligent household information system of internet of things |
CN106127379A (en) * | 2016-06-22 | 2016-11-16 | 中智城信息科技(苏州)有限公司 | A kind of based on lamp networked sensor group with the smart city construction method of cloud computing |
CN106453368A (en) * | 2016-10-27 | 2017-02-22 | 深圳市欧瑞博电子有限公司 | Control method and apparatus of intelligent device |
Also Published As
Publication number | Publication date |
---|---|
CN109683494A (en) | 2019-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109683494B (en) | Internet of things equipment linkage control system | |
Lai et al. | Fedscale: Benchmarking model and system performance of federated learning at scale | |
Yang et al. | Implementation of an intelligent indoor environmental monitoring and management system in cloud | |
CN106980669B (en) | Data storage and acquisition method and device | |
CN110716910B (en) | Log management method, device, equipment and storage medium | |
CN108809972B (en) | Internet of things comprehensive experiment and application development platform based on open source ecosystem | |
CN110740546B (en) | Night illumination sensing system based on intelligent Internet of things | |
CN108039959B (en) | Data situation perception method, system and related device | |
Yamamoto et al. | Using cloud technologies for large-scale house data in smart city | |
CN110007913A (en) | Visual flow chart of data processing setting method, device, equipment and storage medium | |
CN103984755A (en) | Multidimensional model based oil and gas resource data key system implementation method and system | |
CN108021809A (en) | A kind of data processing method and system | |
CN104301671B (en) | Traffic Surveillance Video storage method based on event closeness in HDFS | |
DE102017213160A1 (en) | Compilation for node device GPU-based parallel processing | |
CN113674135A (en) | Calculation method for realizing CALPUFF high performance based on workflow | |
CN103390018A (en) | Web service data modeling and searching method based on SDD (service data description) | |
Kong et al. | A novel design and application of spatial data management platform for natural resources | |
Okhovat et al. | Monitoring the Smart City Sensor Data Using Thingsboard and Node-Red | |
CN104572118A (en) | Big data platform constructing method based on S-PLUS | |
Badidi et al. | Towards a Platform for Urban Data Management, Integration and Processing. | |
Hu et al. | 5G‐Oriented IoT Big Data Analysis Method System | |
Balbo et al. | A public platform for geospatial data sharing for disaster risk management | |
Pathy et al. | IoT Enabled Smart Connected Homes and Its Social Graces | |
CN113204534A (en) | SCADA measurement data acquisition and storage method and system based on stream calculation | |
Lee et al. | In‐place query driven big data platform: Applications to post processing of environmental monitoring |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: IoT device linkage control system Granted publication date: 20200908 Pledgee: China Construction Bank Corporation Shanghai Putuo Branch Pledgor: SHANGHAI WULING SHENGTONG INFORMATION TECHNOLOGY Co.,Ltd. Registration number: Y2024310001090 |