Intelligent environment management and control system

By introducing a smart environment control system into the Internet of Things system, the problems of incompatibility of communication protocols, data security risks, inflexible data storage and insufficient business monitoring have been solved, and the system compatibility, security, storage management and abnormal monitoring have been improved.

CN120223737APending Publication Date: 2025-06-27BEIJING INFORMATION TECH COLLEGE
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510392912.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

In existing IoT systems, the communication protocols used by different hardware devices are not exactly the same, resulting in poor system compatibility; the lack of effective data encryption and parsing mechanisms poses data security risks; the data storage structure is not flexible enough, making it difficult to adapt to changes in different business needs; the lack of effective business status monitoring and warning mechanisms affects the reliability and user experience of the system.

Method used

Provides a smart environment management and control system, including the device layer, the gateway layer and the cloud platform. The device layer is used to monitor the environment and output monitoring data. The gateway layer analyzes and encrypts data from different protocols through interface modules, analysis modules, configuration modules and communication modules, and converts it into a fixed communication protocol. The gateway layer sends the encrypted data to the cloud platform. The cloud platform includes a communication module, analytical module, a storage module, a data processing module and a warning module, which are used to receive and decode data, store, process and remind abnormal situations.

Benefits of technology

It realizes compatibility with multiple communication protocols, improves the security of data transmission, realizes efficient storage and flexible management of data, promptly monitors and reminds of abnormal status, and improves the reliability and user experience of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120223737A_ABST
    Figure CN120223737A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent environment management and control system which comprises an equipment layer, a gateway layer and a cloud platform. The device layer comprises a plurality of hardware devices using different communication protocols; the gateway layer comprises an interface module, a first analysis module, a configuration module and a first communication module and is used for receiving monitoring data, analyzing and encrypting the monitoring data and then sending the monitoring data to the cloud platform; and the cloud platform comprises a second communication module, a second analysis module, a storage module, a data processing module and a warning module, and is used for receiving, decoding and storing the monitoring data and carrying out service processing. The system adopts a mirror image encryption strategy, converts different types of parameters into binary systems, enables the parameters to be equal in length through a filling strategy, randomly combines type numbers to generate a number sequence, determines insertion intervals of the equal-length parameters according to the number sequence, fuses all the equal-length parameters to generate a parameter sequence, and generates a data message through an encryption algorithm. According to the invention, the compatibility problem of multiple communication protocols in the Internet of Things system is solved, and the security of data transmission and the flexibility of the system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an Internet of Things system, and more particularly to an intelligent environment control system. Background Art

[0002] The intelligent environment includes an intelligent environmental protection platform, which is an important part of the construction of the intelligent environment. It includes multiple subsystems such as an environmental monitoring and control system, an environmental comprehensive business collaboration system, and a decision support system, etc., and can completely cover all aspects of environmental management business and meet the application requirements of environmental management business.

[0003] With the rapid development of Internet of Things technology, Internet of Things systems have been widely applied in multiple fields such as industry, agriculture, medical care, and intelligent environment. An Internet of Things system usually consists of a perception layer, a network layer, and an application layer. Among them, the perception layer is responsible for data collection, the network layer is responsible for data transmission, and the application layer is responsible for data processing and application services. In an Internet of Things system, as a key node connecting the perception layer and the application layer, the gateway undertakes important functions such as protocol conversion, data processing, and security guarantee.

[0004] Currently, there are a wide variety of Internet of Things devices, and different devices adopt different communication protocols. For example, CN109150703A discloses an industrial Internet of Things intelligent cloud gateway and its communication method. The gateway includes a data collection module for acquiring industrial data collected by network devices in a heterogeneous network; a protocol parsing and conversion module for parsing the protocol of the industrial data and converting industrial data with different communication protocols into OPC UA standard data, and further converting the OPC UA standard data into MQTT protocol data; a cloud transmission module for sending the MQTT protocol data to a cloud platform [1]. This solution realizes the cloud service of industrial data with different protocols through a single gateway and provides a device access solution for different networks.

[0005] CN113873512A discloses an Internet of Things edge gateway security architecture system, including a service function module and a security system module. The service function module includes a parsing and encapsulation module for communication protocols, an operation and storage module for data, a data encapsulation and parsing module, a model training and application module, and a terminal device management module; the security system module includes a flow control policy module, an identity authentication module, a communication supervision, and a data encryption module [2][3]. This solution can comprehensively prevent and defend against terminal attacks, gateway anti-counterfeiting, and security risks in the communication process and data.

[0006] CN118101709A proposes a community Internet of Things system based on a unified Internet of Things perception protocol module. The system includes a community Internet of Things device layer, an Internet of Things perception layer, and a community open platform layer, and realizes data interaction of different devices through encapsulation of the unified Internet of Things perception protocol module [4]. CN110611610A discloses an embedded Internet of Things energy gateway and an Internet of Things system. As a relay unit of distributed intelligent terminals, the gateway encrypts and protects the messages sent to the cloud platform by calling the OPENSSL open-source library to ensure data security [5].

[0007] However, the existing Internet of Things systems still have the following problems:

[0008] First, in the existing Internet of Things systems, the communication protocols used by different hardware devices are not completely the same, resulting in poor system compatibility. Although some systems provide protocol conversion functions, they usually only support a limited number of protocols, making it difficult to achieve unified access and management of multiple devices. When new device types need to be accessed, it is often necessary to re-develop adaptation programs, increasing the complexity of system maintenance and expansion, resulting in insufficient data sharing and business collaboration between systems and affecting the overall efficiency.

[0009] Second, there are deficiencies in the data encryption and parsing mechanisms of the existing systems. Most systems use a single encryption algorithm or a fixed encryption strategy. Once the encryption method is cracked, the data security of the entire system will face a serious threat. At the same time, there is a lack of a flexible data parsing mechanism, making it difficult to handle complex and changing data formats and structures.

[0010] Third, the data storage structure of the existing systems is not flexible enough. Usually, a fixed data table structure is adopted, making it difficult to adapt to changes in different business requirements. When business requirements change, it is often necessary to modify the database structure, which not only increases the workload of system maintenance but also may lead to system instability.

[0011] Fourth, the existing systems lack an effective business status monitoring and warning mechanism, unable to detect and handle abnormal situations in a timely manner, affecting the reliability of the system and the user experience.

[0012] Therefore, there is an urgent need for an Internet of Things system that can be compatible with multiple communication protocols, has an efficient data encryption and parsing mechanism, a flexible data storage structure, and a perfect business monitoring and warning function to solve the above problems. Summary of the Invention

[0013] To solve the technical problems in the existing Internet of Things systems, such as poor system compatibility due to the incomplete identity of communication protocols used by different hardware devices, potential data security risks due to the lack of effective data encryption and parsing mechanisms, and inflexible data storage structures that are difficult to adapt to changes in different business requirements, and to achieve the technical effects of being compatible with multiple communication protocols, improving the security of data transmission, achieving efficient data storage and flexible management, and timely monitoring and alerting of abnormal states, the present invention provides an intelligent environment control system.

[0014] The technical solution adopted by the present invention to solve its technical problems is: providing an intelligent environment control system, including a device layer for monitoring the environment and outputting monitoring data, a gateway layer for parsing the monitoring data and converting it into a fixed communication protocol, and a cloud platform for storing and processing the monitoring data;

[0015] The device layer includes several hardware devices, and the communication protocols used by the hardware devices are not completely the same, which are used for monitoring the environment and outputting monitoring data;

[0016] The gateway layer includes an interface module, a first parsing module, a configuration module, and a first communication module. Among them, the interface module is used to receive the monitoring data, the first parsing module is used to parse the monitoring data and encrypt and output it, the protocol configuration module is used to configure the communication protocol program, and the first communication module is used to send the encrypted communication data to the cloud platform;

[0017] The cloud platform includes a second communication module, a second parsing module, a storage module, a data processing module, and an alert module. The second communication module is used to receive the encrypted monitoring data, the second parsing module is used to decode the monitoring data, the storage module is used to uniformly store the monitoring data, the data processing module is used to determine each business state based on the monitoring data, and the alert module is used to timely alert the user side based on the business state.

[0018] Furthermore, the first parsing module includes an image encryption strategy: receiving the parsed monitoring data, where the monitoring data includes several category parameters and obtaining the category numbers of the category parameters; converting the category parameters into binary to generate binary parameters, and supplementing the binary parameters through a filling strategy to make the byte lengths of all binary parameters equal to generate equal-length parameters; randomly combining the category numbers to generate a number sequence, determining an interval sequence of the insertion intervals of each sub-section within the equal-length parameters according to the number sequence, so as to fuse all the equal-length parameters to generate a parameter sequence, encrypting the number sequence and the interval sequence through a first encryption algorithm to generate a first key, obtaining the parameter sequence and the corresponding first key to generate a total sequence, encrypting the total sequence through a second encryption algorithm, and presetting a communication protocol to package the total sequence data packet.

[0019] Further, the padding strategy includes: setting a padding number and a corresponding padding category, obtaining the sub-section length of the binary parameter, padding the padding number at the head end of the binary parameter according to the byte length, and padding the binary parameter according to the padding category.

[0020] Further, the padding category includes end padding bytes and interval padding bytes, and the padded sub-section includes inserting a single byte or inserting multiple bytes.

[0021] Further, key numbers are respectively provided at the front end and the back end of the first key, so that the first key is inserted into a random position of the parameter sequence to generate a total sequence.

[0022] Further, the interface module includes a plurality of communication interfaces, and the protocol configuration module communicates with the user-side data. The communication protocol program is manually configured by the user side, and the corresponding relationship between the communication protocol program and the communication interface is manually set.

[0023] Further, the storage module includes a main table, a sub-table, a secondary table, and a service list. The sub-table is respectively a foreign key of the main table and the secondary table, and the secondary table is a foreign key of the item list; the main table records several category parameters of a single device, and the format version of the main table is updated to generate several sub-tables that only record a single category parameter in the main table. The secondary table only records the names of several sub-tables in the directory row, and the item list records the corresponding secondary table names of the service items.

[0024] Further, the storage module includes a coding table for recording the corresponding relationship between the category number and the data category, the corresponding relationship between the padding number and the padding category, and the key number, so that the second parsing module can identify the first key, extract the equal-length parameters, and remove the padding bytes in the equal-length parameters.

[0025] Further, the service items in the item list can be manually updated.

[0026] Further, the directory row of the sub-table includes the category parameter name and the generation time.

[0027] The beneficial effects of the present invention are as follows:

[0028] 1. Through the protocol configuration module of the gateway layer, the compatibility of multiple communication protocols is realized, so that hardware devices or systems with different communication protocols can be uniformly accessed, solving the problem of poor system compatibility caused by the incomplete identity of the communication protocols used between different hardware devices or systems in the existing Internet of Things system, improving data sharing, and facilitating in-depth mining of data;

[0029] 2. Through the mirror encryption strategy, including steps such as binary conversion, padding strategy, random combination of category numbers, and encryption algorithms, the security of data transmission is improved, effectively preventing data from being illegally obtained and tampered with, and solving the data security risks existing in the lack of effective data encryption and parsing mechanisms in the existing system;

[0030] 3. Through the design of a specific storage structure (main table, sub-table, secondary table, and business list), the efficient storage and flexible management of data are realized, which can adapt to the changes in different business requirements and solve the problem of the inflexible data storage structure in the existing system;

[0031] 4. Through the warning module, the timely monitoring and reminder of abnormal states are realized, the abnormal information of environmental parameters and equipment is linked for warning, and the on-site situation is notified to relevant personnel in a timely manner by taking pictures or voice, improving the reliability and user experience of the system and further enhancing the practicality of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The drawings are used to provide a further understanding of the present invention and constitute a part of the specification. They are used together with the embodiments of the present invention to explain the present invention and do not constitute a limitation to the present invention. In the drawings:

[0033] Figure 1 is a structural diagram of an intelligent environment control system of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0034] The technical solutions in the specific embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described specific embodiments are only a specific embodiment of the present invention, rather than all specific embodiments. All other specific embodiments obtained by those of ordinary skill in the art without creative efforts based on the specific embodiments of the present invention belong to the scope of protection of the present invention.

[0035] Embodiment 1

[0036] An intelligent environment control system, as Figure 1 shown, includes a device layer for monitoring the environment and outputting monitoring data, a gateway layer for parsing the monitoring data and converting it into a fixed communication protocol, and a cloud platform for storing and processing the monitoring data.

[0037] The device layer includes several hardware devices (or systems), and the communication protocols used by these hardware devices are not exactly the same. In this embodiment, the device layer includes various environmental monitoring devices such as temperature sensors, humidity sensors, gas sensors, light sensors, infrared sensors, and smoke sensors. These devices adopt different communication protocols respectively. For example, the temperature sensor adopts the Modbus protocol, the humidity sensor adopts the MQTT protocol, the gas sensor adopts the CoAP protocol, the light sensor adopts the HTTP protocol, the infrared sensor adopts the BLE protocol, and the smoke sensor adopts the Zigbee protocol. These devices are connected to the gateway layer by wired or wireless means and transmit the collected environmental data to the gateway layer.

[0038] The gateway layer includes an interface module, a first parsing module, a configuration module, and a first communication module. The interface module is used to receive monitoring data. The first parsing module is used to parse the monitoring data and output it after encryption. The protocol configuration module is used to configure the communication protocol program. The first communication module is used to send the encrypted communication data to the cloud platform.

[0039] The interface module includes various communication interfaces such as RS485 interface, RS232 interface, Ethernet interface, WiFi interface, Bluetooth interface, and Zigbee interface, and is used to receive monitoring data sent by devices with different communication protocols. The interface module transmits the received data to the first parsing module.

[0040] The first parsing module calls the corresponding parsing program to parse the data according to the communication protocol type of the data, and extracts the effective monitoring data. The first parsing module is also responsible for encrypting the parsed data to ensure the security of data transmission.

[0041] The configuration module is used to configure the communication protocol program, including the protocol parsing program and the protocol encapsulation program. The configuration module can automatically or manually configure the corresponding protocol parsing program according to the communication protocol type of the access device to achieve the parsing of data with different protocols. The configuration module can also configure a unified protocol encapsulation program according to the requirements of the cloud platform to convert the data with different protocols into a unified communication protocol format.

[0042] The first communication module is used to send the encrypted communication data to the cloud platform. The first communication module supports various communication methods, including wired communication and wireless communication, and can select the appropriate communication method according to actual needs.

[0043] The cloud platform includes a second communication module, a second parsing module, a storage module, a data processing module, and a warning module. The second communication module is used to receive the encrypted monitoring data. The second parsing module is used to decode the monitoring data. The storage module is used to uniformly store the monitoring data. The data processing module is used to determine the status of each service based on the monitoring data. The warning module is used to timely remind the user side according to the service status.

[0044] The second communication module of the cloud platform is responsible for receiving the encrypted data sent by the gateway layer and transmitting the data to the second parsing module. The second parsing module decrypts and parses the encrypted data to restore the original monitoring data. The storage module uniformly stores the parsed monitoring data in the database for subsequent data processing and analysis. The data processing module determines the operating status of each service based on the stored monitoring data through data analysis algorithms, such as whether the environment is normal and whether the equipment is faulty. The warning module, based on the service status determined by the data processing module, when an abnormal situation is detected, conducts a linkage warning for the environmental monitoring data and the abnormal information of the equipment, and promptly notifies relevant personnel of the on-site situation by taking pictures or voice, and sends an alarm message to the user side in a timely manner to remind the user to take corresponding measures.

[0045] Embodiment 2

[0046] Based on Embodiment 1, the first parsing module in this embodiment includes an image encryption strategy: receiving the parsed monitoring data, where the monitoring data includes several category parameters and obtaining the category numbers of the category parameters. Converting the category parameters into binary to generate binary parameters, and supplementing the binary parameters through a padding strategy to make the byte lengths of all binary parameters equal to generate equal-length parameters. Randomly combining the category numbers to generate a number sequence, determining an interval sequence of the insertion intervals of each sub-section within the equal-length parameters according to the number sequence, so as to fuse all the equal-length parameters to generate a parameter sequence, encrypting the number sequence and the interval sequence through a first encryption algorithm to generate a parsing key. Obtaining the parameter sequence and the corresponding first key to generate a total sequence, encrypting the total sequence through a second encryption algorithm, and packaging the total sequence data packet with a preset communication protocol.

[0047] Specifically, the first parsing module first receives the monitoring data transmitted from the device layer, and these monitoring data include various category parameters such as temperature parameters, humidity parameters, gas concentration parameters, and light intensity parameters. The first parsing module assigns a unique category number to each category of parameter. For example, the category number of the temperature parameter is 01, the category number of the humidity parameter is 02, the category number of the gas concentration parameter is 03, and the category number of the light intensity parameter is 04.

[0048] The first parsing module converts each category of parameter into a binary format to generate binary parameters. Since the binary lengths of different category parameters may be different, the first parsing module supplements the binary parameters through a padding strategy to make the byte lengths of all binary parameters equal, generating equal-length parameters.

[0049] The first parsing module randomly combines category numbers to generate a number sequence. For example, a number sequence "01030204" can be generated, indicating the combination order of temperature parameter, gas concentration parameter, humidity parameter, and light intensity parameter. According to the number sequence, the first parsing module determines the insertion interval of each sub-section within the equal-length parameter to generate an interval sequence. For example, the interval sequence can be "0123", indicating that for the equal-length parameter numbered 01, the insertion interval of each byte is 0; for the equal-length parameter numbered 03, based on the equal-length parameter 01, the insertion interval of each byte is 0, and so on. For example: the equal-length parameter of 01 is 0000000000000, the equal-length parameter of 03 is 111111111111, insert the equal-length parameter of 03 into 01, and output 010101010101010101010101, then insert the equal-length parameter of 02 into the combined parameter of 01+03, and insert the equal-length parameter of 04 into the combined parameter of 01+03+02. The number sequence can be randomly arranged, and the interval sequence needs to conform to the insertion interval value. For example, for the first equal-length parameter, its interval value can only be 0, for the second equal-length parameter, its interval value can be 0 or 1, for the third equal-length parameter, its interval value can be 0, 1 or 2, and so on.

[0050] The first parsing module combines all the equal-length parameters together according to the number sequence and the interval sequence to generate a parameter sequence. Then, the first parsing module uses the first encryption algorithm (such as the AES encryption algorithm) to encrypt the number sequence and the interval sequence to generate the first key.

[0051] The first parsing module combines the parameter sequence and the corresponding first key together to generate a total sequence. Then, use the second encryption algorithm (such as the RSA encryption algorithm) to encrypt the total sequence, and finally package the encrypted total sequence into a data message according to the preset communication protocol (such as the MQTT protocol) and send it to the cloud platform through the first communication module.

[0052] Example 3

[0053] Based on Example 2, the filling strategy in this example includes: setting a filling number and the corresponding filling category, obtaining the sub-section length of the binary parameter, filling the filling number at the head end of the binary parameter according to the byte length, and filling the binary parameter according to the filling category.

[0054] Specifically, the first parsing module first sets the padding number and the corresponding padding category. For example, padding number 01 corresponds to padding with 0s at the end, and padding number 02 corresponds to padding with 1s every other byte. Different padding numbers 01 correspond to different padding methods. The padding number 01 is matched according to the sub - byte length of the binary parameter, so that all binary parameter sub - bytes are of equal length. The first parsing module obtains the sub - byte length of the binary parameter. For example, the binary length of the temperature parameter is 16 bits (2 bytes), and the binary length of the humidity parameter is 24 bits (3 bytes).

[0055] The first parsing module inserts the padding number at the head end of the binary parameter according to the byte length. For example, for the temperature parameter, the padding number 01 is inserted at the head end of its binary data, indicating that the end - padding - byte method is used for this parameter; for the humidity parameter, the padding number 02 is inserted at the head end of its binary data, indicating that the interval - padding - byte method is used for this parameter.

[0056] Through this padding strategy, the first parsing module can convert binary parameters of different lengths into equal - length parameters, facilitating subsequent data processing and encryption.

[0057] Example 4

[0058] Based on Example 3, the padding categories in this example include end - padding bytes and interval - padding bytes, and the padded sub - bytes include inserting a single byte or inserting multiple bytes.

[0059] Specifically, the first parsing module supports two padding categories: end - padding bytes and interval - padding bytes. End - padding bytes means adding padding bytes at the end of the binary parameter to make its length reach the preset length. Interval - padding bytes means inserting padding bytes at specific interval positions in the binary parameter to make its length reach the preset length.

[0060] For the padded sub - bytes, the first parsing module supports two methods: inserting a single byte or inserting multiple bytes. Inserting a single byte means inserting only one byte for each padding operation; inserting multiple bytes means inserting multiple consecutive bytes for each padding operation.

[0061] For example, for the temperature parameter, if its binary length is 16 bits (2 bytes) and the preset length is 32 bits (4 bytes), the first parsing module can use the end - padding - byte method, add the padding number 0001 (two bits correspond to one value, so it corresponds to number 01) occupying four bits at the head end, and add 12 0s at the end to make its length reach 4 bytes.

[0062] For the humidity parameter, if its binary length is 48 bits (6 bytes) while the preset length is 64 bits (8 bytes), the first parsing module can use the method of interval padding bytes. Add a padding number 0010 (two bits correspond to one value, so it corresponds to the number 02) occupying four bits at the head end, and then insert 2 ones every 8 bits (1 byte), inserting a total of 12 bits to make its length reach 64 bits (8 bytes).

[0063] By supporting different padding categories and padding methods, the first parsing module can flexibly process binary parameters of different lengths, improving the efficiency and security of data processing.

[0064] Example 5

[0065] Based on Example 2, in this example, key numbers are respectively provided at the front end and the back end of the first key so that the first key can be inserted into a random position of the parameter sequence and a total sequence can be generated.

[0066] Specifically, the first parsing module respectively sets key numbers for the front end and the back end of the first key. For example, the key number "START_KEY" is set at the front end of the first key, and the key number "END_KEY" is set at the back end. These key numbers are used to identify the start position and the end position of the first key in the parameter sequence.

[0067] When generating the total sequence, the first parsing module inserts the first key with key numbers into a random position of the parameter sequence. For example, the first key can be inserted into the middle position of the parameter sequence to form a structure of "the first half of the parameter sequence + START_KEY + the first key + END_KEY + the second half of the parameter sequence".

[0068] By setting key numbers at the front end and the back end of the first key, the second parsing module can accurately locate the position of the first key in the total sequence, facilitating subsequent decryption operations. At the same time, since the position where the first key is inserted is random, the security of the data is increased, making it difficult for unauthorized users to crack the data.

[0069] Example 6

[0070] Based on Example 1, in this example, the interface module includes several communication interfaces. The protocol configuration module communicates with the user terminal data, and manually configures the communication protocol program through the user terminal and manually sets the corresponding relationship between the communication protocol program and the communication interfaces.

[0071] Specifically, the interface module includes various communication interfaces such as RS485 interface, RS232 interface, Ethernet interface, WiFi interface, Bluetooth interface, Zigbee interface, etc., for receiving monitoring data sent by devices with different communication protocols.

[0072] The protocol configuration module establishes a data connection with the client. Users can access the protocol configuration module through the client (such as a PC, mobile phone APP, etc.) to manually configure the communication protocol program. Users can select the communication protocols they need to support according to actual requirements, such as the Modbus protocol, MQTT protocol, CoAP protocol, HTTP protocol, BLE protocol, Zigbee protocol, etc., and upload or configure the corresponding protocol parsing programs.

[0073] Users can also manually set the correspondence between the communication protocol program and the communication interface through the client. For example, it can be set that the Modbus protocol corresponds to the RS485 interface, the MQTT protocol corresponds to the Ethernet interface, the CoAP protocol corresponds to the WiFi interface, the HTTP protocol corresponds to the Ethernet interface, the BLE protocol corresponds to the Bluetooth interface, and the Zigbee protocol corresponds to the Zigbee interface.

[0074] By manually configuring the communication protocol program through the client and setting the correspondence between the communication protocol program and the communication interface, the system can flexibly adapt to different application scenarios and device requirements, improving the compatibility and scalability of the system.

[0075] Embodiment 7

[0076] Based on Embodiment 1, the storage module in this embodiment includes a main table, sub-tables, a secondary table, and a service list. The sub-tables are foreign keys of the main table and the secondary table respectively, and the secondary table is a foreign key of the matter list. The main table records several category parameters of a single device. Update the format version of the main table to generate several sub-tables that only record a single category parameter in the main table. The secondary table only records the names of several sub-tables in the directory row, and the matter list records the names of the secondary tables corresponding to business matters.

[0077] Specifically, the storage module adopts a relational database structure, including four table structures: a main table, sub-tables, a secondary table, and a service list. The main table is used to record all category parameters of a single device, such as device ID, device type, device name, device location, temperature parameter, humidity parameter, gas concentration parameter, light intensity parameter, etc.

[0078] The storage module generates several sub-tables according to the format version of the main table. Each sub-table only records a single category parameter in the main table. For example, Temperature Sub-table 1 only records the device ID and temperature parameter, Humidity Sub-table 1 only records the device ID and humidity parameter, Gas Concentration Sub-table 1 only records the device ID and gas concentration parameter, and Light Intensity Sub-table 1 only records the device ID and light intensity parameter. These sub-tables are used as foreign keys of the main table and the secondary table respectively to establish the association relationship between the tables.

[0079] The secondary table only records the names of several sub-tables in the directory row, such as "Temperature Sub-table 1", "Humidity Sub-table 1", "Gas Concentration Sub-table 1", "Light Intensity Sub-table 1", etc. The secondary table, as a foreign key of the matter list, establishes an association relationship with business matters.

[0080] The business list records the names of the secondary tables corresponding to business matters. For example, "Environmental Monitoring" corresponds to "Temperature Sub-table 1" and "Humidity Sub-table 1", and "Safety Monitoring" corresponds to "Gas Concentration Sub-table 1" and "Light Intensity Sub-table 1", etc. Through this table structure design, the storage module can efficiently organize and manage monitoring data, facilitating data query and analysis.

[0081] Example 8

[0082] Based on Example 1, the storage module in this example includes a coding table for recording the correspondence between category numbers and data categories, the correspondence between padding numbers and padding categories, and key numbers, so that the second parsing module can identify the first key, extract equal-length parameters, and remove the padding data within the equal-length parameters.

[0083] Specifically, the storage module includes a coding table for recording the correspondence between category numbers and data categories, the correspondence between padding numbers and padding categories, and key numbers. For example, the coding table records that the category number of temperature parameters is 01, the category number of humidity parameters is 02, the category number of gas concentration parameters is 03, and the category number of light intensity parameters is 04; padding number 01 corresponds to end padding bytes, and padding number 02 corresponds to interval padding bytes; the key numbers include "START_KEY" and "END_KEY".

[0084] Both the first encryption algorithm and the first encryption algorithm are mirror encryptions, so the cloud platform side can directly decode. After the second parsing module decodes the total sequence, it determines the position of the first key through the key number and extracts the first key. Then it decodes the first key to determine the number sequence and interval sequence, and extracts equal-length parameters from the parameter sequence according to the number sequence and interval sequence.

[0085] Next, the second parsing module identifies the padding category of each equal-length parameter according to the correspondence between the padding number and the padding category, removes the padding bytes within the equal-length parameter, and restores the original binary parameter. Finally, according to the correspondence between the category number and the data category, it converts the binary parameter into the corresponding data category parameter to complete the parsing of the data.

[0086] Through the design of the coding table, the second parsing module can accurately parse the encrypted data, restore the original monitoring data, and ensure the integrity and accuracy of the data.

[0087] Example 9

[0088] Based on Embodiment 7, the business items in the item list in this embodiment can be manually updated.

[0089] Specifically, users can access the storage module through a user terminal (such as a PC, mobile phone APP, etc.) to manually update the business items in the item list. Users can add new business items, such as "energy consumption monitoring", "equipment maintenance", etc., and set the corresponding sub-table names for these business items.

[0090] Users can also modify the attributes of existing business items. For example, modify the corresponding sub-table name of "environmental monitoring" and add "infrared sub-table", "smoke sub-table", etc. Users can also delete business items that are no longer needed, such as deleting the "security monitoring" business item.

[0091] By supporting the manual update of business items, the system can flexibly adapt to different business needs, facilitate in-depth data mining, and improve the customizability and scalability of the system.

[0092] Embodiment 10

[0093] Based on Embodiment 7, the directory row of the sub-table in this embodiment includes the category parameter name and the generation time.

[0094] Specifically, the directory row of the sub-table includes not only the category parameter name, such as "temperature", "humidity", "gas concentration", "light intensity", etc., but also the generation time of the sub-table, such as "2023-01-01 12:00:00", "2023-01-02 12:00:00", etc.

[0095] By including the category parameter name and the generation time in the directory row of the sub-table, the system can more conveniently manage and query the sub-tables. Especially when there are multiple versions of the sub-tables, different versions of the sub-tables can be distinguished according to the generation time, which is convenient for data tracking and analysis.

[0096] It should be noted that Embodiment 1, Embodiment 2, Embodiment 3, Embodiment 4, Embodiment 5, Embodiment 6, Embodiment 7, Embodiment 8, Embodiment 9, and Embodiment 10 are all types of an intelligent environment control system.

[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A smart environment management and control system, characterized in that: It includes a device layer for monitoring the environment and outputting monitoring data, a gateway layer for parsing monitoring data and converting it into a fixed communication protocol, and a cloud platform for storing and processing monitoring data; The device layer includes a number of hardware devices, and the communication protocols used by the hardware devices are not exactly the same; The gateway layer includes an interface module, a first parsing module, a configuration module and a first communication module, wherein the interface module is used to receive monitoring data, the first parsing module is used to parse the monitoring data and encrypt and output it, the protocol configuration module is used to configure the communication protocol program, and the first communication module is used to send the encrypted communication data to the cloud platform; The cloud platform includes a second communication module, a second parsing module, a storage module, a data processing module and an alarm module. The second communication module is used to receive encrypted monitoring data, the second parsing module is used to decode the monitoring data, the storage module is used to uniformly store the monitoring data, the data processing module is used to determine the status of each business based on the monitoring data, and the alarm module is used to promptly remind the user terminal based on the business status.

2. The intelligent environment management and control system according to claim 1, characterized in that: The first parsing module includes a mirror encryption strategy: receiving parsed monitoring data, the monitoring data including a number of category parameters, and obtaining category numbers of the category parameters; Binary conversion of category parameters to generate binary parameters, and padding of the binary parameters by a padding strategy to make the bytes of all binary parameters equal in length to generate equal-length parameters; Randomly combine the category numbers to generate a number sequence, determine the interval sequence of the insertion interval of each sub-node in the equal-length parameters according to the number sequence, merge all the equal-length parameters to generate a parameter sequence, and encrypt the number sequence and the interval sequence by a first encryption algorithm to generate a first key; A parameter sequence and a corresponding first key are obtained to generate a total sequence, the total sequence is encrypted by a second encryption algorithm, and the total sequence data message is packaged by a preset communication protocol.

3. The intelligent environment management and control system according to claim 2, characterized in that: The filling strategy includes: setting a filling number and a corresponding filling category, obtaining the sub-section length of the binary parameter, adding the filling number at the head of the binary parameter according to the byte length, and filling the binary parameter according to the filling category.

4. The intelligent environment management and control system according to claim 3, characterized in that: The padding categories include end padding bytes and interval padding bytes, and the padding subsections include inserting a single byte or inserting multiple bytes.

5. The intelligent environment management and control system according to claim 2, characterized in that: The front end and the rear end of the first key are respectively provided with key numbers so that the first key is inserted into a random position of the parameter sequence and generates a total sequence.

6. The intelligent environment management and control system according to claim 1, characterized in that: The interface module includes several communication interfaces, and the protocol configuration module communicates with the user end data. The user end manually configures the communication protocol program and manually sets the corresponding relationship between the communication protocol program and the communication interface.

7. The intelligent environment management and control system according to claim 1, characterized in that: The storage module includes a main table, a sub-table, a subsidiary table and a business list, the sub-tables are foreign keys of the main table and the subsidiary table respectively, and the subsidiary table is a foreign key of the matter list; The main table records several category parameters of a single device, and the format version of the main table is updated to generate several sub-tables that only record single category parameters in the main table. The sub-table only has directory lines that record the names of several sub-tables, and the item list records the names of the sub-tables corresponding to the business items.

8. The intelligent environment management and control system according to claim 1, characterized in that: The storage module includes a coding table for recording the correspondence between category numbers and data categories, the correspondence between padding numbers and padding categories, and key numbers, so that the second parsing module can identify the first key, extract equal-length parameters, and remove padding bytes in the equal-length parameters.

9. The intelligent environment management and control system according to claim 7, characterized in that: The business items in the item list can be manually updated.

10. The intelligent environment management and control system according to claim 7, characterized in that: The directory row of the subtable includes the category parameter name and generation time.

Citation Information

Patent Citations

  • Intelligent cloud gateway of industrial IoT (Internet of Things) and communication method of gateway

    CN109150703A

  • Embedded Internet-of-things energy gateway and Internet-of-things system

    CN110611610A

  • Internet of Things edge gateway security architecture system

    CN113873512A

  • Community Internet of Things system and processing method based on unified Internet of Things sensing protocol module

    CN118101709A