CN106446620B - Permission setting and processing method and device of WIFI module - Google Patents
Permission setting and processing method and device of WIFI module Download PDFInfo
- Publication number
- CN106446620B CN106446620B CN201610977714.7A CN201610977714A CN106446620B CN 106446620 B CN106446620 B CN 106446620B CN 201610977714 A CN201610977714 A CN 201610977714A CN 106446620 B CN106446620 B CN 106446620B
- Authority
- CN
- China
- Prior art keywords
- wifi module
- license
- field
- character string
- function
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims description 13
- 238000000034 method Methods 0.000 claims abstract description 36
- 238000012545 processing Methods 0.000 claims abstract description 32
- 238000012795 verification Methods 0.000 claims description 9
- 238000003032 molecular docking Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 claims description 7
- 238000005315 distribution function Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 6
- 230000000295 complement effect Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
- G06F21/121—Restricting unauthorised execution of programs
- G06F21/123—Restricting unauthorised execution of programs by using dedicated hardware, e.g. dongles, smart cards, cryptographic processors, global positioning systems [GPS] devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
- G06F21/121—Restricting unauthorised execution of programs
- G06F21/125—Restricting unauthorised execution of programs by manipulating the program code, e.g. source code, compiled code, interpreted code, machine code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
- G06F21/121—Restricting unauthorised execution of programs
- G06F21/128—Restricting unauthorised execution of programs involving web programs, i.e. using technology especially used in internet, generally interacting with a web browser, e.g. hypertext markup language [HTML], applets, java
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Technology Law (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Storage Device Security (AREA)
- Telephone Function (AREA)
Abstract
The application discloses a method and a device for setting and processing permission of a WIFI module. The permission setting method comprises the following steps: generating a license character string corresponding to the to-be-processed WIFI module, wherein the license character string comprises: setting the MAC address of the WIFI module in the MAC address field, and identifying the functions which can be used in the WIFI module in the function permission field; and encrypting the license character string by using a preset encryption algorithm to generate a software license, and burning the software license into a specified target area in the WIFI module. Therefore, the software licenses with different functional authorities are generated and burnt into the WIFI module to set the authority of the WIFI module, functional authority division for a user is achieved, safety of the WIFI module is improved, and rights and interests of a WIFI module owner are guaranteed.
Description
Technical Field
The application relates to the technical field of smart home, in particular to a method and a device for setting and processing authority of a WIFI module.
Background
A software license is a form contract with a user by a software developer to specify and limit the user's rights to use the software or its source code, and the obligations the software developer shall make.
With the continuous development of internet technology, a WIFI module is generally arranged in an intelligent household appliance to realize the connection between the household appliance and an external network. The WIFI module integrates many functions, such as functions of docking of multiple cloud platforms (kyotong cloud, ali cloud, etc.), upgrading of Over-the-Air Technology (OTA for short), near field discovery, and the like.
However, the WIFI module in the existing intelligent home appliance generally does not have a software license, and the same WIFI module firmware can be arbitrarily burned onto a plurality of modules for use, so that the rights and interests of the WIFI module owner cannot be guaranteed; and the WIFI module of the intelligent household appliance is provided with a software license, and the software license is generated according to a physical address (MAC for short) of the WIFI module. Such generation of software licenses does not have a distinction of functional rights and security is low.
Disclosure of Invention
The present application aims to solve at least one of the technical problems in the related art to some extent.
Therefore, a first objective of the present application is to provide a method for setting permissions of a WIFI module, where the method sets permissions of the WIFI module by generating software licenses with different functional permissions and burning the software licenses into the WIFI module, so as to implement functional permission division for a user, improve security of the WIFI module, and ensure rights and interests of owners of the WIFI module.
A second objective of the present application is to provide a processing method for a WIFI module.
The third objective of the present application is to provide a permission setting device for a WIFI module.
A fourth objective of the present application is to provide a processing device of a WIFI module.
In order to achieve the above object, an embodiment of a method for setting permissions of a WIFI module according to a first aspect of the present application provides, including: generating a license character string corresponding to the to-be-processed WIFI module, wherein the license character string comprises: setting the MAC address of the WIFI module in an MAC address field, and identifying the functions which can be used in the WIFI module in a function permission field; and encrypting the license character string by using a preset encryption algorithm to generate a software license, and burning the software license to a specified target area in the WIFI module.
According to the method for setting the authority of the WIFI module, firstly, a license character string corresponding to the WIFI module to be processed is generated, wherein the license character string comprises: the method comprises the steps of setting the MAC address of the WIFI module in the MAC address field, identifying functions which can be used in the WIFI module in the function permission field, then encrypting a license character string by applying a preset encryption algorithm to generate a software license, and burning the software license into a specified target area in the WIFI module. By generating software licenses with different functional authorities and burning the software licenses into the WIFI module to set the authority of the WIFI module, functional authority division for users is realized, the safety of the WIFI module is improved, and the rights and interests of a WIFI module owner are guaranteed.
In addition, the permission setting method for the WIFI module according to the above embodiment of the present application may further have the following additional technical features:
in one embodiment of the present application, the functional right field includes at least one of: the system comprises a network distribution function, a household appliance OTA upgrading function, a cloud platform docking function, a near field discovery function and a WeChat direct connection function.
In an embodiment of the present application, the identifying, in the functional permission field, a function that can be used in the WIFI module includes: and setting a bit corresponding to a function which can be used in the WIFI module to be 1 in a function permission field, and/or setting a bit corresponding to a function which is forbidden to be used in the WIFI module to be 0.
In one embodiment of the present application, the license string further includes: a protocol header field, a license length field, an extended function field, and a check field.
In order to achieve the above object, a processing method of a WIFI module according to an embodiment of a second aspect of the present application includes: reading out a pre-burned encrypted software license from a target area appointed in a current WIFI module; decrypting the software license by applying a preset decryption algorithm corresponding to the encryption algorithm to obtain a license character string; comparing the MAC address read from the MAC address field of the license string with the MAC address of the current WIFI module; and if the MAC addresses of the WIFI module and the license character string are consistent, starting the functions which can be used in the WIFI module according to the identification of the function permission field of the license character string, and closing the functions which are forbidden to be used in the WIFI module.
According to the processing method of the WIFI module, firstly, an encrypted software license burnt in advance is read out from a target area appointed in a current WIFI module, then, a preset decryption algorithm corresponding to the encryption algorithm is applied to decrypt the software license, a license character string is obtained, then, an MAC address read from an MAC address field of the license character string is compared with an MAC address of the current WIFI module, and finally, when the MAC addresses of the two are consistent, a function which can be used in the WIFI module is started according to an identification of a function authority field of the license character string, and a function which is forbidden to be used in the WIFI module is closed. Therefore, the function permission of the user can be opened or closed, the safety of the WIFI module is further improved, and the rights and interests of the owner of the WIFI module are guaranteed.
In addition, the processing method of the WIFI module according to the above embodiment of the present application may further have the following additional technical features:
in one embodiment of the present application, the license string further includes: a protocol header field, a license length field, an extended function field, and a check field; before the comparing the MAC address read from the MAC address field of the license string with the MAC address of the current WIFI module, further includes: checking a protocol header field in the license string; and checking the integrity of the license character string according to a check field in the license character string, and if the license character string is complete, checking the MAC address.
In an embodiment of the present application, after the comparing the MAC address read from the MAC address field of the license string with the MAC address of the current WIFI module, the method further includes: and if the MAC addresses of the WIFI module and the current WIFI module are inconsistent, determining that the current WIFI module is illegally restarted.
In order to achieve the above object, an apparatus for setting authority of a WIFI module according to an embodiment of a third aspect of the present application includes: the generation module is used for generating a license character string corresponding to the to-be-processed WIFI module, wherein the license character string comprises: setting the MAC address of the WIFI module in an MAC address field, and identifying the functions which can be used in the WIFI module in a function permission field; and the first processing module is used for encrypting the license character string by applying a preset encryption algorithm to generate a software license and burning the software license into a specified target area in the WIFI module.
The permission setting device of WIFI module of this application embodiment at first generates the license character string that corresponds with the WIFI module of treating, and wherein, the license character string includes: the method comprises the steps of setting the MAC address of the WIFI module in the MAC address field, identifying functions which can be used in the WIFI module in the function permission field, then encrypting a license character string by applying a preset encryption algorithm to generate a software license, and burning the software license into a specified target area in the WIFI module. Therefore, the software licenses with different functional authorities are generated and burnt into the WIFI module to set the authority of the WIFI module, functional authority division for a user is achieved, safety of the WIFI module is improved, and rights and interests of a WIFI module owner are guaranteed.
In addition, the permission setting device of the WIFI module according to the above embodiment of the present application may further have the following additional technical features:
in one embodiment of the present application, the functional right field includes at least one of: the system comprises a network distribution function, a household appliance OTA upgrading function, a cloud platform docking function, a near field discovery function and a WeChat direct connection function.
In an embodiment of the present application, the identifying, in the functional permission field, a function that can be used in the WIFI module includes: and setting a bit corresponding to a function which can be used in the WIFI module to be 1 in a function permission field, and/or setting a bit corresponding to a function which is forbidden to be used in the WIFI module to be 0.
In one embodiment of the present application, the license string further includes: a protocol header field, a license length field, an extended function field, and a check field.
To achieve the above object, a processing apparatus of a WIFI module according to an embodiment of a fourth aspect of the present application includes: the reading module is used for reading out the encrypted software license burnt in advance from the target area appointed in the current WIFI module; the acquisition module is used for applying a preset decryption algorithm corresponding to the encryption algorithm to decrypt the software license and acquire a license character string; the comparison module is used for comparing the MAC address read from the MAC address field of the license character string with the MAC address of the current WIFI module; and the second processing module is used for opening the functions which can be used in the WIFI module and closing the functions which are forbidden to be used in the WIFI module according to the identification of the function permission field of the license character string when the MAC addresses of the WIFI module and the MAC address of the license character string are consistent.
The processing device of the WIFI module in the embodiment of the application reads out the encrypted software license burnt in advance from the specified target area in the current WIFI module, decrypts the software license by applying the preset decryption algorithm corresponding to the encryption algorithm to obtain the license character string, compares the MAC address read from the MAC address field of the license character string with the MAC address of the current WIFI module, and finally opens the functions which can be used in the WIFI module according to the identification of the function permission field of the license character string when the MAC addresses of the two are consistent and closes the functions which are forbidden to be used in the WIFI module. Therefore, the function permission of the user can be opened or closed, the safety of the WIFI module is further improved, and the rights and interests of the owner of the WIFI module are guaranteed.
In addition, the processing device of the WIFI module according to the above embodiment of the present application may further have the following additional technical features:
in one embodiment of the present application, the license string further includes: a protocol header field, a license length field, an extended function field, and a check field; the device further comprises: a verification module for verifying a protocol header field in the license string; and the third processing module is used for checking the integrity of the license character string according to the check field in the license character string and checking the MAC address when the license character string is complete.
In an embodiment of the present application, the second processing module is further configured to: and if the MAC addresses of the WIFI module and the current WIFI module are inconsistent, determining that the current WIFI module is illegally restarted.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic diagram of software license generation and verification according to one embodiment of the present application;
fig. 2 is a flowchart of a method for setting permissions of a WIFI module according to an embodiment of the present application;
fig. 3 is a flowchart of a processing method of a WIFI module according to one embodiment of the present application;
fig. 4 is a schematic structural diagram of an authority setting device of a WIFI module according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a processing device of a WIFI module according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
The following describes methods and apparatuses for setting and processing permissions of a WIFI module according to embodiments of the present application with reference to the accompanying drawings.
Generally, a WIFI module is provided in an intelligent appliance to enable connection of the appliance to an external network. The WIFI module in the existing intelligent household appliance does not usually have a software license, the same WIFI module firmware can be randomly burned onto a plurality of modules for use, and the rights and interests of a WIFI module owner cannot be guaranteed. Alternatively, the first and second electrodes may be,
the WIFI module of the existing intelligent household appliance is provided with a software license. FIG. 1 is a schematic diagram of software license generation and verification according to one embodiment of the present application. As shown in fig. 1:
the software license is generated and burnt to a specific position in the WIFI module according to a physical address (MAC for short) of the WIFI module, and after the WIFI module is powered on, a user reads the software license from the specific position and compares the software license with the physical address of the user to determine whether the WIFI module is normally started. However, such generation of a software license does not have distinction of functional rights, and security is low.
In order to solve the above problems, an embodiment of the present application provides a method for setting permissions of a WIFI module, which generates software licenses with different function permissions and burns the software licenses into the WIFI module to set the permissions of the WIFI module, so that division of the function permissions for a user is achieved, safety of the WIFI module is improved, and applicability is high. The method comprises the following specific steps:
fig. 2 is a flowchart of a method for setting permissions of a WIFI module according to an embodiment of the present application.
As shown in fig. 2, the method for setting the permission of the WIFI module according to the embodiment of the present application includes:
step 110, generating a license character string corresponding to the to-be-processed WIFI module, where the license character string includes: and setting the MAC address of the WIFI module in the MAC address field, and identifying the functions which can be used in the WIFI module in the function permission field.
Specifically, a license character string corresponding to the to-be-processed WIFI module is generated first, and in the generation process, different function fields of the license character string need to be defined.
The license string has many kinds of functional fields, such as a MAC address field, a functional right field, a protocol header field, a license length field, an extended function field, and a check field. One or more of the functional fields may be required depending on the actual application. The following is illustrated in connection with table 1:
table 1 is a schematic table of the functional fields that define the different license strings
As shown in table 1: the protocol header field is used to identify the protocol start, for a total of two bytes.
As shown in table 1: the license length field identifies the overall length of the license, one byte.
As shown in table 1: the MAC address field is used for identifying the MAC address of the WIFI module, and before the WIFI module runs, the value of the MAC address field and the consistency of the MAC address of the WIFI module need to be checked, and the total number of the MAC address field and the MAC address of the WIFI module is 6 bytes.
As shown in table 1: the extension field is used for other entitlement management controls for the user's extended software license for a total of N-16 bytes.
As shown in table 1: the verification field is used for verifying the accuracy of the license character string, the value of the verification field is a complementary code obtained after summing all bytes before the software license verification field, and the complementary code is expressed as follows: sum (Byte0+ Byte1+ … … + bytene) +1, one Byte.
As shown in table 1: the function permission field is used for setting the permission level of the software license, and the software can start different functions according to the value of the function permission field, and the total number of the functions is 8 bytes.
It should be noted that the position and length of each function field of the license string can be adjusted and expanded as needed.
The function permission field may include one or more of a distribution network function, a home appliance OTA upgrade function, a cloud platform docking function, a near field discovery function, a wechat direct connection function, and the like.
It can be understood that, if the above functions can be used or prohibited from being used in the WIFI module, the bit corresponding to the function that can be used in the WIFI module may be set to 1 in the functional authority field, and the bit corresponding to the function that is prohibited from being used may be set to 0.
It should be noted that one or two of the above may be set in the WIFI module according to actual application needs.
Taking the function permission field in table 1 as an example, each Bit of 8 bytes (64 bits in total) corresponds to a function. Illustrated in conjunction with table 2 are the following:
therefore, the software license authority level can be set according to different functional requirements of different users. The firmware that can guarantee WIFI module production keeps the same set, only need to give different software licenses just to different functional requirements.
And 120, encrypting the license character string by using a preset encryption algorithm to generate a software license, and burning the software license into a specified target area in the WIFI module.
Specifically, in order to further ensure the security of the WIFI module, a preset encryption algorithm needs to be applied to encrypt the license character string to generate the software license.
Among them, there are many kinds of preset encryption algorithms, such as MD5 encryption algorithm, DES encryption algorithm, RSA encryption algorithm, and the like. The settings may be selected as desired. Taking the RSA algorithm as an example of a preset encryption algorithm, RSA-1024 asymmetric encryption (encryption is performed with a private key of an RSA key) is performed on the license string to form a producible software license, and the software license is burned into a specified target area in the WIFI module.
The designated target area can be selected according to actual needs, such as a fixed address in Flash, a fixed address of a specific storage area, and the like.
According to the method for setting the authority of the WIFI module, firstly, a license character string corresponding to the WIFI module to be processed is generated, wherein the license character string comprises: the method comprises the steps of setting the MAC address of the WIFI module in the MAC address field, identifying functions which can be used in the WIFI module in the function permission field, then encrypting a license character string by applying a preset encryption algorithm to generate a software license, and burning the software license into a specified target area in the WIFI module. By generating software licenses with different functional authorities and burning the software licenses into the WIFI module to set the authority of the WIFI module, functional authority division for users is realized, the safety of the WIFI module is improved, and the rights and interests of a WIFI module owner are guaranteed.
Fig. 3 is a flowchart of a processing method of a WIFI module according to one embodiment of the present application.
As shown in fig. 3, a processing method of a WIFI module in an embodiment of the present application includes:
step 210, reading out the encrypted software license burnt in advance from the target area specified in the current WIFI module.
And step 220, decrypting the software license by applying a preset decryption algorithm corresponding to the encryption algorithm to obtain a license character string.
Specifically, when the device is used, the encrypted software license burned in advance is read out from the target area specified in the currently connected WIFI module, and then the license character string is obtained by applying a preset decryption algorithm (for example, decrypting the public key by using the RSA key) corresponding to the encryption algorithm.
It should be noted that, mainly, the encrypted software license pre-burned in the currently connected WIFI module may obtain the license character string through the corresponding decryption algorithm.
The license string may include one or more of a MAC address field, a function right field, a protocol header field, a license length field, an extended function field, and a check field.
It should be noted that, the specific definition of the above field may refer to step 101, and is not described in detail here.
Step 230, comparing the MAC address read from the MAC address field of the license string with the MAC address of the current WIFI module.
And 240, if the MAC addresses of the WIFI module and the MAC address of the WIFI module are consistent, starting the functions which can be used in the WIFI module according to the identification of the function permission field of the license character string, and closing the functions which are forbidden to be used in the WIFI module.
Specifically, the MAC address read from the MAC address field of the acquired license string is compared with the MAC address of the current WIFI module. And when the two are consistent, further processing according to the identification of the function authority field of the license character string. For example, a bit in the function permission field is 1, which corresponds to the wechat and direct connection function, so that the wechat and direct connection function is started. For example, a certain bit in the function permission field is 0, which corresponds to the kyoto cloud, so that the use of the kyoto cloud is prohibited.
It should be noted that when the MAC addresses of the WIFI module and the WIFI module are inconsistent, it is determined that the current WIFI module is illegally restarted.
In order to ensure the reliability of the acquired license character string, a protocol header field in the license character string can be checked before the MAC address read from the MAC address field of the license character string is compared with the MAC address of the current WIFI module, the integrity of the license character string is checked according to a check field in the license character string, and when the license character string is complete, the MAC address is further checked. The safety of the WIFI module is further improved.
According to the processing method of the WIFI module, firstly, an encrypted software license burnt in advance is read out from a target area appointed in a current WIFI module, then, a preset decryption algorithm corresponding to the encryption algorithm is applied to decrypt the software license, a license character string is obtained, then, an MAC address read from an MAC address field of the license character string is compared with an MAC address of the current WIFI module, and finally, when the MAC addresses of the two are consistent, a function which can be used in the WIFI module is started according to an identification of a function authority field of the license character string, and a function which is forbidden to be used in the WIFI module is closed. Therefore, the function permission of the user can be opened or closed, the safety of the WIFI module is further improved, and the rights and interests of the owner of the WIFI module are guaranteed.
In order to realize this application still provides the authority setting device of a WIFI module.
Fig. 4 is a schematic structural diagram of an authority setting device of a WIFI module according to an embodiment of the present application.
As shown in fig. 4, the permission setting device of the WIFI module includes: a generating module 41 and a first processing module 42.
The generation module 41 is configured to generate a license string corresponding to the to-be-processed WIFI module, where the license string includes: and setting the MAC address of the WIFI module in the MAC address field, and identifying the functions which can be used in the WIFI module in the function permission field.
The first processing module 42 is configured to apply a preset encryption algorithm to encrypt the license character string to generate a software license, and burn the software license into a target area specified in the WIFI module.
In an embodiment of the present application, the function authority field includes at least one of: the system comprises a network distribution function, a household appliance OTA upgrading function, a cloud platform docking function, a near field discovery function and a WeChat direct connection function.
Wherein, in an embodiment of the present application, identifying, in a functional permission field, a function that can be used in the WIFI module includes: and setting a bit corresponding to a function which can be used in the WIFI module to be 1 in the function permission field, and/or setting a bit corresponding to a function which is forbidden to be used in the WIFI module to be 0.
In one embodiment of the present application, the license string further includes: a protocol header field, a license length field, an extended function field, and a check field.
The permission setting device for the WIFI module provided in the embodiment of the present invention corresponds to the permission setting method for the WIFI module provided in the embodiment of the first aspect, so that the implementation manner of the permission setting method for the WIFI module is also applicable to the permission setting device for the WIFI module provided in this embodiment, and is not described in detail in this embodiment.
The permission setting device of WIFI module of this application embodiment at first generates the license character string that corresponds with the WIFI module of treating, and wherein, the license character string includes: the method comprises the steps of setting the MAC address of the WIFI module in the MAC address field, identifying functions which can be used in the WIFI module in the function permission field, then encrypting a license character string by applying a preset encryption algorithm to generate a software license, and burning the software license into a specified target area in the WIFI module. By generating software licenses with different functional authorities and burning the software licenses into the WIFI module to set the authority of the WIFI module, functional authority division for users is realized, the safety of the WIFI module is improved, and the rights and interests of a WIFI module owner are guaranteed.
Fig. 5 is a schematic structural diagram of a processing device of a WIFI module according to an embodiment of the present application.
As shown in fig. 5, the processing device of the WIFI module includes: a readout module 51, an acquisition module 52, a comparison module 53 and a second processing module 54.
The reading module 51 is configured to read out an encrypted software license burnt in advance from a target area specified in the current WIFI module.
The obtaining module 52 is configured to apply a preset decryption algorithm corresponding to the encryption algorithm to decrypt the software license, and obtain a license character string.
The comparison module 53 is configured to compare the MAC address read from the MAC address field of the license string with the MAC address of the current WIFI module.
The second processing module 54 is configured to, when the MAC addresses of the WIFI module and the second processing module are consistent, open a function that can be used in the WIFI module according to the identifier of the function permission field of the license character string, and close a function that is prohibited from being used in the WIFI module.
In one embodiment of the present application, the license string further includes: a protocol header field, a license length field, an extended function field, and a check field.
In order to ensure the reliability of the acquired license string, the processing device of the WIFI module further includes: a verification module 55 and a third processing module 56.
Wherein the verification module 55 is configured to verify a protocol header field in the license string.
The third processing module 56 is configured to check the integrity of the license string according to the check field in the license string, and check the MAC address when the license string is complete.
The second processing module 54 is further configured to: and when the MAC addresses of the WIFI module and the current WIFI module are inconsistent, determining that the current WIFI module is illegal to restart.
The processing device of the WIFI module provided by the embodiment of the present invention corresponds to the processing method of the WIFI module provided by the embodiment of the second aspect, so that the implementation of the processing method of the WIFI module is also applicable to the processing device of the WIFI module provided by this embodiment, and detailed description is not provided in this embodiment.
The processing device of the WIFI module in the embodiment of the application reads out the encrypted software license burnt in advance from the specified target area in the current WIFI module, decrypts the software license by applying the preset decryption algorithm corresponding to the encryption algorithm to obtain the license character string, compares the MAC address read from the MAC address field of the license character string with the MAC address of the current WIFI module, and finally opens the functions which can be used in the WIFI module according to the identification of the function permission field of the license character string when the MAC addresses of the two are consistent and closes the functions which are forbidden to be used in the WIFI module. Therefore, the function permission of the user can be opened or closed, the safety of the WIFI module is further improved, and the rights and interests of the owner of the WIFI module are guaranteed.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Claims (10)
1. A method for setting the authority of a WIFI module is characterized by comprising the following steps:
generating a license character string corresponding to the to-be-processed WIFI module, wherein the license character string comprises: setting the MAC address of the WIFI module in an MAC address field, and identifying the functions which can be used in the WIFI module in a function permission field; in the process of generating the license character string corresponding to the WIFI module to be processed, defining different functional fields of the license character string;
encrypting the license character string by using a preset encryption algorithm to generate a software license, and burning the software license into a specified target area in the WIFI module;
wherein the license string further comprises: a protocol header field, a license length field, an extended function field, and a check field.
2. The method of claim 1, wherein the functional rights field comprises at least one of:
the system comprises a network distribution function, a household appliance OTA upgrading function, a cloud platform docking function, a near field discovery function and a WeChat direct connection function.
3. The method of claim 1, wherein the identifying, in a functional permission field, functions that can be used in the WIFI module comprises:
setting a bit corresponding to a function that can be used in the WIFI module to 1 in a function permission field, and/or,
and setting a bit corresponding to the function forbidden to be used in the WIFI module as 0.
4. A processing method of a WIFI module is characterized by comprising the following steps:
reading out a pre-burned encrypted software license from a target area appointed in a current WIFI module;
decrypting the software license by applying a preset decryption algorithm corresponding to the encryption algorithm to obtain a license character string;
comparing the MAC address read from the MAC address field of the license string with the MAC address of the current WIFI module;
if the MAC addresses of the WIFI module and the license character string are consistent, starting the functions which can be used in the WIFI module according to the identification of the function permission field of the license character string, and closing the functions which are forbidden to be used in the WIFI module; the method comprises the steps that in the process of generating a license character string corresponding to a WIFI module to be processed, different functional fields of the license character string are defined;
wherein the license string further comprises: a protocol header field, a license length field, an extended function field, and a check field;
before the comparing the MAC address read from the MAC address field of the license string with the MAC address of the current WIFI module, further includes:
checking a protocol header field in the license string;
and checking the integrity of the license character string according to a check field in the license character string, and if the license character string is complete, checking the MAC address.
5. The method of claim 4, further comprising, after the comparing the MAC address read from the MAC address field of the license string to the MAC address of the current WIFI module:
and if the MAC addresses of the WIFI module and the current WIFI module are inconsistent, determining that the current WIFI module is illegally restarted.
6. The utility model provides a permission setting device of WIFI module which characterized in that includes:
the generation module is used for generating a license character string corresponding to the to-be-processed WIFI module, wherein the license character string comprises: setting the MAC address of the WIFI module in an MAC address field, and identifying the functions which can be used in the WIFI module in a function permission field; in the process of generating the license character string corresponding to the WIFI module to be processed, defining different functional fields of the license character string;
the first processing module is used for encrypting the license character string by applying a preset encryption algorithm to generate a software license and burning the software license into a specified target area in the WIFI module;
wherein the license string further comprises: a protocol header field, a license length field, an extended function field, and a check field.
7. The apparatus of claim 6, wherein the functional rights field comprises at least one of:
the system comprises a network distribution function, a household appliance OTA upgrading function, a cloud platform docking function, a near field discovery function and a WeChat direct connection function.
8. The apparatus of claim 6, wherein the identifying, in the functional permission field, functions that can be used in the WIFI module comprises:
setting a bit corresponding to a function that can be used in the WIFI module to 1 in a function permission field, and/or,
and setting a bit corresponding to the function forbidden to be used in the WIFI module as 0.
9. A processing device of a WIFI module is characterized by comprising:
the reading module is used for reading out the encrypted software license burnt in advance from the target area appointed in the current WIFI module;
the acquisition module is used for applying a preset decryption algorithm corresponding to the encryption algorithm to decrypt the software license and acquire a license character string;
the comparison module is used for comparing the MAC address read from the MAC address field of the license character string with the MAC address of the current WIFI module;
the second processing module is used for opening the functions which can be used in the WIFI module and closing the functions which are forbidden to be used in the WIFI module according to the identification of the function permission field of the license character string when the MAC addresses of the WIFI module and the MAC address of the WIFI module are consistent; the method comprises the steps that in the process of generating a license character string corresponding to a WIFI module to be processed, different functional fields of the license character string are defined;
wherein the license string further comprises: a protocol header field, a license length field, an extended function field, and a check field;
the device further comprises:
a verification module for verifying a protocol header field in the license string;
and the third processing module is used for checking the integrity of the license character string according to the check field in the license character string and checking the MAC address when the license character string is complete.
10. The apparatus of claim 9, wherein the second processing module is further to:
and when the MAC addresses of the WIFI module and the current WIFI module are inconsistent, determining that the current WIFI module is illegal to restart.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610977714.7A CN106446620B (en) | 2016-10-28 | 2016-10-28 | Permission setting and processing method and device of WIFI module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610977714.7A CN106446620B (en) | 2016-10-28 | 2016-10-28 | Permission setting and processing method and device of WIFI module |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106446620A CN106446620A (en) | 2017-02-22 |
CN106446620B true CN106446620B (en) | 2020-11-24 |
Family
ID=58207502
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610977714.7A Active CN106446620B (en) | 2016-10-28 | 2016-10-28 | Permission setting and processing method and device of WIFI module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106446620B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106897585B (en) * | 2017-03-15 | 2019-12-13 | 北京深思数盾科技股份有限公司 | software license management method, software protection method and device |
CN107329775B (en) * | 2017-05-25 | 2021-02-23 | 杭州赫智电子科技有限公司 | WIFI firmware burning method |
CN110704814B (en) * | 2018-07-09 | 2022-02-01 | 中移物联网有限公司 | Anti-copy method and device, and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102110199A (en) * | 2009-12-28 | 2011-06-29 | 北京安码科技有限公司 | Method for utilizing Elagamal public key algorithm to generate software license code |
CN102769619A (en) * | 2012-07-20 | 2012-11-07 | 南京小网科技有限责任公司 | Method for automatically registering intelligent home appliance in network by one key |
CN104394050A (en) * | 2014-11-20 | 2015-03-04 | 珠海格力电器股份有限公司 | Connection method and connection device for intelligent housing system |
CN104660702A (en) * | 2015-03-04 | 2015-05-27 | 深圳市新联锋科技有限公司 | Butt-joint method and system of third-party cloud server and private Internet of things cloud server |
CN105243318A (en) * | 2015-08-28 | 2016-01-13 | 小米科技有限责任公司 | User equipment control right determining method and apparatus and terminal device |
CN105429985A (en) * | 2015-11-30 | 2016-03-23 | 青岛海尔智能家电科技有限公司 | MAC (Media Access Control) authentication method, authentication device and MAC encryption method for WIFI (Wireless Fidelity) module and WIFI module |
CN105847005A (en) * | 2016-03-14 | 2016-08-10 | 美的集团股份有限公司 | Encryption device and method |
CN105871855A (en) * | 2016-04-11 | 2016-08-17 | 杨鹏 | Method and system for generating, storing and identifying identification code of electronic equipment |
CN105978851A (en) * | 2016-04-13 | 2016-09-28 | 青岛海信传媒网络技术有限公司 | System and method for controlling intelligent equipment |
-
2016
- 2016-10-28 CN CN201610977714.7A patent/CN106446620B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102110199A (en) * | 2009-12-28 | 2011-06-29 | 北京安码科技有限公司 | Method for utilizing Elagamal public key algorithm to generate software license code |
CN102769619A (en) * | 2012-07-20 | 2012-11-07 | 南京小网科技有限责任公司 | Method for automatically registering intelligent home appliance in network by one key |
CN104394050A (en) * | 2014-11-20 | 2015-03-04 | 珠海格力电器股份有限公司 | Connection method and connection device for intelligent housing system |
CN104660702A (en) * | 2015-03-04 | 2015-05-27 | 深圳市新联锋科技有限公司 | Butt-joint method and system of third-party cloud server and private Internet of things cloud server |
CN105243318A (en) * | 2015-08-28 | 2016-01-13 | 小米科技有限责任公司 | User equipment control right determining method and apparatus and terminal device |
CN105429985A (en) * | 2015-11-30 | 2016-03-23 | 青岛海尔智能家电科技有限公司 | MAC (Media Access Control) authentication method, authentication device and MAC encryption method for WIFI (Wireless Fidelity) module and WIFI module |
CN105847005A (en) * | 2016-03-14 | 2016-08-10 | 美的集团股份有限公司 | Encryption device and method |
CN105871855A (en) * | 2016-04-11 | 2016-08-17 | 杨鹏 | Method and system for generating, storing and identifying identification code of electronic equipment |
CN105978851A (en) * | 2016-04-13 | 2016-09-28 | 青岛海信传媒网络技术有限公司 | System and method for controlling intelligent equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106446620A (en) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101548041B1 (en) | Validation and/or authentication of a device for communication with a network | |
KR101549896B1 (en) | Terminal device and software managing method thereof | |
US20150089219A1 (en) | Systems and methods for enforcing third party oversight of data anonymization | |
US20130024679A1 (en) | Information recording apparatus | |
JP2016527608A5 (en) | ||
CN106446620B (en) | Permission setting and processing method and device of WIFI module | |
US20180198620A1 (en) | Systems and methods for assuring data on leased computing resources | |
CN110708164B (en) | Control method and device for Internet of things equipment, storage medium and electronic device | |
CN108199827B (en) | Client code integrity checking method, storage medium, electronic device and system | |
WO2013185724A2 (en) | Mobile terminal and software upgrade method thereof | |
US20110016298A1 (en) | Configuration File | |
CN112637156B (en) | Key distribution method, device, computer equipment and storage medium | |
KR20160098756A (en) | Hardware secure module, method for updating integrity check value stored in the hardware secure module and program stored in terminal by the hardware secure module | |
CN106446613A (en) | Protection method for pre-installed application in terminal | |
US20170201528A1 (en) | Method for providing trusted service based on secure area and apparatus using the same | |
KR102256249B1 (en) | SECURE FIRMWARE UPDATE METHOD OF IoT DEVICE USING AN INTEGRATED SECURITY SoC | |
CN106372466B (en) | The licensing burning of WIFI module, processing method and processing device | |
CN110704814B (en) | Anti-copy method and device, and storage medium | |
US11297045B2 (en) | Information recording apparatus with shadow boot program for authentication with a server | |
CN105022651B (en) | A kind of method for preventing piracy in equipment production process and firmware programming device | |
CN107809426B (en) | Data information verification method and system | |
WO2017092507A1 (en) | Application encryption method and device, and application access method and device | |
US20220209946A1 (en) | Key revocation for edge devices | |
CN115795438A (en) | Method and system for authorizing application program and readable storage medium | |
CN111611574A (en) | Information acquisition method, device, equipment and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |