A power device fingerprint encoding method and system
By generating fingerprint codes for power equipment based on country, industry, enterprise code, equipment type, and status, the problem of easy tampering with traditional identification methods is solved, realizing the uniqueness and security management of power equipment and supporting full life cycle management.
Patent Information
- Application Number
- CN202411584481.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2044-11-07
AI Technical Summary
Traditional equipment identification methods are easily tampered with and cracked in power systems, failing to meet information security requirements and affecting real-time monitoring, traceability, and management of equipment.
A prefix code is generated based on the country code, industry code, and enterprise code. The fingerprint code of the power equipment is generated by combining the equipment type, status, and multi-dimensional data hash operation. The uniqueness and security of the code are ensured by hash operation and check code.
The generated fingerprint code has extremely high uniqueness and security, can accurately distinguish each power device, support full life cycle management, improve management efficiency and prevent data tampering.
Smart Images

Figure CN119323018B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of Internet of Things (IoT) technology, and specifically relates to a fingerprint encoding method and system for power equipment. Background Technology
[0002] Device fingerprinting technology uses the device's characteristic attributes (including hardware information, software information, and user behavior habits) to generate a unique identifier for each device. This identifier, like a human fingerprint, can effectively and uniquely authenticate the device, possessing both uniqueness and stability.
[0003] Currently, common device identifiers include IMEI (International Mobile Equipment Identity), MAC (Media Access Control Address), UUID (Universally Unique Identifier), EPC identification system, Handle system, Object Identifier (OID) system, and Ecode (Entity code) system. These identification methods play an important role in device security and data management.
[0004] With the construction of smart grids, the informatization and automation of power grids are constantly improving, and the physical scale of power systems and power communication systems is also gradually expanding. This brings new challenges to the security of new power systems, and information security issues are becoming increasingly prominent. Traditional equipment identification methods have drawbacks such as being easily tampered with and cracked, and can no longer meet the information security requirements of power system equipment.
[0005] Therefore, generating accurate, unique, and secure fingerprints for power equipment is crucial for real-time monitoring, tracing equipment status, maintaining equipment assets, preventing faults, and optimizing power system operation. Summary of the Invention
[0006] To overcome the shortcomings of the prior art, the present invention provides a fingerprint coding method and system for power equipment, which, based on fusion coding rules, unifies the management of power equipment software and hardware, and realizes full life-cycle data management of power equipment.
[0007] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:
[0008] In a first aspect, the present invention provides a method for generating fingerprint codes for power equipment, comprising:
[0009] Generate prefix codes based on country codes, industry codes, and enterprise codes;
[0010] Generate equipment type codes and equipment status codes based on equipment type classification standards and equipment status tables;
[0011] Obtain power equipment attribute information to form multidimensional data. Generate multiple fingerprint databases based on equipment characteristics. Obtain equipment components based on different fingerprint databases. Perform hash operation based on the equipment component selection strategy. Combine the hash values of each fingerprint component and perform hash operation again to obtain the feature hash value.
[0012] A checksum is generated by combining the prefix code, device type code, status code, and feature hash value.
[0013] A suffix code is generated by combining the device type code, status code, feature hash value, and check code;
[0014] The prefix code and suffix code are combined to generate the fingerprint code of the power equipment.
[0015] As a further improvement to the method of the present invention, the step of generating a prefix code based on the country code, industry code, and enterprise code includes:
[0016] Based on predefined fusion coding rules, the coding is divided into prefix code and suffix code, separated by a separator. The prefix code is fixedly composed of country code, industry code, and enterprise code. The country code represents the country to which a specific power equipment belongs, the industry code is the power industry, and the enterprise code identifies the specific enterprise or organization to which the power equipment belongs.
[0017] As a further improvement to the method of the present invention, the step of generating equipment type codes and equipment status codes according to equipment type classification standards and equipment status tables includes: each equipment type and equipment status has a corresponding sub-code table, and each equipment type and equipment status corresponds to a number, thereby generating equipment type codes and status codes.
[0018] As a further improvement to the method of the present invention, the device component includes a device basic information component, a device operating system component, a device chip component, and a device communication component.
[0019] The basic information component of the device is obtained by combining multiple basic information of the target device, including device type, device name, device model, device version, manufacturer and serial number;
[0020] The device operating system component is obtained by merging the target device's operating system information, including operating system type, operating system name, operating system version, and operating system release information;
[0021] The device chip component is obtained by merging the chip information of the target device, including the chip model and processor architecture;
[0022] The device communication component is obtained by combining various communication information of the target device, including communication protocol, communication method, port information and IP address.
[0023] As a further improvement to the method of the present invention, in the hash operation based on the device component selection strategy, the device component selection strategy includes:
[0024] The first strategy, code H1111, Hash = H1 + H2 + H3 + H4;
[0025] The second strategy, code H1011, has Hash = H1 + H3 + H4;
[0026] The third strategy, code H1101, has Hash = H1 + H2 + H4;
[0027] The fourth strategy, code H1110, has the hash value H1 + H2 + H3.
[0028] The fifth strategy, code H1001, has the hash value H1 + H4.
[0029] The sixth strategy, code H1010, has the hash value H1 + H3.
[0030] The seventh strategy, code H1100, has the hash value H1 + H2.
[0031] The eighth strategy, code H1000, Hash=H1;
[0032] Wherein, H1 represents the basic information fingerprint component, H2 represents the operating system fingerprint component, H3 represents the chip fingerprint component, and H4 represents the communication fingerprint component. The four digits in the code represent H1, H2, H3, and H4 from left to right. When the number is 1, it means that the fingerprint component is enabled, and when the number is 0, the device component is not enabled.
[0033] After obtaining the components of each device, perform a hash operation on each component to obtain a hash value, merge the hash values in order, and then perform another hash operation to obtain a feature hash value.
[0034] As a further improvement to the method of the present invention, the step of generating a check code by combining the prefix code, device type code, status code, and feature hash value includes: verifying the prefix code, device type, status code, and feature hash value.
[0035] As a further improvement to the method of the present invention, the step of generating a suffix code by combining device type code, status code, feature hash value, and check code includes:
[0036] The device type code and device status code are generated based on the device type and device status code sub-encoding table. Then, a check code is generated by combining the device type code and the feature hash value. Finally, the device type code, device status code, feature hash value, and check code are concatenated to generate a suffix code.
[0037] As a further improvement to the method of the present invention, the step of combining the prefix code and the suffix code to generate a fingerprint code for power equipment includes:
[0038] The generation module combines the prefix code and suffix code to form the fingerprint of the power equipment.
[0039] In a second aspect, the present invention provides a device fingerprint encoding system, comprising:
[0040] The first generation module is used to generate prefix codes based on country codes, industry codes, and enterprise codes;
[0041] The second generation module is used to generate equipment type codes and equipment status codes based on equipment type classification standards and equipment status tables.
[0042] The acquisition module is used to acquire power equipment attribute information, form multidimensional data, generate multiple fingerprint databases based on equipment characteristics, acquire equipment components based on different fingerprint databases, perform hash operations based on the equipment component selection strategy, merge the hash values of each fingerprint component and perform hash operations again to obtain the feature hash value.
[0043] The third generation module is used to generate a check code by combining the prefix code, device type code, status code, and feature hash value;
[0044] The fourth generation module is used to generate a suffix code by combining the device type code, status code, feature hash value, and check code;
[0045] The fifth generation module is used to combine the prefix code and the suffix code to generate a fingerprint code for power equipment.
[0046] As a further improvement to the system of the present invention, the first generation module generates a prefix code based on the country code, industry code, and enterprise code, including:
[0047] Based on predefined fusion coding rules, the coding is divided into prefix code and suffix code, separated by a separator. The prefix code is fixedly composed of country code, industry code, and enterprise code. The country code represents the country to which a specific power equipment belongs, the industry code is the power industry, and the enterprise code identifies the specific enterprise or organization to which the power equipment belongs.
[0048] As a further improvement to the system of the present invention, the second generation module generates equipment type codes and equipment status codes according to the equipment type classification standard and the equipment status table, including: each equipment type and equipment status has a corresponding sub-code table, and each equipment type and equipment status corresponds to a number, thereby generating equipment type codes and status codes.
[0049] As a further improvement to the system of the present invention, the device component includes a device basic information component, a device operating system component, a device chip component, and a device communication component.
[0050] The basic information component of the device is obtained by combining multiple basic information of the target device, including device type, device name, device model, device version, manufacturer and serial number;
[0051] The device operating system component is obtained by merging the target device's operating system information, including operating system type, operating system name, operating system version, and operating system release information;
[0052] The device chip component is obtained by merging the chip information of the target device, including the chip model and processor architecture;
[0053] The device communication component is obtained by combining various communication information of the target device, including communication protocol, communication method, port information and IP address.
[0054] As a further improvement to the system of the present invention, in the acquisition module, the device component selection strategy for hash calculation based on the device component selection strategy includes:
[0055] The first strategy, code H1111, Hash = H1 + H2 + H3 + H4;
[0056] The second strategy, code H1011, has Hash = H1 + H3 + H4;
[0057] The third strategy, code H1101, has Hash = H1 + H2 + H4;
[0058] The fourth strategy, code H1110, has the hash value H1 + H2 + H3.
[0059] The fifth strategy, code H1001, has the hash value H1 + H4.
[0060] The sixth strategy, code H1010, has the hash value H1 + H3.
[0061] The seventh strategy, code H1100, has the hash value H1 + H2.
[0062] The eighth strategy, code H1000, Hash=H1;
[0063] Wherein, H1 represents the basic information fingerprint component, H2 represents the operating system fingerprint component, H3 represents the chip fingerprint component, and H4 represents the communication fingerprint component. The four digits in the code represent H1, H2, H3, and H4 from left to right. When the number is 1, it means that the fingerprint component is enabled, and when the number is 0, the device component is not enabled.
[0064] After obtaining the components of each device, perform a hash operation on each component to obtain a hash value, merge the hash values in order, and then perform another hash operation to obtain a feature hash value.
[0065] As a further improvement to the system of the present invention, the third generation module generates a check code by combining the prefix code, device type code, status code, and feature hash value, including: verifying the prefix code, device type, status code, and feature hash value.
[0066] As a further improvement to the system of the present invention, the suffix code generation module generates a suffix code by combining device type code, status code, feature hash value, and check code, including:
[0067] The device type code and device status code are generated based on the device type and device status code sub-encoding table. Then, a check code is generated by combining the device type code and the feature hash value. Finally, the device type code, device status code, feature hash value, and check code are concatenated to generate a suffix code.
[0068] As a further improvement to the system of the present invention, the fifth generation module combines the prefix code and the suffix code to generate a fingerprint code for power equipment, including:
[0069] The generation module combines the prefix code and suffix code to form the fingerprint of the power equipment.
[0070] Thirdly, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the power device fingerprint encoding generation method.
[0071] Fourthly, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method for generating fingerprint codes for power equipment.
[0072] Fifthly, the present invention provides a computer program product, the computer program product including computer instructions, characterized in that the computer instructions instruct a computer to execute the power equipment fingerprint encoding generation method.
[0073] The advantages of this invention over the prior art are as follows:
[0074] This invention generates fingerprint codes with extremely high uniqueness by combining national, industry, and enterprise codes with equipment type, status, and characteristic information, enabling accurate identification of each power device. The equipment type, status, and characteristic information in the fingerprint code makes full lifecycle management of equipment possible, including all stages such as production, transportation, installation, operation, maintenance, and scrapping. The standardized coding system facilitates the classification management and statistical analysis of power equipment, improving management efficiency. The presence of a check digit increases the reliability and security of the code, preventing data tampering and errors during transmission or storage. As equipment types increase and status changes, this coding method can be flexibly adjusted to meet future power equipment management needs. The power equipment fingerprint coding generation method proposed in this invention, through a scientifically sound coding system, provides an efficient, reliable, and secure identification method for power equipment, with broad application prospects and significant practical importance. Attached Figure Description
[0075] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following description is provided with accompanying drawings of the relevant technical solutions in the embodiments of the present invention or the prior art. It should be understood that the accompanying drawings described below are only for the purpose of clearly illustrating some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0076] Figure 1 This is a flowchart of the power hardware and software fingerprint encoding method in the embodiments of this application;
[0077] Figure 2 This is a schematic diagram illustrating the representation of the power hardware and software fingerprint encoding in the embodiments of this application;
[0078] Figure 3 This is a system flowchart of the power hardware and software fingerprint encoding in the embodiments of this application;
[0079] Figure 4 This is a schematic diagram of the device structure in the embodiments of this application;
[0080] Figure 5 This invention provides a fingerprint encoding device for power equipment;
[0081] Figure 6 This is a schematic diagram of an electronic device provided by the present invention. Detailed Implementation
[0082] The embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention. The step numbers in the following embodiments are set only for ease of explanation, and there is no limitation on the order between the steps. The execution order of each step in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.
[0083] In the description of this invention, unless otherwise explicitly defined, terms such as "set up," "install," and "connect" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this invention in conjunction with the specific content of the technical solution.
[0084] This invention provides a method for generating fingerprint codes for power equipment, taking power equipment as an example. Figure 1 This is a flowchart of a fingerprint encoding method for power equipment according to an embodiment of the present invention. The method includes:
[0085] S101: Generate prefix codes based on country codes, industry codes, and enterprise codes;
[0086] S102: Generate equipment type codes and equipment status codes based on equipment type classification standards and equipment status tables;
[0087] S103: Obtain power equipment attribute information to form multidimensional data. Generate multiple fingerprint databases based on equipment characteristics. Obtain equipment components based on different fingerprint databases. Perform hash operation based on the equipment component selection strategy. Combine the hash values of each fingerprint component and perform hash operation again to obtain the feature hash value.
[0088] S104: Generate a checksum by combining the prefix code, device type code, status code, and feature hash value;
[0089] S105: Generate a suffix code by combining the device type code, status code, feature hash value, and check code;
[0090] S106: Combine the prefix code and suffix code to generate a fingerprint code for the power equipment.
[0091] The fingerprint encoding method for power equipment proposed in this invention provides a unique and verifiable identity for power equipment through a series of orderly and logically rigorous steps. The principle is explained below:
[0092] Prefix code generation (corresponding to step S101):
[0093] Country code: Used to identify the country or region to which the device belongs, ensuring uniqueness worldwide.
[0094] Industry code: Reflects the industry to which the equipment belongs, which helps with internal industry management and data sharing.
[0095] Enterprise Code: Identifies the specific enterprise that produces or manages the equipment, further specifying the equipment's ownership.
[0096] The prefix code, composed of these three parts, provides a basic identity framework for electrical equipment.
[0097] Equipment type and status code (corresponding to step S102): Equipment type code: Based on the equipment classification standard, a unique code is assigned to different types of power equipment to facilitate classification management and statistics.
[0098] Equipment status coding: Based on the equipment status table, the real-time operating status of the equipment (such as in operation, under maintenance, scrapped, etc.) is reflected, which helps in maintenance management and troubleshooting.
[0099] Feature hash value generation (corresponding to step S103): Based on the combination of different components of the device (such as model, serial number, production date, etc.), a unique and compact hash value is generated through a hash algorithm. This hash value can uniquely represent the feature information of the device, enhancing the device's identifiability and traceability.
[0100] Checksum generation (corresponding to step S104): By combining the prefix code, device type code, status code, and feature hash value, a checksum is generated using a specific verification algorithm. The checksum is used to verify the integrity and accuracy of the encoding, preventing errors from occurring during transmission or storage.
[0101] Suffix code generation (corresponding to step S105): The device type code, status code, feature hash value, and check code are combined into a suffix code. The suffix code contains the core information of the device and is an important component of the fingerprint coding of power equipment.
[0102] Fingerprint encoding generation (corresponding to step S106): The prefix code and suffix code are combined to form a complete fingerprint code for the power equipment. This code contains both the basic identity information of the equipment (country, industry, enterprise) and the specific type, status, and characteristic information of the equipment, ensuring the uniqueness and identifiability of the equipment.
[0103] Preferably, step S101 includes: combining predefined fusion coding rules, the coding is divided into prefix code and suffix code, with " / " as the separator. The prefix code is fixedly composed of country code, industry code, and enterprise code. The country code represents the country to which the specific power equipment belongs, the industry code is the power industry, and the enterprise code identifies the specific enterprise or organization to which the power equipment belongs.
[0104] Preferably, step S102 includes: each device type and device status has a corresponding sub-encoding table, and each device type and device status corresponds to a number, based on which device type code and status code are generated.
[0105] Preferably, step S103 includes: collecting multidimensional data, generating a basic information fingerprint database, an operating system fingerprint database, a chip fingerprint database, and a communication fingerprint database according to device characteristics, and performing hash operations based on a device component selection strategy.
[0106] Preferably, step S104 includes: verifying the prefix code, device type, status code, and feature hash value, wherein the verification code algorithm includes: parity check algorithm, Hamming check algorithm, or cyclic redundancy check algorithm.
[0107] Figure 2 This is a schematic diagram illustrating the representation of the fingerprint code for power equipment in an embodiment of the present invention, showing in detail the format and bit configuration of the power equipment code.
[0108] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments.
[0109] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0110] like Figure 1 As shown, the power hardware and software coding method of this embodiment may specifically include the following steps:
[0111] S101 generates a prefix code based on the country code, industry code, and enterprise code.
[0112] The fingerprint of power equipment can be divided into two parts: a prefix code and a suffix code, separated by a " / ". The prefix code is fixed and consists of the country code, industry code, and company code. Specific examples are as follows:
[0113] The country code represents the country to which a specific power equipment belongs. The country code can be identified by two letters or numbers, for example, China's code is "86".
[0114] The industry code represents a specific industry and consists of 4 letters or numbers (numbers 0-9, letters A, B, and C). This invention is for the power industry, so it uses the power industry code, such as "1100".
[0115] The enterprise code identifies the specific enterprise or organization to which the power equipment belongs. It consists of two letters or numbers (numbers 0-9, letters A, B, and C). The enterprise applies for registration with the power fingerprint management center and obtains a unique enterprise code identifier as needed, such as "11".
[0116] S102, generate equipment type code and equipment status code according to equipment type classification standard and equipment status table.
[0117] In this embodiment, the suffix code is customized and consists of device type code, device status code, feature hash value, and check code.
[0118] The equipment type is 4 characters long, consisting of letters and numbers (numbers 0-9, letters A, B, and C). This part is divided into a main category code and a sub-code according to the application scenarios and functions of the power equipment, namely a first-level category + a second-level category, which is expanded in a tree structure. The first-level category is 1 character, and the second-level category is 3 characters. The main category code is the major category of equipment, such as "power industrial control terminal", and the sub-category code is the sub-category of equipment, such as "distribution terminal" and "electricity meter" under power industrial control terminal. The specific codes are shown in the table below. For example, "0006" represents the 006 sub-category of the 0 main category, indicating that it is a smart terminal.
[0119] Table 1
[0120]
[0121] The status bit is used to indicate the current status of the device, which helps to quickly determine whether the device is in normal working condition. It is 1 bit long and consists of letters and numbers (numbers 0-9, letters A, B, and C). It can support the updating of 36 status bits, such as 0 indicating shutdown, 1 indicating operation, 2 indicating fault repair, and 3 indicating test / experiment.
[0122] S103: Collect multidimensional data, generate basic information fingerprint databases, operating system fingerprint databases, chip fingerprint databases, and communication fingerprint databases based on equipment characteristics, obtain power equipment attribute information, form multidimensional data, generate multiple fingerprint databases based on equipment characteristics, obtain equipment components based on different fingerprint databases, perform hash operations based on the equipment component selection strategy, merge the hash values of each fingerprint component and perform another hash operation to obtain the feature hash value; Equipment components include basic equipment information components, operating system components, chip components, and communication components;
[0123] Step S103 mainly involves collecting multidimensional data by using API (Application Programming Interface) calls, driver layer calls, SNMP (Simple Network Management Protocol), syslog (log management and remote log transmission protocol) and other methods to collect basic information fingerprints of power equipment, operating system fingerprints, chip fingerprints and communication fingerprints.
[0124] These multidimensional data were evaluated for discriminability and stability, and some reliable and representative feature components (such as equipment type, equipment name, equipment model, equipment version, manufacturer, and serial number) were selected from them.
[0125] The basic information component of the device is obtained by combining various basic information of the target device, including device type, device name, device model, device version, manufacturer and serial number. If a certain piece of information is not obtained and is empty, that information is set to 0.
[0126] The device operating system component is obtained by merging the target device's operating system information, including operating system type, operating system name, operating system version, and operating system release information. If a certain piece of information is not obtained and is empty, that information is set to 0.
[0127] The device chip component is obtained by merging the chip information of the target device, including the chip model and processor architecture. If a piece of information is missing, it is set to 0. Chip models include ET872 and SCM701, and processor architectures include Cortex-A7.
[0128] The device communication component is obtained by combining various communication information of the target device, including communication protocol, communication method, port information and IP address. If a certain piece of information is not obtained and is empty, that information is set to 0.
[0129] The communication protocols include DL / T698.45, DL / T645-2007, IEC 61850, Modbus, TCP, etc.
[0130] The communication methods include RS-485 communication, RS-232 communication, Ethernet, HPLC carrier communication, Bluetooth, far-infrared communication, LoRa, public or private wireless network, and fiber optic communication. Each method is represented by 0 / 1. If the device supports a certain communication method, it is set to 1, and they are arranged in order. If all 9 methods are supported, the communication method of the device is 111111111. If only Ethernet communication is supported, the communication method of the device is 001000000.
[0131] The port information lists the open ports in order. For example, if ports 23 and 8080 are open, the port information will be "238080".
[0132] Since different types of devices have varying degrees of difficulty in obtaining information from each component, different device components are selected based on a fingerprint component selection strategy. The predefined strategy is as follows:
[0133] The first strategy, code H1111, Hash = H1 + H2 + H3 + H4;
[0134] The second strategy, code H1011, has Hash = H1 + H3 + H4;
[0135] The third strategy, code H1101, has Hash = H1 + H2 + H4;
[0136] The fourth strategy, code H1110, has the hash value H1 + H2 + H3.
[0137] The fifth strategy, code H1001, has the hash value H1 + H4.
[0138] The sixth strategy, code H1010, has the hash value H1 + H3.
[0139] The seventh strategy, code H1100, has the hash value H1 + H2.
[0140] The eighth strategy, code H1000, Hash=H1;
[0141] Here, H1 represents the basic information fingerprint component, H2 represents the operating system fingerprint component, H3 represents the chip fingerprint component, and H4 represents the communication fingerprint component. The four digits in the code represent H1, H2, H3, and H4 from left to right. When the number is "1", it means that the fingerprint component is enabled, and when the number is "0", the device component is not enabled.
[0142] After obtaining the components of each device, perform a hash operation on each component to obtain a hash value, merge the hash values in order, perform another hash operation, and truncate the last 40 bits to obtain the feature hash value.
[0143] Hash operation refers to converting data of arbitrary length into a fixed-length string, which is called a hash value. By performing hash operation on these 8 attribute elements, they can be mapped to a unique set of fixed-length feature hash values.
[0144] The most important characteristics of hash algorithms are: (1) determinism: the same input will always produce the same output; (2) fixed-length output: no matter how long the input data is, the hash function will generate a hash value of fixed length; (3) collision resistance: it is difficult to find different inputs that make their hash values the same, so hash algorithms can effectively prevent data from being tampered with.
[0145] The hash algorithm used in this invention is the Chinese national cryptographic algorithm SM3. However, this invention is not limited to this particular algorithm.
[0146] For example, taking a switch as an example, the policy is set to 1001, which obtains device components based on the basic information fingerprint database and the communication fingerprint database.
[0147] The device name in the basic information fingerprint database is H3C S3100V2-26TP-SI, the device model is H3C S3100V2-26TP-SI, the device version is unknown (0), the manufacturer is 0, and the serial number is 210235A0K7C126002633. The basic information component of this switch is H3C S3100V2-26TP-SIH3C S3100V2-26TP-SI00210235A0K7C126002633. After SM3 hash operation, the component fingerprint is e621bac65c77d3fa94de15077bddce86caa879118565da103524298d8a1b7a45.
[0148] The communication fingerprint database shows that the communication protocol is IPSNMP. This switch supports RS-485, RS-232, and Ethernet communication, with the communication mode being 111000000. NMAP scanning reveals that ports 22, 23, and 80 are open, therefore the device's port information is 222380, and its IP address is 192.168.1.100. The switch's communication component is IPSNMP111000000222380192.168.1.100. After SM3 hashing, the component fingerprint is:
[0149] 8591625546ce4605f8ce128dda8f780bd64ff973ba38642e44fbefa170081300.
[0150] Since the device's acquisition strategy is 1001, a hash operation is performed on the merged basic information fingerprint component and communication fingerprint component to obtain:
[0151] If 0ea8482884f2d599bb92af0ce6d35bd9f0c6b3320c81fd0d9d05f426895db1ff, then the feature hash value is e6d35bd9f0c6b3320c81fd0d9d05f426895db1ff.
[0152] Meanwhile, taking a certain smart terminal as an example, the strategy adopted is 1111, which obtains the device component based on the basic information fingerprint database, the operating system fingerprint database, the chip fingerprint database, and the communication fingerprint database.
[0153] The device name in the basic information fingerprint database is "Transformer Area Smart Converged Terminal," the device model is SCTB0201RH, the device version is unknown (0), the manufacturer is Beijing Zhixin Microelectronics Technology Co., Ltd., and the serial number is SCU1202SC004202206011303. The basic information component of this terminal is: Transformer Area Smart Converged Terminal SCTB0201RH0 Beijing Zhixin Microelectronics Technology Co., Ltd. SCU1202SC004202206011303, and the component fingerprint is:
[0154] ada95f4fc0ecb63075a02fb5e1143a94eb154e39d2696f221706824f26fc2d19.
[0155] The operating system fingerprint database shows the operating system type as Linux, the operating system name as GNU / Linux, the operating system version as 4.14.155, and the operating system release information as "Welcome to Shuniu 2.0 OS!". The terminal's operating system component is Linux GNU / Linux 4.14.155 Welcome to Shuniu 2.0 OS!, and the component fingerprint is:
[0156] becbef00a04634c8ab88758563e7e476266282d335db63d46353867e98725d11.
[0157] The chip model in the chip fingerprint database is 0, the processor is Cortex-A7, the component fingerprint of this terminal chip is 0 Cortex-A7, and the component fingerprint is:
[0158] 9f7337addd8f321360e60e5a4d75a3d72d60c94e35f860f6cf2181262e440dce.
[0159] The communication fingerprint database uses DL / T698 as the communication protocol. This terminal supports RS-485, RS-232, Ethernet, and carrier communication. The communication mode is 111100000. Ports 22, 23, and 80 are open. The device's port information is 222380, and its IP address is 192.168.1.101. The terminal's communication component is DL / T698111100000222380192.168.1.101. After SM3 hashing, the component fingerprint is:
[0160] 521a1e6fbbf1886e4bdd8c9dd97d038341a4bc609e488461d707db9555bbcc74.
[0161] Since the device's data acquisition strategy is 1111, the hash calculation is performed by combining the basic information fingerprint component, operating system fingerprint component, chip component, and communication fingerprint component to obtain:
[0162] If a6f11160bddfd717db7d22085164b23a5df478acfd5c5469b333963dbcc296da, then the feature hash value is 5164b23a5df478acfd5c5469b333963dbcc296da.
[0163] S104, combining the prefix code, device type code, status code, and feature hash value to generate a check code.
[0164] The check digit consists of two characters, which combines the prefix code, device type code, status code, and feature hash value. Verification using the check digit can prevent data tampering, damage, or errors, ensuring the security and integrity of the fingerprint.
[0165] During the verification process, this method can employ various check code algorithms, including parity check, Hamming check, or cyclic redundancy check. These check code algorithms can detect and correct some errors in fingerprint encoding, such as bit errors or symbol errors that may be introduced during transmission or storage.
[0166] S105, combining device type code, status code, feature hash value, and check code to generate suffix code.
[0167] The suffix code that integrates device type, status bit, feature hash value, and check bit is a comprehensive fingerprint data protection mechanism. It not only ensures the security and accuracy of the data, but also provides a comprehensive understanding of the device attributes and status.
[0168] S106, combine the prefix code and suffix code to generate a fingerprint code for the power equipment.
[0169] The embodiments of the present invention can achieve the following:
[0170] 1) Equipment identification: Power equipment is uniformly identified and coded using an equipment fingerprint coding system, so that each power equipment has a unique fingerprint code. This solves the problems of code duplication and poor universality caused by different coding systems for different power equipment, and improves the accuracy and security of equipment management.
[0171] 2) Convenient Management: Through device fingerprinting, information on all power equipment can be centrally and uniformly managed, regardless of which company the equipment belongs to or where it is located, enabling accurate tracking and management. Equipment from different manufacturers can identify and collaborate with each other through a common fingerprint recognition mechanism, facilitating the construction of an efficient and consistent Internet of Things (IoT) system.
[0172] 3) Anti-counterfeiting: The fingerprint of power equipment, through the combination of multi-attribute feature hash values and check bits, possesses strong anti-counterfeiting capabilities. The feature hash value part comprehensively selects fingerprints from basic information fingerprint databases, operating system fingerprint databases, chip fingerprint databases, and communication fingerprint databases, making it difficult for attackers to obtain a single attribute of the device. In addition, different device component selection strategies are adopted for different devices, effectively increasing the complexity of cracking by attackers. By comparing the hash data generated in real time with the device fingerprint hash, the authenticity of the device can be effectively verified, blocking the circulation of counterfeit and substandard products.
[0173] The second objective of this invention is to provide a device fingerprint encoding system. Figure 3 The flowchart for this system includes:
[0174] Data acquisition module: Used to collect power hardware and software attributes;
[0175] The creation module is used to apply for and be assigned a unique prefix code; for example, a company applies for and is assigned a unique prefix code by an electricity fingerprint management agency.
[0176] Generation module: Enterprises generate suffix codes based on the collected power hardware and software attributes. The suffix codes include device type, status symbol, feature hash value and check code. The prefix code and suffix code are concatenated to obtain the fingerprint of the power hardware and software device.
[0177] Preferably, the acquisition module includes: acquiring attribute characteristics of power hardware and software, such as equipment model, manufacturer, and communication protocol, through active and passive acquisition.
[0178] Preferably, the creation module includes:
[0179] The prefix code application unit is used to submit a prefix code application; specifically, for example, to the agency specifically responsible for managing power equipment fingerprints, the power fingerprint management agency, to submit a prefix code application. The purpose of applying for a prefix code is to ensure that the generated fingerprint information is associated with the identity of the enterprise or organization during the generation process of the equipment fingerprint, thereby realizing the identification and ownership of the equipment fingerprint.
[0180] The power hardware and software prefix code allocation unit is used to allocate power hardware and software prefix codes according to pre-set allocation rules and coding management system. For example, according to pre-set allocation rules and coding management system, power hardware and software prefix codes are allocated to enterprise generation units. This prefix code will be used as part of the equipment fingerprint and associated with the identity of the enterprise generation unit. By reasonably allocating prefix codes, the equipment fingerprints of different enterprises can be clearly distinguished in the system, realizing personalized management and identification of equipment fingerprints.
[0181] The prefix code acquisition unit sends the allocated prefix code to the prefix code application unit, enabling the application unit to obtain the corresponding prefix code and incorporate it into the fingerprint generation process of the power equipment. For example, the allocated prefix code is communicated to the applying enterprise generation unit, allowing it to obtain the corresponding prefix code. After obtaining the prefix code, the enterprise generation unit incorporates it into the fingerprint generation process of the power equipment, ensuring that the generated fingerprint is associated with the enterprise.
[0182] Optionally, the enterprise generating unit applies for a prefix code from the power fingerprint management agency: As the owner or manager of the power equipment, the enterprise generating unit submits an application for a prefix code to the agency specifically responsible for managing the fingerprints of power equipment, namely the power fingerprint management agency. The purpose of applying for a prefix code is to ensure that the generated fingerprint information is associated with the identity of the enterprise or organization during the fingerprint generation process, thereby realizing the identification and ownership of the equipment fingerprint.
[0183] Optionally, the power fingerprint management agency assigns power hardware and software prefix codes: After receiving an application from an enterprise generating unit, the power fingerprint management agency assigns a power hardware and software prefix code to the enterprise generating unit according to pre-set allocation rules and coding management system. This prefix code will be used as part of the equipment fingerprint and associated with the identity of the enterprise generating unit. By reasonably allocating prefix codes, the equipment fingerprints of different enterprises can be clearly distinguished in the system, realizing personalized management and identification of equipment fingerprints.
[0184] Alternatively, the enterprise generating unit obtains the prefix code: the power fingerprint management agency informs the applying enterprise generating unit of the assigned prefix code, enabling it to obtain the corresponding prefix code. After obtaining the prefix code, the enterprise generating unit incorporates it into the fingerprint generation process of power equipment to ensure that the generated fingerprint is associated with the enterprise.
[0185] Preferably, the generation module includes:
[0186] The feature hash value generation unit is used to generate feature hash values based on the collected power equipment attribute information. Specifically, it includes: obtaining power equipment attribute information to form multidimensional data; generating multiple fingerprint databases based on equipment characteristics from the multidimensional data; obtaining equipment components based on different fingerprint databases; performing hash operations based on the equipment component selection strategy; merging the hash values of each fingerprint component and performing hash operations again to obtain the feature hash value.
[0187] The suffix code generation unit is used to generate a suffix code based on the combination of feature hash value, device type code, status code, and check code.
[0188] The device fingerprint generation unit is used to combine the prefix code and the suffix code to generate a device fingerprint.
[0189] Optionally, a feature hash value is generated based on the collected power equipment attribute information: the generation module generates a basic information fingerprint database, an operating system fingerprint database, a chip fingerprint database, and a communication fingerprint database based on the power equipment attribute information obtained from the acquisition module, such as equipment model, operating system, and communication protocol. Based on the equipment component selection strategy, different components are hashed, the hash values of each fingerprint component are merged and hashed again, and the last 40 bits are truncated to obtain the feature hash value.
[0190] Optionally, the feature hash value is combined with the device type code, status code, and check code to generate a suffix code: First, the device type code and device status code are generated according to the device type and device status code sub-encoding table. Then, the check code is generated together with the prefix code and feature hash value. Finally, the device type code, device status code, feature hash value, and check code are concatenated to generate a suffix code.
[0191] Further, optionally, the prefix code and suffix code are combined to generate the device fingerprint: the generation module combines the prefix code (the prefix code assigned to the enterprise generation unit by the creation module) and the suffix code (composed of device type code, status code, feature hash value and check code) to form the fingerprint of the power equipment.
[0192] The following details a device fingerprint encoding system according to this application, comprising:
[0193] S301, Acquisition Module: Acquires the attribute characteristics of power hardware and software through active and passive acquisition, such as equipment model, manufacturer, communication protocol, etc.
[0194] S302, Creation Module: Enterprise Generating Unit Applying for Prefix Code from Power Fingerprint Management Agency: As the owner or manager of power equipment, the enterprise generating unit applies for a prefix code from the agency specifically responsible for managing power equipment fingerprints, namely the power fingerprint management agency. The purpose of applying for a prefix code is to ensure that the generated fingerprint information is associated with the identity of the enterprise or organization during the equipment fingerprint generation process, thereby realizing the identification and ownership of the equipment fingerprint.
[0195] The power fingerprint management agency assigns power hardware and software prefix codes: After receiving the application from the enterprise generating unit, the power fingerprint management agency assigns power hardware and software prefix codes to the enterprise generating unit according to the pre-set allocation rules and coding management system. This prefix code will be used as part of the equipment fingerprint and associated with the identity of the enterprise generating unit. By reasonably allocating prefix codes, the equipment fingerprints of different enterprises can be clearly distinguished in the system, realizing personalized management and identification of equipment fingerprints.
[0196] Enterprises generating fingerprints obtain prefix codes: The power fingerprint management agency will inform the applying enterprise generating unit of the assigned prefix code, enabling it to obtain the corresponding prefix code. After obtaining the prefix code, the enterprise generating unit will incorporate it into the fingerprint generation process of power equipment to ensure that the generated fingerprint is associated with the enterprise.
[0197] S303, Generation Module: Based on the collected power equipment attribute information, the generation module generates a feature hash value: Based on the power equipment attribute information obtained from the acquisition module, such as equipment model, operating system, communication protocol, etc., the generation module generates a basic information fingerprint database, an operating system fingerprint database, a chip fingerprint database, and a communication fingerprint database. Based on the equipment component selection strategy, it performs hash operations on different components, merges the hash values of each fingerprint component, performs hash operations again, and truncates the last 40 bits to obtain the feature hash value.
[0198] The feature hash value is combined with the device type code, status code, and check code to generate the suffix code: First, the device type code and device status code are generated according to the device type and device status code sub-encoding table. Then, the check code is generated by combining the prefix code and the feature hash value. Finally, the device type code, device status code, feature hash value, and check code are concatenated to generate the suffix code.
[0199] The prefix code and suffix code are combined to generate the device fingerprint: The generation module combines the prefix code (the prefix code assigned to the enterprise generation unit by the creation module) and the suffix code (composed of device type code, status code, feature hash value and check code) to form the fingerprint of the power equipment.
[0200] Figure 4This is a schematic diagram of a device structure provided in an embodiment of the present invention. The device includes an interface, a processor, a power supply, a memory, an input / output unit, and a communication section, all connected via a bus. The memory can store at least one application program or dataset for executing a series of computer instructions on the device to achieve the device fingerprint function.
[0201] Therefore, the advantages of this invention are:
[0202] 1. Feature Hash Value Section: The feature hash value section comprehensively selects fingerprints from basic information databases, operating system fingerprint databases, chip fingerprint databases, and communication fingerprint databases. By fusing information from multiple sources, the complexity and uniqueness of the fingerprint are enhanced, thereby significantly improving security. This makes it difficult for external attackers to fully grasp all the attributes of the device, even if they obtain some fingerprint information.
[0203] 2. Fingerprint component selection strategy: Different fingerprint component selection strategies are selected according to different device types. This flexibility allows the system to customize which attributes should be included in the fingerprint based on the specific characteristics and security requirements of the device, thereby increasing the difficulty of decryption.
[0204] 3. Generating device fingerprints based on the handle system: Power industry equipment is added to the industrial internet identification system, and multiple root nodes are connected in parallel and interconnected among the 10 global root nodes, supporting various forms of data sharing and exchange at the international and domestic levels, and building an international data sharing and exchange service system.
[0205] like Figure 5 As shown, a third objective of this invention is to provide a fingerprint encoding system for power equipment, comprising:
[0206] The first generation module 100 is used to generate prefix codes based on country codes, industry codes, and enterprise codes;
[0207] The second generation module 200 is used to generate equipment type codes and equipment status codes according to equipment type classification standards and equipment status tables.
[0208] The acquisition module 300 is used to acquire power equipment attribute information, form multidimensional data, generate multiple fingerprint databases based on equipment characteristics, acquire equipment components based on different fingerprint databases, perform hash operations based on the equipment component selection strategy, merge the hash values of each fingerprint component and perform hash operations again to obtain the feature hash value.
[0209] The third generation module 400 is used to generate a check code by combining the prefix code, device type code, status code, and feature hash value;
[0210] The fourth generation module 500 is used to generate a suffix code by combining the device type code, status code, feature hash value, and check code;
[0211] The fifth generation module 600 is used to combine the prefix code and the suffix code to generate a fingerprint code for power equipment.
[0212] The system is based on the aforementioned method for generating fingerprint codes for power equipment.
[0213] like Figure 6 As shown, a fourth objective of this invention is to provide an electronic device, including a memory 701, a processor 702, and a computer program stored in the memory 701 and executable on the processor. When the processor executes the computer program, it implements the power equipment fingerprint encoding generation method. The device also includes a communication interface 703 and a bus 704.
[0214] A fifth objective of this invention is to provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the power equipment fingerprint encoding generation method.
[0215] A sixth objective of this invention is to provide a computer program product comprising computer instructions, wherein the computer instructions instruct a computer to execute the power equipment fingerprint encoding generation method.
[0216] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0217] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0218] This invention may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, readable storage media, optical storage, etc.) containing computer-usable program code.
[0219] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0220] Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort should fall within the scope of protection of the present invention.
[0221] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention.
Claims
1. A method for generating fingerprint codes for power equipment, characterized in that, include: Generate prefix codes based on country codes, industry codes, and enterprise codes; Generate equipment type codes and equipment status codes based on equipment type classification standards and equipment status tables; Obtain power equipment attribute information to form multidimensional data. Generate multiple fingerprint databases based on equipment characteristics. Obtain equipment components based on different fingerprint databases. Perform hash operation based on the equipment component selection strategy. Combine the hash values of each fingerprint component and perform hash operation again to obtain the feature hash value. A checksum is generated by combining the prefix code, device type code, status code, and feature hash value. A suffix code is generated by combining the device type code, status code, feature hash value, and check code. The prefix code and suffix code are combined to generate a fingerprint code for power equipment; The device components include basic device information components, device operating system components, device chip components, and device communication components. In the hash operation based on the device component selection strategy, the device component selection strategy includes: The first strategy, code H1111, Hash = H1 + H2 + H3 + H4; The second strategy, code H1011, has Hash = H1 + H3 + H4; The third strategy, code H1101, has Hash = H1 + H2 + H4; The fourth strategy, code H1110, has the hash value H1 + H2 + H3. The fifth strategy, code H1001, has the hash value H1 + H4. The sixth strategy, code H1010, has the hash value H1 + H3. The seventh strategy, code H1100, has the hash value H1 + H2. The eighth strategy, code H1000, Hash=H1; Wherein, H1 represents the basic information fingerprint component, H2 represents the operating system fingerprint component, H3 represents the chip fingerprint component, and H4 represents the communication fingerprint component. The four digits in the code represent H1, H2, H3, and H4 from left to right. When the number is 1, it means that the fingerprint component is enabled, and when the number is 0, the device component is not enabled. After obtaining the components of each device, perform a hash operation on each component to obtain a hash value, merge the hash values in order, and then perform another hash operation to obtain a feature hash value.
2. The method for generating fingerprint codes for power equipment according to claim 1, characterized in that, The generation of prefix codes based on country codes, industry codes, and enterprise codes includes: Based on predefined fusion coding rules, the coding is divided into prefix code and suffix code, separated by a separator. The prefix code is fixedly composed of country code, industry code and enterprise code. The country code represents the country to which a specific power equipment belongs, the industry code is the power industry, and the enterprise code identifies the specific enterprise or organization to which the power equipment belongs.
3. The method for generating fingerprint codes for power equipment according to claim 1, characterized in that, The process of generating equipment type codes and equipment status codes based on equipment type classification standards and equipment status tables includes: each equipment type and equipment status has a corresponding sub-code table, and each equipment type and equipment status corresponds to a number, thereby generating equipment type codes and status codes.
4. The method for generating fingerprint codes for power equipment according to claim 1, characterized in that, The basic information component of the device is obtained by combining multiple basic information of the target device, including device type, device name, device model, device version, manufacturer and serial number; The device operating system component is obtained by merging the target device's operating system information, including operating system type, operating system name, operating system version, and operating system release information; The device chip component is obtained by merging the chip information of the target device, including the chip model and processor architecture; The device communication component is obtained by combining various communication information of the target device, including communication protocol, communication method, port information and IP address.
5. The method for generating fingerprint codes for power equipment according to claim 1, characterized in that, The step of generating a checksum by combining the prefix code, device type code, status code, and feature hash value includes: verifying the prefix code, device type, status code, and feature hash value.
6. The method for generating fingerprint codes for power equipment according to claim 1, characterized in that, The process of generating a suffix code by combining device type code, status code, feature hash value, and checksum includes: The device type code and device status code are generated based on the device type and device status code sub-encoding table. Then, a check code is generated by combining the device type code and the feature hash value. Finally, the device type code, device status code, feature hash value, and check code are concatenated to generate a suffix code.
7. The method for generating fingerprint codes for power equipment according to claim 1, characterized in that, The step of combining the prefix code and the suffix code to generate a fingerprint code for power equipment includes: The generation module combines the prefix code and suffix code to form the fingerprint of the power equipment.
8. A fingerprint coding generation system for power equipment, characterized in that, include: The first generation module is used to generate prefix codes based on country codes, industry codes, and enterprise codes; The second generation module is used to generate equipment type codes and equipment status codes based on equipment type classification standards and equipment status tables. The acquisition module is used to acquire power equipment attribute information, form multidimensional data, generate multiple fingerprint databases based on equipment characteristics, acquire equipment components based on different fingerprint databases, perform hash operations based on the equipment component selection strategy, merge the hash values of each fingerprint component and perform hash operations again to obtain the feature hash value. The third generation module is used to generate a check code by combining the prefix code, device type code, status code and feature hash value; The fourth generation module is used to generate a suffix code by combining the device type code, status code, feature hash value, and check code; The fifth generation module is used to combine the prefix code and the suffix code to generate a fingerprint code for power equipment; The device components include basic device information components, device operating system components, device chip components, and device communication components. In the acquisition module, during the hash operation based on the device component selection strategy, the device component selection strategy includes: The first strategy, code H1111, Hash = H1 + H2 + H3 + H4; The second strategy, code H1011, has Hash = H1 + H3 + H4; The third strategy, code H1101, has Hash = H1 + H2 + H4; The fourth strategy, code H1110, has the hash value H1 + H2 + H3. The fifth strategy, code H1001, has the hash value H1 + H4. The sixth strategy, code H1010, has the hash value H1 + H3. The seventh strategy, code H1100, has the hash value H1 + H2. The eighth strategy, code H1000, Hash=H1; Wherein, H1 represents the basic information fingerprint component, H2 represents the operating system fingerprint component, H3 represents the chip fingerprint component, and H4 represents the communication fingerprint component. The four digits in the code represent H1, H2, H3, and H4 from left to right. When the number is 1, it means that the fingerprint component is enabled, and when the number is 0, the device component is not enabled. After obtaining the components of each device, perform a hash operation on each component to obtain a hash value, merge the hash values in order, and then perform another hash operation to obtain a feature hash value.
9. A fingerprint coding generation system for power equipment according to claim 8, characterized in that, The first generation module generates a prefix code based on the country code, industry code, and enterprise code, including: Based on predefined fusion coding rules, the coding is divided into prefix code and suffix code, separated by a separator. The prefix code is fixedly composed of country code, industry code and enterprise code. The country code represents the country to which a specific power equipment belongs, the industry code is the power industry, and the enterprise code identifies the specific enterprise or organization to which the power equipment belongs.
10. A fingerprint coding system for power equipment according to claim 8, characterized in that, In the second generation module, equipment type codes and equipment status codes are generated according to the equipment type classification standard and equipment status table. This includes: each equipment type and equipment status has a corresponding sub-code table, and each equipment type and equipment status corresponds to a number, thereby generating equipment type codes and status codes.
11. A fingerprint coding generation system for power equipment according to claim 8, characterized in that, The basic information component of the device is obtained by combining multiple basic information of the target device, including device type, device name, device model, device version, manufacturer and serial number; The device operating system component is obtained by merging the target device's operating system information, including operating system type, operating system name, operating system version, and operating system release information; The device chip component is obtained by merging the chip information of the target device, including the chip model and processor architecture; The device communication component is obtained by combining various communication information of the target device, including communication protocol, communication method, port information and IP address.
12. A fingerprint coding generation system for power equipment according to claim 8, characterized in that, The third generation module generates a checksum by combining the prefix code, device type code, status code, and feature hash value, including: verifying the prefix code, device type, status code, and feature hash value.
13. A fingerprint encoding system for power equipment according to claim 12, characterized in that, The suffix code generation module generates a suffix code by combining the device type code, status code, feature hash value, and checksum, including: The device type code and device status code are generated based on the device type and device status code sub-encoding table. Then, a check code is generated by combining the device type code and the feature hash value. Finally, the device type code, device status code, feature hash value, and check code are concatenated to generate a suffix code.
14. A fingerprint coding generation system for power equipment according to claim 8, characterized in that, In the fifth generation module, the prefix code and suffix code are combined to generate a fingerprint code for the power equipment, including: The generation module combines the prefix code and suffix code to form the fingerprint of the power equipment.
15. An electronic device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the power equipment fingerprint encoding generation method according to any one of claims 1-7.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the fingerprint encoding generation method for power equipment according to any one of claims 1-7.
17. A computer program product, the computer program product comprising computer instructions, characterized in that, The computer instructions instruct the computer to execute the fingerprint encoding generation method for power equipment as described in any one of claims 1-7.
Citation Information
Patent Citations
Equipment fingerprint generation method and device, equipment and storage medium
CN111478986A
Method, device and system for constructing data transmission protocol of energy Internet
CN114095229A