Method, device and storage medium for generating identification code
Through the server generating and managing identification codes containing device key information, the lack of the relationship between device identification code and device is solved, effective search and management of devices is realized, and efficiency and reliability of device management are improved.
Patent Information
- Application Number
- CN202211711677.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2042-12-29
AI Technical Summary
In the prior art, there is a lack of association between the device identification code and the device, which makes it difficult for managers to find the corresponding device through encoding, especially when the tag is missing.
The server obtains key information of the target device, including location information, device type, manufacturer name, etc., performs formatting and encryption processing, generates identification codes containing device information, and establishes an association between auxiliary information and encoding to ensure management personnel Devices can be found through encoding.
By generating identification codes containing key information of the device, managers can effectively search for the target device, solving the problem of missing relationship between device identification code and device association, and improving the efficiency and reliability of device management.
Smart Images

Figure CN116112463B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a method, device and storage medium for generating an identification code. Background Art
[0002] With the development of communication technology, defining the digital identification of equipment is a very important part of the digital transformation of enterprises. It is necessary to achieve the uniqueness of the equipment identification, ensure that the equipment identification contains important characteristic information, and ensure the confidentiality of the equipment identification.
[0003] Currently, the server can generate a code according to the device category or the order of the device's affiliated units. The administrator can attach a label to the surface of the device to indicate the device corresponding to the code. However, there is no correlation between the code generated by the above encoding method and the device, and no valuable information about the device can be obtained from the code. If the attached label is missing, the administrator may not be able to find the corresponding device according to the code. Summary of the invention
[0004] The present application provides a method, apparatus and storage medium for generating an identification code, which are used to search for a corresponding device according to the identification code.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, the present application provides a method for generating an identification code. The method can be applied to a server. The server can obtain key information of a target device, and the key information includes at least one of the following: location information, device type, manufacturer name, device model, factory serial number, system classification information, network access time, project number, and device code. The server can format the key information according to a preset conversion rule to determine the target information, where the target information is the formatted key information. The server can encrypt the target information to determine the encrypted target information. The server can generate a first identification code according to the encrypted target information and the preset coding rules.
[0007] Optionally, the server may obtain auxiliary information of the target device, the auxiliary information including: contact information and name of the manager. The server may establish an association relationship between the auxiliary information of the target device and the first identification code.
[0008] Optionally, the server may obtain the operating status information of the target device. If the operating status information of the target device reaches a preset operating status, the server may determine a second identification code of the target device, where the second identification code corresponds to the first identification code. The server may determine the first identification code based on the second identification code. The server may send the first identification code to the target terminal based on the auxiliary information of the target device.
[0009] Optionally, the above method of “establishing an association relationship between the auxiliary information of the target device and the first identification code” further includes: the server may set the primary key of the first identification code as the foreign key of the auxiliary information of the target device.
[0010] In a second aspect, the present application provides a device for generating an identification code, which is applied to a server and includes an acquisition module and a processing module.
[0011] The acquisition module is used to acquire key information of the target device, and the key information includes at least one of the following: location information, device type, manufacturer name, device model, factory serial number, system classification information, network access time, project number and device code. The processing module is used to format the key information according to the preset conversion rules and determine the target information, and the target information is the key information after formatting. The processing module is also used to encrypt the target information and determine the encrypted target information. The processing module is also used to generate a first identification code according to the encrypted target information and the preset coding rules.
[0012] Optionally, the acquisition module is further used to acquire auxiliary information of the target device, the auxiliary information including: contact information and name of the manager. The processing module is further used to establish an association relationship between the auxiliary information of the target device and the first identification code.
[0013] Optionally, the acquisition module is further used to acquire the operating status information of the target device. The processing module is further used to determine the second identification code of the target device if the operating status information of the target device reaches a preset operating state, and the second identification code corresponds to the first identification code. The processing module is further used to determine the first identification code based on the second identification code. The processing module is further used to send the first identification code to the target terminal based on the auxiliary information of the target device.
[0014] Optionally, the processing module is specifically configured to set a primary key of the first identification code as a foreign key of the auxiliary information of the target device.
[0015] In a third aspect, the present application provides a device for generating an identification code, the device comprising: a processor and a memory. The processor and the memory are coupled. The memory is used to store one or more programs, the one or more programs including computer-executable instructions, and when the device for generating the identification code is running, the processor executes the computer-executable instructions stored in the memory to implement the method for generating the identification code as described in any possible implementation of the first aspect.
[0016] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a computer, the computer executes the method for generating an identification code described in any possible implementation of the first aspect above.
[0017] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, enables the computer to implement the method for generating an identification code as described in any possible implementation manner in the first aspect.
[0018] In the above scheme, the technical problems that can be solved and the technical effects achieved by the identification code generation device, computer equipment, computer storage medium or computer program product can be referred to the technical problems and technical effects solved by the above-mentioned first aspect, and will not be repeated here.
[0019] The technical solution provided by the present application brings at least the following beneficial effects: the server obtains key information of the target device, and the key information includes at least one of the following: location information, device type, manufacturer name, device model, factory serial number, system classification information, network access time, project number and device code. The server formats the key information according to the preset conversion rules to obtain the target information, and the target information is the key information after formatting. The server encrypts the target information to obtain the encrypted target information. The server generates a first identification code according to the preset coding rules based on the encrypted target information. In this way, the first identification code includes the key information of the target device. The manager can obtain the key information of the target device from the identification code in order to find the target device. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0021] Figure 1 is a schematic diagram of the architecture of a system for generating identification codes according to an exemplary embodiment;
[0022] Figure 2is a flow chart of a method for generating an identification code according to an exemplary embodiment;
[0023] Figure 3 is a flow chart of another method for generating an identification code according to an exemplary embodiment;
[0024] Figure 4 is a flow chart of another method for generating an identification code according to an exemplary embodiment;
[0025] Figure 5 is a structural block diagram of a device for generating an identification code according to an exemplary embodiment;
[0026] Figure 6 is a schematic structural diagram of a device for generating an identification code according to an exemplary embodiment;
[0027] Figure 7 The present invention is a conceptual partial view of a computer program product according to an exemplary embodiment. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0029] In this article, the character " / " generally indicates that the objects before and after are in an "or" relationship. For example, A / B can be understood as A or B.
[0030] The terms “first” and “second” in the description and claims of the present application are used to distinguish different objects rather than to describe a specific order of the objects.
[0031] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include other steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products or devices.
[0032] In addition, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present concepts in a specific way.
[0033] Before introducing in detail the method for generating the identification code of the embodiment of the present application, the implementation environment and application scenarios of the embodiment of the present application are first introduced.
[0034] Defining the digital identification of equipment is a very important part of the digital transformation of enterprises. It is necessary to achieve the uniqueness of the equipment identification, ensure that the equipment identification contains important characteristic information, and ensure the confidentiality of the equipment identification.
[0035] Currently, the server can generate a code according to the device category or the order of the device's affiliated units. The administrator can attach a label to the surface of the device to indicate the device corresponding to the code. However, there is no correlation between the code generated by the above encoding method and the device, and no valuable information about the device can be obtained from the code. If the attached label is missing, the administrator may not be able to find the corresponding device according to the code.
[0036] In order to solve the above problems, an embodiment of the present application provides a method for generating an identification code, which method uses a server, and the server obtains key information of the target device, and the key information includes at least one of the following: location information, device type, manufacturer name, device model, factory serial number, system classification information, network access time, project number and device code. The server formats the key information according to the preset conversion rules to obtain the target information, and the target information is the key information after formatting. The server encrypts the target information to obtain the encrypted target information. The server generates a first identification code according to the preset coding rules based on the encrypted target information. In this way, the first identification code includes the key information of the target device. The management personnel can obtain the key information of the target device from the identification code in order to find the target device.
[0037] The implementation environment of the embodiments of the present application is introduced below.
[0038] Figure 1 The schematic diagram of the architecture of a system for generating an identification code according to an exemplary embodiment is shown. The architecture includes: a server and a target terminal. The server and the target terminal can perform wired / wireless communication.
[0039] Among them, the server can be deployed with a device identification encoding unit, a device index database, a device monitoring unit and an original device management unit.
[0040] The device identification encoding unit can be used to obtain the key information of the device. The device identification encoding unit can also be used to generate the first identification code of the device. The device identification encoding unit is also used to store the preset conversion rule, the preset encryption method, the preset encoding rule and the sub-code of each sub-information of the multiple sub-information in the key information.
[0041] The device index database can be used to store the first identification code of the device and the auxiliary information of the device. The device index database can also be used to generate a label corresponding to the first identification code.
[0042] The device monitoring unit can be used to monitor the running status information of the device and store the running status information of the device according to the first identification code.
[0043] The original device management unit can be used to store key information and auxiliary information of the device.
[0044] The target terminal may be deployed with a device maintenance management unit. The device maintenance management unit may be used to collect key information of the device and generate a first identification code of the device. The device maintenance management unit may also send the first identification code of the device to the server. The device maintenance management unit may also receive a tag corresponding to the first identification code from the server and parse the tag corresponding to the first identification code.
[0045] The embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0046] like Figure 2 As shown, a method for generating an identification code provided in an embodiment of the present application includes:
[0047] S201. The server obtains key information of the target device.
[0048] Among them, the key information includes at least one of the following: location information, equipment type, manufacturer name, equipment model, factory serial number, system classification information, network access time, project number and equipment code.
[0049] In one possible design, the location information of the target device may include: Global Positioning System (GPS) longitude, GPS latitude, floor information, and room information.
[0050] For example, the GPS longitude of the target device may be 106.492392, the GPS latitude of the target device may be 29.591854, the floor information of the target device may be the 1st floor, and the room information may be No. 2.
[0051] In a possible implementation, the server may store key information of the target device. The server may obtain the key information of the target device.
[0052] In the embodiment of the present application, the administrator can input the key information of the target device into the server. The server receives the key information of the target device to store the key information of the target device.
[0053] In another possible implementation, the original device management unit stores the key information of the target device. The server may send a target instruction to the original device management unit, and the target instruction is used to instruct to send the key information of the target device. The original device management unit receives the target instruction from the server. Afterwards, in response to the target instruction, the original device management unit may send the key information of the target device to the server. The server may receive the key information of the target device from the original device management unit.
[0054] It should be noted that in the embodiment of the present application, the original device management unit can be deployed on a server or on other hardware devices.
[0055] S202: The server formats the key information according to preset conversion rules to determine target information.
[0056] The target information is the key information after formatting.
[0057] In a possible implementation, the server stores a preset conversion rule, and the server can format the key information according to the preset conversion rule to determine the target information.
[0058] Exemplarily, as shown in Table 1, a preset conversion rule is shown. The preset conversion rule may include: field name, field attribute, byte length and remark information. The remark information is used to explain the information of the field. If there is no need to explain the field, the remark information can be empty.
[0059] Table 1 Preset conversion rules
[0060]
[0061]
[0062] That is to say, when the field name is GPS longitude (sequence number 1), the field attribute is a floating point type, the byte length is 4 bytes, and there is no remark. When the field name is GPS latitude (sequence number 2), the field attribute is a floating point type, the byte length is 4 bytes, and there is no remark. When the field name is floor room (sequence number 3), the field attribute is a character type, the byte length is 2 bytes, and there is no remark. In the embodiment of the present application, the introduction of sequence numbers 4 to 11 can refer to the description of sequence numbers 1 to 3, which will not be repeated here.
[0063] S203: The server encrypts the target information and determines the encrypted target information.
[0064] In a possible implementation, the server may encrypt the target information according to a preset encryption method to determine the encrypted target information.
[0065] It should be noted that in the embodiments of the present application, the preset encryption method is not limited. For example, the preset encryption method may be a data encryption standard (DES) method. For another example, the preset encryption method may be a transposition method. For another example, the preset encryption method may be a permutation method.
[0066] In a possible design, the server may use multiple preset encryption methods to encrypt multiple sub-information of the target information, and one preset encryption method corresponds to one sub-information of the target information.
[0067] For example, the sub-information encrypted by the DES method includes: GPS longitude, GPS latitude, equipment type, project number and asset number in the target information. The sub-information encrypted by the transposition method includes: floor room, manufacturer name, equipment model, factory serial number, system classification information and network access time.
[0068] It can be understood that by encrypting multiple information in the target information using different preset encryption methods, the confidentiality of the identification code can be guaranteed.
[0069] S204: The server generates a first identification code according to the encrypted target information and a preset coding rule.
[0070] In a possible implementation, the server stores a preset encoding rule, and can generate the first identification code according to the encrypted target information and the preset encoding rule.
[0071] For example, as shown in Table 2, a first identification code is shown. If the GPS longitude of the target device is 106.492392, the GPS latitude is 29.591854, the floor information is the 1st floor, the room information is the computer room 2, the device type is the switching power supply, the manufacturer name is the manufacturer C, the device model is the embedded power supply ETP48400-C9A3, the factory serial number is TXD201103380000111205, the system classification information is the third system of the computer room 2, the network access time is March 16, 2011, the project number is LKA17AE0B00001, and the financial number is D310-10018367. The remark information is used to explain the meaning of the content in the first identification code. If there is no need to explain the content in the first identification code, the remark information can be empty.
[0072] Table 2 First identification code
[0073]
[0074]
[0075] That is to say, the first identification code of the target device includes: GPS longitude is recorded as 106.492392, no remark information, GPS latitude is recorded as 29.591854, no remark information, floor room is recorded as 12, remark information is 1st floor computer room 2, equipment type is recorded as 05, remark information is switching power supply, manufacturer name is recorded as 35, remark information is manufacturer C, equipment model is recorded as 1212, remark information is embedded power supply ETP48400-C9A3, factory serial number is recorded as TXD201103380000111205, no remark information, system classification information is recorded as 03, remark information is the third set of computer room 2, network access time is recorded as 2011 / 3 / 16, no remark information, project number is recorded as LKA17AE0B00001, remark information is factory project number, asset number is recorded as D310-10018367, and remark information is the asset number given by finance.
[0076] It is understandable that the server obtains key information of the target device, and the key information includes at least one of the following: location information, device type, manufacturer name, device model, factory serial number, system classification information, network access time, project number and device code. The server formats the key information according to the preset conversion rules to obtain the target information, and the target information is the key information after formatting. The server encrypts the target information to obtain the encrypted target information. The server generates a first identification code according to the preset coding rules based on the encrypted target information. In this way, the first identification code includes the key information of the target device. The administrator can obtain the key information of the target device from the identification code in order to find the target device.
[0077] It should be noted that in the embodiment of the present application, for the key information such as floor room, equipment type, manufacturer name, equipment model, and system classification information, a large number of characters are obtained, which may make it inconvenient for the server to format the key information.
[0078] In some embodiments, before the server formats the key information according to preset conversion rules and determines the target information (S202), the identification code generation method may also include: the server may set a sub-code for each of the multiple sub-information in the key information of the target device, and one sub-code corresponds to one sub-information.
[0079] In a possible design, when the sub-information is a device category, the server may set a sub-code for each device category in the device category, and set a sub-code for the device category in the key information of the target device.
[0080] For example, as shown in Table 3, it shows the sub-coding information of a device type. The sub-coding information of the device type includes: device type code, device classification. The remark information is used to explain the meaning of the device type code. If there is no need to explain the device type code, the remark information can be empty.
[0081] Table 3 Subcodes of equipment types
[0082]
[0083] That is, when the device is classified as high-voltage power distribution equipment, the device type code is 01. When the device is classified as low-voltage power distribution equipment, the device type code is 02. When the device is classified as a transformer, the device type code is 03. In the embodiments of the present application, the introduction of other types of equipment can refer to the description of high-voltage power distribution equipment, which will not be repeated here.
[0084] In a possible design, when the sub-information is a manufacturer name, the server may set a sub-code for each manufacturer name in the manufacturer name to set a sub-code for the manufacturer name in the key information of the target device.
[0085] For example, as shown in Table 4, it shows a sub-coding information of a manufacturer name. The sub-coding information of the manufacturer name includes: manufacturer code, manufacturer name. The remark information is used to explain the meaning of the manufacturer code. If there is no need to explain the manufacturer code, the remark information can be empty.
[0086] Table 4 Subcodes of manufacturer names
[0087]
[0088] That is, when the manufacturer name is manufacturer A, the manufacturer code is 31. When the manufacturer name is manufacturer B, the manufacturer code is 32. When the manufacturer name is manufacturer C, the manufacturer code is 33. In the embodiments of the present application, the introduction of manufacturers D to G can refer to the description of manufacturers A to C, which will not be repeated here.
[0089] In one possible design, the server can determine the device model according to the product series and the product model. In the case where the sub-information is the device model, the server can set a sub-code for each device model in the device model, and set a sub-code for the device model in the key information of the target device.
[0090] For example, as shown in Table 5, it shows the sub-coding information of a device model of manufacturer C. The sub-coding information of the device model includes: device series, device model, device model code, device name / device model. The remark information is used to explain the meaning of the device model code. If there is no need to explain the device model code, the remark information can be empty.
[0091] Table 5 Subcodes of device models
[0092]
[0093]
[0094] That is to say, for the equipment of manufacturer C, when the equipment name is separate computer room power supply, the equipment series code is 11. When the equipment name is indoor integrated power supply, the equipment series code is 14, and the remark information is the equipment series. When the equipment name is indoor integrated power supply and the equipment model is TP482000B-N20B1, the equipment model code is 1411, and the remark information is the model within the series. When the equipment name is embedded power supply and the equipment model is ETP48400-C9A3, the equipment model code is 1212, and the remark information is the model within the series. In the embodiments of the present application, for the introduction of other equipment models, please refer to the description of the above-mentioned equipment models, which will not be repeated here.
[0095] It is understandable that before the server formats the key information according to the preset conversion rules and determines the target information, the server can set a sub-code for each of the multiple sub-information in the key information of the target device, and one sub-code corresponds to one sub-information. In this way, the number of characters of the sub-information can be reduced, which is convenient for the server to store and convert.
[0096] In some embodiments, Figure 3 As shown, the method for generating the identification code may further include: S301-S302.
[0097] S301. The server obtains auxiliary information of the target device.
[0098] The auxiliary information includes: the contact information and name of the manager.
[0099] In a possible implementation, the server may store the auxiliary information of the target device. The server may obtain the auxiliary information of the target device.
[0100] In the embodiment of the present application, the administrator can input the auxiliary information of the target device into the server. The server receives the auxiliary information of the target device to store the auxiliary information of the target device.
[0101] S302: The server establishes an association relationship between the auxiliary information of the target device and the first identification code.
[0102] In a possible implementation, the server may set the primary key of the first identification code as the foreign key of the auxiliary information of the target device to establish an association relationship between the auxiliary information of the target device and the first identification code.
[0103] Exemplarily, if the primary key of the first identification code is the device code, the device code may be set as the foreign key of the auxiliary information.
[0104] It is understandable that the server can obtain auxiliary information of the target device, and the auxiliary information includes: the contact information and the name of the manager. The server can establish an association between the auxiliary information of the target device and the first identification code. In this way, the server can store the key information and auxiliary information of the target device according to the first identification code, so that the information of the device is more complete.
[0105] In some embodiments, Figure 4 As shown, after the first identification code is generated, the method may further include: S401-S405.
[0106] S401. The server obtains the operating status information of the target device.
[0107] In a possible implementation, the server may monitor the operating status information of the target device in real time and obtain the operating status information of the target device at a preset time interval.
[0108] It should be noted that in the embodiment of the present application, the preset time interval is not limited. For example, the preset time interval is 1 minute. For another example, the preset time interval is 30 seconds. For another example, the preset time interval is 10 seconds.
[0109] S402: The server determines whether the operating status information of the target device reaches a preset operating status.
[0110] It should be noted that in the embodiment of the present application, the preset operating state is not limited. The administrator can set it according to the load capacity of the target device. For example, the preset operating state may include: voltage is 320 volts, current is 280 amperes, and humidity is 60.
[0111] In some embodiments, if the server determines that the operating status information of the target device reaches a preset operating status, the server may execute S403.
[0112] That is, if the operating state information of the target device is greater than the preset operating state, the server may execute S403. Alternatively, if the operating state information of the target device is equal to the preset operating state, the server may execute S403.
[0113] For example, if the preset operating state may include: voltage is 320 volts, current is 280 amperes, and humidity is 60, and the operating state information of the target device includes: voltage is 300 volts, current is 250 amperes, and humidity is 80, then the operating state information of the target device reaches the preset operating state.
[0114] S403: The server determines a second identification code of the target device.
[0115] The second identification code corresponds to the first identification code.
[0116] In a possible design, the second identification code may be a primary key of the first identification code.
[0117] Exemplarily, if the primary key of the first identification code is the device number of the target device, the second identification code may be the device number of the target device.
[0118] S404: The server determines the first identification code according to the second identification code.
[0119] In a possible implementation manner, the server may search for the first identification code having the second identification code according to the second identification code, thereby determining the first identification code.
[0120] Exemplarily, if the second identification code is the device number of the target device: D310-10018367, then there is a first identification code with the device number D310-10018367 as the first identification code of the target device.
[0121] S405: The server sends a first identification code to the target terminal according to the auxiliary information of the target device.
[0122] In a possible implementation, the server may determine the contact information and name of the administrator according to the auxiliary information of the target device. Afterwards, the server may send a first identification code to the target terminal, which is the terminal of the administrator.
[0123] In a possible design, the server may generate a tag corresponding to the first identification code according to the first identification code. Afterwards, the server may send the tag corresponding to the first identification code to the target terminal.
[0124] It should be noted that, in the embodiment of the present application, the label corresponding to the first identification code is not limited. For example, the label corresponding to the first identification code may be a barcode. For another example, the label corresponding to the first identification code may be a traditional label. For another example, the label corresponding to the first identification code may be a QR code.
[0125] Exemplarily, the server may present the tag generated by the first identification code in the push information sent to the manager.
[0126] It is understandable that the server can obtain the operating status information of the target device. Afterwards, the server can determine whether the operating status information of the target device reaches the preset operating status. If the operating status information of the target device reaches the preset operating status, the server can determine the second identification code of the target device, and the second identification code corresponds to the first identification code. The server can determine the first identification code based on the second identification code. The server can send the first identification code to the target terminal based on the auxiliary information of the target device. In this way, the administrator can parse the first identification code through the target terminal to determine the key information of the target device. The administrator can find the target device based on the key information of the target device and manage the target device.
[0127] In some embodiments, after the server sends the first identification code to the target terminal, the target terminal may receive the first identification code from the server. The target terminal may parse the first identification code to determine key information of the target device.
[0128] For example, if the GPS longitude of the target device is 106.492392 and the GPS latitude of the target device is 29.591854, the parsed result is the Environmental Protection Bureau Garage, No. 252, Qishan Road, Ranjiaba, Yubei District, Chongqing.
[0129] It should be noted that in the embodiment of the present application, different users with different permissions can browse and operate different contents. In other words, different parsing results are obtained by parsing the first identification code for users with different permissions. In this way, the confidentiality of the first identification code can be guaranteed.
[0130] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of computer equipment. It is understandable that, in order to realize the above functions, the computer equipment includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the steps of generating the identification code of each example described in the embodiment disclosed in the present application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0131] The embodiment of the present application also provides a device for generating an identification code. The device for generating an identification code may be a computer device, a CPU in the computer device, a module in the computer device for generating an identification code, or a client in the computer device for generating an identification code.
[0132] The embodiment of the present application can divide the generation of identification codes into functional modules or functional units according to the above method examples. For example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.
[0133] like Figure 5 FIG. 1 is a schematic diagram of another structure of an apparatus for generating an identification code provided in an embodiment of the present application. The apparatus is applied to a server. The apparatus for generating an identification code is used to execute Figure 2 , Figure 3 and Figure 4 The method for generating the identification code shown in the figure. The device for generating the identification code may include an acquisition module 501 and a processing module 502.
[0134] The acquisition module 501 is used to obtain the key information of the target device, and the key information includes at least one of the following: location information, device type, manufacturer name, device model, factory serial number, system classification information, network access time, project number and device code. The processing module 502 is used to format the key information according to the preset conversion rules and determine the target information, and the target information is the key information after formatting. The processing module 502 is also used to encrypt the target information and determine the encrypted target information. The processing module 502 is also used to generate a first identification code according to the preset coding rules based on the encrypted target information, and the first identification code is the identification code of the target device.
[0135] Optionally, the acquisition module 501 is further used to acquire auxiliary information of the target device, the auxiliary information including: contact information and name of the manager. The processing module 502 is further used to establish an association relationship between the auxiliary information of the target device and the first identification code.
[0136] Optionally, the acquisition module 501 is further used to acquire the operating status information of the target device. The processing module 502 is further used to determine the second identification code of the target device if the operating status information of the target device reaches a preset operating state, and the second identification code corresponds to the first identification code. The processing module 502 is further used to determine the first identification code according to the second identification code. The processing module 502 is further used to send the first identification code to the target terminal according to the auxiliary information of the target device.
[0137] Optionally, the processing module 502 is specifically configured to set a primary key of the first identification code as a foreign key of the auxiliary information of the target device.
[0138] Figure 6 6 is a schematic diagram of the hardware structure of a device for generating an identification code according to an exemplary embodiment. The device for generating an identification code may include a processor 601, and the processor 601 is used to execute application code to implement the method for generating an identification code in this application.
[0139] The processor 601 may be a central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0140] like Figure 6 As shown, the device for generating the identification code may further include a memory 602. The memory 602 is used to store application code for executing the solution of the present application, and is controlled to execute by the processor 601.
[0141] The memory 602 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 602 may exist independently and be connected to the processor 601 via the bus 604. The memory 602 may also be integrated with the processor 601.
[0142] like Figure 6 As shown, the identification code generation device may further include a communication interface 603, wherein the processor 601, the memory 602, and the communication interface 603 may be coupled to each other, for example, via a bus 604. The communication interface 603 is used to perform information exchange with other devices, for example, to support information exchange between the identification code generation device and other devices.
[0143] It should be pointed out that Figure 6 The device structure shown in the figure does not constitute a limitation on the device for generating the identification code, except Figure 6 In addition to the components shown, the device for generating the identification code may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0144] In actual implementation, the functions implemented by the processing module 502 can be Figure 6 The processor 601 shown calls the program code in the memory 602 to implement.
[0145] The present application also provides a computer-readable storage medium, on which instructions are stored, and when the instructions in the computer-readable storage medium are executed by a processor of a computer device, the computer can execute the method for generating the identification code provided in the above-mentioned embodiment. For example, the computer-readable storage medium may be a memory 602 including instructions, and the above instructions may be executed by a processor 601 of a computer device to complete the above method. Optionally, the computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
[0146] Figure 7 A conceptual partial view of a computer program product provided by an embodiment of the present application is schematically shown, where the computer program product includes a computer program for executing a computer process on a computing device.
[0147] In one embodiment, the computer program product is provided using a signal bearing medium 700. The signal bearing medium 700 may include one or more program instructions that, when executed by one or more processors, may provide the above-described Figure 2 , Figure 3 and Figure 4 Thus, for example, reference to Figure 2 In the embodiment shown in , one or more features of S201 to S204 may be undertaken by one or more instructions associated with the signal bearing medium 700. In addition, Figure 7 The program instructions in also describe example instructions.
[0148] In some examples, the signal bearing medium 700 may include a computer readable medium 701, such as, but not limited to, a hard drive, a compact disk (CD), a digital video disk (DVD), a digital tape, a memory, a read-only memory (ROM), or a random access memory (RAM), and the like.
[0149] In some implementations, signal bearing medium 700 may include computer recordable medium 702 such as, but not limited to, memory, read / write (R / W) CD, R / W DVD, and the like.
[0150] In some implementations, signal bearing medium 700 may include communication medium 703 such as, but not limited to, digital and / or analog communication media (eg, fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).
[0151] The signal bearing medium 700 may be communicated by a wireless form of communication medium 703. The one or more program instructions may be, for example, computer executable instructions or logic implemented instructions.
[0152] In some examples, such as for Figure 5 The described identification code generation apparatus may be configured to provide various operations, functions, or actions in response to one or more program instructions in the computer-readable medium 701 , the computer-recordable medium 702 , and / or the communication medium 703 .
[0153] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0154] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0155] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0156] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0157] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes various media that can store program codes, such as-U disk, mobile hard disk, ROM, RAM, disk or CD.
[0158] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for generating an identification code, characterized in that: Applied to a server, the method comprises: Obtain key information of the target device, the key information including at least one of the following: location information, device type, manufacturer name, device model, factory serial number, system classification information, network access time, project number and device code; Formatting the key information according to a preset conversion rule to determine target information, wherein the target information is the key information after formatting; encrypting the target information to determine the encrypted target information; the preset conversion rule includes: field name, field attribute, byte length and remark information; wherein the remark information is used to describe the information of the field; Generate a first identification code according to the encrypted target information and a preset coding rule; Acquire auxiliary information of the target device, the auxiliary information including: contact information of an administrator and the name of the administrator; An association relationship is established between the auxiliary information of the target device and the first identification code.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining operating status information of the target device; If the operation status information of the target device reaches a preset operation status, determining a second identification code of the target device, where the second identification code corresponds to the first identification code; Determine the first identification code according to the second identification code; The first identification code is sent to the target terminal according to the auxiliary information of the target device.
3. The method according to claim 1 or 2, characterized in that: The establishing of an association relationship between the auxiliary information of the target device and the first identification code includes: The primary key of the first identification code is set as the foreign key of the auxiliary information of the target device.
4. A device for generating an identification code, characterized in that: Applied to a server, the device comprises: An acquisition module is used to acquire key information of a target device, wherein the key information includes at least one of the following: location information, device type, manufacturer name, device model, factory serial number, system classification information, network access time, project number, and device code; A processing module, used to format the key information according to a preset conversion rule to determine target information, wherein the target information is the key information after formatting; the preset conversion rule includes: field name, field attribute, byte length and remark information; wherein the remark information is used to describe the information of the field; The processing module is further used to encrypt the target information and determine the encrypted target information; The processing module is further used to generate a first identification code according to the encrypted target information and a preset coding rule; The acquisition module is further used to acquire auxiliary information of the target device, wherein the auxiliary information includes: contact information of the manager and the name of the manager; The processing module is further used to establish an association relationship between the auxiliary information of the target device and the first identification code.
5. The device according to claim 4, characterized in that The acquisition module is further used to acquire the operation status information of the target device; The processing module is further configured to determine a second identification code of the target device if the operation status information of the target device reaches a preset operation status, wherein the second identification code corresponds to the first identification code; The processing module is further used to determine the first identification code according to the second identification code; The processing module is further configured to send the first identification code to the target terminal according to the auxiliary information of the target device.
6. The device according to claim 4, characterized in that The processing module is specifically configured to set the primary key of the first identification code as the foreign key of the auxiliary information of the target device.
7. A device for generating an identification code, characterized in that: include: Processor and memory; The processor is coupled to the memory; The memory is used to store one or more programs, which include computer-executable instructions. When the identification code generation device is running, the processor executes the computer-executable instructions stored in the memory to enable the identification code generation device to perform the identification code generation method described in any one of claims 1-3.
8. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When a computer executes the instruction, the computer executes the method for generating an identification code as described in any one of claims 1-3.
