A smart home control system based on edge computing
By using edge computing technology in smart homes, environmental information data is collected in real time and stored locally, which solves data leakage and security issues caused by cloud storage and improves user experience.
Patent Information
- Application Number
- CN202211004370.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-22
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-08-22
AI Technical Summary
Storing smart home data in the cloud can easily lead to data leakage and security and privacy issues. Users are unwilling to upload home video data, which affects the user experience.
A smart home control system based on edge computing is used to collect environmental information data in real time through IoT sensors. The edge computing module processes and stores it in the home internal gateway. The control module adjusts the device according to preset parameters to ensure that the data is stored locally and enhances privacy. and security.
It effectively reduces the possibility of data leakage, improves data privacy and security, and improves user experience.
Smart Images

Figure CN115469557B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of edge computing technology, and in particular relates to a smart home control system based on edge computing. Background Art
[0002] Smart home uses residence as a platform and utilizes integrated wiring technology, network communication technology, security technology, automatic control technology, and audio and video technology to integrate facilities related to home life, build an efficient management system for residential facilities and family schedule affairs, improve home safety, convenience, comfort, and artistry, and achieve an environmentally friendly and energy-saving living environment.
[0003] In order to achieve better management results, a large number of IoT devices (such as cameras, temperature sensors, humidity sensors, etc.) are needed to monitor and control the internal state of the home in real time, receive external control commands and finally complete the regulation of the home environment to improve home safety, convenience and comfort. In the process of IoT devices monitoring the internal state of the home, a large amount of data will be generated, which requires sufficient space for storage. The current method of smart home data storage is generally to upload data to the cloud for storage and processing. Although it solves the problem of data storage, once the cloud is maliciously attacked, it will lead to the risk of data leakage. In addition, since home data has a certain degree of privacy, users are not always willing to upload data to the cloud for processing, especially some home internal video data, which affects the user experience. Summary of the invention
[0004] In view of this, the embodiment of the present invention provides a smart home control system based on edge computing, which is used to solve the existing smart home data storage method, data storage in the cloud is prone to leakage, data security and privacy are poor, etc. The present invention can store the environmental information data in the residence collected by the Internet of Things sensor in the home internal gateway, effectively improving the privacy and security of the data, and further enhancing the user experience.
[0005] The embodiment of the present invention provides a smart home control system based on edge computing, including:
[0006] A plurality of IoT sensors distributedly installed in the target residence are used to collect first environmental information data in the target residence in real time;
[0007] An edge computing module, connected to the IoT sensor, and configured to process the first environmental information data collected by the IoT sensor according to a preset data processing strategy to obtain second environmental information data;
[0008] A home internal gateway, connected to the edge computing module, and configured to restore the second environment information data sent by the edge computing module to the first environment information data and store the data;
[0009] A control module is connected to the home internal gateway and the smart home device in the target residence, and is used to adjust and control the working parameters of the target smart home device according to the preset environmental parameter indicators and the latest first environmental information data stored in the home internal gateway; wherein the target smart home device is a smart home device corresponding to the environmental information data whose current first environmental information data does not match the preset same environmental parameter indicators.
[0010] In an optional embodiment, the control module is also used to receive a user's environmental information query request, obtain the latest first environmental information data stored in the home internal gateway and provide it to the user; it is also used to receive a user's control instruction for a target smart home device, and control the target smart home device according to the requirements of the control instruction.
[0011] In an optional embodiment, the control module is also used to verify the user's identity information before receiving the user's environmental information query request or control instructions for the target smart home device, and authorize the use right to the current user after the verification is passed; wherein the use right includes at least: environmental information query authority for the target residence and control authority for smart home devices.
[0012] In an optional embodiment, the Internet of Things sensor includes at least one of a temperature sensor, a humidity sensor, a brightness sensor, a smoke sensor, a dust sensor, a harmful gas sensor, and a flammable and explosive gas sensor.
[0013] In an optional embodiment, the edge computing module is specifically used to encrypt the first environment information data according to a preset strategy to obtain the second environment information data;
[0014] The home internal gateway specifically decrypts the second environment information data sent by the edge computing module to restore it to the first environment information data.
[0015] In an optional embodiment, the edge computing module includes:
[0016] A receiving unit, configured to receive first environment information data in a target home sent by an IoT device;
[0017] A self-encryption unit, used for performing self-encryption processing on the first environment information data to obtain third environment information data after self-encryption processing;
[0018] The bit scrambling unit is used to perform bit scrambling processing on the third environment information data to obtain the second environment information data.
[0019] In an optional embodiment, the self-encryption unit is specifically used to perform self-encryption processing on the first environmental information data according to a first formula;
[0020] The bit scrambling unit is specifically used to perform bit scrambling processing on the third environment information data according to the second formula;
[0021] The home internal gateway is specifically used to reorganize and decrypt the received second environment information data according to the third formula, and restore the first environment information data for storage;
[0022] Among them, the first formula is:
[0023]
[0024] In the first formula, the D 16 'The third environment information data in hexadecimal after self-encryption, D 16 (a) represents the hexadecimal value at the ath position after the first environmental information data is initially encrypted; D 16 Indicated by D 16 (a) The new hexadecimal number composed of the corresponding hexadecimal values of each digit; d 16 (a) represents the hexadecimal value at the ath position in the first environmental information data; Indicates exclusive OR; represents rounding up; m represents the total number of digits of the first environment information data; [] 10 Indicates converting the value in the brackets to a decimal number; {} 16 Indicates converting the value in brackets to hexadecimal number;
[0025] The second formula is:
[0026]
[0027] In the second formula, D 16 "" represents the second environment information data in hexadecimal; >> represents the right shift symbol; << represents the left shift symbol; represents rounding down; N represents the length of the third environment information data;
[0028] The third formula is:
[0029]
[0030] In the third formula, d 16' represents the fourth environment information data in hexadecimal obtained by reorganizing the second environment information data; d 16 ″′(i) represents the first environment information data in hexadecimal format restored after decrypting the fourth environment data; len() represents the total number of bits of the data in the brackets; n represents the intermediate amount of the operation, and its value is len(D 16 ″).
[0031] In an optional embodiment, the control module is specifically used to send control instructions to the target smart home device through the edge computing module, or to send control instructions to the target smart home device by broadcasting in the target residence.
[0032] The present invention provides a smart home control system based on edge computing. First, the environmental information data in the residence is collected in real time through the Internet of Things sensor, and then the environmental information data is sent to the home internal gateway for storage through the edge computing module. Finally, the control module controls the smart home device according to the environmental information data stored in the home internal gateway. The present invention can store the environmental information data collected by the Internet of Things sensor in the home internal gateway, effectively improving the privacy and security of the data, and further enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 A schematic diagram of the structure of a smart home control system based on edge computing provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0035] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0036] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] Figure 1 A schematic diagram of the structure of a smart home control system based on edge computing provided by an embodiment of the present invention. Figure 1 The system comprises:
[0038] A plurality of Internet of Things sensors 1 distributedly installed in the target residence are used to collect first environmental information data in the target residence in real time.
[0039] In this embodiment, the IoT sensor 1 includes at least one of a temperature sensor, a humidity sensor, a brightness sensor, a smoke sensor, a dust sensor, a harmful gas sensor, and a flammable and explosive gas sensor. The data collected by the IoT sensor 1 can fully understand the environmental conditions in the residence, which is convenient for the subsequent control of the smart home device 5 according to the collected data, and provide users with a good home living environment.
[0040] The edge computing module 2 is connected to the IoT sensor 1 and is used to process the first environmental information data collected by the IoT sensor 1 according to a preset data processing strategy to obtain second environmental information data;
[0041] The home internal gateway 3 is connected to the edge computing module 2 and is used to restore the second environment information data sent by the edge computing module 2 to the first environment information data and store it;
[0042] The control module 4 is connected to the internal home gateway 3 and the smart home device 5 in the target residence, and is used to adjust and control the working parameters of the target smart home device 5 according to the preset environmental parameter indicators and the latest first environmental information data stored in the internal home gateway 3; wherein the target smart home device 5 is the smart home device 5 corresponding to the environmental information data whose current first environmental information data does not match the preset same environmental parameter indicators.
[0043] In this embodiment, the user of the target residence can pre-set the environmental parameter indicators of the target residence. For example, the pre-set environmental parameter indicators are: the target temperature is 26°C, and the air humidity is 40% to 80%. The temperature and humidity in the current residence are collected in real time through the temperature sensor and the air humidity sensor, and are processed into the second environmental information data by the edge computing module 2 and sent to the home internal gateway 3. The home internal gateway 3 restores the received data to the original temperature and humidity data storage collected by the temperature sensor and the air humidity sensor. The control module 4 obtains the temperature value and humidity value currently stored in the home internal gateway 3. For example, if the temperature value is 30°C and the air humidity is 70%, the control module 4 can determine that the temperature value does not meet the standard, and the control module 4 adjusts the air conditioner in the target residence to turn on or adjusts the cooling power of the air conditioner currently cooling.
[0044] The beneficial effects of the above technical solution are as follows: the embodiment of the present invention provides a smart home control system based on edge computing, firstly, the environmental information data in the residence is collected in real time through the Internet of Things sensor 1, then the environmental information data is sent to the home internal gateway 3 for storage through the edge computing module 2, and finally the control module 4 controls the smart home device 5 according to the environmental information data stored in the home internal gateway 3. The present invention can store the environmental information data collected by the Internet of Things sensor 1 in the home internal gateway 3, reduce the outflow of environmental information data in the residence, thereby reducing the possibility of data leakage, effectively improve the privacy and security of the data, and further enhance the user experience.
[0045] As an optional embodiment, the control module 4 is also used to receive a user's environmental information query request, obtain the latest first environmental information data stored in the home internal gateway 3 and provide it to the user; it is also used to receive a user's control instruction for the target smart home device 5, and control the target smart home device 5 according to the requirements of the control instruction.
[0046] The beneficial effects of the above technical solution are: the working parameters of the target smart home device 5 can be adjusted according to the environmental parameter indicators preset by the user and the environmental information data stored in the home internal gateway 3, thereby realizing automatic control of the smart home device 5; further, the user can manually control the smart home device 5 according to his or her own preferences and the environmental information data stored in the home internal gateway 3, thereby making the environment in the residence more comfortable and effectively improving the user's usage experience.
[0047] As an optional embodiment, the control module 4 is also used to verify the user's identity information before receiving the user's environmental information query request or the control instruction for the target smart home device 5, and authorize the use right to the current user after the verification; wherein the use right includes at least: environmental information query authority of the target residence and control authority of the smart home device 5.
[0048] The beneficial effects of the above technical solution are: the control module 4 first verifies the user's identity information (such as account name and password), and only after the verification is passed will the use right be authorized to the current user, thereby preventing illegal users from reading environmental information data and controlling smart home devices 5, and effectively improving the security of data and smart home devices 5.
[0049] As an optional embodiment, the edge computing module 2 is specifically used to encrypt the first environment information data according to a preset strategy to obtain second environment information data;
[0050] The home internal gateway 3 specifically decrypts the second environment information data sent by the edge computing module 2 to restore it to the first environment information data.
[0051] The beneficial effect of the above technical solution is that the edge computing module 2 encrypts the environmental information data before sending it to the home internal gateway 3. Even if malicious personnel intercept the encrypted environmental information data, they cannot obtain the correct environmental information data, thereby ensuring the security of the environmental information data.
[0052] As an optional embodiment, the edge computing module 2 includes:
[0053] A receiving unit, configured to receive first environment information data in a target home sent by an IoT device;
[0054] A self-encryption unit, used for performing self-encryption processing on the first environment information data to obtain third environment information data after self-encryption processing;
[0055] The bit scrambling unit is used to perform bit scrambling processing on the third environment information data to obtain the second environment information data.
[0056] The beneficial effect of the above technical solution is: before sending the environmental information data to the home internal gateway 3, the edge computing module 2 first performs self-encryption processing on the environmental information data, and then scrambles the bits of the self-encrypted environmental information data, thereby achieving the effect of secondary encryption and effectively improving the security of the environmental information data.
[0057] As an optional embodiment, the self-encryption unit is specifically used to perform self-encryption processing on the first environment information data according to a first formula;
[0058] The bit scrambling unit is specifically used to perform bit scrambling processing on the third environment information data according to the second formula;
[0059] The home internal gateway 3 is specifically used to reorganize and decrypt the received second environment information data according to the third formula, and restore the first environment information data for storage;
[0060] Among them, the first formula is:
[0061]
[0062] In the first formula, the D 16 'The third environment information data in hexadecimal after self-encryption, D 16 (a) represents the hexadecimal value at the ath position after the first environmental information data is initially encrypted; D 16 Indicated by D 16 (a) The new hexadecimal number composed of the corresponding hexadecimal values of each digit; d 16(a) represents the hexadecimal value at the ath position in the first environmental information data; Indicates exclusive OR; represents rounding up; m represents the total number of digits of the first environment information data; [] 10 Indicates converting the value in the brackets to a decimal number; {} 16 Indicates converting the value in brackets to hexadecimal number;
[0063] The second formula is:
[0064]
[0065] In the second formula, D 16 "" represents the second environment information data in hexadecimal; >> represents the right shift symbol; << represents the left shift symbol; represents rounding down; N represents the length of the third environment information data;
[0066] The third formula is:
[0067]
[0068] In the third formula, d 16 ' represents the fourth environment information data in hexadecimal obtained by reorganizing the second environment information data; d 16 ″′(i) represents the first environment information data in hexadecimal format restored after decrypting the fourth environment data; len() represents the total number of bits of the data in the brackets; n represents the intermediate amount of the operation, and its value is len(D 16 ″).
[0069] The beneficial effects of the above technical solution are as follows: using the first formula (1) to perform self-encryption processing on the collected home data (i.e., environmental information data within the residence), thereby utilizing its own data resources for self-encryption processing, which can ensure the convenience of subsequent decryption on the one hand, and improve the encryption speed and system efficiency on the other hand; then using the second formula (2) to scramble the encrypted home data according to the data length of the encrypted home data, the purpose is to perform secondary protection during the data transmission process, reduce the possibility of data leakage in many aspects, and improve the privacy of the system; finally, using the third formula (3) to reorganize and decrypt the scrambled data, thereby ensuring that the data can be accurately and automatically restored in the home internal gateway 3, ensuring the reliability and accuracy of the system data.
[0070] As an optional embodiment, the control module 4 is specifically used to send control instructions to the target smart home device 5 through the edge computing module 2, or to send control instructions to the target smart home device 5 by broadcasting in the target residence.
[0071] The beneficial effects of the above technical solution are as follows: the control module 4 can send control instructions to the target smart home device through the edge computing module 2, which can reduce the demand for network bandwidth; in addition, the control instructions can also be sent to the target smart home device 5 in a broadcasting manner within the residence, so that the target smart home device 5 can quickly obtain the control instructions, especially when there are multiple target smart home devices 5. The system can select different control instruction transmission methods according to the actual application scenario, thereby effectively improving the applicability and execution efficiency of the system.
[0072] From the contents of the above embodiments, it can be seen that the edge computing module 2 collects and processes home data (i.e., environmental information data within the residence), and pushes the processed home data to the home internal gateway 3 to reduce the outflow of home data; in order to further prevent data leakage, the data is encrypted according to the parameters of the home internal gateway 3 during the process of collecting and processing the home data, and the data is scrambled when the processed data is pushed to the home internal gateway 3, and the data is reorganized and decrypted in the home internal gateway 3, thereby reducing the possibility of data leakage in many aspects and improving the privacy of the system.
[0073] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 An apparatus for the method specified in one or more blocks.
[0074] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The method specified in one or more boxes.
[0075] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps of a method specified in one or more boxes.
[0076] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these changes and variations. The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A smart home control system based on edge computing, It is characterized in that include: A plurality of IoT sensors distributedly installed in the target residence are used to collect first environmental information data in the target residence in real time; An edge computing module, connected to the IoT sensor, and configured to process the first environmental information data collected by the IoT sensor according to a preset data processing strategy to obtain second environmental information data; A home internal gateway, connected to the edge computing module, and configured to restore the second environment information data sent by the edge computing module to the first environment information data and store the data; a control module connected to the home internal gateway and the smart home device in the target residence, and used to adjust and control the working parameters of the target smart home device according to the preset environmental parameter index and the latest first environmental information data stored in the home internal gateway; wherein the target smart home device is a smart home device corresponding to the environmental information data whose current first environmental information data does not match the preset same environmental parameter index; The edge computing module is specifically used to encrypt the first environment information data according to a preset strategy to obtain second environment information data; The home internal gateway specifically decrypts the second environment information data sent by the edge computing module to restore it to the first environment information data; Wherein, the edge computing module includes: A receiving unit, configured to receive first environment information data in a target home sent by an IoT device; A self-encryption unit, used for performing self-encryption processing on the first environment information data to obtain third environment information data after self-encryption processing; A bit scrambling unit, used for performing bit scrambling processing on the third environment information data to obtain second environment information data; The self-encryption unit is specifically used to perform self-encryption processing on the first environmental information data according to a first formula; The bit scrambling unit is specifically used to perform bit scrambling processing on the third environment information data according to the second formula; The home internal gateway is specifically used to reorganize and decrypt the received second environment information data according to the third formula, and restore the first environment information data for storage; Among them, the first formula is: In the first formula, the D 16 ' represents the third environment information data in hexadecimal after self-encryption processing, D 16 (a) represents the hexadecimal value at the ath position after the first environmental information data is initially encrypted; D 16 Indicated by D 16 (a) The new hexadecimal number composed of the corresponding hexadecimal values of each digit; d 16 (a) represents the hexadecimal value at the ath position in the first environmental information data; Indicates exclusive OR; represents rounding up; m represents the total number of digits of the first environment information data; [] 10 Indicates converting the value in the brackets to a decimal number; {} 16 Indicates converting the value in brackets to hexadecimal number; The second formula is: In the second formula, D 16 "" represents the second environment information data in hexadecimal; >> represents the right shift symbol; << represents the left shift symbol; represents rounding down; N represents the length of the third environment information data; The third formula is: In the third formula, d 16 ' represents the fourth environment information data in hexadecimal obtained by reorganizing the second environment information data; d 16 ″′(i) represents the first environment information data in hexadecimal format restored after decrypting the fourth environment data; len() represents the total number of bits of the data in the brackets; n represents the intermediate amount of the operation, and its value is len(D 16 ″).
2. The smart home control system based on edge computing as claimed in claim 1, It is characterized in that The control module is also used to receive a user's environmental information query request, obtain the latest first environmental information data stored in the home internal gateway and provide it to the user; it is also used to receive a user's control instruction for a target smart home device, and control the target smart home device according to the requirements of the control instruction.
3. The smart home control system based on edge computing as claimed in claim 2, It is characterized in that The control module is also used to verify the user's identity information before receiving the user's environmental information query request or control instructions for the target smart home device, and authorize the use right to the current user after the verification is passed; wherein the use right at least includes: environmental information query authority for the target residence and control authority for the smart home device.
4. The smart home control system based on edge computing as claimed in claim 1, It is characterized in that The Internet of Things sensor includes at least one of a temperature sensor, a humidity sensor, a brightness sensor, a smoke sensor, a dust sensor, a harmful gas sensor and a flammable and explosive gas sensor.
5. The smart home control system based on edge computing as claimed in claim 1 or 2, It is characterized in that The control module is specifically used to send control instructions to the target smart home device through the edge computing module, or to send control instructions to the target smart home device by broadcasting in the target residence.
