CN111045989A - Method, device and medium for querying CPLD version information - Google Patents
Method, device and medium for querying CPLD version information Download PDFInfo
- Publication number
- CN111045989A CN111045989A CN201911022208.2A CN201911022208A CN111045989A CN 111045989 A CN111045989 A CN 111045989A CN 201911022208 A CN201911022208 A CN 201911022208A CN 111045989 A CN111045989 A CN 111045989A
- Authority
- CN
- China
- Prior art keywords
- cpld
- version information
- data
- original data
- query function
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000012545 processing Methods 0.000 claims abstract description 22
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 claims abstract description 16
- 230000004044 response Effects 0.000 claims abstract description 16
- 238000013507 mapping Methods 0.000 claims abstract description 10
- 230000006870 function Effects 0.000 claims description 57
- 238000004590 computer program Methods 0.000 claims description 9
- 230000008569 process Effects 0.000 description 5
- 101150116173 ver-1 gene Proteins 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 101100102503 Caenorhabditis elegans ver-3 gene Proteins 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/148—File search processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/156—Query results presentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1873—Versioning file systems, temporal file systems, e.g. file system supporting different historic versions of files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method for inquiring CPLD version information, which comprises the following steps based on BMC: registering a CPLD query function based on an IPMI protocol; in response to receiving a request for inquiring the version information of the CPLD, calling a CPLD inquiry function according to the request; determining the file position for storing CPLD data based on the mapping relation between the CPLD parameters and the CPLD files in the CPLD query function; acquiring original data of the CPLD version information from a file corresponding to the file position; and processing the original data to obtain CPLD version information. The invention also discloses a computer device and a readable storage medium. The method, the equipment and the medium for inquiring the CPLD version information realize the CPLD version information inquiry through the ipmi protocol and the eeprom, provide a display interface for a web interface, simultaneously provide a command line inquiry mode for a user, and are convenient for other users to use.
Description
Technical Field
The present invention relates to the field of CPLDs, and more particularly, to a method, an apparatus and a readable medium for querying version information of a CPLD.
Background
With the continuous development of the internet, computers and server equipment are widely used, a large number of server equipment are supported behind the computers and the server equipment in the online shopping and banking business processing of people, and the quality of life of people is greatly improved through the business processing of the server equipment. Stability and reliability of the server device are therefore very important. Hardware resources of the server may be monitored by a BMC (Baseboard management Controller), and whether a problem occurs in the user system may be prompted by monitoring various hardware information. Meanwhile, version information of various software is very important, and CPLDs (Complex Programmable Logic devices) mainly control power-on timing sequences, and functions of each version are different, for example, a fan control Logic function is added in one version, a CPU can be powered on only when a fan meets a specific number, and for example, a delay control function and a register reset zero clearing function are added in one version, which functions of each CPLD version are determined according to the version information, but the BMC does not have a function of providing version information of CPLD software.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and a medium for querying CPLD version information, which implement CPLD version information query through an ipmi protocol and an eprom, provide a display interface for a web interface, and also provide a command line query mode for a user, so as to facilitate use by other users.
Based on the above object, an aspect of the embodiments of the present invention provides a method for querying version information of a CPLD, including performing the following steps based on a BMC: registering a CPLD query function based on an IPMI protocol; in response to receiving a request for inquiring CPLD version information, calling a CPLD inquiry function according to the request; determining the file position for storing CPLD data based on the mapping relation between the CPLD parameters and the CPLD files in the CPLD query function; acquiring original data of the CPLD version information from the file corresponding to the file position; and processing the original data to obtain CPLD version information.
In some embodiments, the registering CPLD query function based on IPMI protocol includes: and registering a request message structural body and a response message structural body in the CPLD query function.
In some embodiments, the obtaining the original data of the CPLD version information from the file corresponding to the file location includes: and reading original data of the CPLD version information based on the offset address and the data length size in the message structure body.
In some embodiments, the processing the raw data to obtain CPLD version information includes: and operating and shifting three subdata in the original data and different reference values to respectively obtain main version information, sub-version information and stage version numbers.
In some embodiments, the processing the raw data to obtain CPLD version information further includes: and respectively adopting identifiers to separate the main version information, the sub-version information and the stage version number so as to obtain the CPLD version information.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: registering a CPLD query function based on an IPMI protocol; in response to receiving a request for inquiring CPLD version information, calling a CPLD inquiry function according to the request; determining the file position for storing CPLD data based on the mapping relation between the CPLD parameters and the CPLD files in the CPLD query function; acquiring original data of the CPLD version information from the file corresponding to the file position; and processing the original data to obtain CPLD version information.
In some embodiments, the registering CPLD query function based on IPMI protocol includes: and registering a request message structural body and a response message structural body in the CPLD query function.
In some embodiments, the obtaining the original data of the CPLD version information from the file corresponding to the file location includes: and reading original data of the CPLD version information based on the offset address and the data length size in the message structure body.
In some embodiments, the processing the raw data to obtain CPLD version information includes: and operating and shifting three subdata in the original data and different reference values to respectively obtain main version information, sub-version information and stage version numbers.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: the CPLD version information query is realized through the ipmi protocol and the eprom, a display interface is provided for a web interface, a command line query mode is provided for a user, and the CPLD version information query method is convenient for other users to use.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic diagram of an embodiment of a method for querying version information of a CPLD according to the present invention;
fig. 2 is a flowchart of an embodiment of a method for querying CPLD version information provided in the present invention;
fig. 3 is a schematic hardware structure diagram of an embodiment of the method for querying CPLD version information provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above, a first aspect of the embodiments of the present invention provides an embodiment of a method for querying version information of a CPLD. Fig. 1 is a schematic diagram illustrating an embodiment of a method for querying version information of a CPLD according to the present invention. As shown in fig. 1, the embodiment of the present invention includes performing the following steps based on BMC:
s1, registering a CPLD query function based on the IPMI protocol;
s2, responding to the received request for inquiring the CPLD version information, and calling a CPLD inquiry function according to the request;
s3, determining the file position for storing CPLD data based on the mapping relation between the CPLD parameters and the CPLD files in the CPLD query function;
s4, acquiring original data of the CPLD version information from the file corresponding to the file position; and
and S5, processing the original data to obtain CPLD version information.
And registering the CPLD query function based on the IPMI protocol. Based on the IPMI protocol, registering a function body capable of querying version information of the CPLD, the function type may be specified as netfun 0x3c and the subcommand type as cmdggetcpdversoninfo 0x51, and the function for querying version information of the CPLD may be named ipmirecpldeeprom. In some embodiments, the registering CPLD query function based on IPMI protocol includes: and registering a request message structural body and a response message structural body in the CPLD query function. The parameters of the function are a request message structure and a response message structure. The request message structure includes an offset address offset and a data length. The response message structure includes version information version.
And in response to receiving a request for inquiring the version information of the CPLD, calling a CPLD inquiry function according to the request. The system is used for inquiring the CPLD version information in a mode of inputting a command line, and when the system detects a relevant command for inquiring the CPLD version information, a registered CPLD inquiry function can be called.
And determining the file position for storing the CPLD data based on the mapping relation between the CPLD parameters and the CPLD files in the CPLD query function. A mapping relation exists between the CPLD parameters and the files for storing the specific CPLD data, and the file positions for storing the CPLD data can be determined through the CPLD parameters. For example, in the present embodiment, the file location for storing CPLD data may be/sys/class/hwmon/hwmon 0/device/version.
And acquiring original data of the CPLD version information from the file corresponding to the file position. After determining the file location where the CPLD data is stored, the original data of the CPLD version information may be obtained from the file corresponding to the file location. In some embodiments, the obtaining the original data of the CPLD version information from the file corresponding to the file location includes: and reading original data of the CPLD version information based on the offset address and the data length size in the message structure body.
And processing the original data to obtain CPLD version information. In some embodiments, the processing the raw data to obtain CPLD version information includes: and operating and shifting three subdata in the original data and different reference values to respectively obtain main version information, sub-version information and stage version numbers. The version information of the CPLD in the embodiment of the present invention is composed of three parts, namely main version information, sub-version information and stage version number, wherein ver1 may be used to represent the main version information, ver2 represents the sub-version information, and ver3 represents the stage version number, and in this embodiment, ver1, ver2 and ver3 are all 8-bit binary numbers. The ver1 performs an and operation with the first reference value, and then performs a shift operation to obtain the data of the main version information, in this embodiment, the first reference value may be 0xE0, and the first reference value and the ver1 perform an and operation and then shift 5 bits to the right to obtain the data of the main version information, for example, the ver1 is 01100000, and performs an and operation with 11100000(0xE0) to obtain 01100000, and then shifts 5 bits to the right to obtain 011, that is, the main version information is 3. Similarly, ver2 is the data for obtaining sub version information by and-operating with 0x18 and then right-shifting by 3 bits, and ver3 is the data for obtaining phase version number by and-operating with 0x 07.
In some embodiments, the processing the raw data to obtain CPLD version information further includes: identifiers are respectively adopted to separate the main version information, the sub-version information and the stage version number. The identifier may be "-", may also be "/", and may of course be any other symbol that may produce a splitting effect, for example, the main version information is 3, the sub version information is 0, and the phase version number is 2, and the last data may be converted into a format of 3.0.2, and the data is returned by the response message structure version.
The embodiment of the invention defines the function category and sub-category command for acquiring the CPLD information by registering the CPLD query function. And then calling a CPLD query function, analyzing version information of the CPLD by reading the equipment file of the CPLD, reading the file at a specific position to acquire information, adding processing operation to form human recognizable version information, and finally returning the final CPLD version information through a response message structure body.
Fig. 2 is a flowchart illustrating an embodiment of a method for querying version information of a CPLD according to the present invention. As shown in fig. 2, beginning at block 101 and proceeding to block 102, the CPLD query function is registered based on IPMI protocol; then, the process advances to a block 103, whether a request for inquiring the version information of the CPLD is received is judged, if not, the process returns to the block 103 for judging again, if so, the process advances to a block 104, and a CPLD inquiring function is called according to the request; then, the method proceeds to a block 105, and the file position for storing the CPLD data is determined based on the mapping relation between the CPLD parameters and the CPLD files in the CPLD query function; proceeding to block 106, the original data of the CPLD version information is obtained from the file corresponding to the file location, and proceeding to block 108 is ended.
It should be particularly noted that, steps in the embodiments of the method for querying CPLD version information described above can be mutually intersected, replaced, added, and deleted, so that these methods for querying CPLD version information that are reasonably transformed by permutation and combination also belong to the scope of the present invention, and the scope of the present invention should not be limited to the embodiments.
In view of the above object, a second aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, registering a CPLD query function based on the IPMI protocol; s2, responding to the received request for inquiring the CPLD version information, and calling a CPLD inquiry function according to the request; s3, determining the file position for storing CPLD data based on the mapping relation between the CPLD parameters and the CPLD files in the CPLD query function; s4, acquiring original data of the CPLD version information from the file corresponding to the file position; and S5, processing the original data to obtain CPLD version information.
In some embodiments, the registering CPLD query function based on IPMI protocol includes: and registering a request message structural body and a response message structural body in the CPLD query function.
In some embodiments, the obtaining the original data of the CPLD version information from the file corresponding to the file location includes: and reading original data of the CPLD version information based on the offset address and the data length size in the message structure body.
In some embodiments, the processing the raw data to obtain CPLD version information includes: and operating and shifting three subdata in the original data and different reference values to respectively obtain main version information, sub-version information and stage version numbers.
In some embodiments, the processing the raw data to obtain CPLD version information further includes: and respectively adopting identifiers to separate the main version information, the sub-version information and the stage version number so as to obtain the CPLD version information.
Fig. 3 is a schematic hardware structural diagram of an embodiment of the method for querying CPLD version information provided by the present invention.
Taking the apparatus shown in fig. 3 as an example, the apparatus includes a processor 301 and a memory 302, and may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 304 may be connected by a bus or other means, and fig. 3 illustrates the connection by a bus as an example.
The memory 302, which is a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for querying CPLD version information in the embodiment of the present application. The processor 301 executes various functional applications of the server and data processing by running the nonvolatile software programs, instructions and modules stored in the memory 302, that is, implements the method of querying CPLD version information of the above-described method embodiment.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a method of querying CPLD version information, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may receive information such as a user name and a password that are input. The output means 304 may comprise a display device such as a display screen.
Program instructions/modules corresponding to one or more methods for querying CPLD version information are stored in the memory 302, and when executed by the processor 301, perform the method for querying CPLD version information in any of the above-described method embodiments.
Any embodiment of the computer device executing the method for querying the CPLD version information can achieve the same or similar effects as any corresponding embodiment of the method.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program of the method for querying version information of the CPLD can be stored in a computer-readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.
Claims (10)
1. A method for inquiring CPLD version information is characterized in that the following steps are executed based on BMC:
registering a CPLD query function based on an IPMI protocol;
in response to receiving a request for inquiring CPLD version information, calling a CPLD inquiry function according to the request;
determining the file position for storing CPLD data based on the mapping relation between the CPLD parameters and the CPLD files in the CPLD query function;
acquiring original data of the CPLD version information from the file corresponding to the file position; and
and processing the original data to obtain CPLD version information.
2. The method of claim 1, wherein registering the CPLD query function based on the IPMI protocol comprises:
and registering a request message structural body and a response message structural body in the CPLD query function.
3. The method according to claim 2, wherein the obtaining the original data of the CPLD version information from the file corresponding to the file location comprises:
and reading original data of the CPLD version information based on the offset address and the data length size in the message structure body.
4. The method of claim 1, wherein said processing the raw data to obtain CPLD version information comprises:
and operating and shifting three subdata in the original data and different reference values to respectively obtain main version information, sub-version information and stage version numbers.
5. The method of claim 4, wherein said processing the raw data to obtain CPLD version information further comprises:
and respectively adopting identifiers to separate the main version information, the sub-version information and the stage version number so as to obtain the CPLD version information.
6. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of:
registering a CPLD query function based on an IPMI protocol;
in response to receiving a request for inquiring CPLD version information, calling a CPLD inquiry function according to the request;
determining the file position for storing CPLD data based on the mapping relation between the CPLD parameters and the CPLD files in the CPLD query function;
acquiring original data of the CPLD version information from the file corresponding to the file position; and
and processing the original data to obtain CPLD version information.
7. The computer device of claim 6, wherein registering the CPLD query function based on the IPMI protocol comprises:
and registering a request message structural body and a response message structural body in the CPLD query function.
8. The computer device according to claim 7, wherein the obtaining raw data of CPLD version information from the file corresponding to the file location comprises:
and reading original data of the CPLD version information based on the offset address and the data length size in the message structure body.
9. The computer device of claim 6, wherein said processing the raw data to obtain CPLD version information comprises:
and operating and shifting three subdata in the original data and different reference values to respectively obtain main version information, sub-version information and stage version numbers.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911022208.2A CN111045989A (en) | 2019-10-25 | 2019-10-25 | Method, device and medium for querying CPLD version information |
PCT/CN2020/092823 WO2021077740A1 (en) | 2019-10-25 | 2020-05-28 | Method for querying cpld version information, device, and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911022208.2A CN111045989A (en) | 2019-10-25 | 2019-10-25 | Method, device and medium for querying CPLD version information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111045989A true CN111045989A (en) | 2020-04-21 |
Family
ID=70231779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911022208.2A Pending CN111045989A (en) | 2019-10-25 | 2019-10-25 | Method, device and medium for querying CPLD version information |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111045989A (en) |
WO (1) | WO2021077740A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021077740A1 (en) * | 2019-10-25 | 2021-04-29 | 苏州浪潮智能科技有限公司 | Method for querying cpld version information, device, and medium |
CN113885963A (en) * | 2021-10-18 | 2022-01-04 | 广州中望龙腾软件股份有限公司 | Secondary development file execution method and device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109634686A (en) * | 2018-12-17 | 2019-04-16 | 郑州云海信息技术有限公司 | A kind of method and system by BMC remote configuration server state |
CN109634659A (en) * | 2018-12-18 | 2019-04-16 | 浪潮电子信息产业股份有限公司 | Method, apparatus, equipment and the storage medium that a kind of couple of BMC is controlled |
CN109739772A (en) * | 2019-01-09 | 2019-05-10 | 郑州云海信息技术有限公司 | It is a kind of to realize that CPLD refreshes the method and apparatus tested automatically |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10372694B2 (en) * | 2014-10-08 | 2019-08-06 | Adobe Inc. | Structured information differentiation in naming |
CN111045989A (en) * | 2019-10-25 | 2020-04-21 | 苏州浪潮智能科技有限公司 | Method, device and medium for querying CPLD version information |
-
2019
- 2019-10-25 CN CN201911022208.2A patent/CN111045989A/en active Pending
-
2020
- 2020-05-28 WO PCT/CN2020/092823 patent/WO2021077740A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109634686A (en) * | 2018-12-17 | 2019-04-16 | 郑州云海信息技术有限公司 | A kind of method and system by BMC remote configuration server state |
CN109634659A (en) * | 2018-12-18 | 2019-04-16 | 浪潮电子信息产业股份有限公司 | Method, apparatus, equipment and the storage medium that a kind of couple of BMC is controlled |
CN109739772A (en) * | 2019-01-09 | 2019-05-10 | 郑州云海信息技术有限公司 | It is a kind of to realize that CPLD refreshes the method and apparatus tested automatically |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021077740A1 (en) * | 2019-10-25 | 2021-04-29 | 苏州浪潮智能科技有限公司 | Method for querying cpld version information, device, and medium |
CN113885963A (en) * | 2021-10-18 | 2022-01-04 | 广州中望龙腾软件股份有限公司 | Secondary development file execution method and device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2021077740A1 (en) | 2021-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111177043B (en) | Method, system, device and medium for accelerating reading of field replaceable unit information | |
CN111708834A (en) | Method, system, equipment and medium for synchronizing service configuration data | |
CN110519329B (en) | Method, device and readable medium for concurrently processing samba protocol request | |
CN110290168B (en) | Data transmission method, device, server and storage medium | |
CN111030892B (en) | Method, equipment and medium for testing network function in BMC NCSI adaptive mode | |
CN111045989A (en) | Method, device and medium for querying CPLD version information | |
WO2019076282A1 (en) | Method and device for managing user | |
CN110659165A (en) | Multi-node server automatic testing method and device | |
CN111309264B (en) | Method, system, device and medium for making directory quota compatible with snapshot | |
CN110780855A (en) | Method, device and system for uniformly managing and controlling interface | |
CN111708664A (en) | Log management method, device and medium for client | |
CN111563199A (en) | Data processing method and device | |
CN111193677B (en) | Method, device and medium for attributing FC (fiber channel) port of host to corresponding host | |
CN111813346A (en) | Method, system, device and medium for establishing Ceph distributed storage based on cloud platform | |
CN111193818A (en) | Method, system, equipment and medium for obtaining IP address | |
WO2020224242A1 (en) | Blockchain data processing method and apparatus, server and storage medium | |
CN111092962A (en) | Method, device and medium for preventing packet loss in data transmission | |
CN111143258A (en) | Method, system, device and medium for accessing FPGA (field programmable Gate array) by system based on Opencl | |
CN107562790B (en) | Method and system for realizing batch warehousing of data processing | |
CN110659035A (en) | Method and device for batch mounting of mirror images based on BMC | |
CN111722959B (en) | Method, system, equipment and medium for expanding storage pool | |
CN116341508A (en) | Dynamic configuration method and device for message template, computer equipment and storage medium | |
CN111130976B (en) | Method, equipment and medium for configuring virtual local area network of white box switch | |
CN113411364B (en) | Resource acquisition method and device and server | |
CN111090432A (en) | Interface processing method and device and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200421 |
|
RJ01 | Rejection of invention patent application after publication |