Intelligent light control method and system based on internet of things
By grouping and securely encrypting the intelligent lighting control command data, the problem of insufficient data security in existing technologies is solved, thus realizing both the convenience and data security of intelligent lighting control.
Patent Information
- Application Number
- CN202411799752.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2044-12-09
AI Technical Summary
Existing technologies have failed to effectively ensure the security of intelligent lighting control command data.
The command data is divided into several data groups, intermediate result data is generated through predetermined calculations and secret processing, and the command data is recovered in the lighting control module. Transformation and padding processes are used to ensure data security.
It achieves the convenience of intelligent lighting control while ensuring the security of command data.
Smart Images

Figure CN119584400B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of data transmission, and particularly relates to an intelligent light control method and system based on Internet of Things. BACKGROUND
[0002] At present, based on the Internet, mobile devices and intelligent light devices can be interconnected and communicated with each other, so that the mobile devices can send control commands to the intelligent light devices to realize remote control of the intelligent light devices.
[0003] Similar prior art is a Chinese patent application with publication number CN111343057A, which discloses a control method of intelligent household appliance and the intelligent household appliance. The control method of the intelligent household appliance comprises: the intelligent household appliance listens to a binding request of broadcasting, the binding request at least including a device unique identifier of the intelligent household appliance and an identity unique identifier of a first control user; the intelligent household appliance checks the binding request according to the pre-stored device unique identifier of itself, parses and saves the identity unique identifier of the first control user after the check is passed, and establishes a binding relationship with the first control user and opens administrator permission for the first control user. In addition, similar prior art is a Chinese patent application with publication number CN111083020A, which discloses a control method of intelligent household appliance device, which is suitable for intelligent household appliance device, computer peripheral device and computer. The control method of the intelligent household appliance device comprises: executing an import program to obtain an intelligent household appliance configuration file, operating the computer peripheral device to send a control action after obtaining the intelligent household appliance configuration file, a processing unit generating a control instruction according to the control action and the intelligent household appliance configuration file, a communication unit sending a control package according to the control instruction and a communication protocol, and the intelligent household appliance device receiving the control package and executing the control instruction in the control package.
[0004] However, the above two patent applications do not consider how to ensure the data security of the control command, and therefore the present application proposes an intelligent light control method and system based on Internet of Things. SUMMARY
[0005] The mobile module of the present application divides the command data into a plurality of command data groups, transforms each command data group into corresponding intermediate result data by corresponding processing of each command data group, and sends the intermediate result data to the light control module of the present application. The light control module of the present application recovers the command data from all the received intermediate result data to implement light control. The present application aims to realize intelligent light control while ensuring the security of the command data.
[0006] In order to achieve the above-mentioned application purpose, the present application provides an intelligent light control method based on Internet of Things, which mainly comprises the following steps:
[0007] S1, the mobile module collects command data, divides the command data into several command data groups, and the mobile module generates first data, performs a predetermined operation on the first data and first preset data to obtain predetermined operation result data, uses second preset data to secretly process the predetermined operation result data to obtain initial result data, and the mobile module also performs transformation processing on the initial result data to obtain transformation processing result data;
[0008] S2, the mobile module sets the identification data to one, and the mobile module uses the initial result data to perform filling processing on the initial command data group to obtain filling processing result data, performs a predetermined operation on the transformation processing result data and the filling processing result data to obtain predetermined operation result data, uses second preset data to secretly process the predetermined operation result data to obtain intermediate result data, performs transformation processing on the intermediate result data to obtain transformation processing result data, and increases the identification data by one;
[0009] S3, the mobile module judges whether the identification data is less than or equal to a preset threshold, in the case of yes, continue to the next step, in the case of no, end all steps, and send all intermediate result data to the light control module;
[0010] S4, the mobile module performs a predetermined operation on the transformation processing result data and other command data groups to obtain predetermined operation result data, uses second preset data to secretly process the predetermined operation result data to obtain intermediate result data, performs transformation processing on the intermediate result data to obtain transformation processing result data, increases the identification data by one, and jumps to S3.
[0011] As a preferred technical solution of the present application, the process of the mobile module performing transformation processing on the initial result data includes: the mobile module determines the value of the last preset number of bits in the initial result data, represents the value of the preset number of bits as a decimal number, in the case that the decimal number is equal to a first preset value, transforms each value in the initial result data into a corresponding inverse value, in the case that the decimal number is equal to a second preset value, transforms part of the values in the initial result data into corresponding inverse values, in the case that the decimal number is equal to a third preset value, transforms the order of each value in the initial result data, and in the case that the decimal number is equal to a fourth preset value, transforms the order of part of the values in the initial result data.
[0012] As a preferred technical solution of the present application, after the mobile module sends all intermediate result data to the light control module, the following steps are included:
[0013] S311, the light control module acquires initial result data, and the light control module transforms the initial result data to obtain transformation processing result data, and the light control module also sets the mark data to one;
[0014] S312, the light control module acquires intermediate result data, uses second preset data to restore the intermediate result data to obtain restoration processing result data, and the light control module performs a predetermined operation on the transformation processing result data and the restoration processing result data to obtain filling processing result data, and restores the initial command data group from the filling processing result data, and the light control module also transforms the intermediate result data to obtain transformation processing result data, and increases the mark data by one.
[0015] As a preferred technical solution of the present application, after the mobile module sends all the intermediate result data to the light control module, the following steps are further included:
[0016] S321, the light control module judges whether the mark data is less than or equal to a preset threshold, if yes, the next step is continued, and if no, the whole step is ended, and the command data is restored from the initial command data group and all other command data groups;
[0017] S322, the light control module acquires intermediate result data, uses second preset data to restore the intermediate result data to obtain restoration processing result data, and the light control module performs a predetermined operation on the transformation processing result data and the restoration processing result data to obtain other command data groups, and the light control module also transforms the intermediate result data to obtain transformation processing result data, and increases the mark data by one, and jumps to S321.
[0018] As a preferred technical solution of the present application, after the command data is restored from the initial command data group and all other command data groups, the light control module controls the light equipment according to the command data.
[0019] As a preferred technical solution of the present application, the mobile module generates first data, including the following steps:
[0020] S11, the mobile module acquires first feature data, and the mobile module uses third preset data to secretly process the first feature data to obtain first secret processing result data, and the mobile module also performs a predetermined operation on the first secret processing result data and the second feature data to obtain predetermined operation result data;
[0021] S12, the mobile module uses fourth preset data to secretly process the predetermined operation result data to obtain second secretly processed result data, and the mobile module performs predetermined operation on the first secretly processed result data and the second secretly processed result data to obtain the predetermined operation result data, and generates the first data based on the predetermined operation result data.
[0022] As a preferred technical scheme of the present application, after the mobile module generates the first data, the mobile module further performs update processing on the second characteristic data, and the update processing process comprises: first using third preset data to secretly process the second secretly processed result data to obtain third secretly processed result data, and then performing predetermined operation on the third secretly processed result data and the second secretly processed result data to obtain new second characteristic data.
[0023] The present application also provides an intelligent light control system based on Internet of Things, mainly comprising the following modules:
[0024] The mobile module is used for collecting command data, dividing the command data into a plurality of command data groups, generating first data, performing predetermined operation on the first data and first preset data to obtain predetermined operation result data, secretly processing the predetermined operation result data by using second preset data to obtain initial result data, and further performing transformation processing on the initial result data to obtain transformation processed result data; and is used for setting the identification data to one, performing filling processing on the initial command data group by using the initial result data to obtain filling processed result data, performing predetermined operation on the transformation processed result data and the filling processed result data to obtain predetermined operation result data, secretly processing the predetermined operation result data by using the second preset data to obtain intermediate result data, performing transformation processing on the intermediate result data to obtain transformation processed result data, and increasing the identification data by one; and is used for judging whether the identification data is less than or equal to a preset threshold, in the case of no, sending all the intermediate result data to the light control module, in the case of yes, performing predetermined operation on the transformation processed result data and other command data groups to obtain predetermined operation result data, secretly processing the predetermined operation result data by using the second preset data to obtain intermediate result data, performing transformation processing on the intermediate result data to obtain transformation processed result data, increasing the identification data by one, and repeating the processing;
[0025] The network module is used for transmitting data between the mobile module and the light control module.
[0026] The light control module is used for receiving all the intermediate result data sent by the mobile module.
[0027] Compared with the prior art, the present application has at least the following advantages:
[0028] In the present application, firstly, the command data is divided into several command data groups, a predetermined operation is performed on the first data and the first preset data, the predetermined operation result data is processed secretly using the second preset data, and the initial result data is processed by transformation; secondly, the identification data is set to one, the initial command data group is filled using the initial result data, a predetermined operation is performed on the transformation processing result data and the filling processing result data, the predetermined operation result data is processed secretly using the second preset data, the intermediate result data is processed by transformation, and the identification data is increased by one; thirdly, it is judged whether the identification data is less than or equal to the preset threshold, if yes, the next processing is continued, and if no, the whole steps are ended, and the whole intermediate result data is sent to the light control module; finally, a predetermined operation is performed on the transformation processing result data and other command data groups, the predetermined operation result data is processed secretly using the second preset data, the intermediate result data is processed by transformation, the identification data is increased by one, and the previous processing is jumped. Through the present application, not only the intelligent control of the light equipment can be realized, thereby improving the convenience, but also the security of the command data can be ensured. BRIEF DESCRIPTION OF DRAWINGS
[0029] Figure 1 A flow chart of a smart light control method based on the Internet of Things according to the present application;
[0030] Figure 2 A schematic diagram of a smart light control system based on the Internet of Things according to the present application. DETAILED DESCRIPTION
[0031] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and do not limit the present application.
[0032] It can be understood that the terms "first", "second", etc. used in the present application can be used herein to describe various elements, but unless specifically stated, these elements are not limited by these terms. These terms are only used to distinguish the first element from another element. For example, without departing from the scope of the present application, the first xx script can be referred to as the second xx script, and similarly, the second xx script can be referred to as the first xx script.
[0033] Reference Figure 1 The present application provides a smart light control method based on the Internet of Things, which is mainly realized by performing the following steps:
[0034] S1, the mobile module collects command data, divides the command data into several command data groups, and the mobile module generates first data, performs a predetermined operation on the first data and first preset data to obtain predetermined operation result data, uses second preset data to secretly process the predetermined operation result data to obtain initial result data, and the mobile module also performs transformation processing on the initial result data to obtain transformation processing result data;
[0035] S2, the mobile module sets the identification data to one, and the mobile module uses the initial result data to perform filling processing on the initial command data group to obtain filling processing result data, performs a predetermined operation on the transformation processing result data and the filling processing result data to obtain predetermined operation result data, uses second preset data to secretly process the predetermined operation result data to obtain intermediate result data, performs transformation processing on the intermediate result data to obtain transformation processing result data, and increases the identification data by one;
[0036] S3, the mobile module judges whether the identification data is less than or equal to a preset threshold, in the case of yes, continues to the next step, and in the case of no, ends all steps, and sends all the intermediate result data to the light control module;
[0037] S4, the mobile module performs a predetermined operation on the transformation processing result data and other command data groups to obtain predetermined operation result data, uses second preset data to secretly process the predetermined operation result data to obtain intermediate result data, performs transformation processing on the intermediate result data to obtain transformation processing result data, increases the identification data by one, and jumps to S3.
[0038] Specifically, in order to ensure the security of the command data, the application proposes S1 to S4, in S1, the mobile module collects the command data, the mobile module can be a mobile phone device, the command data can be data for controlling the light device to turn on, the mobile module divides the command data into several command data groups, it should be noted that in order to ensure the simplicity of the whole process, the mobile module generally divides the command data into a certain number of command data groups of preset data size, the data size can be measured by the number of bits, however, the total data size of the command data can not be an integer multiple of the preset data size, that is, there will be a command data group whose data size is less than the preset data size, the mobile module arranges the different command data groups in reverse order of generation sequence, in order to facilitate understanding, for example, the mobile module divides the command data into command data group 1, command data group 2 and command data group 3 in the order from front to back, wherein the data size of the command data group 3 is less than the preset data size, the mobile module arranges the command data group 3, the command data group 2 and the command data group 1 in turn, the command data group 3 is the initial command data group, the command data group 2 and the command data group 1 are other command data groups, then the mobile module generates the first data, the generation process will be described below, the mobile module performs a predetermined operation on the first data and the first preset data to obtain predetermined operation result data, the embodiment does not specifically limit the first preset data, as long as the data size of the first preset data is the preset data size, in order to understand the predetermined operation, for example, the predetermined operation of 0 and 0, and 1 and 1 can obtain 0, the predetermined operation of 0 and 1 can obtain 1, the mobile module uses the second preset data to secretly process the predetermined operation result data to obtain the initial result data, the embodiment does not specifically limit the second preset data, as long as the data size of the second preset data is the preset data size, the secret processing can be encryption processing using the DES algorithm in the prior art, the mobile module also performs transformation processing on the initial result data to obtain transformation processing result data, the process of the transformation processing will be introduced below.
[0039] In S2, the mobile module sets the identification data to one, fills the initial command data set with the initial result data to obtain filled processing result data, specifically fills the initial command data set with several values in the initial result data, so that the data size of the filled processing result data is equal to the preset data size, the initial command data set is the first command data set sorted by the mobile module, the mobile module performs a predetermined operation on the transformed processing result data and the filled processing result data to obtain predetermined operation result data, uses the second preset data secret processing on the predetermined operation result data to obtain intermediate result data, and also performs transformation processing on the intermediate result data to obtain transformed processing result data, so that the identification data increases by one. In S3, the mobile module judges whether the identification data is less than or equal to a preset threshold value, the preset threshold value refers to the total number of command data sets, if it is less than or equal to, continue to S4, if it is greater than, end all steps, and send all intermediate result data to the light control module. In S4, the mobile module performs a predetermined operation on the transformed processing result data and other command data sets to obtain predetermined operation result data, uses the second preset data secret processing on the predetermined operation result data to obtain intermediate result data, performs transformation processing on the intermediate result data to obtain transformed processing result data, so that the identification data increases by one, and jumps to S3 for continuous execution.
[0040] It should be noted that in the process of repeatedly executing S4, other command data sets are sequentially obtained according to the result sorted by the mobile module, in order to facilitate understanding, the above example is sequentially obtained command data set 2, and command data set 1. Through the above method, the command data can be transformed into different intermediate result data and sent to the light control module, even if the different intermediate result data is illegally obtained, it is also difficult to restore the command data, so as to ensure the security of the command data.
[0041] Further, the transformation processing of the initial result data by the mobile module includes: the mobile module determines the last preset number of values in the initial result data, represents the preset number of values as a decimal number, in the case that the decimal number is equal to a first preset value, transforms each value in the initial result data into a corresponding inverse value, in the case that the decimal number is equal to a second preset value, transforms part of the values in the initial result data into corresponding inverse values, in the case that the decimal number is equal to a third preset value, transforms the order of each value in the initial result data, and in the case that the decimal number is equal to a fourth preset value, transforms the order of part of the values in the initial result data.
[0042] Specifically, the process of the mobile module transforming the initial result data is introduced, the process of the mobile module transforming the intermediate result data is the same, and thus is not described again. First, the mobile module determines the value of the last preset number of bits in the initial result data, which can also be understood as the value of the low bit of the preset number of bits in the initial result data. The value of the preset number of bits, i.e., the binary value string, is expressed as a decimal number. Second, if the decimal number is equal to a first preset value, for example, the first preset value can be 1, the values in the initial result data are transformed into corresponding inverse values. For ease of understanding, for example, "1100100" is transformed into "0011011". If the decimal number is equal to a second preset value, for example, the second preset value can be 2, part of the values in the initial result data are transformed into corresponding inverse values. The position of the part of the values in the initial result data can be arbitrary. For ease of understanding, for example, "01010111" is transformed into "01011000". If the decimal number is equal to a third preset value, for example, the third preset value can be 4, the order of the values in the initial result data is transformed. For ease of understanding, for example, "1100100" is transformed into "0010011". If the decimal number is equal to a fourth preset value, the order of part of the values in the initial result data is transformed. For ease of understanding, for example, "01010111" is transformed into "01011110".
[0043] Further, after the mobile module sends all the intermediate result data to the light control module, the following steps are included:
[0044] S311, the light control module acquires the initial result data, and the light control module transforms the initial result data to obtain transformed result data. The light control module also sets the mark data to one.
[0045] S312, the light control module acquires the intermediate result data, uses the second preset data to restore the intermediate result data to obtain restored result data, and the light control module performs a predetermined operation on the transformed result data and the restored result data to obtain filling processing result data. The initial command data group is recovered from the filling processing result data. The light control module also transforms the intermediate result data to obtain transformed result data, and the mark data is increased by one.
[0046] Specifically, after the mobile module sends all the intermediate result data to the light control module, the light control module needs to recover the command data from all the intermediate result data, which is introduced as follows. In S311, the light control module acquires the initial result data, then transforms the initial result data to obtain the transformed result data, and sets the mark data to one. In S312, the light control module acquires the intermediate result data, i.e. the intermediate result data corresponding to the initial command data group, uses the second preset data to recover the intermediate result data to obtain the recovery processing result data, the recovery processing is for example the decryption processing using the DES algorithm in the prior art, then the light control module performs a predetermined operation on the transformed result data and the recovery processing result data to obtain the padding processing result data, and recovers the initial command data group from the padding processing result data, the specific method is to remove the initial result data from the padding processing result data. Some values filled in before, and the intermediate result data is transformed to obtain the transformed result data, and the mark data is increased by one.
[0047] Further, after the mobile module sends all the intermediate result data to the light control module, the following steps are further included:
[0048] S321, the light control module judges whether the mark data is less than or equal to a preset threshold, if yes, continue to the next step, if no, end all steps, and recover the command data from the initial command data group and all other command data groups;
[0049] S322, the light control module acquires the intermediate result data, uses the second preset data to recover the intermediate result data to obtain the recovery processing result data, and the light control module performs a predetermined operation on the transformed result data and the recovery processing result data to obtain the other command data group, the light control module also transforms the intermediate result data to obtain the transformed result data, and the mark data is increased by one, and jumps to S321.
[0050] Specifically, the process of the light control module recovering the command data from all the intermediate result data is continued, and then S312, in S321, the light control module judges whether the mark data is less than or equal to the preset threshold value, and the preset threshold value refers to the total number of all command data groups. If it is less than or equal to, continue to the next step, if it is greater than, end all steps, recover the command data from the initial command data group and all other command data groups, it should be noted that the initial command data group actually corresponds to the end part of the command data, so according to the inverse order of obtaining the initial command data group and all other command data groups, all other command data groups and the initial command data group are connected in turn to obtain the command data. In S322, the light control module obtains the intermediate result data, uses the second preset data to recover the intermediate result data to obtain the recovery processing result data, and then the light control module performs a predetermined operation on the transformation processing result data and the recovery processing result data to obtain other command data groups. The intermediate result data is also transformed to obtain the transformation processing result data, the mark data is increased by one, and S321 is jumped to continue execution. It should be noted that in the process of repeatedly executing S322, the corresponding intermediate result data is obtained in the order of generating different intermediate result data by the moving module.
[0051] Further, after recovering the command data from the initial command data group and all other command data groups, the light control module controls the light device according to the command data. Specifically, after the light control module obtains the command data sent by the moving module, the light control module controls the light device according to the command data sent by the moving module, for example, controls the light device to automatically turn on, thereby improving the convenience.
[0052] Further, the moving module generates the first data, including the following steps:
[0053] S11, the moving module obtains the first feature data, and the moving module uses the third preset data to secretly process the first feature data to obtain the first secret processing result data, and the moving module also performs a predetermined operation on the first secret processing result data and the second feature data to obtain the predetermined operation result data;
[0054] S12, the moving module uses the fourth preset data to secretly process the predetermined operation result data to obtain the second secret processing result data, and the moving module performs a predetermined operation on the first secret processing result data and the second secret processing result data to obtain the predetermined operation result data, and generates the first data based on the predetermined operation result data.
[0055] Specifically, the process of generating the first data by the mobile module is introduced, and before the introduction, it is necessary to point out that the mobile module needs to generate the first data again each time it sends the command data. In S11, the mobile module obtains the first characteristic data, which can be the current time data of the mobile module, and then the mobile module uses the third preset data to secretly process the first characteristic data to obtain the first secret processing result data. The embodiment does not specifically limit the third preset data, and also performs a predetermined operation on the first secret processing result data and the second characteristic data to obtain the predetermined operation result data. The initial value of the second characteristic data is not specifically limited in the embodiment. In S12, the mobile module uses the fourth preset data to secretly process the predetermined operation result data to obtain the second secret processing result data. The fourth preset data is also not specifically limited in the embodiment. Then, the mobile module performs a predetermined operation on the first secret processing result data and the second secret processing result data to obtain the predetermined operation result data, and generates the first data according to the predetermined operation result data. The specific method can be to take a value of a preset data size from the predetermined operation result data as the first data. Through the above method, the first data generated can have randomness.
[0056] Further, after the mobile module generates the first data, the mobile module also updates the second characteristic data. The process of updating includes: first, using the third preset data to secretly process the second secret processing result data to obtain the third secret processing result data, and then performing a predetermined operation on the third secret processing result data and the second secret processing result data to obtain the new second characteristic data.
[0057] Specifically, it has been mentioned above that the mobile module needs to generate the first data again each time it sends the command data. In fact, the second characteristic data used by the mobile module each time it generates the first data is also different. The initial value of the second characteristic data is not specifically limited in the embodiment. The process of updating the second characteristic data is introduced as follows. First, the mobile module uses the third preset data to secretly process the second secret processing result data to obtain the third secret processing result data. Second, the mobile module performs a predetermined operation on the third secret processing result data and the second secret processing result data to obtain the new second characteristic data. The above method can further enhance the randomness of the first data generated by the mobile module.
[0058] Referring to FIG. 1, Figure 2 As shown in FIG. 1,
[0059] The mobile module is used for collecting command data, dividing the command data into a plurality of command data groups, generating first data, performing a predetermined operation on the first data and first preset data to obtain predetermined operation result data, secretly processing the predetermined operation result data by using second preset data to obtain initial result data, and performing transformation processing on the initial result data to obtain transformation processing result data; and is used for setting an identification data to one, performing padding processing on the initial command data group by using the initial result data to obtain padding processing result data, performing a predetermined operation on the transformation processing result data and the padding processing result data to obtain predetermined operation result data, secretly processing the predetermined operation result data by using the second preset data to obtain intermediate result data, performing transformation processing on the intermediate result data to obtain transformation processing result data, and increasing the identification data by one; and is used for judging whether the identification data is less than or equal to a preset threshold, in the case of no, sending all the intermediate result data to the light control module, in the case of yes, performing a predetermined operation on the transformation processing result data and other command data groups to obtain predetermined operation result data, secretly processing the predetermined operation result data by using the second preset data to obtain intermediate result data, performing transformation processing on the intermediate result data to obtain transformation processing result data, increasing the identification data by one, and then repeating the processing.
[0060] The network module is used for data transmission between the mobile module and the light control module.
[0061] The light control module is used for receiving all the intermediate result data sent by the mobile module.
[0062] In the application, first, the command data is divided into a plurality of command data groups, a predetermined operation is performed on the first data and the first preset data, the predetermined operation result data is secretly processed by using the second preset data, and the initial result data is also subjected to transformation processing; second, the identification data is set to one, the initial command data group is subjected to padding processing by using the initial result data, a predetermined operation is performed on the transformation processing result data and the padding processing result data, the predetermined operation result data is secretly processed by using the second preset data, the intermediate result data is subjected to transformation processing, and the identification data is increased by one; third, it is judged whether the identification data is less than or equal to the preset threshold, in the case of yes, the next processing is continued, and in the case of no, all the steps are ended, all the intermediate result data is sent to the light control module; and finally, a predetermined operation is performed on the transformation processing result data and other command data groups, the predetermined operation result data is secretly processed by using the second preset data, the intermediate result data is subjected to transformation processing, the identification data is increased by one, and the previous processing is jumped to. By the application, not only the intelligent control of the light equipment can be realized to improve the convenience, but also the security of the command data can be ensured.
[0063] It should be understood that, although the steps in the flowcharts of the embodiments of the present application are shown in sequence according to the arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, the execution of the steps is not strictly limited in sequence, and the steps can be executed in other sequences. Moreover, at least some of the steps in the embodiments can include a plurality of sub-steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of the sub-steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or sub-steps or stages of other steps.
[0064] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiments can be completed by a computer program instructing related hardware. The above-mentioned program can be stored in a non-volatile computer readable storage medium, and when the program is executed, it can include the processes of the above-mentioned embodiments of the method. Any reference to memory, storage, database or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0065] The technical features of the above-mentioned embodiments can be combined in any way. In order to make the description simple, all possible combinations of the technical features in the above-mentioned embodiments are not described, but as long as the combination of the technical features does not exist, it should be considered as the scope of the present application.
[0066] The above-mentioned embodiments only express several embodiments of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application.
[0067] The above merely provides the preferred embodiments of the application, and is not intended to limit the application. Any modification, equivalent replacement, and improvement made within the spirit and principle of the application shall fall within the protection scope of the application.
Claims
1. An Internet of Things based intelligent light control method, characterized in that, The method comprises the following steps: S1, the mobile module collects command data, divides the command data into several command data groups, and generates first data, performs a predetermined operation on the first data and first preset data to obtain predetermined operation result data, uses second preset data to secretly process the predetermined operation result data to obtain initial result data, and further performs transformation processing on the initial result data to obtain transformation processing result data; S2, the mobile module sets the identification data to one, and uses the initial result data to perform filling processing on the initial command data group to obtain filling processing result data, performs a predetermined operation on the transformation processing result data and the filling processing result data to obtain predetermined operation result data, uses the second preset data to secretly process the predetermined operation result data to obtain intermediate result data, performs transformation processing on the intermediate result data to obtain transformation processing result data, and increases the identification data by one; S3, the mobile module judges whether the identification data is less than or equal to a preset threshold, if yes, the next step is continued, and if no, the whole steps are ended, and the whole intermediate result data is sent to the light control module; S4, the mobile module performs a predetermined operation on the transformation processing result data and other command data groups to obtain predetermined operation result data, uses the second preset data to secretly process the predetermined operation result data to obtain intermediate result data, performs transformation processing on the intermediate result data to obtain transformation processing result data, increases the identification data by one, and jumps to S3.
2. The method of claim 1, wherein, The transformation processing of the mobile module on the initial result data comprises: the mobile module determines the value of the last preset number of digits in the initial result data, represents the value of the preset number of digits as a decimal number, in the case that the decimal number is equal to a first preset value, transforms each value in the initial result data into a corresponding inverse value, in the case that the decimal number is equal to a second preset value, transforms part of the values in the initial result data into corresponding inverse values, in the case that the decimal number is equal to a third preset value, transforms the order of each value in the initial result data, and in the case that the decimal number is equal to a fourth preset value, transforms the order of part of the values in the initial result data.
3. The method of claim 2, wherein, After the mobile module sends the whole intermediate result data to the light control module, the following steps are included: S311, the light control module acquires the initial result data, and performs transformation processing on the initial result data to obtain transformation processing result data, and the light control module also sets the mark data to one; S312, the light control module acquires the intermediate result data, uses the second preset data to perform recovery processing on the intermediate result data to obtain recovery processing result data, and performs a predetermined operation on the transformation processing result data and the recovery processing result data to obtain filling processing result data, recovers the initial command data group from the filling processing result data, and the light control module also performs transformation processing on the intermediate result data to obtain transformation processing result data, and increases the mark data by one.
4. The method of claim 3, wherein, After the mobile module sends all the intermediate result data to the light control module, the method further comprises the following steps: S321, the light control module judges whether the mark data is less than or equal to a preset threshold, if yes, the next step is continued, if no, the whole steps are ended, and the command data is recovered from the initial command data group and all the other command data groups; S322, the light control module obtains the intermediate result data, uses the second preset data to recover the intermediate result data to obtain recovery processing result data, and the light control module performs a predetermined operation on the transformation processing result data and the recovery processing result data to obtain the other command data group, the light control module also performs transformation processing on the intermediate result data to obtain transformation processing result data, increases the mark data by one, and jumps to S321.
5. The method of claim 4, wherein, After the command data is recovered from the initial command data group and all the other command data groups, the light control module controls the light equipment according to the command data.
6. The method of claim 1, wherein, The mobile module generates the first data, comprising the following steps: S11, the mobile module obtains the first feature data, and the mobile module uses the third preset data to secretly process the first feature data to obtain first secret processing result data, and the mobile module also performs a predetermined operation on the first secret processing result data and the second feature data to obtain predetermined operation result data; S12, the mobile module uses the fourth preset data to secretly process the predetermined operation result data to obtain second secret processing result data, and the mobile module performs a predetermined operation on the first secret processing result data and the second secret processing result data to obtain predetermined operation result data, and generates the first data based on the predetermined operation result data.
7. The method of claim 6, wherein, After the mobile module generates the first data, the mobile module also performs update processing on the second feature data, and the process of the update processing comprises: first, using the third preset data to secretly process the second secret processing result data to obtain third secret processing result data, and then performing a predetermined operation on the third secret processing result data and the second secret processing result data to obtain new second feature data.
8. An intelligent lighting control system based on Internet of Things for implementing the method as claimed in any one of claims 1 to 7, characterized in that, Comprise the following modules: The mobile module performs step S1: collects command data, divides the command data into a plurality of command data groups, generates first data, performs a predetermined operation on the first data and first preset data to obtain predetermined operation result data, secretly processes the predetermined operation result data using second preset data to obtain initial result data, and further performs transformation processing on the initial result data to obtain transformation processing result data; performs step S2: sets the identification data to one, performs padding processing on the initial command data group using the initial result data to obtain padding processing result data, performs a predetermined operation on the transformation processing result data and the padding processing result data to obtain predetermined operation result data, secretly processes the predetermined operation result data using the second preset data to obtain intermediate result data, performs transformation processing on the intermediate result data to obtain transformation processing result data, and increases the identification data by one; performs step S3: determines whether the identification data is less than or equal to a preset threshold, in the case of no, ends all steps, and sends all the intermediate result data to the light control module, and in the case of yes, performs step S4: performs a predetermined operation on the transformation processing result data and other command data groups to obtain predetermined operation result data, secretly processes the predetermined operation result data using the second preset data to obtain intermediate result data, performs transformation processing on the intermediate result data to obtain transformation processing result data, increases the identification data by one, and jumps to step S3; The network module transmits data between the mobile module and the light control module; The light control module receives all the intermediate result data sent by the mobile module.
Citation Information
Patent Citations
Intelligent household appliance control method
CN111083020A
Control method of intelligent household electrical appliance and intelligent household electrical appliance
CN111343057A
Data processing method and device, computer equipment and storage medium
CN116225373A
Information security protection method and system based on big data
CN119030736A