Disclosure of Invention
Aiming at the defects in the technology, the invention designs a system and a method for automatically generating and managing the unique identification code on the website, which are convenient for the hardware unique identification code used by manufacturers to generate and manage.
In order to achieve the above purpose, the system for generating and managing the unique hardware identification code provided by the invention comprises a server for establishing a website and taking charge of the generation and management of the unique hardware identification code, equipment for storing user information, a user request module for sending a user request to the server and an access module for accessing the server and selecting an access mode by the user request module; the output end of the equipment is in communication connection with the input end of the user request module, the output end of the user request module is in communication connection with the input end of the access module, the output end of the access module is in communication connection with the input end of the server, and the output end of the server is in communication connection with the input end of the user request module;
the server comprises a generating unit for generating the hardware unique identification code, a storage unit for storing the hardware unique identification code data and a comparison unit for comparing the hardware unique identification code generated by the generating unit with the hardware unique identification code stored in the storage unit, wherein the storage unit and the generating unit are electrically connected with the comparison unit, and the access module is in communication connection with the generating unit;
when the hardware unique identification code is generated, the device requests the server to acquire and store user information, sends the request information to the access module through the user request module, then requests the generation unit in the server to generate a unique code through the access module, compares the generated unique code with original unique code data in the storage unit of the server after the unique code is generated, regenerates the unique code through the generation unit if the generated unique code is the same as the unique code in the storage unit, and writes the generated unique code into the storage unit if the generated unique code is different from the unique code in the storage unit;
when the hardware unique identification code is managed, a user is connected with a server through a website interface established by the server, the equipment sends a request for extracting the hardware unique identification code to the server, the server extracts the unique code from a storage unit after receiving the request of the equipment, the hardware unique identification code is formed by combining the unique code with user information and product information, and the hardware unique identification code is stored into the storage unit after being issued to the equipment according to the request of the equipment; and after successful issuing, the issued hardware unique identification code is marked in the storage unit, when the hardware unique identification code to be marked is marked, the storage unit sends a request for regenerating the hardware unique identification code to the server, and the server regenerates the hardware unique identification code and issues the hardware unique identification code to the equipment.
When the hardware unique identification code is generated, the product specification identification is used as a component of the hardware unique identification code and is recorded into the hardware unique identification code.
The hardware unique identification code also comprises a manufacturer code, a unique code generated by the server generation unit and a sequence code.
The user request module comprises a client used for sending a server access request, a user logs in the client through a user name and a password in the equipment for use, the client sends the request for accessing the server and user information to the access module, and after the client is connected with a generating unit in the server through the access module, the generating unit generates a corresponding hardware unique identification code.
The access module comprises a network unit for performing network access when a network exists and a wireless unit for performing wireless access when no network exists; the network unit comprises a mobile phone and a computer which can be connected with a network, and the wireless unit comprises a general controller.
In order to better realize the functions of the system, the invention provides a method for generating and managing a hardware unique identification code, which comprises the following steps:
step 1, registering a user, wherein the user fills user information which is used for distinguishing other users or for generating a hardware unique identification code in equipment;
step 2, a user request is used for sending request information of an access server and user information required for generating a hardware unique identification code to an access module by using a client in a user request module according to user information registered by a user;
step 3, accessing the user, wherein after receiving the request information and the user information sent by the client in the user request module, the access module uses the network unit in the access module to connect with the generation unit in the server and transmits the user information if the network used for connecting with the server exists; if no network connected with the server exists, the netless unit in the access module is used for connecting with the generating unit in the server and transmitting the user information;
step 4, generating a hardware unique identification code, wherein after a generating unit in the server receives user information of a network unit or a non-network unit, the generating unit generates a hardware unique identification code by using a unique code combination generated by the user information and a code generating mode set by the generating unit; if the generating unit generates the hardware unique identification code for the first time, the step S6 is carried out; if the generating unit does not generate the hardware unique identification code for the first time, entering the step 5;
step 5, the generated hardware unique identification code is sent to a comparison unit, the comparison unit recalls the hardware unique identification code in the storage unit to be compared with the hardware unique identification code, if the hardware unique identification code is consistent with the hardware unique identification code, the newly obtained hardware unique identification code is deleted, the generation unit in the server regenerates the hardware unique identification code, and the step is circulated; if the two are not consistent, entering step 6;
and 6, storing the obtained hardware unique identification code into a storage unit, and sending the obtained hardware unique identification code to a client in the user request module for use by a client through the storage unit.
The invention has the advantages that:
1. the invention can realize that the access module sends the information to the generating unit in the server to generate the hardware unique identification code, and then the server sends the generated hardware unique identification code to the user request module for the user to use; in the whole process, the user only needs to register the user and send the request to obtain the hardware unique identification code, the generation process of the hardware unique identification code is very simple, other extra operations and other complicated processes are not needed, and the use of the user is very convenient.
2. The server comprises a generating unit, a storage unit and a comparison unit; the hardware unique identification code generated by the generation unit each time is input into the comparison unit together with the hardware unique identification code stored in the storage unit for comparison, if the newly generated hardware unique identification code is consistent with the hardware unique identification code in the storage unit, the newly generated hardware unique identification code is deleted, and the generation unit regenerates the hardware unique identification code; if the newly generated hardware unique identification code is inconsistent with the hardware unique identification code in the storage unit, the newly generated hardware unique identification code is stored into the storage unit and is sent to a user for use by the storage unit; the structure and the process can ensure that the generated hardware unique identification code is unique, and the automatic management of the hardware unique identification code is well realized without arranging special personnel for managing the hardware unique identification code.
Detailed Description
In order to more clearly describe the present invention, the present invention will be further described with reference to the accompanying drawings.
Referring to fig. 1, the system for generating and managing a unique hardware identification code according to the present invention includes a server 1 for establishing a website and responsible for generating and managing the unique hardware identification code, a device 2 for storing user information, a user request module 3 for sending a user request to the server, and an access module 4 for accessing the user request module to the server and selecting an access mode; the output end of the device 2 is in communication connection with the input end of the user request module 3, the output end of the user request module 3 is in communication connection with the input end of the access module 4, the output end of the access module 4 is in communication connection with the input end of the server 1, and the output end of the server 1 is in communication connection with the input end of the user request module 3;
the server 1 comprises a generating unit 11 for generating a hardware unique identification code, a storage unit 12 for storing hardware unique identification code data, and a comparison unit 13 for comparing the hardware unique identification code generated by the generating unit with the hardware unique identification code stored by the storage unit, wherein the storage unit 12 and the generating unit 11 are electrically connected with the comparison unit 13, and the access module 4 is in communication connection with the generating unit 11;
when the hardware unique identification code is generated, the device 2 requests the server 1 to acquire and store user information, sends request information to the access module 4 through the user request module 3, then the access module 4 requests the generation unit 11 in the server 1 to generate a unique code, the generated unique code is compared with original unique code data in the storage unit 12 of the server 1, if the generated unique code is the same as the unique code in the storage unit 12, the unique code is regenerated by the generation unit 11, and if the generated unique code is different from the unique code in the storage unit 12, the generated unique code is written into the storage unit 12;
when the hardware unique identification code is managed, a user is connected with the server 1 through a website interface established by the server, the device 2 sends a request for extracting the hardware unique identification code to the server 1, the server 1 extracts the unique code from the storage unit 12 after receiving the request of the device 2, the hardware unique identification code is formed by combining the unique code with user information and product information, and the hardware unique identification code is stored into the storage unit after being issued to the device 2 according to the request of the device 2; the issued hardware unique identification code is marked in the storage unit 12 after the successful issuing, when the hardware unique identification code to be marked is marked, the storage unit 12 sends a request for regenerating the hardware unique identification code to the server, and the server 1 regenerates the hardware unique identification code and issues the hardware unique identification code to the equipment 2.
In the embodiment, the user information in the device 2 comprises an enterprise identifier, a product specification identifier, a user name and a password which are applied by a user to the server, and when the hardware unique identifier is generated, the product specification identifier is used as a component of the hardware unique identifier and is recorded into the hardware unique identifier. When a user registers user information, the user needs but is not limited to applying for enterprise identification, product specification identification, a user name and a password; the product specification identification is used as a component of the hardware unique identification code and is input into the hardware unique identification code, so that on one hand, the distinguishing strength between products can be enhanced, on the other hand, when the product is used, information such as the specification of the product can be obtained by identifying the hardware unique identification code, and the method is very convenient.
In this embodiment, the hardware unique identification code further includes a manufacturer code, a unique code generated by the server generation unit, and a serial code. The unique hardware identification code is formed by combining information such as manufacturer codes, unique codes, sequence codes and the like, so that the uniqueness of the product identification code can be well realized, the repetition of the unique hardware identification code is avoided, and the workload when the unique hardware identification code is managed by a server is greatly reduced; in addition, information such as manufacturer codes, product specification marks and the like is on the hardware unique identification code, so that some information related to the manufacturer can be easily obtained when the hardware unique identification code is identified, and a product user can conveniently know and maintain the product. In the invention, the composition of the hardware unique identification code is not limited to a manufacturer code, a unique code, a product specification identifier and a sequence code, and other information can be added into the hardware unique identification code according to the actual production and use requirements.
In this embodiment, the user request module 3 includes a client 31 for sending a server access request, the user logs in the client 31 through a user name and a password in the device 2, the client 31 sends a request for accessing the server and user information to the access module 4, and after the access module 4 is connected with the generating unit 11 in the server 1, the generating unit 11 generates a corresponding hardware unique identification code. The client 31 is an important component in the whole system, and is a unit directly operated by a user when applying for the hardware unique identification code, the client 31 is logged in and used through user information in the device 2, then the client 31 can generate the user information and the hardware unique identification code and apply for the generation together and send the application to the access module 4, and the access module 4 is connected with the generation unit 11 in the server 1 to realize the generation of the hardware unique identification code; according to the needs of the user, other functions such as storage, counting and the like can be set in the client side to meet the needs of actual operation of the client. In the present invention, the user request module 3 is not limited to include the client terminal 31, and may include other units to assist the client terminal 31 to work together.
In this embodiment, the access module 4 includes a network unit 41 for performing network access when there is a network and a wireless unit 42 for performing wireless access when there is no network; the network unit 41 includes a mobile phone and a computer that can perform network connection, and the wireless unit 42 includes a general controller. Due to the limitation of the external environment, when a user applies for the generation of the hardware unique identification code, the environment and the device in which the user is located generally have a network or device supporting network connection, but it is also possible that the environment in which the user is located does not have a network or the device used does not support network connection, and in both cases, it may be necessary to send the generation information of the hardware unique identification code to the server, so that the network unit 41 and the wireless unit 42 need to be arranged in the access module 4, and the limitation that the user is limited by the external environment when applying for the hardware unique identification code is reduced.
Referring to fig. 2, the method for generating and managing the unique hardware identification code according to the present invention includes the following steps:
step S1, user registration, user fills in user information for distinguishing with other users or for generating hardware unique identification code in the device 2;
step S2, the user requests, according to the user information registered by the user, uses the client terminal 31 in the user request module 3 to send the request information of the access server 1 and the user information required for generating the hardware unique identification code to the access module 4;
step S3, after the user accesses and the access module 4 receives the request information and the user information sent by the client 31 in the user request module 3, if there is a network for connecting with the server 1, the network unit 41 in the access module is used to connect with the generating unit 11 in the server 1 and transmit the user information; if the network connected with the server 1 does not exist, the wireless unit 42 in the access module 4 is used for connecting with the generating unit 11 in the server 1 and transmitting the user information;
step S4, generating a hardware unique identification code, wherein the generating unit 11 in the server 1 generates the hardware unique identification code by using the user information and the unique code combination generated by the code generation mode set by the generating unit 11 itself after receiving the user information of the network unit 41 or the non-network unit 42; if the generating unit 11 generates the hardware unique identification code for the first time, the process goes to step S6; if the generating unit 11 does not generate the hardware unique identification code for the first time, the process proceeds to step S5;
step S5, the generated hardware unique identification code is sent to the comparison unit 13, the comparison unit 13 recalls the hardware unique identification code in the storage unit 12 to compare with the hardware unique identification code, if the two are consistent, the newly obtained hardware unique identification code is deleted, the generation unit 11 in the server 1 regenerates the hardware unique identification code, and the step is circulated; if the two are not consistent, the process goes to step S6;
in step S6, the obtained hardware unique identification code is stored in the storage unit 13, and the storage unit 13 sends the obtained hardware unique identification code to the client 31 in the user request module 3 for use by the client.
The invention has the advantages that:
1. according to the invention, the user only needs to register the identity information of the user in the equipment 2, and the user request module 3 sends the information of the access server 1 to the access module 4 when the hardware unique identification code is needed, so that the access module 4 sends the information to the generation unit 11 in the server 1 to generate the hardware unique identification code, and then the server 1 sends the generated hardware unique identification code to the user request module 3 for the user to use; in the whole process, the user only needs to register the user and send the request to obtain the hardware unique identification code, the generation process of the hardware unique identification code is very simple, other extra operations and other complicated processes are not needed, and the use of the user is very convenient.
2. The server 1 of the invention comprises a generating unit 11, a storage unit 12 and a comparison unit 13; the hardware unique identification code generated by the generation unit 11 each time is input into the comparison unit 13 together with the hardware unique identification code stored in the storage unit 12 for comparison, if the newly generated hardware unique identification code is consistent with the hardware unique identification code in the storage unit 12, the newly generated hardware unique identification code is deleted, and the hardware unique identification code is regenerated by the generation unit 11; if the newly generated hardware unique identification code is inconsistent with the hardware unique identification code in the storage unit 12, storing the newly generated hardware unique identification code into the storage unit 12, and sending the newly generated hardware unique identification code to a user for use by the storage unit 12; the structure and the process can ensure that the generated hardware unique identification code is unique, and the automatic management of the hardware unique identification code is well realized without arranging special personnel for managing the hardware unique identification code.