CN114064549A - Method and device for converting device description information, computer device and medium - Google Patents

Method and device for converting device description information, computer device and medium Download PDF

Info

Publication number
CN114064549A
CN114064549A CN202111396818.6A CN202111396818A CN114064549A CN 114064549 A CN114064549 A CN 114064549A CN 202111396818 A CN202111396818 A CN 202111396818A CN 114064549 A CN114064549 A CN 114064549A
Authority
CN
China
Prior art keywords
description information
device description
target
equipment
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111396818.6A
Other languages
Chinese (zh)
Inventor
邢乐
龙见明
孙陆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wingtech Electronic Technology Co Ltd
Original Assignee
Shanghai Wingtech Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Wingtech Electronic Technology Co Ltd filed Critical Shanghai Wingtech Electronic Technology Co Ltd
Priority to CN202111396818.6A priority Critical patent/CN114064549A/en
Publication of CN114064549A publication Critical patent/CN114064549A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0026PCI express

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure relates to a method, apparatus, computer device and medium for converting device description information; wherein, the method comprises the following steps: acquiring first equipment description information input by a user, wherein the first equipment description information is in a digital coding form; inquiring a pre-established device description information corresponding table according to the first device description information to obtain second device description information, wherein the second device description information is in a target form, and the target form is different from a digital coding form; and displaying the first device description information and the second device description information to a user. The embodiment of the disclosure can convert the device description information, improve the readability of the device description information and facilitate the inspection and maintenance of the device.

Description

Method and device for converting device description information, computer device and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for converting device description information, a computer device, and a medium.
Background
With the development of big data technology, the data scale is continuously enlarged, and the demands on the storage performance and the computing performance of the server in the intensive computing environment are increasingly increased. Peripheral Component Interconnect Express (Peripheral Component Interconnect Express, PCIE for short) is a high-speed serial computer expansion bus standard, and for a server and a storage system, a PCIE bus and PCIE devices are important components therein. The PCIE devices include various devices produced by different manufacturers, and in order to facilitate distinguishing and calling, device description information corresponding to each PCIE device needs to be acquired.
In the prior art, Device description information of each PCIE Device is read by accessing a configuration space of the PCIE Device, where the Device description information mainly includes Vendor Identification (VID) and Device Identification (DID), and the VID and the DID are usually 16-bit binary numbers, and after the VID and the DID are converted into hexadecimal, the general VID and the general DID are obtained, and after all the devices are traversed, the VID and the DID of each PCIE Device are stored in a database, and a user can check which PCIE devices are on a server and facilitate checking and maintaining of the PCIE devices by the server.
However, the current device description information is displayed in hexadecimal coding, although different PCIE devices can be distinguished by this coding method, it is difficult to identify the vendor name and device name corresponding to the PCIE device from the coding, and a developer needs to manually query the vendor name corresponding to the VID and the device name corresponding to the DID.
Disclosure of Invention
In order to solve the technical problem described above or at least partially solve the technical problem, the present disclosure provides a method, an apparatus, a computer device, and a medium for converting device description information.
The embodiment of the disclosure provides a method for converting device description information, which comprises the following steps:
acquiring first device description information input by a user, wherein the first device description information is in a digital coding form;
inquiring a pre-established device description information corresponding table according to the first device description information to obtain second device description information, wherein the second device description information is in a target form, and the target form is different from the digital coding form;
and displaying the first device description information and the second device description information to the user.
In an embodiment, the querying, according to the first device description information, a pre-established device description information correspondence table to obtain the second device description information includes:
determining a target digital code in the device description information corresponding table, which is the same as the first device description information, according to a preset search algorithm;
acquiring target description information corresponding to the target digital code, wherein the form of the target description information is the same as that of the second device description information;
and taking the target description information as the second device description information.
In one embodiment, the device description information correspondence table is established by:
acquiring a data file corresponding to the equipment description information;
preprocessing information in the data file to obtain processed data, wherein the preprocessing comprises at least one of duplicate checking, removing, correcting and format adjusting;
and arranging the digital codes of the equipment descriptions and the corresponding equipment description information in the target form according to a preset rule according to the processed data to obtain the equipment description information corresponding table.
In one embodiment, the method further comprises:
periodically updating the device description information corresponding table;
alternatively, the first and second electrodes may be,
and when the target digital code which is the same as the first equipment description information is not inquired in the equipment description information corresponding table, updating the equipment description information corresponding table.
In one embodiment, the method further comprises:
detecting whether the data file is updated or not;
and if so, updating the equipment description information corresponding table.
In one embodiment, the presenting the first device description information and the second device description information to the user includes:
sending the first device description information and the second device description information to a terminal device used by the user;
and displaying the first equipment description information and the second equipment description information through the terminal equipment.
In one embodiment, the method further comprises:
packaging the first device description information and the second device description information into a target file with a preset format;
and storing the target file into a corresponding database.
The embodiment of the present disclosure provides a device for converting device description information, where the device includes:
the device comprises a first information acquisition module, a second information acquisition module and a display module, wherein the first information acquisition module is used for acquiring first device description information input by a user, and the first device description information is in a digital coding form;
a second information determining module, configured to query a pre-established device description information mapping table according to the first device description information to obtain second device description information, where the second device description information is in a target form, and the target form is different from the digital coding form;
and the information display module is used for displaying the first equipment description information and the second equipment description information to the user.
In an embodiment, the second information determining module is specifically configured to:
determining a target digital code in the device description information corresponding table, which is the same as the first device description information, according to a preset search algorithm;
acquiring target description information corresponding to the target digital code, wherein the form of the target description information is the same as that of the second device description information;
and taking the target description information as the second device description information.
In one embodiment, the device description information correspondence table is established by:
acquiring a data file corresponding to the equipment description information;
preprocessing information in the data file to obtain processed data, wherein the preprocessing comprises at least one of duplicate checking, removing, correcting and format adjusting;
and arranging the digital codes of the equipment descriptions and the corresponding equipment description information in the target form according to a preset rule according to the processed data to obtain the equipment description information corresponding table.
In one embodiment, the apparatus further comprises: a first update module to:
periodically updating the device description information corresponding table;
alternatively, the first and second electrodes may be,
and when the target digital code which is the same as the first equipment description information is not inquired in the equipment description information corresponding table, updating the equipment description information corresponding table.
In one embodiment, the apparatus further comprises:
the detection module is used for detecting whether the data file is updated or not;
and the second updating module is used for updating the equipment description information corresponding table if the equipment description information corresponding table is the same as the equipment description information corresponding table.
In one embodiment, the information presentation module is specifically configured to:
sending the first device description information and the second device description information to a terminal device used by the user;
and displaying the first equipment description information and the second equipment description information through the terminal equipment.
In one embodiment, the apparatus further comprises:
the packaging module is used for packaging the first equipment description information and the second equipment description information into a target file with a preset format;
and the storage module is used for storing the target file into a corresponding database.
The embodiment of the present disclosure provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the method for converting device description information provided in any embodiment of the present disclosure when executing the computer program.
The embodiments of the present disclosure provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method for converting device description information provided in any of the embodiments of the present disclosure.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages: the method comprises the steps of firstly obtaining first device description information input by a user, wherein the first device description information is in a digital coding form, then inquiring a pre-established device description information corresponding table according to the first device description information to obtain second device description information, wherein the second device description information is in a target form, the target form is different from the digital coding form, and finally displaying the first device description information and the second device description information to the user.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a method for converting device description information according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another method for converting device description information according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a method for converting device description information according to another embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a device description information conversion apparatus provided in an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
In an embodiment, as shown in fig. 1, a method for converting device description information is provided, which is mainly illustrated by an application server of the method, and it is understood that the method may also be applied to a terminal, may also be applied to a system including a terminal and a server, and is implemented by interaction between the terminal and the server. In this embodiment, the method includes the steps of:
s110, acquiring first device description information input by a user, wherein the first device description information is in a digital coding form.
The first Device description information may be understood as digital encoding information related to the Device, such as Vendor Identification (VID), Device Identification (DID), and other digital encoding information. VID may be understood as an identification code of a technology manufacturer corresponding to the device, and may be uniformly organized and named by a Peripheral Component Interconnect professional Group (PCI-SGI for short), and generally will not be renamed. The DID may be understood as code that identifies the device itself, and may be named by a technical vendor according to the Peripheral Component Interconnect Express (PCIE) specification. Devices of different manufacturers can be renamed, and devices of the same manufacturer cannot be renamed. The device in the first device description information may be a PCIE device, and may also be another type of device, which is not limited in this embodiment.
In the prior art, device description information of PCIE devices is usually represented by VID and DID, but this representation method is poor in readability and difficult to understand, a user can only see digital codes, needs to search for relevant data to determine vendor names corresponding to VID and device names corresponding to DID, and is low in efficiency and easy to make mistakes during searching, which is not beneficial to maintenance and expansion of subsequent devices. In this embodiment, the first device description information input by the user is acquired, so that the subsequent conversion is performed according to the first device description information.
And S120, inquiring a pre-established device description information corresponding table according to the first device description information to obtain second device description information, wherein the second device description information is in a target form, and the target form is different from the digital coding form.
The second device description information may be understood as information related to a device having a different form but substantially the same form as the first device description information. For example, if a piece of first device description information is VID: 8086, the second device description information may be the textual description represented by 8086, that is: intel (R). The target form can be in the form of characters, pictures or videos.
After the first device description information is acquired, a pre-established device description information corresponding table is inquired according to the first device description information, and second device description information different from the first device description information in form can be acquired. The second device description information is more intuitive and easier to understand than the first device description information.
And S130, displaying the first device description information and the second device description information to a user.
After the first device description information and the second device description information are obtained, the first device description information and the second device description information are displayed to a user together, the use experience of the user can be improved, the user can determine the devices corresponding to the first device description information and the second device description information more intuitively, and follow-up inspection and maintenance of the devices are facilitated.
For example, assuming that the first device description information is VID and DID, the second device description information may be vendor name corresponding to VID and device name corresponding to DID, and when presenting the first device description information and the second device description information, the following format may be used for presentation: VID-DID, vendor name, and device name.
For example, assuming that the first device description information is a VID, the second device description information may be a vendor name corresponding to the VID, and device names corresponding to respective DIDs and DIDs belonging to the VID, and when the first device description information and the second device description information are presented, the following formats may be further used for presentation: VID-DID, vendor name, and device name.
The method for converting device description information provided by this embodiment includes first obtaining first device description information input by a user, where the first device description information is in a digital coding form, then querying a pre-established device description information correspondence table according to the first device description information to obtain second device description information, where the second device description information is in a target form, and the target form is different from the digital coding form, and finally displaying the first device description information and the second device description information to the user.
In this embodiment, optionally, the device description information correspondence table may be established in the following manner:
acquiring a data file corresponding to the equipment description information;
preprocessing information in the data file to obtain processed data, wherein the preprocessing comprises at least one of duplicate checking, removing, correcting and format adjusting;
and arranging the digital codes of the equipment descriptions and the corresponding equipment description information in the target form according to a preset rule according to the processed data to obtain an equipment description information corresponding table.
A data file is understood to be a file in which information of different forms of the device is recorded. The preset rule may be a preset rule, and may also be determined according to specific situations, and the embodiment is not particularly limited.
Specifically, a data file corresponding to the device description information can be acquired through a network or other published materials, for example, the data file may be downloaded from an official website, and after the data file is acquired, the data file may contain unnecessary information, so that the information in the data file needs to be preprocessed, for example, by duplication checking, removing, correcting, and format adjusting, and the preprocessed data is acquired after the preprocessing. According to the keyword extraction method or other capture methods, the digital codes described by each device and the corresponding device description information in the target form can be extracted from the processed data, and then the digital codes described by each device and the corresponding device description information in the target form are arranged according to a preset rule, for example, the digital codes can be arranged in an ascending order or a descending order according to the size of the digital codes, and after the arrangement, a device description information corresponding table is obtained.
In this embodiment, the device description information correspondence table is established by the above method, and the device description information included in the device description information correspondence table is comprehensive, not easy to miss, and convenient for subsequent query.
In this embodiment, optionally, the method may further include:
detecting whether the data file is updated or not;
and if so, updating the device description information corresponding table.
Specifically, since the device description information correspondence table is related to the data file, after the device description information correspondence table is established, it is necessary to detect whether the data file is updated, and if the data file is updated, the device description information correspondence table needs to be updated synchronously; on the contrary, if the data file is not updated, the device description information corresponding table does not need to be updated.
In this embodiment, the method makes the device description information mapping table more accurate and more consistent with the actual situation, which is beneficial to subsequently obtaining the second device description information.
Fig. 2 is a flowchart illustrating another method for converting device description information according to an embodiment of the present disclosure. The embodiment is further expanded and optimized on the basis of the embodiment. Wherein, one possible implementation manner of S120 is as follows:
and S1201, determining the target digital code which is the same as the first device description information in the device description information corresponding table according to a preset search algorithm.
The preset search algorithm may be a preset search algorithm, such as a sequential search algorithm, a binary search algorithm, or a difference search algorithm, and the like, and may also be determined according to specific situations, which is not limited in this embodiment.
And aiming at the first equipment description information, inquiring in a pre-established equipment description information corresponding table according to a preset search algorithm, and determining the target digital code which is the same as the first equipment description information in the equipment description information corresponding table.
And S1202, acquiring target description information corresponding to the target digital code, wherein the form of the target description information is the same as that of the second device description information.
Wherein the object description information may be understood as device-related information that is different from, but substantially the same as, the object digitally encoded form.
After the target digital code is determined, the target description information corresponding to the target digital code can be inquired from the device description information corresponding table, so that the target description information corresponding to the target digital code is obtained.
S1203, the target description information is taken as second device description information.
Because the target description information corresponds to the target digital code and the form of the target description information is the same as that of the second device description information, the target description information can be used as the second device description information, and the subsequent display of the first device description information and the second device description information is facilitated.
In this embodiment, optionally, the method may further include:
periodically updating the device description information corresponding table;
alternatively, the first and second electrodes may be,
and updating the device description information corresponding table when the target digital code which is the same as the first device description information is not inquired in the device description information corresponding table.
The period may be preset, for example, every week, and may also be determined according to specific situations, and the embodiment is not particularly limited.
In this embodiment, after the device description information correspondence table is established, the device description information correspondence table may be periodically updated, or when the target digital code that is the same as the first device description information is not queried in the device description information correspondence table, the device description information correspondence table may be updated, which ensures that the pre-established device description information correspondence table may be queried according to the first device description information to obtain the second device description information, thereby facilitating subsequent information display.
Fig. 3 is a flowchart illustrating a method for converting device description information according to another embodiment of the present disclosure. The embodiment is further expanded and optimized on the basis of the embodiment. Wherein, one possible implementation manner of S130 is as follows:
and S1301, sending the first device description information and the second device description information to the terminal device used by the user.
After the first device description information and the second device description information are obtained, the first device description information and the second device description information need to be displayed, so that the user can conveniently check the first device description information and the second device description information, and the first device description information and the second device description information can be conveniently displayed through the terminal device subsequently by sending the first device description information and the second device description information to the terminal device used by the user, such as a mobile phone or a computer.
S1302, the first device description information and the second device description information are displayed through the terminal device.
After receiving the first device description information and the second device description information, the terminal device can display the first device description information and the second device description information, specifically can display through a webpage of a browser, can display in a short message mode or other modes, and is beneficial to improving the use experience of a user.
In this embodiment, optionally, the method may further include:
packaging the first device description information and the second device description information into a target file with a preset format;
and storing the target file into a corresponding database.
The preset format may be a preset format, such as json, or may be determined according to a specific situation, and the embodiment is not particularly limited.
Specifically, after the first device description information and the second device description information are acquired, the first device description information and the second device description information can be packaged into a target file with a preset format by a corresponding packaging method, and the target file is stored in a corresponding database, so that the target file can be called later.
In the embodiment, the target file can be conveniently called through the method.
Fig. 4 is a schematic structural diagram of a device description information conversion apparatus provided in an embodiment of the present disclosure; the device is configured in computer equipment, and can realize the conversion method of the equipment description information in any embodiment of the application. The device specifically comprises the following steps:
a first information obtaining module 410, configured to obtain first device description information input by a user, where the first device description information is in a digital coding form;
a second information determining module 420, configured to query a pre-established device description information mapping table according to the first device description information to obtain second device description information, where the second device description information is in a target form, and the target form is different from the digital coding form;
and an information presentation module 430, configured to present the first device description information and the second device description information to a user.
In this embodiment, optionally, the second information determining module 420 is specifically configured to:
determining a target digital code which is the same as the first equipment description information in an equipment description information corresponding table according to a preset search algorithm;
acquiring target description information corresponding to the target digital code, wherein the form of the target description information is the same as that of the second equipment description information;
the target description information is taken as second device description information.
In this embodiment, the device description information correspondence table is established in the following manner:
acquiring a data file corresponding to the equipment description information;
preprocessing information in the data file to obtain processed data, wherein the preprocessing comprises at least one of duplicate checking, removing, correcting and format adjusting;
and arranging the digital codes of the equipment descriptions and the corresponding equipment description information in the target form according to a preset rule according to the processed data to obtain an equipment description information corresponding table.
In this embodiment, the apparatus further comprises: a first update module to:
periodically updating the device description information corresponding table;
alternatively, the first and second electrodes may be,
and updating the device description information corresponding table when the target digital code which is the same as the first device description information is not inquired in the device description information corresponding table.
In this embodiment, the apparatus further comprises:
the detection module is used for detecting whether the data file is updated or not;
and the second updating module is used for updating the equipment description information corresponding table if the equipment description information corresponding table is the same as the equipment description information corresponding table.
In this embodiment, the information display module 430 is specifically configured to:
sending the first device description information and the second device description information to a terminal device used by a user;
and displaying the first device description information and the second device description information through the terminal device.
In this embodiment, the apparatus further comprises:
the packaging module is used for packaging the first equipment description information and the second equipment description information into a target file with a preset format;
and the storage module is used for storing the target file into the corresponding database.
According to the device description information conversion device provided by the embodiment of the disclosure, first device description information input by a user is firstly acquired, wherein the first device description information is in a digital coding form, then a pre-established device description information corresponding table is inquired according to the first device description information to obtain second device description information, wherein the second device description information is in a target form, the target form is different from the digital coding form, and finally the first device description information and the second device description information are displayed to the user, so that the device description information can be converted, the readability of the device description information is improved, and the device inspection and maintenance are facilitated.
For the specific definition of the device description information conversion apparatus, reference may be made to the above definition of the device description information conversion method, which is not described herein again. The modules in the device description information conversion apparatus may be wholly or partially implemented by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of converting device description information.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the device description information conversion apparatus provided in the present application may be implemented in a form of a computer program, and the computer program may be run on a computer device as shown in fig. 5. The memory of the computer device may store therein respective program modules constituting the computer device, and the computer program constituted by the respective program modules causes the processor to execute the steps in the method for converting device description information of the embodiments of the present application described in the present specification.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: acquiring first equipment description information input by a user, wherein the first equipment description information is in a digital coding form; inquiring a pre-established device description information corresponding table according to the first device description information to obtain second device description information, wherein the second device description information is in a target form, and the target form is different from a digital coding form; and displaying the first device description information and the second device description information to a user.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring first equipment description information input by a user, wherein the first equipment description information is in a digital coding form; determining a target digital code which is the same as the first equipment description information in an equipment description information corresponding table according to a preset search algorithm; acquiring target description information corresponding to the target digital code, wherein the form of the target description information is the same as that of the second equipment description information; the target description information is used as second equipment description information; and displaying the first device description information and the second device description information to a user.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring first equipment description information input by a user, wherein the first equipment description information is in a digital coding form; inquiring a pre-established device description information corresponding table according to the first device description information to obtain second device description information, wherein the second device description information is in a target form, and the target form is different from a digital coding form; sending the first device description information and the second device description information to a terminal device used by a user; and displaying the first device description information and the second device description information through the terminal device.
According to the method and the device for displaying the device description information, the first device description information input by a user is obtained, the first device description information is in a digital coding form, a pre-established device description information corresponding table is inquired according to the first device description information to obtain the second device description information, the second device description information is in a target form, the target form is different from the digital coding form, the first device description information and the second device description information are displayed to the user, the device description information can be converted, the readability of the device description information is improved, and the device is beneficial to checking and maintaining.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring first equipment description information input by a user, wherein the first equipment description information is in a digital coding form; inquiring a pre-established device description information corresponding table according to the first device description information to obtain second device description information, wherein the second device description information is in a target form, and the target form is different from a digital coding form; and displaying the first device description information and the second device description information to a user.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring first equipment description information input by a user, wherein the first equipment description information is in a digital coding form; determining a target digital code which is the same as the first equipment description information in an equipment description information corresponding table according to a preset search algorithm; acquiring target description information corresponding to the target digital code, wherein the form of the target description information is the same as that of the second equipment description information; the target description information is used as second equipment description information; and displaying the first device description information and the second device description information to a user.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring first equipment description information input by a user, wherein the first equipment description information is in a digital coding form; inquiring a pre-established device description information corresponding table according to the first device description information to obtain second device description information, wherein the second device description information is in a target form, and the target form is different from a digital coding form; sending the first device description information and the second device description information to a terminal device used by a user; and displaying the first device description information and the second device description information through the terminal device.
According to the method and the device for displaying the device description information, the first device description information input by a user is obtained, the first device description information is in a digital coding form, a pre-established device description information corresponding table is inquired according to the first device description information to obtain the second device description information, the second device description information is in a target form, the target form is different from the digital coding form, the first device description information and the second device description information are displayed to the user, the device description information can be converted, the readability of the device description information is improved, and the device is beneficial to checking and maintaining.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM is available in many forms, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), and the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for converting device description information, the method comprising:
acquiring first device description information input by a user, wherein the first device description information is in a digital coding form;
inquiring a pre-established device description information corresponding table according to the first device description information to obtain second device description information, wherein the second device description information is in a target form, and the target form is different from the digital coding form;
and displaying the first device description information and the second device description information to the user.
2. The method according to claim 1, wherein the querying a pre-established device description information mapping table according to the first device description information to obtain the second device description information includes:
determining a target digital code in the device description information corresponding table, which is the same as the first device description information, according to a preset search algorithm;
acquiring target description information corresponding to the target digital code, wherein the form of the target description information is the same as that of the second device description information;
and taking the target description information as the second device description information.
3. The method according to claim 1, wherein the device description information correspondence table is established by:
acquiring a data file corresponding to the equipment description information;
preprocessing information in the data file to obtain processed data, wherein the preprocessing comprises at least one of duplicate checking, removing, correcting and format adjusting;
and arranging the digital codes of the equipment descriptions and the corresponding equipment description information in the target form according to a preset rule according to the processed data to obtain the equipment description information corresponding table.
4. The method of claim 2, further comprising:
periodically updating the device description information corresponding table;
alternatively, the first and second electrodes may be,
and when the target digital code which is the same as the first equipment description information is not inquired in the equipment description information corresponding table, updating the equipment description information corresponding table.
5. The method of claim 3, further comprising:
detecting whether the data file is updated or not;
and if so, updating the equipment description information corresponding table.
6. The method of claim 1, wherein the presenting the first device description information and the second device description information to the user comprises:
sending the first device description information and the second device description information to a terminal device used by the user;
and displaying the first equipment description information and the second equipment description information through the terminal equipment.
7. The method of any one of claims 1-6, further comprising:
packaging the first device description information and the second device description information into a target file with a preset format;
and storing the target file into a corresponding database.
8. An apparatus for converting device description information, the apparatus comprising:
the device comprises a first information acquisition module, a second information acquisition module and a display module, wherein the first information acquisition module is used for acquiring first device description information input by a user, and the first device description information is in a digital coding form;
a second information determining module, configured to query a pre-established device description information mapping table according to the first device description information to obtain second device description information, where the second device description information is in a target form, and the target form is different from the digital coding form;
and the information display module is used for displaying the first equipment description information and the second equipment description information to the user.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method for converting device description information according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method for converting device description information according to any one of claims 1 to 7.
CN202111396818.6A 2021-11-23 2021-11-23 Method and device for converting device description information, computer device and medium Pending CN114064549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111396818.6A CN114064549A (en) 2021-11-23 2021-11-23 Method and device for converting device description information, computer device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111396818.6A CN114064549A (en) 2021-11-23 2021-11-23 Method and device for converting device description information, computer device and medium

Publications (1)

Publication Number Publication Date
CN114064549A true CN114064549A (en) 2022-02-18

Family

ID=80275619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111396818.6A Pending CN114064549A (en) 2021-11-23 2021-11-23 Method and device for converting device description information, computer device and medium

Country Status (1)

Country Link
CN (1) CN114064549A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005092392A (en) * 2003-09-16 2005-04-07 Matsushita Electric Ind Co Ltd Recovery method for personal computer and usb descriptor rewrite program
US7114020B1 (en) * 2000-04-28 2006-09-26 Hewlett-Packard Development Company, L.P. Software mechanism for unique identification of SCSI device
CN103049404A (en) * 2013-01-16 2013-04-17 珠海市君天电子科技有限公司 Method and system for obtaining android cell phone model
CN112188277A (en) * 2019-07-01 2021-01-05 腾讯科技(深圳)有限公司 Screen projection control method and device, electronic equipment and computer program medium
CN113626276A (en) * 2021-06-29 2021-11-09 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for identifying HBA card model of server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7114020B1 (en) * 2000-04-28 2006-09-26 Hewlett-Packard Development Company, L.P. Software mechanism for unique identification of SCSI device
JP2005092392A (en) * 2003-09-16 2005-04-07 Matsushita Electric Ind Co Ltd Recovery method for personal computer and usb descriptor rewrite program
CN103049404A (en) * 2013-01-16 2013-04-17 珠海市君天电子科技有限公司 Method and system for obtaining android cell phone model
CN112188277A (en) * 2019-07-01 2021-01-05 腾讯科技(深圳)有限公司 Screen projection control method and device, electronic equipment and computer program medium
CN113626276A (en) * 2021-06-29 2021-11-09 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for identifying HBA card model of server

Similar Documents

Publication Publication Date Title
CN108388598B (en) Electronic device, data storage method, and storage medium
CN109951354B (en) Terminal equipment identification method, system and storage medium
CN109901881B (en) Plug-in loading method and device of application program, computer equipment and storage medium
CN113127125B (en) Page automatic adaptation method, device, equipment and storage medium
CN109905292B (en) Terminal equipment identification method, system and storage medium
CN109672608B (en) Method for transmitting messages according to time
CN113656107A (en) Mobile application loading method and device and electronic equipment
CN112486946A (en) Version confirmation method, version confirmation system, electronic equipment and storage medium
CN114996103A (en) Page abnormity detection method and device, electronic equipment and storage medium
CN111309743A (en) Report pushing method and device
CN113064556A (en) BIOS data storage method, device, equipment and storage medium
CN112328602A (en) Method, device and equipment for writing data into Kafka
CN114064549A (en) Method and device for converting device description information, computer device and medium
US10635747B2 (en) Input device, form inputting method, non-transitory recording medium and program
CN106302821B (en) Data request method and equipment thereof
CN112817782B (en) Data acquisition reporting method and device, electronic equipment and storage medium
CN115373882A (en) Storage system fault recovery method, system, computer equipment and storage medium
CN109522014B (en) Algorithm processing method based on new product development, electronic device and readable storage medium
CN113918384A (en) Data saving method, device, equipment and storage medium
CN111950679A (en) Electronic tag display method and device and computer readable storage medium
CN111538651A (en) Interface testing method, device, server and storage medium
CN113254338A (en) Test case generation method, device and equipment
CN110147531B (en) Method, device and storage medium for identifying similar text content
CN106648925B (en) Mobile terminal and method for acquiring character string information thereof
CN116797707B (en) Interface graphic rendering method and system based on operating system adaptation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination