Equipment two-dimensional code generation method, information management method, device and equipment
By generating QR codes for both static and dynamic equipment information, the problem of poor diversity of equipment QR code information is solved, enabling the display of rich equipment management information and supporting maintenance personnel's decision-making.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-03
- Publication Date
- 2026-03-31
AI Technical Summary
The information displayed by the QR code on the equipment in the existing technology is not diverse enough, which cannot provide maintenance personnel with sufficient reference information, leading to difficulties in decision-making.
Generate a first device QR code for static device information and a second device QR code for dynamic device information associated with the data center equipment. By combining the two, the display types are expanded, and the information diversity is improved.
It provides maintenance personnel with a wealth of reference information to support equipment management decisions throughout the entire lifecycle.
Smart Images

Figure CN121766348A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of equipment management, and in particular to a method for generating equipment QR codes, an information management method, an apparatus, and equipment. Background Technology
[0002] For data center equipment management, relevant solutions are usually based on manually scanning the QR code of the equipment to obtain the corresponding equipment configuration information, so that maintenance personnel can maintain and manage the equipment according to the equipment configuration information.
[0003] However, since the QR codes in the relevant solutions can usually only display a single device configuration information, the information displayed by the device QR codes in the relevant solutions suffers from poor diversity. Summary of the Invention
[0004] This application provides a method for generating device QR codes, an information management method, an apparatus, and an equipment, which are used to improve the diversity of information displayed by device QR codes.
[0005] In a first aspect, this application provides a method for generating a device QR code, applied to a server, comprising: Acquire device data throughout its entire lifecycle; Based on the device data, a first device QR code and at least one second device QR code are obtained; wherein, the first device QR code is used to associate the network address of the static device information of the data center device, and the second device QR code is used to associate the network address of the dynamic device information of the data center device.
[0006] The technical solution provided in this application offers at least the following benefits: Based on the acquired full lifecycle device data, a first device QR code is obtained, which corresponds to the network address of the static device information of the associated data center device, and a second device QR code is associated with at least one network address indicating the dynamic device information of the data center device. Thus, by combining the first device QR code and different second device QR codes, different types of associated device information can be carried, expanding the display types of different data throughout the full lifecycle of the data center device, thereby improving the diversity of information displayed by the device QR codes.
[0007] One possible implementation is that the device data includes first device data and second device data, wherein the first device data is used to indicate the static device configuration information of the equipment in the computer room; The second device data includes first dynamic data and second dynamic data, wherein the first dynamic data is used to indicate device information updated at low frequency, and the second dynamic data is used to indicate device information updated at high frequency.
[0008] Another possible implementation involves obtaining a first device QR code and at least one second device QR code based on device data, including: if the amount of device data exceeds a preset capacity, generating a first query network address and at least one second query network address; wherein the first query network address is used to query the first device data and at least one second device QR code, and the second query network address is used to query the second device data. Generate a QR code for the first device based on the first queried network address; Generate at least one second device QR code based on at least one second query network address.
[0009] Another possible implementation is that at least one second query network address includes the first subquery network address and the second subquery network address; The first subquery network address is used to query the first dynamic data, and the second subquery network address is used to query the second dynamic data. Generate at least one second device QR code based on at least one second query network address, including: generating corresponding dynamic two-dimensional sub-codes based on each sub-query network address, and using each dynamic two-dimensional sub-code as a second device QR code; The dynamic two-dimensional subcode includes a first dynamic two-dimensional subcode and a second dynamic two-dimensional subcode. The first dynamic two-dimensional sub-code is used to associate the network address where the first dynamic data is located, and the second dynamic two-dimensional sub-code is used to associate the network address where the second dynamic data is located.
[0010] Another possible implementation is to generate a third query network address if the amount of device data is less than or equal to the preset capacity. The third query network address is used to query both static and dynamic device information of the equipment in the computer room at the same time. A third device QR code is generated based on the third query network address. The third device QR code is used to simultaneously associate the network addresses where the static and dynamic device information of the equipment in the data center is located.
[0011] Another possible implementation is that static device information includes device configuration information; dynamic device information includes device experience data, real-time detection data, operating status data, and data center environment data. Among them, equipment experience data is used to indicate historical equipment failure information and life prediction curves.
[0012] Secondly, this application provides a device information management method applied to a client, comprising: The first device QR code of the computer room equipment is identified to obtain a first identification result, the first identification result including at least one second device QR code; wherein the first device QR code and the second device QR code are obtained by the device QR code generation method described above; A second identification result is obtained based on at least one second device QR code, and the second identification result is used to indicate the dynamic device information of the equipment in the computer room.
[0013] One possible implementation involves obtaining a second identification result based on at least one second device QR code, including: identifying a target identification QR code among the at least one second device QR code, wherein the target identification QR code is the second device QR code that the user wants to identify; When a user triggers a recognition command for a target QR code, the target QR code is recognized to obtain a second recognition result.
[0014] Another possible implementation involves identifying the target QR code to obtain a second identification result, including: extracting the hash value of the target QR code; and verifying the hash value of the target QR code based on the hash value of the first device QR code. If the hash value of the target identification QR code is verified, a hash calculation is performed on the hash value of the target identification QR code to obtain the second identification result; If the hash value verification of the target identification QR code fails, a prompt message is generated suggesting that the first device's QR code be re-identified.
[0015] Thirdly, this application provides a device QR code generation apparatus, comprising: The acquisition module is used to acquire device data throughout its entire lifecycle. The generation module is used to obtain a first device QR code and at least one second device QR code based on device data; wherein, the first device QR code is used to associate the network address where the static device information of the data center device is located, and the second device QR code is used to associate the network address where the dynamic device information of the data center device is located.
[0016] Fourthly, this application provides a device for managing equipment information, comprising: The identification module is used to identify the first device QR code of the equipment in the computer room and obtain a first identification result. The first identification result includes the original equipment information and at least one second device QR code. The first device QR code and the second device QR code are obtained by the device QR code generation method described above. The processing module obtains a second identification result based on at least one second device QR code. The second identification result is used to indicate the dynamic device information of the equipment in the computer room.
[0017] Fifthly, this application provides an electronic device comprising: a processor and a memory; the memory storing processor-executable instructions; when the processor is configured to execute the instructions, causing the electronic device to implement the methods of the first and second aspects described above.
[0018] The beneficial effects of the second to fifth aspects mentioned above are described in the corresponding description of the first aspect and will not be repeated here. Attached Figure Description
[0019] Figure 1 A schematic diagram of an application environment provided for an embodiment of this application; Figure 2 A flowchart illustrating a device QR code generation method provided in this application embodiment; Figure 3 A flowchart illustrating another method for generating a device QR code provided in this application embodiment; Figure 4 A flowchart illustrating a device information management method provided in an embodiment of this application; Figure 5 A flowchart illustrating another device information management method provided in an embodiment of this application; Figure 6 This is a schematic diagram illustrating the composition of a device QR code generation apparatus provided in an embodiment of this application; Figure 7 This is a schematic diagram illustrating the composition of a device information management apparatus provided in an embodiment of this application; Figure 8 This is a schematic diagram of the composition of an electronic device provided in an embodiment of this application. Detailed Implementation
[0020] The following is a detailed description of a call detail record (CDR) data recording method provided in this application, with reference to the accompanying drawings.
[0021] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0022] To facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish the same or similar items with essentially the same function and effect. Those skilled in the art can understand that the terms "first" and "second" are not intended to limit the quantity or execution order.
[0023] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0024] In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0025] Data center equipment management maintains the normal operation of equipment within the data center. This management typically relies on manual scanning and recording of equipment data, or monitoring data via the cloud. However, cloud-based data monitoring solutions are costly to deploy; therefore, most data center equipment management solutions still rely on manual scanning and recording of equipment data.
[0026] For manual scanning of device data, the amount of information that can be carried in a single QR code is limited. Therefore, the QR codes in these solutions are typically generated based solely on the device's original information. Subsequent maintenance personnel, when scanning the QR code on the device using a mobile client, can only obtain the corresponding device configuration information.
[0027] However, the separation of single device configuration information, such as factory parameters, from real-time data makes it difficult for maintenance personnel to perform correlation analysis; historical experience data, such as fault models, cannot be directly embedded into the device itself and must rely on a backend database; and environmental data, such as temperature and humidity, is disconnected from the device's operating status, affecting fault cause analysis. Therefore, the single device configuration information carried by QR codes in related solutions cannot provide sufficient reference information for maintenance personnel's decision-making, and the information carried by the device QR codes in related solutions suffers from poor diversity.
[0028] To address the aforementioned technical problems, this application provides a method for generating device QR codes, an information management method, an apparatus, and a device. Based on acquired device data throughout its entire lifecycle, the network address where the device data resides is encoded to obtain a first device QR code associated with the network address of static device information in the data center, and a second device QR code associated with at least one network address indicating the network address of dynamic device information in the data center. Thus, by combining the first device QR code and at least one second device QR code, the types of data displayed throughout the data center's entire lifecycle are expanded, thereby increasing the diversity of information displayed by the QR codes and providing richer reference information for maintenance personnel's decision-making.
[0029] The embodiments provided in this application will now be described in detail with reference to the accompanying drawings. Figure 1 This is a schematic diagram of an application environment provided by an embodiment of this application. The device QR code generation method and device information management method provided in this application can be applied to, for example... Figure 1 The application environment shown. For example... Figure 1As shown, the application environment includes: data center equipment, server 101, and client 102. The data center equipment is communicatively connected to server 101, which can be located inside or outside the data center equipment. A QR code generated by server 101 is displayed on the data center equipment's interface. Client 102 scans and identifies the QR code displayed on the data center equipment's interface to obtain the corresponding equipment information.
[0030] In some embodiments, server 101 may be a server cluster consisting of multiple servers, a single server, a computer, or a processor or processing chip in a server or computer. This application does not limit the specific device form of server 101. Figure 1 The example shown is server 101, which is a single server located outside the computer room equipment.
[0031] In some embodiments, client 102 can be a device with wireless transceiver capabilities, such as a mobile phone, tablet computer, wearable device, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), etc. This application embodiment does not limit the specific device form of client 102. Figure 1 The example shown is a mobile terminal using client 102.
[0032] In some embodiments, the server 101 obtains a first device QR code indicating the network address of the static device information of the data center device and at least one second device QR code indicating the network address of the dynamic device information of the data center device based on the acquired full lifecycle device data, and displays the first device QR code on the display interface of the data center device.
[0033] In some embodiments, the client 102 scans and identifies the first device QR code on the display interface of the data center equipment, jumps to the associated network address, and obtains a first identification result including at least one second device QR code. When it receives an identification instruction triggered by maintenance personnel for one of the second device QR codes, it identifies the second device QR code, jumps to the associated network address, and obtains a second identification result indicating the dynamic equipment information of the data center equipment.
[0034] It should be noted that the application environment described in the embodiments of this application is for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, as the application environment evolves, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0035] The method for generating device QR codes provided in this application will be described in detail below with reference to the accompanying drawings.
[0036] Figure 2 This is a flowchart illustrating a device QR code generation method provided in an embodiment of this application. The device QR code generation method provided in this embodiment is applied to... Figure 1 The server 101 shown. Combined with... Figure 2 As shown, the method for generating a QR code for this device includes the following steps: S201. Obtain device data throughout its entire lifecycle.
[0037] In some embodiments, the device data includes first device data and second device data, wherein the first device data is used to indicate static device configuration information of the data center equipment, such as the production batch, firmware version and hardware configuration information of the equipment. The first device data is only collected and updated when the equipment is restarted or the firmware is upgraded.
[0038] For example, the second device data includes first dynamic data and second dynamic data. The first dynamic data is used to indicate low-frequency updated device information such as device experience data. The device experience data includes historical device failure information and life prediction curves. The update frequency of the first dynamic data can be once a day or once a week.
[0039] The second dynamic data is used to indicate frequently updated equipment information, such as real-time monitoring data, operating status data, and data center environmental data. Real-time monitoring data includes the equipment's real-time voltage, current, temperature, and fan speed; operating status data includes operating mode, CPU, GPU, memory, and hard drive utilization; and data center environmental data includes data center temperature and humidity, vibration amplitude, and electromagnetic interference level.
[0040] For example, the update frequency of the second dynamic data that is updated frequently can be based on a preset time frequency: the update frequency of real-time detection data can be once per second or once per minute; the update frequency of running status data can be once per minute; and the update frequency of data center environment data can be once every five minutes.
[0041] In some embodiments, device data is a data packet that encapsulates various types of data from the first device data and the second device data in JSON (JavaScript Object Notation) format.
[0042] S202. Based on the device data, obtain a first device QR code and at least one second device QR code.
[0043] In some embodiments, after obtaining device data, the amount of device data is acquired, and based on the amount of device data, it is determined whether to perform segmented encoding or single encoding on the network address where the device data is located.
[0044] For example, if it is determined that the network address where the device data is located needs to be segmented and encoded, the device data needs to be divided into multiple data blocks of different types. A corresponding QR code is generated based on the network address associated with each data block, so that subsequent maintenance personnel can select different QR codes for recognition and jump to the associated network address to obtain the corresponding device information.
[0045] The first device QR code is used to associate the static device information of the equipment in the data center with the network address where it is located, and the second device QR code is used to associate the dynamic device information of the equipment in the data center with the network address where it is located. The dynamic device information includes equipment experience data, real-time detection data, operating status data and data center environment data. Among them, the equipment experience data is used to indicate the equipment's historical fault information and life prediction curve.
[0046] In this embodiment, based on the acquired device data throughout its entire lifecycle, the data is encoded according to the network address where the device data is located to obtain a first device QR code indicating static device information of the data center equipment, and at least one second device QR code indicating the network address where dynamic device information of the data center equipment is located. Thus, by combining the first device QR code and at least one second device QR code, the ability to display different data types throughout the entire lifecycle of the data center equipment is expanded, thereby improving the diversity of information displayed by the QR codes and providing rich reference information for maintenance personnel's decision-making.
[0047] Further explanation is provided regarding step S201 above, which involves acquiring device data throughout its entire lifecycle: In some embodiments, the data update of the second device data in the device data can be achieved not only by time-driven updates, i.e., by timed updates at a preset time frequency, but also by event-driven updates, which can be used to collect and update the device experience data, real-time detection data, operating status data, and data center environment data in the second device data.
[0048] For example, for equipment experience data such as fault models in historical fault information, when the fault model is updated, the historical fault information in the equipment experience data is updated synchronously, and the historical fault information is digitally signed using the ECDSA (Elliptic Curve Digital Signature Algorithm).
[0049] For example, for real-time monitoring data such as device temperature, the device temperature in the real-time monitoring data is updated when the device temperature increases or decreases by five degrees Celsius.
[0050] For example, for runtime status data such as memory usage, the memory usage in the runtime status data is updated when the memory usage exceeds 10%.
[0051] For example, for data center environmental data such as data center humidity, the data center humidity is updated when the data center humidity increases or decreases by 20%.
[0052] Figure 3 This is a flowchart illustrating another method for generating a device QR code, provided in an embodiment of this application. (In conjunction with...) Figure 3 As shown, in step S202 above, obtaining a first device QR code and at least one second device QR code based on device data can be achieved through the following steps: S2021, The amount of data acquired from the device.
[0053] In some embodiments, after obtaining the device data, the size of the data packet corresponding to the device data is used as the data volume of the device data. The data volume of the device data is compared with a preset capacity, and based on the comparison result, it is determined whether to perform segmented encoding or single encoding on the network address where the device data is located. Here, the preset capacity refers to the maximum single code capacity that a single QR code can carry, such as 500 bytes.
[0054] S2022. If the data volume is greater than the preset capacity, generate a first device QR code and at least one second device QR code respectively.
[0055] In some embodiments, if the amount of device data exceeds a preset capacity, the first device data and the second device data in the device data are segmented to obtain a data block about the first device data, a data block about the first dynamic data, and a data block about the second dynamic data. The data block about the second dynamic data can be further divided into different data sub-blocks based on data type, such as a data sub-block about data center environment data, a data sub-block about real-time detection data, and a data sub-block about operating status data.
[0056] For example, the network addresses of each data block are encoded separately to obtain a first query network address and at least one second query network address. The first query network address is used to query first device data and at least one second device QR code, while the second query network address is used to query dynamic data within the second device data.
[0057] Wherein, at least one second query network address includes a first sub-query network address and a second sub-query network address; wherein, the first sub-query network address is used to query a data block of the first dynamic data, and the second sub-query network address is used to query a data block of the second dynamic data.
[0058] Since the second dynamic data includes multiple types of frequently updated device information, the second sub-query network address also includes a first high-frequency sub-query network address, a second high-frequency sub-query network address, and a third high-frequency sub-query network address. The first high-frequency sub-query network address is used to query data sub-blocks of real-time detection data, the second high-frequency sub-query network address is used to query data sub-blocks of operational status data, and the third high-frequency sub-query network address is used to query data sub-blocks of data about the data center environment.
[0059] In some embodiments, a first device QR code is generated based on a first query network address; at least one second device QR code is generated based on at least one second query network address.
[0060] For example, to generate at least one second device QR code, a corresponding dynamic two-dimensional sub-code is generated based on each sub-query network address, and each dynamic two-dimensional sub-code is used as the second device QR code.
[0061] The dynamic two-dimensional sub-code includes a first dynamic two-dimensional sub-code and a second dynamic two-dimensional sub-code. The first dynamic two-dimensional sub-code is used to associate the network address where the low-frequency updated equipment experience data indicated by the first dynamic data is located. The second dynamic two-dimensional sub-code is used to associate the network address where the high-frequency updated equipment information indicated by the second dynamic data is located, such as a two-dimensional sub-code used to associate the network address where the operating status data is located and a two-dimensional sub-code used to associate the network address where the data center environment data is located.
[0062] The dynamic two-dimensional sub-code can be a QR code corresponding to at least one of the four types of device information mentioned above, or it can be a QR code for other types of device information. This application does not limit the type of device information displayed by the QR code, as long as it can reflect the device information throughout the entire life cycle of the device.
[0063] For example, the first device QR code is displayed as the main code on the display interface of the equipment in the computer room. After the client scans the main code, at least one second device QR code is displayed as the secondary code on the client.
[0064] S2023. If the data volume is less than or equal to the preset capacity, generate a QR code for a third device.
[0065] In some embodiments, if the amount of device data is less than or equal to the preset capacity, it is confirmed that the device data can be carried by a single QR code, and the network address where the static device information and dynamic device information of the data center device can be queried at the same time is used as the corresponding third query network address.
[0066] For example, a third device QR code is generated based on the third query network address, so that the third device QR code can be associated with the network address where the static device information and dynamic device information of the data center device are located, and the third device QR code is displayed on the display interface of the data center device.
[0067] In this embodiment, based on the amount of device data, the network address where the device data is located is segmented or encoded individually to obtain the corresponding QR code. This allows maintenance personnel to identify and display different types of device information by using multiple associated QR codes when there are various types of device information in the device data.
[0068] Figure 4 This is a flowchart illustrating a device information management method provided in an embodiment of this application. The device information management method provided in this embodiment is applied to... Figure 1 The client shown is 102. Combined with... Figure 4 As shown, the device information management method includes the following steps: S301. Identify the first device QR code of the equipment in the computer room to obtain a first identification result, wherein the first identification result includes at least one second device QR code.
[0069] In some embodiments, after the corresponding first device QR code is displayed on the interface of the data center equipment, the maintenance personnel scan and identify the first device QR code through the client, jump to the corresponding network address, obtain static device information of the data center equipment such as device configuration information, and at least one second device QR code, and display the device configuration information of the data center equipment and at least one second device QR code on the client screen.
[0070] For example, when different second device QR codes are displayed on the client screen, a corresponding index number and a corresponding data type name are added below each second device QR code. For example, "1 / 3" and "Real-time Detection Data" are added below the second device QR code corresponding to real-time detection data; "2 / 3" and "Operation Status Data" are added below the second device QR code corresponding to running status data; and "3 / 3" and "Operation Status Data" are added below the second device QR code corresponding to data center environment data.
[0071] S302. Obtain a second recognition result based on at least one second device QR code.
[0072] In some embodiments, after scanning the first device QR code as the primary code to obtain at least one second device QR code as a secondary code in the first identification result, the maintenance personnel select the second device QR code to be identified through the client for scanning, jump to the network address associated with the second device QR code, and obtain the second identification result corresponding to the selected second device QR code. The second identification result is used to indicate the dynamic device information of the equipment in the data center, such as the operating status data.
[0073] In this embodiment of the application, after obtaining static equipment information such as equipment configuration information of the computer room equipment and at least one second equipment QR code by scanning the first equipment QR code as the main code, if the maintenance personnel need to further obtain other types of equipment information, they can also obtain the corresponding equipment information by scanning the second equipment QR code as the secondary code, thereby expanding the types of equipment information obtained by the maintenance personnel.
[0074] Figure 5 This is a flowchart illustrating another device information management method provided in an embodiment of this application. (In conjunction with...) Figure 5 As shown, in step S302 above, obtaining the second recognition result based on at least one second device QR code can be achieved through the following steps: S3011. Determine the target identification QR code in at least one second device QR code.
[0075] In some embodiments, after maintenance personnel scan the first device QR code, which serves as the primary code, through a client, they are redirected to the network address associated with the first device QR code, and static device information of the data center equipment, such as device configuration information, and at least one second device QR code, which serves as a secondary code, are displayed on the client.
[0076] For example, if maintenance personnel need to obtain other types of equipment information, such as real-time detection data, then in at least one second device QR code, the second device QR code corresponding to the real-time detection data is used as the target identification QR code.
[0077] S3012. When receiving a recognition instruction triggered by the user for the target recognition QR code, recognize the target recognition QR code and obtain a second recognition result.
[0078] In some embodiments, after maintenance personnel identify the target identification QR code, they long-press the target identification QR code. At this time, the client receives the identification instruction triggered by the user for the target identification QR code and identifies the target identification QR code.
[0079] For example, when recognizing the target identification QR code, the hash values of the target identification QR code and the first device QR code are extracted. Based on the hash value of the first device QR code, the hash value of the target identification QR code is verified. After the hash value of the target identification QR code is verified, the client displays a page that redirects to the network address associated with the target identification QR code to obtain a second identification result indicating the dynamic device information of the equipment in the data center.
[0080] For example, when verifying the hash value of the target identification QR code, if the hash value verification of the target identification QR code passes, the hash value of the target identification QR code is hashed to obtain a second identification result; if the hash value verification of the target identification QR code fails, a prompt message is generated to suggest re-identifying the first device QR code.
[0081] In this embodiment of the application, the authenticity and reliability of the identified device information are ensured by combining the hash value of the first device QR code as the main code and the target identification QR code as the secondary code.
[0082] The following describes the device QR code generation method and device information management method of this application through a specific embodiment, and further explains the specific implementation process of this method: In some embodiments, when the equipment in the computer room is an uninterruptible power supply (UPS) for the data center, the server collects first equipment data of the uninterruptible power supply, such as UPS model, battery capacity and manufacturing date, first dynamic data in the second equipment data, such as historical battery charge and discharge cycle count and capacity decay curve, and second dynamic data in the second equipment data, such as real-time input voltage, battery temperature, current humidity of the computer room and cooling fan speed.
[0083] In some embodiments, the server generates a first device QR code as the primary code based on the network address where the first device data and the second device data are located at this time, and displays it on the display interface of the uninterruptible power supply so that subsequent maintenance personnel can scan and identify it through the client to obtain a second device QR code as the secondary code.
[0084] For example, when the battery temperature exceeds 50 degrees Celsius, an alarm status is displayed on the screen of the uninterruptible power supply, and the second dynamic data indicating real-time detection data in the corresponding network address is updated. The first device QR code can serve as an entry point for obtaining the second device QR code, and the second device QR code can serve as an entry point for obtaining the indication of the second dynamic data.
[0085] For example, maintenance personnel scan a first device QR code (the primary code) using a client application. The client displays information including the UPS model, battery capacity, and manufacturing date, as well as at least one second device QR code (a secondary code). If maintenance personnel want to obtain equipment lifespan predictions and causes of anomalies, they can identify the second device QR code corresponding to historical experience data as the target identification QR code, thereby obtaining lifespan prediction information for the uninterruptible power supply and causes of anomalies such as accelerated battery aging due to high temperatures.
[0086] As can be seen, the above mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the embodiments of this application provide corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention.
[0087] This application embodiment can divide the device QR code generation device and device information management device into functional modules according to the above method example. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0088] In some embodiments, this application also provides a device QR code generation apparatus. The device QR code generation apparatus may include one or more functional modules for implementing the device QR code generation method of the above method embodiments.
[0089] For example, Figure 6 This is a schematic diagram illustrating the composition of a device QR code generation apparatus provided in an embodiment of this application. Figure 6 As shown, the QR code generation device includes an acquisition module 601 and a generation module 602.
[0090] The acquisition module 601 is used to acquire device data throughout its entire lifecycle.
[0091] The generation module 602 is used to obtain a first device QR code and at least one second device QR code based on device data; wherein the first device QR code is used to associate the network address of the static device information of the data center device, and the second device QR code is used to associate the network address of the dynamic device information of the data center device.
[0092] In some embodiments, the device data in the acquisition module 601 includes first device data and second device data, wherein the first device data is used to indicate static device configuration information of the equipment in the computer room. The second equipment data includes first dynamic data and second dynamic data, wherein the first dynamic data, second dynamic data, third dynamic data and fourth dynamic data; wherein, the first dynamic data is used to indicate equipment experience data, the second dynamic data is used to indicate real-time detection data, the third dynamic data is used to indicate operating status data, and the fourth dynamic data is used to indicate computer room environment data.
[0093] In other embodiments, the generation module 602 is specifically used to obtain a first device QR code and at least one second device QR code based on device data, including: if the amount of device data is greater than a preset capacity, generating a first query network address and at least one second query network address respectively; wherein, the first query network address is used to query the first device data and at least one second device QR code, and the second query network address is used to query the second device data; Generate a QR code for the first device based on the first queried network address; Generate at least one second device QR code based on at least one second query network address.
[0094] In some other embodiments, at least one second query network address includes a first sub-query network address, a second sub-query network address, a third sub-query network address, and a fourth sub-query network address; The first sub-query network address is used to query the first dynamic data, the second sub-query network address is used to query the second dynamic data, the third sub-query network address is used to query the third dynamic data, and the fourth sub-query network address is used to query the fourth dynamic data. The generation module 602 is specifically used to generate corresponding dynamic two-dimensional sub-codes according to each sub-query network address, and use each dynamic two-dimensional sub-code as the second device QR code. Among them, the dynamic two-dimensional sub-code includes a first dynamic two-dimensional sub-code, a second dynamic two-dimensional sub-code, a third dynamic two-dimensional sub-code, and a fourth dynamic two-dimensional sub-code; Among them, the first dynamic two-dimensional sub-code is used to associate the network address where the first dynamic data is located, the second dynamic two-dimensional sub-code is used to associate the network address where the second dynamic data is located, the third dynamic two-dimensional sub-code is used to associate the network address where the third dynamic data is located, and the fourth dynamic two-dimensional sub-code is used to associate the network address where the fourth dynamic data is located.
[0095] In some other embodiments, the generation module 602 is also used to generate a third query network address if the amount of device data is less than or equal to a preset capacity. The third query network address is used to query both static device information and dynamic device information of the data center equipment at the same time. A third device QR code is generated based on the third query network address. The third device QR code is used to simultaneously associate the network addresses where the static and dynamic device information of the equipment in the data center is located.
[0096] In some other embodiments, the static device information in the generation module 602 includes device configuration information; the dynamic device information includes device experience data, real-time detection data, operating status data, and data center environment data; wherein, the device experience data is used to indicate historical fault information and life prediction curves of the device.
[0097] Figure 7 This is a schematic diagram illustrating the composition of a device information management apparatus provided in an embodiment of this application. Figure 7 As shown, the device information management apparatus includes an identification module 701 and a processing module 702.
[0098] The identification module 701 is used to identify the first device QR code of the equipment in the computer room and obtain a first identification result. The first identification result includes the original equipment information and at least one second device QR code. The first device QR code and the second device QR code are obtained by the device QR code generation method described above.
[0099] The processing module 702 is used to obtain a second identification result based on at least one second device QR code, and the second identification result is used to indicate the dynamic device information of the equipment in the computer room.
[0100] In some embodiments, the processing module 702 is specifically configured to determine a target identification QR code in at least one second device QR code, wherein the target identification QR code is the second device QR code that the user wants to identify; When a user triggers a recognition command for a target QR code, the target QR code is recognized to obtain a second recognition result.
[0101] In other embodiments, the hash value of the target identification QR code is extracted; and the hash value of the target identification QR code is verified based on the hash value of the first device QR code. If the hash value of the target identification QR code is verified, a hash calculation is performed on the hash value of the target identification QR code to obtain the second identification result; If the hash value verification of the target identification QR code fails, a prompt message is generated suggesting that the first device's QR code be re-identified.
[0102] Figure 8This is a schematic diagram illustrating the composition of an electronic device provided in an embodiment of this application. For example... Figure 8 As shown, the electronic device includes: a processor 802, a communication interface 803, and a bus 804. Optionally, the electronic device may also include a memory 801.
[0103] Processor 802 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 802 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 802 may also be a combination that implements computational functions, such as including CPU0 and CPU1.
[0104] The communication interface 803 includes a receiving unit and a transmitting unit, and is used to connect with other devices via a communication network. This communication network can be Ethernet, a wireless access network, a wireless local area network (WLAN), etc.
[0105] The memory 801 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0106] As one possible implementation, the memory 801 can exist independently of the processor 802. The memory 801 can be connected to the processor 802 via a bus 804 and is used to store instructions or program code. When the processor 802 calls and executes the instructions or program code stored in the memory 801, it can implement the device QR code generation method and device information management method provided in this embodiment of the invention.
[0107] In another possible implementation, the memory 801 can also be integrated with the processor 802.
[0108] The 804 bus can be an extended industry standard architecture (EISA) bus, etc. The 804 bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 8 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0109] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the service calling device can be divided into different functional modules to complete all or part of the functions described above.
[0110] This application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be executed by computer instructions instructing related hardware. The program can be stored in the aforementioned computer-readable storage medium, and when executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be any of the foregoing embodiments or memory. The aforementioned computer-readable storage medium can also be an external storage device of the aforementioned service invocation device, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the aforementioned service invocation device. Further, the aforementioned computer-readable storage medium can include both internal storage units of the aforementioned service invocation device and external storage devices. The aforementioned computer-readable storage medium is used to store the aforementioned computer program and other programs and data required by the aforementioned service invocation device. The aforementioned computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
[0111] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to execute any of the device QR code generation methods and device information management methods provided in the above embodiments.
[0112] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A device two-dimensional code generation method, characterized by, The application is applied to a server, comprising: acquiring device data in a whole life cycle; obtaining a first device two-dimensional code and at least one second device two-dimensional code according to the device data, wherein the first device two-dimensional code is used for associating a network address where static device information of a machine room device is located, and the second device two-dimensional code is used for associating a network address where dynamic device information of the machine room device is located.
2. The method of claim 1, wherein, The device data comprises first device data and second device data, wherein the first device data is used for indicating static device configuration information of the machine room device. The second device data comprises first dynamic data and second dynamic data, wherein the first dynamic data is used for indicating device information updated at a low frequency, and the second dynamic data is used for indicating device information updated at a high frequency.
3. The method of claim 2, wherein, The obtaining of the first device two-dimensional code and the at least one second device two-dimensional code according to the device data comprises: if a data amount of the device data is greater than a preset capacity, generating a first query network address and at least one second query network address, respectively, wherein the first query network address is used for querying the first device data and the at least one second device two-dimensional code, and the second query network address is used for querying the second device data; generating the first device two-dimensional code according to the first query network address; generating the at least one second device two-dimensional code according to the at least one second query network address.
4. The method of claim 3, wherein, The at least one second query network address comprises a first sub-query network address and a second sub-query network address. The first sub-query network address is used for querying the first dynamic data, and the second sub-query network address is used for querying the second dynamic data. The generating of the at least one second device two-dimensional code according to the at least one second query network address comprises: generating corresponding dynamic two-dimensional sub-codes according to each sub-query network address, respectively, and taking each dynamic two-dimensional sub-code as the second device two-dimensional code; The dynamic two-dimensional sub-codes comprise a first dynamic two-dimensional sub-code and a second dynamic two-dimensional sub-code. The first dynamic two-dimensional sub-code is used for associating a network address where the first dynamic data is located, and the second dynamic two-dimensional sub-code is used for associating a network address where the second dynamic data is located.
5. The method of claim 3, wherein, The method further comprises: if the data amount of the device data is less than or equal to the preset capacity, generating a third query network address, wherein the third query network address is used for querying the static device information and the dynamic device information of the machine room device simultaneously; generating a third device two-dimensional code according to the third query network address, wherein the third device two-dimensional code is used for associating the network addresses where the static device information and the dynamic device information of the machine room device are located simultaneously.
6. The method of claim 1, wherein, The static device information comprises device configuration information, and the dynamic device information comprises device experience data, real-time detection data, running state data and machine room environment data. The device experience data is used for indicating device historical fault information and a life prediction curve.
7. An apparatus information management method characterized by comprising: The application is applied to a client, comprising: identifying a first device two-dimensional code of a machine room device to obtain a first identification result, the first identification result including at least one second device two-dimensional code; wherein the first device two-dimensional code and the second device two-dimensional code are obtained by the device two-dimensional code generation method of any one of claims 1 to 6; obtaining a second identification result based on the at least one second device two-dimensional code, the second identification result being used to indicate dynamic device information of the machine room device.
8. The method of claim 7, wherein, The obtaining of the second identification result based on the at least one second device two-dimensional code includes: determining a target identification two-dimensional code in the at least one second device two-dimensional code, the target identification two-dimensional code being the second device two-dimensional code that a user wants to identify; when receiving an identification instruction triggered by the user for the target identification two-dimensional code, identifying the target identification two-dimensional code to obtain the second identification result.
9. The method of claim 8, wherein, The obtaining of the second identification result based on the at least one second device two-dimensional code includes: extracting a hash value of the target identification two-dimensional code; verifying the hash value of the target identification two-dimensional code according to a hash value of the first device two-dimensional code; if the verification of the hash value of the target identification two-dimensional code is passed, performing hash calculation on the hash value of the target identification two-dimensional code to obtain the second identification result; if the verification of the hash value of the target identification two-dimensional code fails, generating a prompt message for suggesting to re-identify the first device two-dimensional code.
10. An apparatus two-dimensional code generating device, characterized by comprising: comprising: an acquisition module configured to acquire device data in a whole life cycle; a generation module configured to obtain a first device two-dimensional code and at least one second device two-dimensional code according to the device data; wherein the first device two-dimensional code is used to associate a network address of static device information of a machine room device, and the second device two-dimensional code is used to associate a network address of dynamic device information of the machine room device.
11. An apparatus information management device characterized by comprising: comprising: an identification module configured to identify a first device two-dimensional code of a machine room device to obtain a first identification result, the first identification result including original device information and at least one second device two-dimensional code; wherein the first device two-dimensional code and the second device two-dimensional code are obtained by the device two-dimensional code generation method of any one of claims 1 to 4; a processing module configured to obtain a second identification result based on the at least one second device two-dimensional code, the second identification result being used to indicate dynamic device information of the machine room device.
12. An electronic device, comprising: comprising a processor and a memory, the processor being coupled to the memory; the memory being used to store computer instructions, the computer instructions being loaded and executed by the processor to enable a computer device to implement the device two-dimensional code generation method of any one of claims 1 to 6, or the device information management method of any one of claims 7 to 9.