Software function activation method, device, equipment and storage medium

By using encryption chips to generate and verify device configuration data on the device side, the deficiencies in security and flexibility of existing software authorization methods are solved, enabling efficient and safe software function activation in industrial scenarios, and is suitable for iterative development and Diverse authorization scenarios.

CN116016168BActive Publication Date: 2024-09-20XIAN HUICHUAN TECHNOLOGY R&D CENTER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211600561.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-12
Publication Date
2024-09-20
Estimated Expiration
2042-12-12

AI Technical Summary

Technical Problem

Existing software authorization methods have deficiencies in security and flexibility. Especially in industrial scenarios, it is difficult to meet the needs of iterative development and diverse authorization scenarios. Moreover, hardware dongles are costly and lack flexibility and scalability.

Method used

An encryption chip is used for software function activation. By generating device configuration data and uploading it to the activation server, it receives and verifies the activation verification data and function configuration data, activates software functions based on the verification results, and stores the activation data in the encryption chip to improve security. sex and flexibility.

Benefits of technology

It improves the security and flexibility of software function activation, reduces costs, can quickly respond to the needs of iterative development and diverse authorization scenarios, and enhances the scalability and customization of activation solutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016168B
    Figure CN116016168B
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and storage medium for activating software functions. The method is applied to a device end, and an encryption chip is provided on the device end. The method comprises: generating device configuration data according to function data of a function to be activated and device data stored in the encryption chip; uploading the device configuration data to an activation server, and receiving activation verification data and activation function configuration data issued by the activation server based on the device configuration data; when the activation verification data passes the data verification, activating the function to be activated according to the activation function configuration data. The software functions on the device end can be activated according to user needs, which improves the flexibility of software function activation, and the device data required in the process of activating the software function is stored in the encryption chip, which improves the security of software function activation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial network technology, and in particular to a software function activation method, device, equipment and storage medium. Background Art

[0002] Traditional software authorization methods include network authorization, license file authorization, and hardware dongle authorization. However, network authorization and license file authorization are mainly general pure software authorization activation solutions, and security cannot be guaranteed. The cost of using hardware dongles is high, and the flexibility, scalability and customization are poor. It is difficult to respond quickly to products in iterative development and diversified authorization scenarios.

[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of the present invention is to provide a software function activation method, device, equipment and storage medium, aiming to solve the technical problem that the activation scheme adopted in the prior art has low security and cannot be applied to industrial scene requirements.

[0005] To achieve the above object, the present invention provides a method for activating a software function, which is applied to a device end, wherein the device end is provided with an encryption chip, and the method comprises the following steps:

[0006] generating device configuration data according to the function data of the function to be activated and the device data stored in the encryption chip;

[0007] Uploading the device configuration data to an activation server, and receiving activation verification data and activation function configuration data issued by the activation server based on the device configuration data;

[0008] When the activation verification data passes the data verification, the function to be activated is activated according to the activation function configuration data.

[0009] Optionally, the activation verification data includes an encrypted chip authentication key, a verification hash value, and an activation hash value;

[0010] When the activation verification data passes the data verification, activating the to-be-activated function according to the activation function configuration data includes:

[0011] Sending a random verification character to the encryption chip, and obtaining verification data fed back by the encryption chip based on the random verification character;

[0012] generating authentication request data according to the encryption chip authentication key and the random authentication character, and when the authentication request data is consistent with the authentication data, determining whether the authentication hash value is consistent with the device hash value, the device hash value being generated according to the device data;

[0013] If they are consistent, then when the activation hash value is consistent with the function hash value, the activation function configuration data is written into the encryption chip to activate the function to be activated, and the function hash value is generated according to the function data.

[0014] Optionally, the device data includes activated function configuration data, and the activation verification data also includes historical configuration data;

[0015] After the activation hash value is consistent with the function hash value, the method further includes:

[0016] Acquire the activated function configuration data stored in the encryption chip, and determine whether the activated function configuration data is consistent with the historical configuration data;

[0017] If they are consistent, the activation function configuration data is written into the encryption chip to activate the function to be activated.

[0018] Optionally, before generating device configuration data according to the function data of the function to be activated and the device data stored in the encryption chip, the method further includes:

[0019] Generate function data according to the function to be activated selected by the user;

[0020] When the ciphertext information input into the encryption chip is verified, the device data is read from the storage area of ​​the encryption chip.

[0021] To achieve the above object, the present invention further proposes a method for activating a software function, which is applied to an activation server and comprises the following steps:

[0022] Read the device identification information, device electronic tag data, chip identification number, function data and activated function configuration data from the device configuration data uploaded by the device, and determine whether the device has function activation authority based on the device identification information and the function data;

[0023] When the device has function activation authority, generating activation verification data according to the device identification information, the device electronic tag data, the chip identification number, the function data and the activated function configuration data;

[0024] generating activation function configuration data according to the function data;

[0025] The activation verification data and the activation function configuration data are sent to the device end so that the device end performs function activation.

[0026] Optionally, generating activation verification data according to the device identification information, the device electronic tag data, the chip identification number, the function data and the activated function configuration data includes:

[0027] Generate an encrypted chip authentication key based on the device electronic tag data and the chip identification number;

[0028] Performing hash processing on the device identification information to obtain a verification hash value, and performing hash processing on the function data to obtain an activation hash value;

[0029] Activation verification data is generated according to the encryption chip authentication key, the verification hash value, the activation hash value and the activated function configuration data.

[0030] Optionally, judging whether the device has function activation authority according to the device identification information and the function data includes:

[0031] Determining the authorized function data of the device terminal according to the device identification information;

[0032] When the function data exists in the authorized function data, it is determined that the device has the function activation authority.

[0033] In addition, to achieve the above-mentioned purpose, the present invention also proposes a software function activation device, the device comprising:

[0034] A generating module, used for generating device configuration data according to the function data of the function to be activated and the device data stored in the encryption chip;

[0035] An uploading module, used to upload the device configuration data to an activation server, and receive activation verification data and activation function configuration data issued by the activation server based on the device configuration data;

[0036] The activation module is used to activate the to-be-activated function according to the activation function configuration data when the activation verification data passes the data verification.

[0037] In addition, to achieve the above-mentioned purpose, the present invention also proposes a software function activation device, which includes: a memory, a processor, and a software function activation program stored in the memory and executable on the processor, wherein the software function activation program is configured to implement the steps of the software function activation method described above.

[0038] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a software function activation program is stored, and when the software function activation program is executed by a processor, the steps of the software function activation method described above are implemented.

[0039] The present invention proposes a method for activating a software function, which is applied to a device end, wherein the device end is provided with an encryption chip, and the method comprises: generating device configuration data according to the function data of the function to be activated and the device data stored in the encryption chip; uploading the device configuration data to an activation server, and receiving activation verification data and activation function configuration data issued by the activation server based on the device configuration data; when the activation verification data passes the data verification, activating the function to be activated according to the activation function configuration data. The present invention generates device configuration data according to the function data of the function to be activated and the device data stored in the encryption chip, and performs data verification according to the activation verification data issued by the activation server based on the device configuration data, and activates the function to be activated according to the activation function configuration data issued by the activation server when the data verification passes, and can activate the software function of the device end according to the user's needs, thereby improving the flexibility of software function activation, and storing the device data required in the process of activating the software function in the encryption chip, thereby improving the security of software function activation. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a structural diagram of a software function activation device in a hardware operating environment involved in an embodiment of the present invention;

[0041] Figure 2 This is a flowchart of a first embodiment of a method for activating a software function according to the present invention;

[0042] Figure 3 It is a schematic diagram of activating network enhancement and Ether CAT functions in an embodiment of a method for activating software functions of the present invention;

[0043] Figure 4 This is a flowchart of a second embodiment of the software function activation method of the present invention;

[0044] Figure 5 A schematic diagram of a flow chart of a third embodiment of a method for activating a software function according to the present invention;

[0045] Figure 6 It is a structural block diagram of the first embodiment of the software function activation device of the present invention;

[0046] Figure 7 It is a structural block diagram of the third embodiment of the software function activation device of the present invention.

[0047] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0049] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of a software function activation device in a hardware operating environment involved in an embodiment of the present invention.

[0050] like Figure 1 As shown, the software function activation device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0051] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the software function activation device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0052] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a software function activation program.

[0053] exist Figure 1In the software function activation device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the software function activation device of the present invention can be set in the software function activation device, and the software function activation device calls the software function activation program stored in the memory 1005 through the processor 1001, and executes the software function activation method provided by the embodiment of the present invention.

[0054] At present, software authorization methods mainly include network authorization, license file authorization and hardware dongle authorization. Network authorization mainly means that the authorization program will obtain the hardware information of the device itself, such as the network card MAC and CPU, generate the device ID based on the obtained hardware information, and query the remote server whether the device is authorized; license file authorization mainly puts specific data known only to the manufacturer in a specified file, and checks the content of the file during the authorization software to determine whether it is authorized; hardware dongles are generally bound to dedicated security encryption devices, and specific authentication function libraries are integrated in the software to communicate with dedicated encryption devices. The activation scheme using network authorization and license file authorization has low security, and network authorization requires constant network connection, which does not meet the application scenarios of industrial sites; the activation scheme using hardware dongles has high cost, and the activation scheme has poor flexibility, scalability and customization, and cannot respond quickly to products in iterative development and diversified authorization scenarios.

[0055] Based on the above problems, an embodiment of the present invention provides a method for activating a software function. The method for activating a software function is applied to a device end, and the device end is provided with an encryption chip. Figure 2 , Figure 2 Schematic diagram of the flow chart of the first embodiment of the method for activating software functions of the present invention.

[0056] In this embodiment, the software function activation method includes the following steps:

[0057] Step S10: Generate device configuration data according to the function data of the function to be activated and the device data stored in the encryption chip.

[0058] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, or an electronic device that can realize the above functions, a software function activation device or a device to be activated, etc. The following takes the device to be activated (referred to as the device end) as an example to illustrate this embodiment and the following embodiments.

[0059] It can be understood that the function to be activated can be a software function that needs to be activated on the device side; the function data can be data generated by the device side program based on the function to be activated, for example, the function to be activated and the function data are stored in a mapping relationship, and the function to be activated selected by the user is the mobile terminal control support function. The device side determines the function data corresponding to the mobile terminal control support function according to the above mapping relationship, or the device side hashes the characters "mobile terminal control support" to obtain the function data corresponding to the mobile terminal control support function. The function data can also be generated in other ways, which are not limited in this embodiment; the encryption chip can be a chip set on the device side for storing device data, and the device data includes the identity data of the device side, the configuration data of the activated functions of the device side, etc.; the device configuration data can be data that can uniquely locate the device side and the authorized functions of the device side, and the device configuration data can be written into a file in a preset format.

[0060] In a specific implementation, the user selects the software function that needs to be activated in the program on the device side, the device side determines the function to be activated based on the software function selected by the user, generates corresponding function data based on the function to be activated, the device side reads the device data from the storage data of the encryption chip, writes the function data and device data into a file in a preset format, and obtains the device configuration data.

[0061] Step S20: Upload the device configuration data to the activation server, and receive activation verification data and activation function configuration data issued by the activation server based on the device configuration data.

[0062] In this embodiment, the activation server may be a server that activates software functions on the device side; the activation verification data may be data for verifying whether the device side has the software function activation authority; and the activation function configuration data may be data for configuring parameters of the software function to be activated.

[0063] Step S30: When the activation verification data passes the data verification, activating the function to be activated according to the activation function configuration data.

[0064] In a specific implementation, the user selects a software function that needs to be activated on the device side, the device side determines that the software function selected by the user is the function to be activated, and generates function data based on the function to be activated, reads the identity data of the device side from the internally set encryption chip, writes the function data and the identity data into a file in a preset format to generate a device configuration file, uploads the device configuration file to the activation server, and receives the activation verification data and activation function configuration data issued by the activation server based on the device configuration file. The device side verifies the activation authority of the device side based on the activation verification data, and when the activation authority verification is passed, writes the activation function configuration data into the encryption chip, and configures the parameters of the software function to be activated according to the configuration data written into the encryption chip, thereby activating the corresponding software function.

[0065] In another implementation, the device generates function data according to the function to be activated selected by the user, reads the identity data of the device and the configuration data of the activated function from the encryption chip, writes the function data, identity data and the configuration data of the activated function into a file in a preset format, generates a device configuration file, and uploads the device configuration file to the activation server, performs permission verification according to the activation verification data sent by the activation server based on the device configuration file, and activates the software function selected by the user according to the activation function configuration data when the verification passes.

[0066] It is understandable that in order to improve the security of software function activation, the device side can use the private key of the RSA key pair to encrypt the device configuration data and then upload it to the activation server. After the activation server receives the encrypted data, it needs to use the public key of the RSA key pair to decrypt the encrypted data to obtain the device configuration data.

[0067] In this embodiment, for example, referring to Figure 3 , Figure 3The schematic diagram of activating the network enhancement and Ether CAT functions is as follows: assuming that the user selects the network enhancement and Ether CAT functions in the function activation program on the device side, the activation program determines that the functions to be activated are network enhancement and Ether CAT, generates function data according to network enhancement and Ether CAT, reads the device ID from the encryption chip, generates a device configuration file according to the function data and the device ID, exports the device configuration file and uploads it to the activation server, so that the activation server sends permission verification data and configuration data corresponding to the network enhancement and Ether CAT functions according to the device configuration file, the function activation program on the device side verifies whether the device side has the function permission of network enhancement and Ether CAT according to the verification data, and writes the configuration data of network enhancement and Ether CAT into the encryption chip when the function permission verification passes, and performs parameter configuration according to the configuration data to activate the network enhancement and Ether CAT functions on the device side.

[0068] Furthermore, in order to improve the activation security, before step S10, it also includes: generating function data according to the function to be activated selected by the user; and reading device data from the storage area of ​​the encryption chip when the ciphertext information input into the encryption chip is verified.

[0069] It is understandable that the ciphertext information may be verification information for determining whether the user has the authority to read data from the encryption chip. For example, the ciphertext information may be a preset password or a public key of the encryption chip.

[0070] In a specific implementation, the device generates function data according to the function to be activated selected by the user through the function activation program on the device, and obtains the verification password entered by the user, and determines whether the device has the authority to read the device data based on the verification password. If so, the device data is read from the storage area of ​​the encryption chip.

[0071] In this embodiment, since device configuration data is generated according to the function data of the function to be activated and the device data stored in the encryption chip, and software function activation is performed according to the activation function configuration data issued by the activation server based on the device configuration data, if the software function activation method proposed in this embodiment is applied to products under iterative development, when new functions are added to the products under iterative development, it is only necessary to add the corresponding function data. This method has high flexibility and can quickly respond to products under iterative development and diversified authorization scenarios. In addition, the device data is stored by the encryption chip on the device side, which improves activation security while reducing costs. If the software function activation method proposed in this embodiment is applied to products that are not under iterative development, corresponding function expansion and customization improvements can be performed according to the functions of the products. This method improves activation security while making the activation solution more scalable and customizable, and can meet the needs of more application scenarios.

[0072] This embodiment proposes a method for activating a software function, which is applied to a device end, and the device end is provided with an encryption chip, and the method includes: generating device configuration data according to the function data of the function to be activated and the device data stored in the encryption chip; uploading the device configuration data to the activation server, and receiving the activation verification data and activation function configuration data issued by the activation server based on the device configuration data; when the activation verification data passes the data verification, activating the function to be activated according to the activation function configuration data. This embodiment generates device configuration data according to the function data of the function to be activated and the device data stored in the encryption chip, and performs data verification according to the activation verification data issued by the activation server based on the device configuration data, and activates the function to be activated according to the activation function configuration data issued by the activation server when the data verification passes, which can activate the software function of the device end according to the user's needs, improve the flexibility of software function activation, and store the device data needed in the process of activating the software function in the encryption chip, which improves the security of software function activation.

[0073] refer to Figure 4 , Figure 4 Schematic diagram of the flow chart of the second embodiment of the method for activating software functions of the present invention.

[0074] Based on the above first embodiment, in this embodiment, the activation verification data includes an encrypted chip authentication key, a verification hash value, and an activation hash value; the step S30 includes:

[0075] Step S301: Sending a random verification character to the encryption chip, and obtaining verification data fed back by the encryption chip based on the random verification character.

[0076] It is understandable that the encryption chip authentication key can be a secret key for verifying the authority when writing data into the encryption chip; the random verification character can be a randomly generated character used to generate verification data. The encryption chip stores the encryption chip authentication key internally. After receiving the random verification character, the encryption chip generates verification data based on the encryption chip authentication key and random verification character stored internally, and feeds back the generated verification data.

[0077] Step S302: Generate authentication request data according to the encryption chip authentication key and the random verification character, and when the authentication request data is consistent with the verification data, determine whether the verification hash value is consistent with the device hash value, and the device hash value is generated according to the device data.

[0078] In this embodiment, the device generates authentication request data based on the encryption chip authentication key and random verification characters. The authentication request data is generated in the same way as the encryption chip generates verification data, for example, by generating verification data and authentication request data through hash operations. When the authentication request data is consistent with the verification data, the authentication is determined to be successful, and subsequent verification is continued; otherwise, the software function activation is determined to have failed.

[0079] It can be understood that the verification hash value can be a hash value obtained by the activation server by hashing the device data in the received device configuration data through the SHA256 algorithm; the activation hash value can be a hash value obtained by the activation server by hashing the function data in the received device configuration data through the SHA256 algorithm; the device hash value can be a hash value generated by the device side based on the device data stored in the encryption chip.

[0080] Step S303: If they are consistent, then when the activation hash value is consistent with the function hash value, the activation function configuration data is written into the encryption chip to activate the function to be activated, and the function hash value is generated according to the function data.

[0081] In this embodiment, the function hash value can be a hash value generated by the device side based on the function data of the function to be activated; when the activation hash value is consistent with the function hash value, it is determined that the device that receives the software function activation data sent by the activation server and the device that uploads the device configuration data are the same device.

[0082] In a specific implementation, the device side generates a device hash value based on the device data stored in the encryption chip, and generates a function hash value based on the function data of the function to be activated. When the device side receives the software function activation data sent by the activation server, it first generates a random verification character, receives the verification data generated by the encryption chip based on the random verification character, and generates authentication request data based on the encryption chip authentication key and the random verification character. If the verification data is consistent with the authentication request data, it determines whether the verification hash value in the software function activation data is consistent with the device hash value. If they are consistent, it continues to determine whether the activation hash value in the software function activation data is consistent with the function hash value. If they are consistent, it is determined that the device that receives the software function activation data sent by the activation server and the device that uploads the device configuration data are the same device. At this time, the configuration data of the activation function is written into the encryption chip to activate the corresponding software function.

[0083] Furthermore, in order to improve the security of activation, the device data includes activated function configuration data, the activation verification data also includes historical configuration data, and after the activation hash value is consistent with the function hash value, it also includes: obtaining the activated function configuration data stored in the encryption chip, and determining whether the activated function configuration data is consistent with the historical configuration data; if they are consistent, writing the activation function configuration data into the encryption chip to activate the function to be activated.

[0084] It can be understood that the activated function configuration data can be the configuration data corresponding to the activated software function stored in the encryption chip; the historical configuration data can be the configuration data contained in the device configuration data uploaded by the device end; when the activated function configuration data is consistent with the historical configuration data, it is determined that the device that receives the activation function configuration data sent by the activation server and the device that uploads the device configuration data are the same device. At this time, the activation function configuration data is written into the encryption chip to activate the corresponding software function.

[0085] In the specific implementation, the verification activation data sent by the activation server includes historical configuration data. The device side first uses the encryption chip authentication key to request authentication from the encryption chip. If the authentication fails, it is determined that the software function activation has failed. If the authentication passes, it is determined whether the device hash value is consistent with the verification hash value. If not, the activation fails. If they are consistent, it is determined whether the activation hash value is consistent with the function hash value. If not, the activation fails. If they are consistent, it is determined whether the historical configuration data is consistent with the activated function configuration data. If not, the activation fails. If they are consistent, the latest configuration data of the function to be activated is written into the encryption chip to activate the function to be activated. Furthermore, the activated function configuration data stored in the encryption chip can be cleared, and only the latest configuration data corresponding to the function to be activated is retained. Through multiple verifications, the security of activation is further improved.

[0086] This embodiment sends a random verification character to the encryption chip, and obtains the verification data fed back by the encryption chip based on the random verification character; generates authentication request data according to the encryption chip authentication key and the random verification character, and when the authentication request data is consistent with the verification data, determines whether the verification hash value is consistent with the device hash value, and the device hash value is generated according to the device data; if they are consistent, when the activation hash value is consistent with the function hash value, writes the activation function configuration data to the encryption chip to activate the function to be activated, and the function hash value is generated according to the function data. This embodiment performs multiple verifications through the encryption chip authentication key, verification hash value, and activation hash value, and activates the software function when the multiple verifications pass, further improving the security of software function activation.

[0087] refer to Figure 5 , Figure 5 Schematic diagram of the flow chart of the third embodiment of the method for activating software functions of the present invention.

[0088] Based on the above embodiments, in this embodiment, the software function activation method is applied to an activation server, including:

[0089] Step S01: Read device identification information, device electronic tag data, chip identification number, function data and activated function configuration data from the device configuration data uploaded by the device, and determine whether the device has function activation authority based on the device identification information and the function data.

[0090] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, or an electronic device, software function activation device or activation server capable of implementing the above functions. The following takes the activation server as an example to illustrate this embodiment and the following embodiments.

[0091] It can be understood that the device identification information can be information that can uniquely identify the device end, for example, the device identification information includes the device ID, device number, etc.; the activation server maintains a mapping relationship between the device identification information and the functional data with activation authority, and based on the mapping relationship, it can be determined whether the device end that uploads the device configuration data has the function activation authority.

[0092] It should be understood that the device electronic tag data may be data that can identify the device attributes in detail, for example, the device electronic tag data includes: device manufacturer, operating system, version, etc. The chip identification number may also be called chip ID, which can uniquely identify the encryption chip. The activated function data may be the configuration data of the functions that have been activated on the device side.

[0093] Step S02: When the device has the function activation authority, activation verification data is generated according to the device identification information, the device electronic tag data, the chip identification number, the function data and the activated function configuration data.

[0094] In a specific implementation, when the device has permission to activate a function, activation verification data is generated based on the device identification information, device electronic tag data, chip identification number, function data, and activated function configuration data in the device configuration data, and activation function configuration data is generated based on the function data in the device configuration data.

[0095] Step S03: generating activation function configuration data according to the function data;

[0096] Step S04: Sending the activation verification data and the activation function configuration data to the device end, so that the device end performs function activation according to the software function activation data.

[0097] It should be noted that in order to improve the security of software function activation, the activation server can use the public key of the RAS key pair to encrypt the activation verification data and activation function configuration data, and send the encrypted data to the device side. The device side must use the private key of the RAS key pair to decrypt the encrypted data before proceeding to the next step.

[0098] Furthermore, in order to improve the security of software function activation, the software function activation data is generated according to the device configuration data, including: generating an encrypted chip authentication key according to the device electronic tag data and the chip identification number; hashing the device identification information to obtain a verification hash value, and hashing the function data to obtain an activation hash value; generating activation verification data according to the encrypted chip authentication key, the verification hash value, the activation hash value and the activated function configuration data.

[0099] In a specific implementation, for example, the activation server hashes the device electronic tag data and the chip identification number to obtain an encrypted chip authentication key; after receiving the device configuration data uploaded by the device, the activation server hashes the function data in the device configuration data through the SHA256 algorithm to obtain an activation hash value, and hashes the device data in the device configuration data through the SHA256 algorithm to obtain a verification hash value. The encrypted chip authentication key, verification hash value, activation hash value, and activated function configuration data constitute activation verification data.

[0100] Furthermore, in order to determine whether the device has permission to activate the function so as to improve the security of software function activation, the determining whether the device has permission to activate the function based on the device identification information and the function data includes: determining the authorized function data of the device based on the device identification information; and determining that the device has permission to activate the function when the function data exists in the authorized function data.

[0101] It is understandable that the authorized function data may be software function data that the device has activation authority for; if the authorized function data includes function data of the function to be activated, it is determined that the device has activation authority for the function to be activated.

[0102] In the specific implementation, continue to refer to Figure 3 , Figure 3The schematic diagram of activating the network enhancement and Ether CAT functions is as follows: assuming that the user selects the network enhancement and Ether CAT functions in the function activation program on the device side, the activation program determines that the functions to be activated are network enhancement and Ether CAT, and generates function data according to network enhancement and Ether CAT. The function activation program reads the device ID, device electronic tag data, chip ID and activated function configuration data from the encryption chip, generates a device configuration file according to the above data, exports the device configuration file, and encrypts the device configuration file with the private key of the RSA key pair and uploads it to the activation server. After the activation server receives the encrypted file, it decrypts the encrypted file with the public key of the RSA key pair to obtain the device configuration file. The activation server determines whether the device side has the function activation permission according to the device ID and function data in the device configuration file. If yes, it generates an encryption chip authentication key according to the device electronic tag data and chip ID; and performs hash processing on the function data to obtain the activation hash value, performs hash processing on the device data to obtain the verification hash value, and obtains the network enhancement and Ether CAT. The activation function configuration data corresponding to CAT, the encryption chip authentication key, the activation hash value, the verification hash value and the historical configuration data constitute the activation verification data. The activation verification data and the activation function configuration data are encrypted by the public key pair of the RAS key and sent to the device end. After the device end receives the encrypted file, it uses the private key of the RSA key pair to decrypt the encrypted file to obtain the activation verification data and the activation function configuration data. According to the encryption chip authentication key in the activation verification data, an authentication request is sent to the encryption chip. If the authentication request fails, the activation fails; if the authentication request passes, the device end obtains the function hash value and the device hash value generated according to the function data of the device end and the device data in the encryption chip, and compares the device hash value with the verification hash value to see if they are consistent. If they are inconsistent, the activation fails. If they are consistent, the function hash value and the activation hash value are compared to see if they are consistent. If they are inconsistent, the activation fails. If they are consistent, the historical configuration data is compared with the configuration data stored in the encryption chip to see if they are consistent. If they are inconsistent, the activation fails. If they are consistent, the configuration data of the network enhancement and Ether CAT are written into the encryption chip, and the parameters are configured according to the configuration data to activate the network enhancement and Ether on the device end. CAT function.

[0103] This embodiment reads the device identification information, device electronic tag data, chip identification number, function data and activated function configuration data from the device configuration data uploaded by the device end, and judges whether the device end has the function activation authority according to the device identification information and the function data; when the device end has the function activation authority, generates activation verification data according to the device identification information, the device electronic tag data, the chip identification number, the function data and the activated function configuration data; generates activation function configuration data according to the function data; sends the activation verification data and the activation function configuration data to the device end so that the device end performs function activation. This embodiment sends the activation verification data and the activation function configuration data to the device end when judging that the device end has the function activation authority according to the device identification information and function data in the device configuration data, so that the device end activates the software function according to the activation function configuration data after the activation verification data passes the data verification, and can activate the software function according to the user's needs, thereby improving the flexibility and security of software function activation, and can be applicable to industrial application scenarios.

[0104] In addition, an embodiment of the present invention further provides a storage medium, on which a software function activation program is stored. When the software function activation program is executed by a processor, the steps of the software function activation method described above are implemented.

[0105] Reference Figure 6 , Figure 6 It is a structural block diagram of the first embodiment of the software function activation device of the present invention.

[0106] like Figure 6 As shown, the software function activation device proposed in the embodiment of the present invention includes:

[0107] A generating module 10, configured to generate device configuration data according to the function data of the function to be activated and the device data stored in the encryption chip;

[0108] The uploading module 20 is used to upload the device configuration data to the activation server, and receive the activation verification data and activation function configuration data issued by the activation server based on the device configuration data;

[0109] The activation module 30 is configured to activate the to-be-activated function according to the activation function configuration data when the activation verification data passes data verification.

[0110] This embodiment generates device configuration data based on the function data of the function to be activated and the device data stored in the encryption chip, and performs data verification based on the activation verification data sent by the activation server based on the device configuration data, and activates the function to be activated according to the activation function configuration data sent by the activation server when the data verification passes. It can activate the software function on the device side according to user needs, thereby improving the flexibility of software function activation, and stores the device data needed in the process of activating the software function in the encryption chip, thereby improving the security of software function activation.

[0111] Based on the first embodiment of the software function activation device of the present invention, a second embodiment of the software function activation device of the present invention is proposed.

[0112] In this embodiment, the activation module 30 is also used to send a random verification character to the encryption chip, and obtain verification data fed back by the encryption chip based on the random verification character; generate authentication request data according to the encryption chip authentication key and the random verification character, and when the authentication request data is consistent with the verification data, determine whether the verification hash value is consistent with the device hash value, and the device hash value is generated according to the device data; if they are consistent, then when the activation hash value is consistent with the function hash value, write the activation function configuration data into the encryption chip to activate the function to be activated, and the function hash value is generated according to the function data; the activation verification data includes the encryption chip authentication key, the verification hash value and the activation hash value.

[0113] The activation module 30 is also used to obtain the activated function configuration data stored in the encryption chip, and determine whether the activated function configuration data is consistent with the historical configuration data; if consistent, the activation function configuration data is written into the encryption chip to activate the function to be activated; the device data includes the activated function configuration data, and the activation verification data also includes the historical configuration data.

[0114] The generating module 10 is further used to generate function data according to the function to be activated selected by the user; when the ciphertext information input into the encryption chip is verified, the device data is read from the storage area of ​​the encryption chip.

[0115] Reference Figure 7 , Figure 7 It is a structural block diagram of the third embodiment of the software function activation device of the present invention.

[0116] like Figure 7 As shown, the software function activation device proposed in the embodiment of the present invention includes:

[0117] The judging module 40 is used to read the device identification information, the device electronic tag data, the chip identification number, the function data and the activated function configuration data from the device configuration data uploaded by the device, and judge whether the device has the function activation authority according to the device identification information and the function data;

[0118] The verification data generation module 50 is used to generate activation verification data according to the device identification information, the device electronic tag data, the chip identification number, the function data and the activated function configuration data when the device end has the function activation authority;

[0119] Configuration data generation module 60, used to generate activation function configuration data according to the function data

[0120] The sending module 70 is used to send the activation verification data and the activation function configuration data to the device end so that the device end can activate the function.

[0121] Furthermore, the verification data generation module 50 is also used to generate an encryption chip authentication key based on the device electronic tag data and the chip identification number; perform hash processing on the device identification information to obtain a verification hash value, and perform hash processing on the function data to obtain an activation hash value; and generate activation verification data based on the encryption chip authentication key, the verification hash value, the activation hash value and the activated function configuration data.

[0122] Furthermore, the judgment module 40 is also used to determine the authorized function data of the device end according to the device identification information; when the function data exists in the authorized function data, it is determined that the device end has the function activation authority.

[0123] Other embodiments or specific implementations of the software function activation device of the present invention can refer to the above-mentioned method embodiments, which will not be described in detail here.

[0124] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0125] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0126] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0127] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for activating a software function, characterized in that: The software function activation method is applied to a device end, and the device end is provided with an encryption chip, and the method comprises: generating device configuration data according to the function data of the function to be activated and the device data stored in the encryption chip; Uploading the device configuration data to an activation server, and receiving activation verification data and activation function configuration data issued by the activation server based on the device configuration data; When the activation verification data passes the data verification, activating the function to be activated according to the activation function configuration data; The activation verification data includes an encryption chip authentication key, a verification hash value, and an activation hash value; When the activation verification data passes the data verification, activating the to-be-activated function according to the activation function configuration data includes: Sending a random verification character to the encryption chip, and obtaining verification data fed back by the encryption chip based on the random verification character; generating authentication request data according to the encryption chip authentication key and the random authentication character, and when the authentication request data is consistent with the authentication data, determining whether the authentication hash value is consistent with the device hash value, the device hash value being generated according to the device data; If they are consistent, then when the activation hash value is consistent with the function hash value, the activation function configuration data is written into the encryption chip to activate the function to be activated, and the function hash value is generated according to the function data.

2. The method according to claim 1, characterized in that The device data includes activated function configuration data, and the activation verification data also includes historical configuration data; After the activation hash value is consistent with the function hash value, the method further includes: Acquire the activated function configuration data stored in the encryption chip, and determine whether the activated function configuration data is consistent with the historical configuration data; If they are consistent, the activation function configuration data is written into the encryption chip to activate the function to be activated.

3. The method according to any one of claims 1 to 2, characterized in that: Before generating the device configuration data according to the function data of the function to be activated and the device data stored in the encryption chip, the method further includes: Generate function data according to the function to be activated selected by the user; When the ciphertext information input into the encryption chip is verified, the device data is read from the storage area of ​​the encryption chip.

4. A method for activating a software function, characterized in that: The software function activation method is applied to an activation server, and the method comprises: Reading device identification information, device electronic tag data, chip identification number, function data and activated function configuration data from the device configuration data uploaded by the device, and judging whether the device has function activation authority according to the device identification information and the function data; When the device has function activation authority, generating activation verification data according to the device identification information, the device electronic tag data, the chip identification number, the function data and the activated function configuration data; generating activation function configuration data according to the function data; Sending the activation verification data and the activation function configuration data to the device end so that the device end performs function activation; The generating activation verification data according to the device identification information, the device electronic tag data, the chip identification number, the function data and the activated function configuration data includes: Generate an encrypted chip authentication key based on the device electronic tag data and the chip identification number; Performing hash processing on the device identification information to obtain a verification hash value, and performing hash processing on the function data to obtain an activation hash value; Activation verification data is generated according to the encryption chip authentication key, the verification hash value, the activation hash value and the activated function configuration data.

5. The method according to claim 4, characterized in that The determining, according to the device identification information and the function data, whether the device has function activation authority includes: Determining the authorized function data of the device terminal according to the device identification information; When the function data exists in the authorized function data, it is determined that the device has the function activation authority.

6. A software function activation device, characterized in that: The device comprises: A generating module, used for generating device configuration data according to the function data of the function to be activated and the device data stored in the encryption chip; An uploading module, used to upload the device configuration data to an activation server, and receive activation verification data and activation function configuration data issued by the activation server based on the device configuration data, wherein the activation verification data includes an encryption chip authentication key, a verification hash value, and an activation hash value; an activation module, configured to activate the function to be activated according to the activation function configuration data when the activation verification data passes the data verification; The activation module is further used to send a random verification character to the encryption chip, and obtain verification data fed back by the encryption chip based on the random verification character; The activation module is further used to generate authentication request data according to the encryption chip authentication key and the random verification character, and when the authentication request data is consistent with the verification data, determine whether the verification hash value is consistent with the device hash value, and the device hash value is generated according to the device data; The activation module is further configured to write the activation function configuration data into the encryption chip to activate the function to be activated when the verification hash value is consistent with the device hash value and the activation hash value is consistent with the function hash value, and the function hash value is generated according to the function data.

7. A software function activation device, characterized in that: The device includes: a memory, a processor, and a software function activation program stored in the memory and executable on the processor, wherein the software function activation program is configured to implement the steps of the software function activation method according to any one of claims 1 to 3 or any one of claims 4 to 5.

8. A storage medium, characterized in that: The storage medium stores a software function activation program, which, when executed by a processor, implements the steps of the software function activation method according to any one of claims 1 to 3 or any one of claims 4 to 5.