CN114003420B - CPLD diagnosis method, system, equipment and computer storage medium - Google Patents
CPLD diagnosis method, system, equipment and computer storage medium Download PDFInfo
- Publication number
- CN114003420B CN114003420B CN202111198987.9A CN202111198987A CN114003420B CN 114003420 B CN114003420 B CN 114003420B CN 202111198987 A CN202111198987 A CN 202111198987A CN 114003420 B CN114003420 B CN 114003420B
- Authority
- CN
- China
- Prior art keywords
- cpld
- reset signal
- diagnostic
- diagnosis
- target
- 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.)
- Active
Links
- 238000003745 diagnosis Methods 0.000 title claims abstract description 107
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000007639 printing Methods 0.000 claims description 61
- 238000004590 computer program Methods 0.000 claims description 34
- 230000005540 biological transmission Effects 0.000 claims description 17
- 238000002405 diagnostic procedure Methods 0.000 claims description 14
- 238000004891 communication Methods 0.000 description 7
- 230000000875 corresponding effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/24—Resetting means
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The application discloses a CPLD diagnosis method, which is applied to a target server and used for judging whether the CPLD of the target server is in an upgrade state or not; if the CPLD is in an upgrade state, transmitting diagnostic data of the CPLD to a diagnostic server before the CPLD transmits a target reset signal; the target reset signal comprises a reset signal sent after the CPLD is upgraded. In the method, the target server transmits the diagnosis data of the CPLD to the diagnosis server when the CPLD is in an upgrading state and before the CPLD transmits the target reset signal, so that the condition that the diagnosis data is lost due to system reset caused by the target reset signal is avoided, the CPLD is prevented from being diagnosed again, and the diagnosis efficiency of the CPLD can be improved. The CPLD diagnosis system, the CPLD diagnosis equipment and the CPLD diagnosis computer readable storage medium also solve the corresponding technical problems.
Description
Technical Field
The present disclosure relates to the field of server technologies, and in particular, to a CPLD diagnosis method, system, device, and computer storage medium.
Background
Currently, a BMC (Baseboard Management Controller ) and a CPLD (Complex Programmable logic device, complex programmable logic device) are installed on a motherboard of a server, and the BMC and the CPLD cooperate to perform motherboard control. However, in the operation process of the CPLD, diagnosis and upgrading are required, and when the CPLD is upgraded, the diagnosis result is lost, so that the user needs to diagnose the CPLD again, the process is complicated, and the diagnosis efficiency of the CPLD is reduced.
In summary, how to improve the diagnosis efficiency of CPLD is a problem to be solved by those skilled in the art.
Disclosure of Invention
The purpose of the application is to provide a CPLD diagnosis method, which can solve the technical problem of how to improve CPLD diagnosis efficiency to a certain extent. The application also provides a CPLD diagnosis system, equipment and a computer readable storage medium.
In order to achieve the above object, the present application provides the following technical solutions:
a CPLD diagnosis method is applied to a target server and comprises the following steps:
judging whether the CPLD of the target server is in an upgrading state or not;
if the CPLD is in an upgrade state, transmitting diagnostic data of the CPLD to a diagnostic server before the CPLD transmits a target reset signal;
the target reset signal comprises a reset signal for resetting the main board after the CPLD is upgraded.
Preferably, the transmitting the diagnostic data of the CPLD to the diagnostic server before the CPLD transmits the target reset signal includes:
acquiring a log printing progress of an upgrading tool for upgrading the CPLD;
judging whether the log printing progress reaches a preset progress or not;
if yes, transmitting the diagnosis data to the diagnosis server.
Preferably, before the determining whether the log printing progress reaches the preset progress, the method further includes:
and determining the preset progress based on the data amount of the diagnosis data.
Preferably, the determining the preset progress based on the data amount of the diagnostic data includes:
estimating the time length for transmitting the diagnosis data;
and determining the printing progress before the duration of the log printing completion moment as the preset progress.
Preferably, the preset progress includes a log printing completion progress;
the step of obtaining the log printing progress of the upgrade tool for upgrading the CPLD and judging whether the log printing progress reaches a preset progress comprises the following steps:
scanning whether the log printing operation of the upgrading tool is finished or not in real time based on a heartbeat mechanism;
and if the log printing operation of the upgrading tool is completed, determining that the log printing progress reaches the preset progress.
Preferably, the process of transmitting the diagnostic data of the CPLD to the diagnostic server includes:
judging whether the transmission of the diagnostic data is completed or not;
if the diagnosis data is not transmitted completely, judging whether the CPLD sends out the target reset signal;
and if the CPLD sends out the target reset signal, intercepting the target reset signal, and releasing the target reset signal after the diagnosis data transmission is completed.
Preferably, the diagnostic data includes diagnostic test results and a diagnostic test log.
A CPLD diagnostic system, applied to a target server, comprising:
the judging module is used for judging whether the CPLD of the target server is in an upgrading state or not;
the execution module is used for transmitting diagnostic data of the CPLD to a diagnostic server before the CPLD transmits a target reset signal if the CPLD is in an upgrading state;
the target reset signal comprises a reset signal for resetting the main board after the CPLD is upgraded.
A CPLD diagnostic device comprising:
a memory for storing a computer program;
a processor for implementing the steps of the CPLD diagnostic method as described in any one of the above when executing said computer program.
A computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of the CPLD diagnostic method as described in any of the above.
The CPLD diagnosis method is applied to the target server and used for judging whether the CPLD of the target server is in an upgrading state or not; if the CPLD is in an upgrade state, transmitting diagnostic data of the CPLD to a diagnostic server before the CPLD transmits a target reset signal; the target reset signal comprises a reset signal sent after the CPLD is upgraded. In the method, the target server transmits the diagnosis data of the CPLD to the diagnosis server when the CPLD is in an upgrading state and before the CPLD transmits the target reset signal, so that the condition that the diagnosis data is lost due to system reset caused by the target reset signal is avoided, the CPLD is prevented from being diagnosed again, and the diagnosis efficiency of the CPLD can be improved. The CPLD diagnosis system, the CPLD diagnosis equipment and the CPLD diagnosis computer readable storage medium also solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
Fig. 1 is a flowchart of a CPLD diagnosis method provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a CPLD diagnostic system according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a CPLD diagnostic device according to an embodiment of the present application;
fig. 4 is another schematic structural diagram of a CPLD diagnostic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, fig. 1 is a flowchart of a CPLD diagnosis method according to an embodiment of the present application.
The CPLD diagnosis method provided by the embodiment of the application is applied to the target server and can comprise the following steps:
step S101: judging whether the CPLD of the target server is in an upgrading state or not; if the CPLD is in the upgrade state, step S102 is performed.
Step S102: before the CPLD transmits the target reset signal, diagnostic data of the CPLD is transmitted to a diagnostic server; the target reset signal comprises a reset signal which is sent to reset the main board after the CPLD is upgraded.
In practical application, considering that the CPLD sends a target reset signal for resetting the mainboard after upgrading is completed, the target reset signal can enable the mainboard to be powered on and powered off, correspondingly, a diagnosis tool for diagnosing the CPLD on the mainboard is powered off abnormally and cannot transmit diagnosis data to a diagnosis server, so that the CPLD is required to be diagnosed again later, the diagnosis efficiency is lower, in order to solve the problem, after the CPLD is judged to be in an upgrading state, the diagnosis data is directly sent to the diagnosis server before the CPLD sends the target reset signal, so that the diagnosis server can store diagnosis information of the CPLD, and then after the CPLD is upgraded, diagnosis can be continued on the basis of the diagnosis data, the CPLD is not required to be diagnosed by a heavy head, and the diagnosis efficiency is high.
It should be noted that the type of the diagnostic data may be determined according to actual needs, for example, the diagnostic data may include a diagnostic test result, a diagnostic test log, and the like, which are not specifically limited herein.
The CPLD diagnosis method is applied to the target server and used for judging whether the CPLD of the target server is in an upgrading state or not; if the CPLD is in an upgrade state, transmitting diagnostic data of the CPLD to a diagnostic server before the CPLD transmits a target reset signal; the target reset signal comprises a reset signal sent after the CPLD is upgraded. In the method, the target server transmits the diagnosis data of the CPLD to the diagnosis server when the CPLD is in an upgrading state and before the CPLD transmits the target reset signal, so that the condition that the diagnosis data is lost due to system reset caused by the target reset signal is avoided, the CPLD is prevented from being diagnosed again, and the diagnosis efficiency of the CPLD can be improved.
In the CPLD diagnosis method provided by the embodiment of the application, the fact that the upgrading tool for upgrading the CPLD prints the corresponding upgrading log in the process of upgrading the CPLD is considered, and if the upgrading log is printed successfully, the upgrading of the CPLD is indicated, so that whether the CPLD is upgraded can be judged by means of the log printing progress of the upgrading tool, and whether the CPLD is transmitted or not is determined, namely, the diagnosis data of the CPLD is transmitted to the diagnosis server by the target server before the CPLD transmits the target reset signal, and the log printing progress of the upgrading tool for upgrading the CPLD can be obtained; judging whether the log printing progress reaches a preset progress or not; if yes, transmitting the diagnosis data to a diagnosis server.
In practical applications, since the transmission of the diagnostic data requires time, which is affected by the data amount of the diagnostic data, the preset progress may be determined based on the data amount of the diagnostic data before judging whether the log printing progress reaches the preset progress. Specifically, the time period for transmitting the diagnostic data can be estimated; and determining the printing progress before the time length of the log printing completion time as a preset progress.
In practical application, considering that a certain delay exists between the completion of CPLD upgrading and the transmission of a target reset signal, the delay can be used for transmitting diagnostic data, so that in a specific application scene, the preset progress can comprise the log printing completion progress; correspondingly, in the process of acquiring the log printing progress of the upgrading tool for upgrading the CPLD and judging whether the log printing progress reaches the preset progress, whether the log printing operation of the upgrading tool is finished or not can be scanned in real time based on a heartbeat mechanism; if the log printing operation of the upgrading tool is completed, determining that the log printing progress reaches the preset progress. It should be noted that, by means of the heartbeat mechanism, whether the log printing operation of the upgrade tool is completed can be flexibly, accurately and conveniently determined.
In the CPLD diagnosis method provided by the embodiment of the present application, in the process of transmitting the diagnosis data of the CPLD to the diagnosis server, if the diagnosis data is too large, the target server may not be able to transmit the diagnosis data and the motherboard is reset, so that the diagnosis data transmission is failed, in order to avoid such a situation, it is ensured that the diagnosis server can acquire the complete diagnosis data, and it may be determined whether the diagnosis data transmission is completed; if the diagnosis data is not transmitted, judging whether the CPLD sends out a target reset signal; if the CPLD sends out the target reset signal, the target reset signal is intercepted, and the target reset signal is released after the diagnosis data transmission is completed.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a CPLD diagnostic system according to an embodiment of the present application.
The CPLD diagnosis system provided by the embodiment of the application is applied to a target server and can comprise:
a judging module 101, configured to judge whether the CPLD of the target server is in an upgrade state;
the execution module 102 is configured to transmit diagnostic data of the CPLD to the diagnostic server before the CPLD sends the target reset signal if the CPLD is in an upgrade state;
the target reset signal comprises a reset signal which is sent to reset the main board after the CPLD is upgraded.
The CPLD diagnostic system provided in the embodiment of the present application is applied to a target server, and the execution module may include:
the first acquisition unit is used for acquiring the log printing progress of an upgrade tool for upgrading the CPLD;
the first judging unit is used for judging whether the log printing progress reaches a preset progress or not; if yes, transmitting the diagnosis data to a diagnosis server.
The CPLD diagnosis system provided by the embodiment of the application is applied to the target server and can further comprise:
and the first determining unit is used for determining the preset progress based on the data volume of the diagnosis data before the first judging unit judges whether the log printing progress reaches the preset progress.
The CPLD diagnosis system provided in the embodiment of the present application is applied to a target server, and the first determining unit may be specifically configured to: estimating the time length for transmitting the diagnosis data; and determining the printing progress before the time length of the log printing completion time as a preset progress.
The CPLD diagnosis system is applied to a target server, and the preset progress comprises a log printing completion progress;
accordingly, it may include: the second judging unit is used for scanning whether the log printing operation of the upgrading tool is finished or not in real time based on a heartbeat mechanism; if the log printing operation of the upgrading tool is completed, determining that the log printing progress reaches the preset progress.
The CPLD diagnostic system provided in the embodiment of the present application is applied to a target server, and the execution module may include:
a third judging unit for judging whether the transmission of the diagnostic data is completed; if the diagnosis data is not transmitted, judging whether the CPLD sends out a target reset signal; if the CPLD sends out the target reset signal, the target reset signal is intercepted, and the target reset signal is released after the diagnosis data transmission is completed.
The CPLD diagnosis system is applied to a target server, and diagnosis data comprises diagnosis test results and diagnosis test logs.
The application also provides CPLD diagnosis equipment and a computer readable storage medium, which have the corresponding effects of the CPLD diagnosis method provided by the embodiment of the application. Referring to fig. 3, fig. 3 is a schematic structural diagram of a CPLD diagnostic device according to an embodiment of the present application.
The CPLD diagnostic device provided in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program:
judging whether the CPLD of the target server is in an upgrading state or not;
if the CPLD is in an upgrade state, transmitting diagnostic data of the CPLD to a diagnostic server before the CPLD transmits a target reset signal;
the target reset signal comprises a reset signal which is sent to reset the main board after the CPLD is upgraded.
The CPLD diagnostic device provided in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: acquiring a log printing progress of an upgrade tool for upgrading the CPLD; judging whether the log printing progress reaches a preset progress or not; if yes, transmitting the diagnosis data to a diagnosis server.
The CPLD diagnostic device provided in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: and determining the preset progress based on the data quantity of the diagnosis data before judging whether the log printing progress reaches the preset progress.
The CPLD diagnostic device provided in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: estimating the time length for transmitting the diagnosis data; and determining the printing progress before the time length of the log printing completion time as a preset progress.
The CPLD diagnostic device provided in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: the preset progress comprises a log printing completion progress; scanning whether log printing operation of the upgrading tool is finished or not in real time based on a heartbeat mechanism; if the log printing operation of the upgrading tool is completed, determining that the log printing progress reaches the preset progress.
The CPLD diagnostic device provided in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: judging whether the transmission of the diagnostic data is completed or not; if the diagnosis data is not transmitted, judging whether the CPLD sends out a target reset signal; if the CPLD sends out the target reset signal, the target reset signal is intercepted, and the target reset signal is released after the diagnosis data transmission is completed.
The CPLD diagnostic device provided in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: the diagnostic data includes diagnostic test results and diagnostic test logs.
Referring to fig. 4, another CPLD diagnostic device provided in an embodiment of the present application may further include: an input port 203 connected to the processor 202 for transmitting an externally input command to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing result of the processor 202 to the outside; and the communication module 205 is connected with the processor 202 and is used for realizing communication between the CPLD diagnostic device and the outside. The display unit 204 may be a display panel, a laser scanning display, or the like; communication means employed by the communication module 205 include, but are not limited to, mobile high definition link technology (HML), universal Serial Bus (USB), high Definition Multimedia Interface (HDMI), wireless connection: wireless fidelity (WiFi), bluetooth communication, bluetooth low energy communication, ieee802.11s based communication.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
judging whether the CPLD of the target server is in an upgrading state or not;
if the CPLD is in an upgrade state, transmitting diagnostic data of the CPLD to a diagnostic server before the CPLD transmits a target reset signal;
the target reset signal comprises a reset signal which is sent to reset the main board after the CPLD is upgraded.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: acquiring a log printing progress of an upgrade tool for upgrading the CPLD; judging whether the log printing progress reaches a preset progress or not; if yes, transmitting the diagnosis data to a diagnosis server.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: and determining the preset progress based on the data quantity of the diagnosis data before judging whether the log printing progress reaches the preset progress.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: estimating the time length for transmitting the diagnosis data; and determining the printing progress before the time length of the log printing completion time as a preset progress.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: the preset progress comprises a log printing completion progress; scanning whether log printing operation of the upgrading tool is finished or not in real time based on a heartbeat mechanism; if the log printing operation of the upgrading tool is completed, determining that the log printing progress reaches the preset progress.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: judging whether the transmission of the diagnostic data is completed or not; if the diagnosis data is not transmitted, judging whether the CPLD sends out a target reset signal; if the CPLD sends out the target reset signal, the target reset signal is intercepted, and the target reset signal is released after the diagnosis data transmission is completed.
The embodiment of the application provides a computer readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: the diagnostic data includes diagnostic test results and diagnostic test logs.
The computer readable storage medium referred to in this application includes Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The description of the relevant parts in the CPLD diagnosis system, the device and the computer readable storage medium provided in the embodiments of the present application refers to the detailed description of the corresponding parts in the CPLD diagnosis method provided in the embodiments of the present application, and will not be repeated here. In addition, the parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of the corresponding technical solutions in the prior art, are not described in detail, so that redundant descriptions are avoided.
It is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (9)
1. A CPLD diagnostic method, applied to a target server, comprising:
judging whether the CPLD of the target server is in an upgrading state or not;
if the CPLD is in an upgrade state, transmitting diagnostic data of the CPLD to a diagnostic server before the CPLD transmits a target reset signal;
the target reset signal comprises a reset signal for resetting a main board after the CPLD is upgraded;
the process of transmitting the diagnostic data of the CPLD to the diagnostic server includes:
judging whether the transmission of the diagnostic data is completed or not;
if the diagnosis data is not transmitted completely, judging whether the CPLD sends out the target reset signal;
and if the CPLD sends out the target reset signal, intercepting the target reset signal, and releasing the target reset signal after the diagnosis data transmission is completed.
2. The method of claim 1, wherein transmitting diagnostic data of the CPLD to a diagnostic server before the CPLD transmits a target reset signal comprises:
acquiring a log printing progress of an upgrading tool for upgrading the CPLD;
judging whether the log printing progress reaches a preset progress or not;
if yes, transmitting the diagnosis data to the diagnosis server.
3. The method of claim 2, wherein before determining whether the log printing progress reaches a preset progress, further comprising:
and determining the preset progress based on the data amount of the diagnosis data.
4. A method according to claim 3, wherein said determining said preset schedule based on a data amount of said diagnostic data comprises:
estimating the time length for transmitting the diagnosis data;
and determining the printing progress before the duration of the log printing completion moment as the preset progress.
5. The method of claim 2, wherein the preset schedule comprises a log print completion schedule;
the step of obtaining the log printing progress of the upgrade tool for upgrading the CPLD and judging whether the log printing progress reaches a preset progress comprises the following steps:
scanning whether the log printing operation of the upgrading tool is finished or not in real time based on a heartbeat mechanism;
and if the log printing operation of the upgrading tool is completed, determining that the log printing progress reaches the preset progress.
6. The method of claim 1, wherein the diagnostic data comprises diagnostic test results and a diagnostic test log.
7. A CPLD diagnostic system, applied to a target server, comprising:
the judging module is used for judging whether the CPLD of the target server is in an upgrading state or not;
the execution module is used for transmitting diagnostic data of the CPLD to a diagnostic server before the CPLD transmits a target reset signal if the CPLD is in an upgrading state;
the target reset signal comprises a reset signal for resetting a main board after the CPLD is upgraded;
the execution module comprises:
judging whether the transmission of the diagnostic data is completed or not; if the diagnosis data is not transmitted completely, judging whether the CPLD sends out the target reset signal; and if the CPLD sends out the target reset signal, intercepting the target reset signal, and releasing the target reset signal after the diagnosis data transmission is completed.
8. A CPLD diagnostic device, comprising:
a memory for storing a computer program;
processor for implementing the steps of the CPLD diagnostic method according to any one of claims 1 to 6 when executing said computer program.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the steps of the CPLD diagnosis method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111198987.9A CN114003420B (en) | 2021-10-14 | 2021-10-14 | CPLD diagnosis method, system, equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111198987.9A CN114003420B (en) | 2021-10-14 | 2021-10-14 | CPLD diagnosis method, system, equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114003420A CN114003420A (en) | 2022-02-01 |
CN114003420B true CN114003420B (en) | 2024-01-12 |
Family
ID=79922865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111198987.9A Active CN114003420B (en) | 2021-10-14 | 2021-10-14 | CPLD diagnosis method, system, equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114003420B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108388489A (en) * | 2018-02-27 | 2018-08-10 | 郑州云海信息技术有限公司 | A kind of server failure diagnostic method, system, equipment and storage medium |
CN110647340A (en) * | 2019-09-19 | 2020-01-03 | 锐捷网络股份有限公司 | Complex programmable logic device CPLD upgrading method and CPLD |
CN110673867A (en) * | 2019-09-06 | 2020-01-10 | 苏州浪潮智能科技有限公司 | CPLD online upgrading method, device and system |
CN111813590A (en) * | 2020-06-02 | 2020-10-23 | 中车株洲电力机车研究所有限公司 | Method and device for diagnosing abnormal reset of main control module and main control module |
WO2021017919A1 (en) * | 2019-07-31 | 2021-02-04 | 中兴通讯股份有限公司 | Ota update diagnostic method and apparatus, wireless routing device, and terminal device |
-
2021
- 2021-10-14 CN CN202111198987.9A patent/CN114003420B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108388489A (en) * | 2018-02-27 | 2018-08-10 | 郑州云海信息技术有限公司 | A kind of server failure diagnostic method, system, equipment and storage medium |
WO2021017919A1 (en) * | 2019-07-31 | 2021-02-04 | 中兴通讯股份有限公司 | Ota update diagnostic method and apparatus, wireless routing device, and terminal device |
CN110673867A (en) * | 2019-09-06 | 2020-01-10 | 苏州浪潮智能科技有限公司 | CPLD online upgrading method, device and system |
CN110647340A (en) * | 2019-09-19 | 2020-01-03 | 锐捷网络股份有限公司 | Complex programmable logic device CPLD upgrading method and CPLD |
CN111813590A (en) * | 2020-06-02 | 2020-10-23 | 中车株洲电力机车研究所有限公司 | Method and device for diagnosing abnormal reset of main control module and main control module |
Also Published As
Publication number | Publication date |
---|---|
CN114003420A (en) | 2022-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10621797B2 (en) | System and method for transferring diagnostic commands to a vehicle | |
US8588767B2 (en) | Mobile terminal device, self-diagnosis method and non-transitory, computer readable storage medium | |
CN112684982B (en) | Data migration method, system, equipment and computer readable storage medium | |
CN115657975B (en) | Disk data read-write control method, related components and front-end shared card | |
CN117012258B (en) | Analysis device, method and medium for storing chip state data | |
CN116627861B (en) | Data processing method and system based on expander, electronic equipment and storage medium | |
CN111756858B (en) | Remote development processing system, method and device for embedded equipment | |
CN109597653A (en) | Method, BIOS and the BMC of BIOS and BMC command interaction | |
US20100312541A1 (en) | Program test device and program | |
CN114003420B (en) | CPLD diagnosis method, system, equipment and computer storage medium | |
CN110070444A (en) | A kind of block chain transaction flow management method and relevant apparatus | |
CN111722966B (en) | PCIe Switch detection method, system, equipment and medium | |
CN116089124A (en) | Communication method, device and medium of simulation system | |
CN115981956A (en) | SPDK service process monitoring method, device, equipment, storage medium and program product | |
CN114564334A (en) | MRPC data processing method, system and related components | |
CN113960991A (en) | Vehicle fault diagnosis system, method and device, system-on-chip and vehicle | |
KR100429810B1 (en) | Diagnosis method and apparatus for peripheral device of host | |
JP2021064318A (en) | Image forming apparatus, application program, and test method | |
CN103853506A (en) | Print control apparatus and data management method | |
CN115622649B (en) | UEFI system-based network timing method, device and equipment | |
CN114613418B (en) | System and method for NVMe-MI function test of solid state disk | |
CN116881091B (en) | System event log reporting method, device, chip, equipment and storage medium | |
CN114996172B (en) | Method and system for accessing host memory based on SSD | |
CN114020501A (en) | Kernel crash information processing method, system, equipment and computer medium | |
CN117472747A (en) | File acquisition method, server and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |