Cipher card fault processing method and device and electronic equipment

By monitoring the status of the password card calculation unit and sending power-off and power-on instructions to the control unit, the problem that the watchdog mechanism cannot perceive abnormal states is solved, and the timeliness of password card reset is improved.

CN119902933APending Publication Date: 2025-04-29Fisherman Information Technology Co Ltd
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411996110.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

In the prior art, some abnormal states of the password card cannot be sensed through the watchdog mechanism, resulting in poor timeliness of resetting the password card to the normal state.

Method used

By monitoring the operating status of the calculation unit in the password card, sending instructions to the control unit for power off and power-on operations, automatically reset and power off and then power on, thereby restoring the normal working status of the password card calculation unit.

Benefits of technology

It improves the timeliness of resetting the password card to a normal working state, and solves the timeliness problem caused by the watchdog mechanism's inability to perceive abnormal states.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119902933A_ABST
    Figure CN119902933A_ABST
Patent Text Reader

Abstract

The invention discloses a password card fault processing method and device and electronic equipment. Relates to the field of automation, and the method comprises the steps: monitoring the operation state of an arithmetic unit in a password card, and sending first instruction information to a control unit when the operation state is an abnormal state, the first instruction information being used for instructing the control unit to execute a power-off operation on the arithmetic unit; the operation state of an arithmetic unit in the password card is monitored, second instruction information is sent to the control unit under the condition that the operation state of the arithmetic unit is power failure, and the second instruction information is used for indicating the control unit to execute power-on operation on the arithmetic unit. According to the method and the device, the problem that the timeliness of resetting the password card to the normal state is relatively poor due to the fact that the partial abnormal state of the password card cannot be sensed through a watchdog mechanism in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automation, and in particular to a method, device and electronic device for processing a password card failure. Background Art

[0002] A password card is a hardware device used for encryption and decryption operations to ensure the security of data transmission and storage. However, during operation, the password card may enter an abnormal state due to various reasons, resulting in data leakage, etc. Therefore, it is very important to monitor the abnormal state of the password card and restore the normal working state of the password card in time.

[0003] The password card's own watchdog mechanism can monitor some abnormal states of the password card and reset it to normal state. However, the password card's own watchdog mechanism cannot perceive problems such as calculation errors, resulting in the password card being unable to return to normal working state, affecting the security of data transmission and storage.

[0004] With regard to the problem in the related art that the watchdog mechanism cannot detect some abnormal states of the password card, resulting in poor timeliness in resetting the password card to a normal state, no effective solution has been proposed yet. Summary of the invention

[0005] The present application provides a method, device and electronic device for processing a password card failure, so as to solve the problem in the related art that a watchdog mechanism cannot sense some abnormal states of a password card, resulting in poor timeliness in resetting the password card to a normal state.

[0006] According to one aspect of the present application, a method for processing a password card failure is provided. The method includes: monitoring the operating state of the operation unit in the password card, and sending first instruction information to the control unit when the operating state is an abnormal state, wherein the first instruction information is used to instruct the control unit to perform a power-off operation on the operation unit; monitoring the operating state of the operation unit in the password card, and sending second instruction information to the control unit when the operating state of the operation unit is power-off, wherein the second instruction information is used to instruct the control unit to perform a power-on operation on the operation unit.

[0007] Optionally, the first instruction information includes a reset instruction and a power-off instruction, and sending the first instruction information to the control unit includes: sending a reset instruction to the control unit, and obtaining a first moment of sending the reset instruction, wherein the reset instruction is used to instruct the operation unit to perform a reset operation; obtaining a first time difference, and judging whether a second moment has been reached based on the first time difference, wherein the second moment is after the first moment, and the time difference between the second moment and the first moment is the first time difference; when the second moment is reached, sending a power-off instruction to the control unit.

[0008] Optionally, the second instruction information includes a reset instruction and a power-on instruction, and sending the second instruction information to the control unit includes: sending a power-on instruction to the control unit, and obtaining a third moment of sending the power-on instruction; obtaining a second time difference, and judging whether a fourth moment has been reached based on the second time difference, wherein the fourth moment is after the third moment, and the time difference between the fourth moment and the third moment is the second time difference; when the fourth moment is reached, sending a reset instruction to the control unit, wherein the reset instruction is used to instruct the operation unit to perform a reset operation.

[0009] Optionally, before sending the first instruction information to the control unit, the method also includes: sending a data storage instruction to the control unit, and upon receiving prompt information feedback from the control unit, sending the first instruction information to the control unit, wherein the data storage instruction is used to instruct the computing unit to store the job status and job data of the currently executed job.

[0010] Optionally, after sending the second instruction information to the control unit, the method also includes: obtaining the moment of executing the first instruction information to be sent to the control unit to obtain the fifth moment; judging in the database whether there is storage information whose time difference with the fifth moment is less than the target time difference; if there is storage information, obtaining the job status and job data in the storage information, and sending the job status and job data to the operation unit; if there is no storage information, sending a new job to the operation unit.

[0011] Optionally, monitoring the operating status of the operation unit in the password card includes: receiving the job processing result sent by the operation unit, and identifying whether there is an abnormality in the content of the job processing result; when there is an abnormality in the content of the job processing result, determining that the operating status is an abnormal state; when there is no abnormality in the content of the job processing result, obtaining the sixth moment of receiving the job processing result, and judging whether the sixth moment is greater than the preset moment; when the sixth moment is greater than the preset moment, determining that the operating status is an abnormal state; when the sixth moment is less than or equal to the preset moment, determining that the operating status is a normal state; when the job processing result sent by the operation unit is not received, determining that the operating status of the operation unit is power-off.

[0012] Optionally, when the running status is an abnormal state, the method also includes: updating the number of times the running status is continuously abnormal, and judging whether the number is greater than a preset value; when the number is greater than the preset value, sending a prompt message to the operation and maintenance end, wherein the prompt message is used to indicate that there is a fault in the operation unit.

[0013] According to another aspect of the present application, a device for processing a password card failure is provided. The device includes: a first monitoring unit, which is used to monitor the operating state of the operation unit in the password card, and when the operating state is an abnormal state, sends a first instruction information to the control unit, wherein the first instruction information is used to instruct the control unit to perform a power-off operation on the operation unit; a second monitoring unit, which is used to monitor the operating state of the operation unit in the password card, and when the operating state of the operation unit is power-off, sends a second instruction information to the control unit, wherein the second instruction information is used to instruct the control unit to perform a power-on operation on the operation unit.

[0014] According to another aspect of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, a method for processing a password card failure provided in the aforementioned embodiment of the present application is implemented.

[0015] According to another aspect of the present invention, there is also provided an electronic device comprising one or more processors and a memory; the memory stores computer-readable instructions, and the processor is used to execute the computer-readable instructions, wherein when the computer-readable instructions are executed, a method for processing a password card failure provided in the aforementioned embodiment is executed.

[0016] Through the present application, the following steps are adopted: monitoring the operating state of the operation unit in the password card, and sending first instruction information to the control unit when the operating state is an abnormal state, wherein the first instruction information is used to instruct the control unit to perform a power-off operation on the operation unit; monitoring the operating state of the operation unit in the password card, and sending second instruction information to the control unit when the operating state of the operation unit is power-off, wherein the second instruction information is used to instruct the control unit to perform a power-on operation on the operation unit, by automatically monitoring the operating state of the operation unit in the password card, in the case of an abnormality, the operation unit is reset and powered off by the control unit, and after successful power-off, the operation unit is powered on by the control unit, thereby restoring the normal working state of the operation unit of the password card, solving the problem in the related art that some abnormal states of the password card cannot be perceived by the watchdog mechanism, resulting in poor timeliness of resetting the password card to the normal state, thereby achieving the technical effect of improving the timeliness of resetting the password card to the normal working state. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 is a flow chart of a method for handling a password card failure provided in an embodiment of the present application;

[0019] Figure 2 is a schematic diagram of an optional system for processing a password card failure according to an embodiment of the present application;

[0020] Figure 3 is a schematic diagram of a device for processing a password card failure according to an embodiment of the present application;

[0021] Figure 4 It is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] It should be noted that the method, device and electronic device for processing password card failure determined in the present disclosure can be used in the field of automation, and can also be used in any field other than the field of automation. The application field of the method, device and electronic device for processing password card failure determined in the present disclosure is not limited.

[0026] It should be noted that the collected information, user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) used in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of the relevant regions, necessary confidentiality measures are taken, and public order and good customs are not violated. Corresponding operation entrances are provided for users to choose to authorize use or refuse use. If the user chooses to refuse, the expert decision-making process is entered. For example, an interface is set between this system and relevant users or institutions. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or institution through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or institution.

[0027] The embodiments or examples of the present disclosure are not exhaustive, but are only illustrative of some embodiments or examples, and are not intended to be specific limitations on the scope of protection of the present disclosure. In the absence of contradiction, each step in a certain embodiment or example can be implemented as an independent example, and the steps can be combined arbitrarily. For example, the scheme after removing some steps in a certain embodiment or example can also be implemented as an independent example, and the order of the steps in a certain embodiment or example can be arbitrarily exchanged. In addition, the optional methods or optional examples in a certain embodiment or example can be combined arbitrarily; in addition, the various embodiments or examples can be combined arbitrarily, for example, some or all steps of different embodiments or examples can be combined arbitrarily, and a certain embodiment or example can be combined arbitrarily with the optional methods or optional examples of other embodiments or examples.

[0028] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:

[0029] Watchdog mechanism: A watchdog mechanism (Watchdog Timer) is a hardware or software mechanism used to monitor and protect system operation. It is often used in embedded systems, computer systems, or other electronic devices to ensure that the system does not fail or stop running during operation.

[0030] According to an embodiment of the present application, a method for processing a password card failure is provided.

[0031] Figure 1 FIG. 1 is a flow chart of a method for handling a password card failure according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0032] Step S101, monitoring the operating state of the operation unit in the password card, and sending first instruction information to the control unit when the operating state is abnormal, wherein the first instruction information is used to instruct the control unit to perform a power-off operation on the operation unit.

[0033] Specifically, the implementation subject of this embodiment is the host of the password card. During the processing of the password card failure, the host can first monitor the operating status of the operation unit in the password card, where the operation unit is used to perform various password operations, such as encryption and decryption operations, hash operations, etc. When it is monitored that the operating status of the password card operation unit is abnormal, the host can send a first instruction message to the control unit, where the control unit of the password card is used to process instructions from other components and perform corresponding operations on the operation unit according to the instructions. The first instruction message is used to instruct the control unit to perform a power-off operation on the operation unit, and the power-off operation will turn off the power switch of the operation unit.

[0034] It should be noted that when the control unit receives the first instruction information, the control unit can first initialize the operation unit to eliminate possible errors or abnormalities in the operation unit, and then completely cut off the power of the operation unit through a power-off operation, thereby stopping the operation of the operation unit in time to prevent safety risks or data damage caused by the abnormal state of the operation unit.

[0035] Step S102, monitoring the operation state of the operation unit in the password card, and sending second instruction information to the control unit when the operation state of the operation unit is power-off, wherein the second instruction information is used to instruct the control unit to perform a power-on operation on the operation unit.

[0036] Specifically, after sending the first instruction to the control unit, the host can continue to monitor the operating status of the operation unit in the password card to determine whether the control unit has completed the power-off operation on the operation unit. When it is monitored that the operating status of the operation unit is power-off, the host can send a second instruction information to the control unit, wherein the second instruction information is used to instruct the control unit to perform a power-on operation on the operation unit.

[0037] It should be noted that after the control unit receives the second instruction information, the control unit can perform a power-on operation on the operation unit according to the instruction requirements, and re-power the operation unit by turning on the power switch of the operation unit. The control unit can also initialize the operation unit to restore the operation unit to a normal operating state, thereby ensuring the security and stability of the password card.

[0038] The method for processing a password card failure provided in an embodiment of the present application monitors the operating state of the operation unit in the password card, and sends first instruction information to the control unit when the operating state is an abnormal state, wherein the first instruction information is used to instruct the control unit to perform a power-off operation on the operation unit; monitors the operating state of the operation unit in the password card, and sends second instruction information to the control unit when the operating state of the operation unit is power-off, wherein the second instruction information is used to instruct the control unit to perform a power-on operation on the operation unit, and automatically monitors the operating state of the operation unit in the password card. When an abnormality occurs, the operation unit is reset and powered off by the control unit, and after successful power-off, the operation unit is powered on by the control unit, thereby restoring the normal working state of the operation unit of the password card, thereby solving the problem in the related art that the watchdog mechanism cannot perceive some abnormal states of the password card, resulting in poor timeliness of resetting the password card to the normal state, thereby achieving the technical effect of improving the timeliness of resetting the password card to the normal working state.

[0039] Optionally, in the method for handling a password card failure provided in an embodiment of the present application, the first instruction information includes a reset instruction and a power-off instruction, and sending the first instruction information to the control unit includes: sending a reset instruction to the control unit, and obtaining a first moment of sending the reset instruction, wherein the reset instruction is used to instruct the operation unit to perform a reset operation; obtaining a first time difference, and judging whether a second moment has been reached based on the first time difference, wherein the second moment is after the first moment, and the time difference between the second moment and the first moment is the first time difference; when the second moment is reached, sending a power-off instruction to the control unit.

[0040] It should be noted that, in the process of the host sending the first instruction information to the control unit, the first instruction information includes a reset instruction and a power-off instruction. The host can first send a reset instruction to the control unit, wherein the reset instruction is used to instruct the control unit to perform a reset operation on the operation unit. The reset operation can initialize the operation unit, thereby eliminating errors or abnormalities that may exist in the operation unit.

[0041] It should be noted that, while sending a reset instruction to the control unit, the host can obtain the first moment of sending the reset instruction, and then obtain the first time difference, and determine whether the second moment has been reached based on the first time difference, wherein the first time difference is a preset time difference, used to indicate the time interval from sending the reset instruction to completion of the reset operation, the second moment is after the first moment, and the time difference between the second moment and the first moment is the first time difference. When it is determined that the second moment has been reached based on the first time difference, the host can send a power-off instruction to the control unit. After receiving the power-off instruction, the control unit will perform a power-off operation on the computing unit to stop the abnormal operation of the computing unit.

[0042] For example, assuming that the first time difference is 1 minute, the first moment when the host sends the reset command is 10:00, then the second moment is 10:01, and it can be determined whether the second moment has been reached. When it reaches 10:01, the host can send a power-off command to the control unit. After receiving the power-off command, the control unit will perform a power-off operation on the computing unit to stop the abnormal operation of the computing unit.

[0043] In this embodiment, the host monitors the operating status of the computing unit, and sends a reset instruction and a power-off instruction to the control unit when an abnormality occurs. The control unit is used to reset and power off the computing unit, thereby stopping the abnormal operation of the computing unit in time and preventing safety risks caused by the abnormal status of the computing unit.

[0044] Optionally, in the method for handling a password card failure provided in an embodiment of the present application, the second instruction information includes a reset instruction and a power-on instruction, and sending the second instruction information to the control unit includes: sending a power-on instruction to the control unit, and obtaining a third time for sending the power-on instruction; obtaining a second time difference, and judging whether a fourth time has been reached based on the second time difference, wherein the fourth time is after the third time, and the time difference between the fourth time and the third time is the second time difference; when the fourth time has been reached, sending a reset instruction to the control unit, wherein the reset instruction is used to instruct the operation unit to perform a reset operation.

[0045] It should be noted that, in the process of the host sending the second instruction information to the control unit, the second instruction information includes a reset instruction and a power-on instruction. The host can first send a power-on instruction to the control unit, wherein the power-on instruction is used to instruct the control unit to perform a power-on operation on the computing unit. The power-on operation can be performed by turning on the power switch of the computing unit, thereby re-powering the computing unit and restoring it to an operating state.

[0046] It should be noted that, while sending a power-on instruction to the control unit, the host can obtain the moment when the power-on instruction is sent, that is, the third moment, and then obtain the second time difference, and determine whether the fourth moment has been reached based on the second time difference, wherein the second time difference is a preset time difference, used to indicate the time interval from sending the power-on instruction to completion of the power-on operation, the fourth moment is after the third moment, and the time difference between the fourth moment and the third moment is the second time difference. When it is determined that the fourth moment has been reached based on the second time difference, the host can send a reset instruction to the control unit. After receiving the reset instruction, the control unit will perform a reset operation on the operation unit to initialize the operation unit and ensure the normal operation of the operation unit.

[0047] For example, assuming that the second time difference is 1 minute, the third moment when the host sends the power-on command is 10:30, then the fourth moment to complete the re-powering of the computing unit is 10:31, and then it can be determined whether the fourth moment has been reached. When it reaches 10:31, the host can send a reset command to the control unit. After receiving the reset command, the control unit will perform a reset operation on the computing unit to ensure the normal operation of the computing unit.

[0048] This embodiment sends a power-on instruction and a reset instruction to the control unit, and uses the control unit to power on and reset the computing unit, thereby improving the timeliness of the computing unit returning to a normal working state and ensuring the stability of the password card and the security of the data.

[0049] Optionally, in the method for handling password card failure provided in an embodiment of the present application, before sending the first instruction information to the control unit, the method also includes: sending a data storage instruction to the control unit, and upon receiving prompt information feedback from the control unit, sending the first instruction information to the control unit, wherein the data storage instruction is used to instruct the computing unit to store the job status and job data of the currently executed job.

[0050] It should be noted that before sending the first instruction information to the control unit, the password card host can send a data storage instruction to the control unit, wherein the data storage instruction is used to instruct the control unit to perform a data storage operation on the operation unit, that is, to store the job status and job data currently executed by the operation unit, so that the job status and job data can be restored after the subsequent operation status of the operation unit is normal.

[0051] It should be noted that after the control unit receives the data storage instruction, it can instruct the computing unit to perform data storage operations to store the job status and job data of the currently executed job. After the data storage operation is completed, the control unit can send a prompt message to the host to prompt the completion of the data storage operation. When the host receives the prompt message feedback from the control unit, it can send a first instruction message to the control unit to stop the abnormal operation of the computing unit through a reset instruction and a power-off instruction.

[0052] This embodiment ensures that the operating status and data of the operation unit can be stored and managed before resetting and powering off the operation unit in an abnormal state by sending a data storage instruction to the control unit, so that the operation status and operation data can be restored after the operation status of the operation unit returns to normal, thereby ensuring the security and integrity of the data.

[0053] Optionally, in the method for handling password card failure provided in an embodiment of the present application, after sending the second instruction information to the control unit, the method further includes: obtaining the moment of executing the first instruction information to be sent to the control unit to obtain a fifth moment; judging in the database whether there is storage information whose time difference with the fifth moment is less than the target time difference; if there is storage information, obtaining the job status and job data in the storage information, and sending the job status and job data to the operation unit; if there is no storage information, sending a new job to the operation unit.

[0054] It should be noted that after sending the second instruction information to the control unit, the host can obtain the moment of executing the first instruction information to the control unit, that is, the fifth moment, and then query the database of the password card to obtain the storage moment of each storage information in the database, and determine whether there is storage information whose time difference between the storage moment and the fifth moment is less than the target time difference, wherein the target time difference is a pre-set time interval used to determine whether there is storage information in the database whose storage moment is close to the fifth moment.

[0055] Specifically, when there is storage information, the host can obtain the job status and job data in the storage information, and send the job status and job data to the computing unit, so that the computing unit can restore the previous job status and job data and continue to execute related jobs; when there is no storage information, the host can send a new job to the computing unit, so that the computing unit can execute the new job task.

[0056] It should be noted that when there is storage information and the number of storage information is greater than 1, the storage time of each storage information can be obtained, the time difference between each storage time and the fifth time can be calculated, and the storage information with the smallest time difference is selected, that is, the storage information closest to the operation unit entering the power-off state, and then the job status and job data in the storage information are obtained and sent to the operation unit, so that the operation unit can restore the latest job status and job data before the power off and continue to execute related jobs.

[0057] This embodiment determines whether to restore the operation state of the operation unit before power failure or start a new operation according to the storage time of the storage information in the database, thereby ensuring the integrity and consistency of the data in the operation unit and ensuring the stable execution of the operation.

[0058] Optionally, in the method for handling a password card failure provided in an embodiment of the present application, monitoring the operating status of the operation unit in the password card includes: receiving a job processing result sent by the operation unit, and identifying whether there is an abnormality in the content of the job processing result; if there is an abnormality in the content of the job processing result, determining that the operating status is an abnormal state; if there is no abnormality in the content of the job processing result, obtaining a sixth moment of receiving the job processing result, and determining whether the sixth moment is greater than a preset moment; if the sixth moment is greater than the preset moment, determining that the operating status is an abnormal state; if the sixth moment is less than or equal to the preset moment, determining that the operating status is a normal state; if the job processing result sent by the operation unit is not received, determining that the operating status of the operation unit is power-off.

[0059] It should be noted that, in the process of monitoring the operating status of the operation unit in the password card, the host can first receive the job processing result sent by the operation unit, and then check the job processing result to identify whether there is any abnormality in the content of the job processing result, and determine the operating status of the operation unit based on the identification result. When there is an abnormality in the content of the job processing result, it means that there is a problem or abnormality in the job processing process, so it can be determined that the operating status of the operation unit is an abnormal state; when there is no abnormality in the content of the job processing result, the operating status of the operation unit can be determined according to the time of receiving the job processing result.

[0060] Specifically, in the process of determining the running status of the operation unit according to the moment of receiving the job processing result, the moment of receiving the job processing result, that is, the sixth moment, can be obtained first, and it can be determined whether the sixth moment is greater than the preset moment, wherein the preset moment is a pre-set moment. When the sixth moment is greater than the preset moment, it means that the processing time of the job exceeds expectations, and it can be considered that there is an abnormality in the job processing process. Therefore, the running status of the operation unit is determined to be an abnormal state. When the sixth moment is less than or equal to the preset moment, it can be determined that the running status of the operation unit is a normal state.

[0061] It should be noted that, when the job processing result sent by the operation unit is not received, if the operating status of the operation unit is monitored before the first instruction information is sent to the control unit, it can be determined that the operating status of the operation unit is abnormal; if the operating status of the operation unit is monitored after the first instruction information is sent to the control unit, it can be determined that the operating status of the operation unit is power-off.

[0062] This embodiment determines the operating status of the operation unit in the password card through the content and time information of the received job processing results, so that the abnormality of the operation unit can be identified in time and corresponding methods can be taken to restore the operation unit to a normal operating state, thereby improving the timeliness of resetting the password card to a normal state.

[0063] Optionally, in the method for handling password card failure provided in an embodiment of the present application, when the operating status is an abnormal state, the method further includes: updating the number of times the operating status is continuously in an abnormal state, and determining whether the number is greater than a preset value; when the number is greater than the preset value, sending a prompt message to the operation and maintenance end, wherein the prompt message is used to indicate that there is a fault in the computing unit.

[0064] It should be noted that, in the process of monitoring the running status of the password card operation unit, the host can continuously record the recognition result of the running status and the number of times the running status is continuously abnormal. When the recognition result shows that the running status of the operation unit is abnormal, the number of times the running status is continuously abnormal can be updated, that is, the number of abnormal states is increased by one. At the same time, it can be judged whether the number of times the running status is continuously abnormal is greater than a preset value, wherein the preset value is a set threshold value used to judge whether the abnormal state of the password card operation unit is frequent. When the number is greater than the preset value, it means that the abnormal state of the operation unit is relatively frequent, and it can be considered that the operation unit is faulty. Therefore, the host can send a prompt message to the operation and maintenance end to indicate that the operation unit is faulty.

[0065] This embodiment continuously updates the number of times the operating status is continuously abnormal, and determines whether the computing unit has a fault based on the number of times, thereby automatically sending a prompt message to the operation and maintenance end when a fault occurs, thereby improving the timeliness of the computing unit fault handling.

[0066] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0067] Figure 2 is a schematic diagram of an optional system for processing a password card failure according to an embodiment of the present application, such as Figure 2 As shown, the system can handle password card failures through the following process:

[0068] The power switch is a module or chip that controls the power supply of the computing unit. The control signal is sent by the single-chip microcomputer, and the power switch is turned on or off by the high and low levels of the control signal or other communication protocols.

[0069] The password card host continuously monitors the operating status of the operation unit in the password card. When the operating status of the operation unit is abnormal, a reset instruction can be sent to the microcontroller of the control unit to reset the operation unit through the microcontroller. Then the host can also send a power-off instruction to the microcontroller of the control unit, and the microcontroller sends a power-off instruction to the power switch. By turning off the power switch, the power supply to the operation unit is stopped, and the operating status of the operation unit becomes power-off.

[0070] When the host detects that the operation unit is in a power-off state, the host can send a power-on command to the microcontroller of the control unit, and the microcontroller sends a power-on command to the power switch. The control unit turns on the power switch to supply power to the operation unit. The host can also send a reset command to the microcontroller of the control unit to reset the operation unit through the microcontroller and notify the host at the same time. Finally, the host and the password card return to normal working state.

[0071] The embodiment of the present application also provides a device for processing a password card failure. It should be noted that the device for processing a password card failure in the embodiment of the present application can be used to execute the method for processing a password card failure provided in the embodiment of the present application. The following is an introduction to the device for processing a password card failure provided in the embodiment of the present application.

[0072] Figure 3 Schematic diagram of a device for processing a password card failure according to an embodiment of the present application. Figure 3 As shown, the device includes: a first monitoring unit 31 and a second monitoring unit 32.

[0073] The first monitoring unit 31 is used to monitor the operating state of the operation unit in the password card, and send first instruction information to the control unit when the operating state is abnormal, wherein the first instruction information is used to instruct the control unit to perform a power-off operation on the operation unit.

[0074] The second monitoring unit 32 is used to monitor the operating state of the operation unit in the password card, and when the operating state of the operation unit is power-off, send second instruction information to the control unit, wherein the second instruction information is used to instruct the control unit to perform a power-on operation on the operation unit.

[0075] The processing device for password card failure provided in the embodiment of the present application monitors the operation state of the operation unit in the password card through the first monitoring unit 31, and sends the first instruction information to the control unit when the operation state is abnormal, wherein the first instruction information is used to instruct the control unit to perform a power-off operation on the operation unit; the second monitoring unit 32 monitors the operation state of the operation unit in the password card, and sends the second instruction information to the control unit when the operation state of the operation unit is power-off, wherein the second instruction information is used to instruct the control unit to perform a power-on operation on the operation unit. By automatically monitoring the operation state of the operation unit in the password card, the control unit resets and powers off the operation unit when an abnormality exists, and then powers on the operation unit after successful power-off, thereby restoring the normal working state of the operation unit of the password card, solving the problem in the related art that the watchdog mechanism cannot perceive some abnormal states of the password card, resulting in poor timeliness of resetting the password card to the normal state, thereby achieving the technical effect of improving the timeliness of resetting the password card to the normal working state.

[0076] Optionally, in the password card failure processing device provided in the embodiment of the present application, the first instruction information includes a reset instruction and a power-off instruction, and the first monitoring unit 31 includes: a first sending module, used to send a reset instruction to the control unit, and obtain a first moment of sending the reset instruction, wherein the reset instruction is used to instruct the operation unit to perform a reset operation; a first judgment module, used to obtain a first time difference, and judge whether a second moment has been reached based on the first time difference, wherein the second moment is after the first moment, and the time difference between the second moment and the first moment is the first time difference; a second sending module, used to send a power-off instruction to the control unit when the second moment is reached.

[0077] Optionally, in the password card failure processing device provided in the embodiment of the present application, the second instruction information includes a reset instruction and a power-on instruction, and the second monitoring unit 32 includes: a third sending module, used to send a power-on instruction to the control unit, and obtain a third time for sending the power-on instruction; a second judgment module, used to obtain a second time difference, and judge whether a fourth time has been reached according to the second time difference, wherein the fourth time is after the third time, and the time difference between the fourth time and the third time is the second time difference; a fourth sending module, used to send a reset instruction to the control unit when the fourth time is reached, wherein the reset instruction is used to instruct the operation unit to perform a reset operation.

[0078] Optionally, in the password card failure processing device provided in the embodiment of the present application, before sending the first instruction information to the control unit, the method also includes: a first sending unit, used to send a data storage instruction to the control unit, and upon receiving the prompt information feedback from the control unit, send the first instruction information to the control unit, wherein the data storage instruction is used to instruct the computing unit to store the job status and job data of the currently executed job.

[0079] Optionally, in the password card failure processing device provided in the embodiment of the present application, after sending the second instruction information to the control unit, the method also includes: a first acquisition unit, used to acquire the moment of executing the first instruction information to be sent to the control unit, and obtain a fifth moment; a judgment unit, used to judge in the database whether there is storage information whose time difference with the fifth moment is less than the target time difference; a second acquisition unit, used to acquire the job status and job data in the storage information if the storage information exists, and send the job status and job data to the operation unit; a second sending unit, used to send a new job to the operation unit if the storage information does not exist.

[0080] Optionally, in the password card failure processing device provided in the embodiment of the present application, monitoring the running state of the operation unit in the password card includes: an identification module, which is used to receive the job processing result sent by the operation unit, and identify whether there is an abnormality in the content of the job processing result; a first determination module, which is used to determine that the running state is an abnormal state when there is an abnormality in the content of the job processing result; a third judgment module, which is used to obtain the sixth moment of receiving the job processing result when there is no abnormality in the content of the job processing result, and judge whether the sixth moment is greater than a preset moment; a second determination module, which is used to determine that the running state is an abnormal state when the sixth moment is greater than the preset moment; a third determination module, which is used to determine that the running state is a normal state when the sixth moment is less than or equal to the preset moment; and a fourth determination module, which is used to determine that the running state of the operation unit is power-off when the job processing result sent by the operation unit is not received.

[0081] Optionally, in the password card failure processing device provided in the embodiment of the present application, when the operating state is an abnormal state, the method further includes: an updating unit, used to update the number of times the operating state is continuously in an abnormal state, and determine whether the number is greater than a preset value; a third sending unit, used to send a prompt message to the operation and maintenance end when the number is greater than a preset value, wherein the prompt message is used to indicate that there is a fault in the operation unit.

[0082] The above-mentioned processing device for password card failure includes a processor and a memory. The above-mentioned first monitoring unit 31, the second monitoring unit 32, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0083] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and by adjusting the kernel parameters, the problem that the watchdog mechanism in the related art cannot detect some abnormal states of the password card, resulting in poor timeliness in resetting the password card to the normal state is solved.

[0084] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0085] The embodiment of the present invention provides a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, the method for processing a password card failure is implemented.

[0086] An embodiment of the present invention provides a processor, which is used to run a program, wherein the method for processing a password card failure is executed when the program is running.

[0087] Figure 4 is a schematic diagram of an electronic device provided according to an embodiment of the present application, such as Figure 4 As shown, an embodiment of the present invention provides an electronic device, the electronic device 40 includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: monitoring the operating state of the operation unit in the password card, and sending a first instruction message to the control unit when the operating state is abnormal, wherein the first instruction message is used to instruct the control unit to perform a power-off operation on the operation unit; monitoring the operating state of the operation unit in the password card, and sending a second instruction message to the control unit when the operating state of the operation unit is power-off, wherein the second instruction message is used to instruct the control unit to perform a power-on operation on the operation unit. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.

[0088] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: monitoring the operating status of the operation unit in the password card, and sending first instruction information to the control unit when the operating status is an abnormal state, wherein the first instruction information is used to instruct the control unit to perform a power-off operation on the operation unit; monitoring the operating status of the operation unit in the password card, and sending second instruction information to the control unit when the operating status of the operation unit is power-off, wherein the second instruction information is used to instruct the control unit to perform a power-on operation on the operation unit.

[0089] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0090] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0091] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0092] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0093] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0094] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0095] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0096] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0097] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for handling a password card failure, characterized in that: include: Monitoring the operation state of the operation unit in the password card, and sending first instruction information to the control unit when the operation state is abnormal, wherein the first instruction information is used to instruct the control unit to perform a power-off operation on the operation unit; Monitor the running state of the operation unit in the password card, and send second instruction information to the control unit when the running state of the operation unit is power-off, wherein the second instruction information is used to instruct the control unit to perform a power-on operation on the operation unit.

2. The method according to claim 1, characterized in that The first instruction information includes a reset instruction and a power-off instruction, and sending the first instruction information to the control unit includes: Sending the reset instruction to the control unit, and acquiring a first time of sending the reset instruction, wherein the reset instruction is used to instruct the operation unit to perform a reset operation; Obtaining a first time difference, and determining whether a second moment has been reached according to the first time difference, wherein the second moment is after the first moment, and the time difference between the second moment and the first moment is the first time difference; When the second moment is reached, the power-off instruction is sent to the control unit.

3. The method according to claim 1, characterized in that The second instruction information includes a reset instruction and a power-on instruction, and sending the second instruction information to the control unit includes: Sending the power-on instruction to the control unit, and acquiring a third time at which the power-on instruction is sent; Obtaining a second time difference, and judging whether a fourth moment has been reached according to the second time difference, wherein the fourth moment is after the third moment, and the time difference between the fourth moment and the third moment is the second time difference; When the fourth moment is reached, the reset instruction is sent to the control unit, wherein the reset instruction is used to instruct the operation unit to perform a reset operation.

4. The method according to claim 1, characterized in that: Before sending the first instruction information to the control unit, the method further includes: A data storage instruction is sent to the control unit, and upon receiving prompt information fed back by the control unit, the first instruction information is sent to the control unit, wherein the data storage instruction is used to instruct the computing unit to store the job status and job data of the currently executed job.

5. The method according to claim 1, characterized in that After sending the second instruction information to the control unit, the method further includes: Acquire the time of executing the sending of the first instruction information to the control unit to obtain a fifth time; Determining in the database whether there is stored information that the time difference with the fifth moment is less than the target time difference; In the case where the storage information exists, obtaining the job status and the job data in the storage information, and sending the job status and the job data to the computing unit; In the case where the storage information does not exist, a new job is sent to the computing unit.

6. The method according to claim 1, characterized in that Monitoring the operating status of the computing unit in the password card includes: receiving the job processing result sent by the computing unit, and identifying whether the content of the job processing result is abnormal; In the case that the content of the job processing result is abnormal, determining that the operation state is an abnormal state; When there is no abnormality in the content of the job processing result, obtaining a sixth time of receiving the job processing result, and determining whether the sixth time is greater than a preset time; When the sixth moment is greater than the preset moment, determining that the operating state is an abnormal state; When the sixth moment is less than or equal to the preset moment, determining that the operating state is a normal state; In the case where the job processing result sent by the computing unit is not received, it is determined that the operating state of the computing unit is power-off.

7. The method according to claim 6, characterized in that When the operating state is an abnormal state, the method further includes: Update the number of times the operating state is continuously in an abnormal state, and determine whether the number is greater than a preset value; When the number is greater than the preset value, a prompt message is sent to the operation and maintenance end, wherein the prompt message is used to indicate that a fault exists in the computing unit.

8. A device for processing a password card failure, characterized in that: include: A first monitoring unit is used to monitor the operation state of the operation unit in the password card, and send first instruction information to the control unit when the operation state is abnormal, wherein the first instruction information is used to instruct the control unit to perform a power-off operation on the operation unit; The second monitoring unit is used to monitor the operating state of the operation unit in the password card, and when the operating state of the operation unit is power-off, send second instruction information to the control unit, wherein the second instruction information is used to instruct the control unit to perform a power-on operation on the operation unit.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the computer-readable storage medium is located is controlled to execute the method for processing a password card failure according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: A memory storing an executable program; A processor is used to run the program, wherein the method for processing a password card failure as claimed in any one of claims 1 to 7 is executed when the program is run.