CN109255265B - Self-recovery method and device for reading abnormal identity card information - Google Patents

Self-recovery method and device for reading abnormal identity card information Download PDF

Info

Publication number
CN109255265B
CN109255265B CN201810866964.2A CN201810866964A CN109255265B CN 109255265 B CN109255265 B CN 109255265B CN 201810866964 A CN201810866964 A CN 201810866964A CN 109255265 B CN109255265 B CN 109255265B
Authority
CN
China
Prior art keywords
card
reading
card reader
information
abnormal
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
Application number
CN201810866964.2A
Other languages
Chinese (zh)
Other versions
CN109255265A (en
Inventor
吉纲
王虹
彭骏
李会丽
谭尧
龚琦
王宇龙
张艳红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Routon Electronic Co ltd
Wuhan Precision Business Machine Co ltd
Original Assignee
Routon Electronic Co ltd
Wuhan Precision Business Machine Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Routon Electronic Co ltd, Wuhan Precision Business Machine Co ltd filed Critical Routon Electronic Co ltd
Priority to CN201810866964.2A priority Critical patent/CN109255265B/en
Publication of CN109255265A publication Critical patent/CN109255265A/en
Application granted granted Critical
Publication of CN109255265B publication Critical patent/CN109255265B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0008General problems related to the reading of electronic memory record carriers, independent of its reading method, e.g. power transfer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/0793Remedial or corrective actions

Abstract

The invention provides a self-recovery method and a device when reading identity card information is abnormal, wherein the method comprises the following steps: if the card reading process learns that the card reader is abnormal, a reset restart instruction is issued to the card reader, so that the card reader can execute self-restart according to the reset restart instruction and read the identity card information after recovering to normal; the card reading process acquires the identity card information and informs the user service process to display the identity card information. According to the invention, the card reading process and the user service process are separated and do not interfere with each other independently, and in the card reading process, if the card reader is abnormal, the card reader can be recovered by itself, and the recovery process does not need manual intervention of a user; the user service process only needs to display the acquired identity card information, and the user service process is not influenced when the card reading process is abnormal, so that the card reading efficiency is improved, and the user experience is also improved.

Description

Self-recovery method and device for reading abnormal identity card information
Technical Field
The invention relates to the technical field of computers, in particular to a self-recovery method and a self-recovery device when identity card information is read abnormally.
Background
With the development of information technology, real-name systems are visible everywhere in our daily life, such as mobile phone business handling real-name systems, ticket real-name systems, express real-name systems and the like. If the identity card is called, the second-generation identity card identification technology cannot be left, namely, the identity card information is read and displayed.
If the card reading process is abnormal, the reading of the identity card fails, and the identity card can be recovered by manual intervention (such as equipment restart). For example, the user is prompted to make a card reading error, and the user interaction process needs to be terminated to read the card again; for example, when the communication between the application layer and the underlying card reader is abnormal in card reading, the card reader needs to be reset after power off, and the user service flow is interrupted at the moment.
When the card reading process is abnormal, the user service process is usually interrupted, so that the interaction of a user interface is influenced, the card reading efficiency is low, and the user experience is influenced.
Disclosure of Invention
In order to overcome the above problems or at least partially solve the above problems, the present invention provides a self-recovery method and apparatus when reading identity card information is abnormal.
In a first aspect, the present invention provides a self-recovery method when reading an identity card information is abnormal, including: if the card reading process learns that the card reader is abnormal, a reset restart instruction is issued to the card reader, so that the card reader can execute self-restart according to the reset restart instruction and read the identity card information after recovering to normal; the card reading process acquires the identity card information and informs the user service process to display the identity card information.
Further, before the step of issuing a reset restart instruction to the card reader if the card reader is known to be abnormal in the card reading process, the self-recovery method for reading the abnormal identity card information further includes: and the card reading process issues a card reading instruction to the card reader so that the card reader can sequentially execute corresponding card searching operation, card selecting operation and basic information reading operation according to the card reading instruction.
Further, after the step of issuing the card reading instruction to the card reader in the card reading process, the self-recovery method when the identity card information is read abnormally further comprises the following steps: the card reading process receives data information returned by the card reader, and if the data information carries error codes, the card reader is judged to be abnormal; the data information is returned to the card reading process after the card reader executes any one of the card searching operation, the card selecting operation and the basic information reading operation.
Wherein, if the card reader process learns that the card reader is abnormal, the step of issuing a reset restart instruction to the card reader further comprises: and if the card reader is abnormal in the card reading process, sequentially issuing a power-off command and a power-on command to the card reader.
Further, the self-recovery method when the identity card information is read abnormally further comprises the following steps: and issuing a card reading pause instruction and/or a card reading interface quitting instruction to the card reader.
Further, the self-recovery method when the identity card information is read abnormally further comprises the following steps: and after the user business process receives the user binding card reading service triggering request, controlling the start and stop of the card reading process by calling a communication interface between the user business process and the card reading process.
In a second aspect, the present invention provides a self-recovery device for reading an identity card information, including: the card reading unit is used for issuing a reset restart instruction to the card reader if the card reader is known to be abnormal, so that the card reader can execute self-restart according to the reset restart instruction and read the identity card information after recovering to normal to acquire the identity card information; the user service unit is used for displaying the identity card information.
In a third aspect, the present invention provides an electronic device comprising: at least one memory, at least one processor, a communication interface, and a bus; the memory, the processor and the communication interface complete mutual communication through a bus, and the communication interface is used for information transmission between the electronic equipment and the card reader; the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the self-recovery method for reading the identity card information in abnormal condition is realized.
In a fourth aspect, the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the self-recovery method when reading an identity card information anomaly as described above.
In a fifth aspect, the present invention provides a self-recovery system for reading abnormal identity card information, including a card reader and the electronic device according to the third aspect or the non-transitory computer-readable storage medium according to the fourth aspect; the card reader is used for reading identity card information and self-restarting.
According to the self-recovery method and device for reading the abnormal information of the identity card, the card reading process is separated from the user service process, the card reading process and the user service process are independent and do not interfere with each other, the card reading process executes the card reading process, if the card reader is abnormal, the card reader can recover by itself, and the recovery process does not need manual intervention of a user; the user service process only needs to display the acquired identity card information, and the user service process is not influenced when the card reading process is abnormal, so that the card reading efficiency is improved, and the user experience is also improved.
Drawings
Fig. 1 is a flowchart of a self-recovery method when reading an abnormal id card information according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another self-recovery method for reading an abnormal ID card information according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a self-recovery apparatus for reading an abnormal ID card information according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
The common practice in each application of identity card information acquisition is to make a user service process realize a card reading process by itself, and if the user service is realized, the user service needs to care about the specific card reading step process, and the defects are as follows: if the card reader is abnormal in the card reading process, the user service process is usually interrupted to read the card again, which greatly affects the interaction of the user interface. The invention has the following inventive concept: and independently starting another background process to execute the card reading process, wherein the card reading process is separated from the user service process. And the user business process is passively informed, the specific step flow of card reading is not concerned, and the identity card information result is displayed only after the read identity card information result is waited.
As an aspect of the embodiment of the present invention, the present embodiment provides a self-recovery method when reading identity card information is abnormal, and referring to fig. 1, which is a flowchart of a self-recovery method when reading identity card information is abnormal according to the embodiment of the present invention, including:
and S1, if the card reading process knows that the card reader is abnormal, sending a reset restart instruction to the card reader so that the card reader can execute self-restart according to the reset restart instruction and read the information of the identity card after the card reader is recovered to be normal.
Specifically, if the card reader state is inquired in the card reading process or the card reader is known to be abnormal after data information returned by the card reader is received, a reset restart instruction is issued to the card reader. And after receiving a reset restart instruction issued by the card reading process, the card reader executes self-restart operation, and continues to execute a card reading process, namely a process of reading the identity card information after the restart until the card reader normally operates and reads the identity card information.
In one embodiment, the card reading process is implemented by using Service (Service) of four large components of an Android platform, the Service is a component without an interface and only needs to implement a card reading process, and the Service is an application program independently executed in a background and a card reading module in an APK (Android package) form.
S2, the card reading process acquires the ID card information and informs the user service process to display the ID card information.
Specifically, after the card reader reads the information of the identification card, the card reading process queries the data information of the card reader, or the card reader reports the read information of the identification card to the card reading process. After the card reading process acquires the ID card information, the card reading process informs a foreground process, namely a user service process, to display the ID card information. After the card reading process is started, the user service process only needs to wait for displaying the notification of the identity card information, and when the card reading process is abnormal, the user service process interface is not influenced.
In one embodiment, the user business process is implemented by using Activity (active window) of four large components of an Android platform, wherein the Activity is an interface component and only needs to implement a user business process, and the Activity is an application program independently executed by a foreground and is a business module existing in an APK form. The card reading module is also an APK, the APK and the APK are independent and do not interfere with each other, and the user service flow is not influenced any more when the card reading flow is abnormal.
In another embodiment, after the card reading process is started, after the identity card information is read, the Android broadcasting mechanism informs the user of the identity card information read by the user service process, the user service process is only responsible for displaying the identity card information in the interface, and any abnormality occurring in the card reading process is not concerned.
In the embodiment, the card reading process and the user service process are separated and do not interfere with each other independently, and the card reading process executes the card reading process, and if the card reader is abnormal, the card reader can be recovered by itself, so that the recovery process does not need manual intervention of a user; the user service process only needs to display the acquired identity card information, and the user service process is not influenced when the card reading process is abnormal, so that the card reading efficiency is improved, and the user experience is also improved.
In one embodiment, before the step of issuing a reset restart instruction to the card reader if the card reader is known to be abnormal in the card reading process, the self-recovery method for reading the abnormal identity card information further includes: and the card reading process issues a card reading instruction to the card reader so that the card reader can sequentially execute corresponding card searching operation, card selecting operation and basic information reading operation according to the card reading instruction.
Specifically, the second generation of identification cards are non-contact IC cards, and the main steps are finding the card, selecting the card, and reading the basic information. When a user triggers the card reading operation, the card reading process issues a card reading instruction to the card reader so that the card reader executes corresponding card reading operation according to the card reading instruction, namely, card searching operation, card selecting operation and basic information reading operation are sequentially executed.
In one embodiment, after the step of issuing the card reading instruction to the card reader in the card reading process, the self-recovery method when the identity card information is read abnormally further includes: the card reading process receives data information returned by the card reader, and if the data information carries error codes, the card reader is judged to be abnormal; the data information is returned to the card reading process after the card reader executes any one of the card searching operation, the card selecting operation and the basic information reading operation.
Specifically, a card reading process in the process of reading the information of the identity card sends a series of card reading instructions to the card reader: a card finding instruction, a card selecting instruction, a basic information reading instruction and the like. The card reader can perform corresponding card searching operation, card selecting operation and basic information reading operation according to the instructions. At any stage of reading the card information, namely in the process of executing any instruction, the card reader returns the data information of the card reading process to the card reading process, and whether the card reader is abnormal can be judged by detecting whether the returned data information carries an error code. Specifically, when the presence of the error code is detected, it can be determined that the card reader is in an abnormal state.
In one embodiment, if the card reader is known to be abnormal in the card reading process, the step of issuing a reset restart instruction to the card reader further includes: and if the card reader is abnormal in the card reading process, sequentially issuing a power-off command and a power-on command to the card reader.
Specifically, the second-generation identification card is a non-contact type IC card, and the main steps are finding a card, selecting a card, and reading basic information, and an error in the card reading process generally indicates that an abnormality occurs in the card reader, and the abnormality can be recovered only after the card reader is powered off and then powered on again for initialization. Therefore, the core of self-recovery is to monitor whether the card reader works abnormally through software, and if the card reader works abnormally, the software immediately sends an instruction to power off the card reader and then powers on the card reader again to recover to a normal working state.
And the card reading process executes a card reading process, whether the card reader is normal can be judged through an execution result after each step is finished, if the card reader is normal, the next step is continued, otherwise, a power-down command of the card reader is executed to power down the card reader, then, a power-up command is executed to power up the card reader, and the card reader is recovered to be normal after the initialization is finished.
According to the embodiment, the power-off instruction and the power-on instruction are sequentially issued to the card reader by the card reading process when the card reader is abnormal, so that the card reading process can be automatically recovered if the card reader is abnormal when the background executes the card reading process, manual intervention of a user is not needed in the recovery process, and the user experience is effectively improved.
To further illustrate the technical solution of the present invention, the following application scenario examples are provided, but not limiting the scope of the present invention.
Fig. 2 is a flowchart of another self-recovery method when reading information of an identity card is abnormal according to an embodiment of the present invention, and as shown in fig. 2, when a card reading process issues a card reading instruction or a reset restart instruction to a card reader, the card reader executes a corresponding card reading operation or a self-restart operation, respectively.
For the execution steps of the card reader, firstly, searching for a card, if the card reader is abnormal, powering off and then powering on to execute self-restarting, and re-executing the card searching operation until the card searching operation is successfully executed, and entering the card selecting operation; if the card reader has no abnormality, the card selection operation is started.
Secondly, the card reader executes card selection operation, if the card reader is abnormal, the power is turned off firstly and then the power is turned on for self-restarting, the card selection operation is executed again until the card searching operation is executed successfully, and basic information reading operation is started; and if the card reader is not abnormal, entering basic information reading operation.
Finally, the card reader executes basic information reading operation, if the card reader is abnormal, the power is turned off firstly and then the power is turned on to execute self-restarting, the basic information reading operation is executed again until the card searching operation is executed successfully, and the read identity card information is stored; and if the card reader is not abnormal, the read identity card information is stored.
In one embodiment, the self-recovery method when reading the identity card information is abnormal further includes: and issuing a card reading pause instruction and/or a card reading interface quitting instruction to the card reader.
Specifically, the card reading process APK mainly issues a card reading instruction, a card reading pause instruction or a card reading exit instruction to the card reader, so that the card reader performs corresponding card reading operation, card reading pause operation or card reading exit operation according to the instruction.
Specifically, according to the above embodiment, the card reading process may issue a card reading pause instruction to the card reader when any one of the three steps of finding a card, selecting a card, and reading basic information is executed. And the card reader pauses the card reading process according to the card reading pause instruction. Optionally, after the card reading process is finished, the card reading process issues an instruction to exit the card reading interface to the card reader. And the card reader withdraws from the card reading interface according to the command of withdrawing from the card reading interface.
In one embodiment, the self-recovery method when reading the identity card information is abnormal further includes: and after the user business process receives the user binding card reading service triggering request, controlling the start and stop of the card reading process by calling a communication interface between the user business process and the card reading process.
Specifically, an aid id (Android Interface definition language) in an Android system is used, through which a communication Interface between a card reading process and a user service process is defined. When a user triggers card reading operation, the APK in the user business process can control the start and stop of the card reading process by binding the card reading service and calling a communication interface between the user business process and the card reading process.
Specifically, according to the embodiment, when the user triggers the card reading operation, the user business process APK binds the card reading service, and controls the card reader to suspend card reading or quit the card reading interface by calling the communication interface between the user business process and the card reading process.
According to the embodiment, the starting and stopping of the card reading process are controlled by calling the communication interface between the user business process and the card reading process, so that the user can control the starting and stopping of the card reading process by binding the card reading service, the card reader can recover from abnormity in the card reading process, manual intervention of the user is not needed, the card reading efficiency is improved, and the user experience is further improved.
As another aspect of the embodiment of the present invention, the present embodiment provides a self-recovery device when reading an identity card information is abnormal, and referring to fig. 3, a schematic structural diagram of a self-recovery device when reading an identity card information is abnormal according to an embodiment of the present invention, including: the system comprises a card reading unit 31 and a user service unit 32, wherein the card reading unit 31 is used for issuing a reset restart instruction to the card reader if the card reader is known to be abnormal, so that the card reader executes self-restart according to the reset restart instruction and reads identity card information after recovering to be normal to acquire the identity card information; the user service unit 32 is used to display identification card information.
It can be understood that the apparatus can be used to implement self-recovery when the identity card information is read abnormally in the above embodiments of the method. Therefore, the description and definition of the self-recovery method when the identity card information is read abnormally in the embodiments may be used for understanding the functional modules in the embodiments of the present invention, and specific reference may be made to the embodiments described above, and details are not described here.
It is understood that, in the embodiment of the present invention, the relevant functional module may be implemented by a hardware processor (hardware processor).
In the embodiment, the card reading process is separated from the user service process, the card reading process and the user service process are independent and do not interfere with each other, and the card reading process can be automatically recovered if the card reader is abnormal, so that the recovery process does not need manual intervention of a user; the user service process only needs to display the acquired identity card information, and the user service process is not influenced when the card reading process is abnormal, so that the card reading efficiency is improved, and the user experience is also improved.
As another aspect of the embodiment of the present invention, the embodiment provides an electronic device, and referring to fig. 4, a schematic structural diagram of the electronic device according to the embodiment of the present invention, including: at least one memory 41, at least one processor 42, a communication interface 43, and a bus 44; the memory 41, the processor 42 and the communication interface 43 complete mutual communication through the bus 44, and the communication interface 43 is used for information transmission between the electronic device and the card reader; the memory 41 stores a computer program that can be executed on the processor 42, and the processor 42 implements the self-recovery method when reading the identification card information is abnormal as described above when executing the computer program.
It is understood that the electronic device at least comprises a memory 41, a processor 42, a communication interface 43 and a bus 44, and the memory 41, the processor 42 and the communication interface 43 form a communication connection with each other through the bus 44 and can complete communication with each other.
When the electronic device is running, the processor 42 calls the program instructions in the memory 41 to execute the self-recovery method for reading the identity card information abnormality provided by the above-mentioned embodiments of the method, for example, including: and if the card reading process learns that the card reader is abnormal, issuing a reset restart instruction to the card reader so that the card reader can execute self-restart according to the reset restart instruction and read the identity card information after the card reader is recovered to be normal.
In addition, the logic instructions in the memory may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
As a further aspect of the embodiments of the present invention, the present embodiment provides a non-transitory computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the self-recovery method when reading the identity card information is abnormal, provided by the above-mentioned method embodiments.
It will be appreciated that the computer instructions described above may be embodied in the form of software functional units and stored on a computer readable storage medium when sold or used as a stand-alone article of manufacture. Alternatively, all or part of the steps of implementing the method embodiments may be implemented by hardware related to program instructions, where the program may be stored in a computer-readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
As a further aspect of the embodiments of the present invention, the present embodiment provides a self-recovery system when reading the identity card information is abnormal, including a card reader and an electronic device or a non-transitory computer-readable storage medium provided in the above apparatus embodiments; the card reader is used for reading identity card information and self-restarting.
In addition, the embodiments of the apparatuses of the present invention are used for executing the embodiments of the methods of the present invention, and specific executing methods and process contents refer to the above embodiments of the methods, which are not described herein again.
According to the electronic equipment, the non-transient computer readable storage medium and the self-recovery system for reading the abnormal identity card information, the card reading process is separated from the user service process, the card reading process and the user service process are independent and do not interfere with each other, the card reading process executes the card reading process, if the card reader is abnormal, the card reader can recover automatically, and the recovery process does not need manual intervention of a user; the user service process only needs to display the acquired identity card information, and the user service process is not influenced when the card reading process is abnormal, so that the card reading efficiency is improved, and the user experience is also improved.
In addition, it should be understood by those skilled in the art that the terms "comprises," "comprising," or any other variation thereof, in the specification of the present invention, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In the description of the present invention, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description. Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects.
However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may still be replaced with equivalent ones; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A self-recovery method for reading abnormal ID card information is characterized by comprising the following steps:
if the card reader is abnormal in the card reading process, issuing a reset restart instruction to the card reader so that the card reader can execute self-restart according to the reset restart instruction and read the identity card information after recovering to normal;
the card reading process acquires the identity card information and informs a user service process to display the identity card information; before the step of issuing a reset restart instruction to the card reader if the card reader is known to be abnormal in the card reading process, the method further includes:
the card reading process issues a card reading instruction to the card reader so that the card reader can sequentially execute corresponding card searching operation, card selecting operation and basic information reading operation according to the card reading instruction;
after the step of issuing a card reading instruction to the card reader in the card reading process, the method further comprises the following steps:
the card reading process receives data information returned by the card reader, and if the data information carries error codes, the card reader is judged to be abnormal; the data information is returned to the card reading process after the card reader executes any one of the card searching operation, the card selecting operation and the basic information reading operation;
the card reading process is separated from the user service process, and the card reading process and the user service process are independent and do not interfere with each other; and the user service process only displays the acquired identity card information, and the user service process is not influenced when the card reading process is abnormal.
2. The method according to claim 1, wherein the step of issuing a reset restart instruction to the card reader if the card reader process knows that the card reader is abnormal further comprises:
and if the card reading process learns that the card reader is abnormal, sequentially issuing a power-off instruction and a power-on instruction to the card reader.
3. The method of claim 1, further comprising:
and issuing a card reading pause instruction and/or a card reading exit instruction to the card reader.
4. The method of claim 1, further comprising:
and after receiving a user binding card reading service triggering request, the user business process controls the start and stop of the card reading process by calling a communication interface between the user business process and the card reading process.
5. A self-recovery device for reading abnormal ID card information, comprising:
the card reading unit is used for issuing a reset restart instruction to the card reader if the card reader is known to be abnormal, so that the card reader can execute self-restart according to the reset restart instruction and read the identity card information after recovering to normal to acquire the identity card information;
the method comprises the steps that if a card reading process learns that a card reader is abnormal, a reset restart instruction is issued to the card reader, the card reading process issues a card reading instruction to the card reader, so that the card reader can sequentially execute corresponding card searching operation, card selecting operation and basic information reading operation according to the card reading instruction;
after the step of issuing a card reading instruction to the card reader in a card reading process, the card reading process receives data information returned by the card reader, and if the data information carries an error code, the card reader is judged to be abnormal;
the data information is returned to the card reading process after the card reader executes any one of the card searching operation, the card selecting operation and the basic information reading operation;
the card reading process is separated from the user service process, and the card reading process and the user service process are independent and do not interfere with each other; the user service process only displays the acquired identity card information, and the user service process is not influenced when the card reading process is abnormal;
and the user service unit is used for displaying the identity card information.
6. An electronic device, comprising: at least one memory, at least one processor, a communication interface, and a bus;
the memory, the processor and the communication interface complete mutual communication through the bus, and the communication interface is used for information transmission between the electronic equipment and a card reader;
the memory has stored therein a computer program operable on the processor, which when executed by the processor, implements the method of any of claims 1 to 4.
7. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method according to any one of claims 1 to 4.
8. A self-recovery system for reading identity card information when the identity card information is abnormal, comprising a card reader and the electronic device of claim 6 or the non-transitory computer readable storage medium of claim 7;
the card reader is used for reading identity card information and self-restarting.
CN201810866964.2A 2018-08-01 2018-08-01 Self-recovery method and device for reading abnormal identity card information Active CN109255265B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810866964.2A CN109255265B (en) 2018-08-01 2018-08-01 Self-recovery method and device for reading abnormal identity card information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810866964.2A CN109255265B (en) 2018-08-01 2018-08-01 Self-recovery method and device for reading abnormal identity card information

Publications (2)

Publication Number Publication Date
CN109255265A CN109255265A (en) 2019-01-22
CN109255265B true CN109255265B (en) 2021-09-14

Family

ID=65048704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810866964.2A Active CN109255265B (en) 2018-08-01 2018-08-01 Self-recovery method and device for reading abnormal identity card information

Country Status (1)

Country Link
CN (1) CN109255265B (en)

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201250061Y (en) * 2008-07-17 2009-06-03 宝山钢铁股份有限公司 Hoisting height display instrument of hoisting mechanism
CN101354677B (en) * 2008-09-11 2014-12-03 青岛海信移动通信技术股份有限公司 Method for detecting and restoring application program running state and restoring device thereof
JP5478975B2 (en) * 2009-08-04 2014-04-23 キヤノン株式会社 Image reading apparatus, image reading apparatus control method, and program
CN101661320A (en) * 2009-09-25 2010-03-03 宇龙计算机通信科技(深圳)有限公司 Method for power-fail restarting
CN101909189B (en) * 2010-07-22 2013-01-09 杭州海康威视数字技术股份有限公司 File recovery method, system and DVR (Digital Video Recorder)
CN201979809U (en) * 2010-11-26 2011-09-21 航天信息股份有限公司 Stylus printer and control circuit thereof
CN102708031B (en) * 2012-05-15 2016-08-31 浪潮电子信息产业股份有限公司 A kind of method of quick location failure memory
CN103646430B (en) * 2013-11-30 2016-03-30 四川久远新方向智能科技有限公司 BRT rapid public transportation system automatic coin ticket machine self-diagnosing method
CN104010077B (en) * 2014-05-12 2016-10-05 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN204087119U (en) * 2014-08-28 2015-01-07 苏州众宇网络科技有限公司 The shatter-proof keyboard of waterproof of high availability
CN105791513A (en) * 2014-12-22 2016-07-20 深圳富泰宏精密工业有限公司 Anomaly processing system and method for baseband chips
CN106095394B (en) * 2015-04-28 2018-08-21 京瓷办公信息系统株式会社 Electronic equipment and method for restarting
CN105700973A (en) * 2016-01-14 2016-06-22 汉柏科技有限公司 Restart method and device for CLI (command line interface) fault
CN106275635B (en) * 2016-08-09 2017-11-28 珠海格力电器股份有限公司 A kind of baling press monitoring method, apparatus and system
CN106155348A (en) * 2016-08-31 2016-11-23 上海卓易科技股份有限公司 A kind of keyboard output intent and device
CN106230664B (en) * 2016-09-08 2020-02-04 国电南瑞科技股份有限公司 Method for monitoring and self-recovering state abnormity of front-end processor of scheduling master station
US10146626B2 (en) * 2016-09-29 2018-12-04 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Detecting and handling an expansion card fault during system initialization
CN106789306B (en) * 2016-12-30 2021-01-26 深圳市风云实业有限公司 Method and system for detecting, collecting and recovering software fault of communication equipment
CN107479528A (en) * 2017-06-19 2017-12-15 中国烟草总公司广东省公司 The fault warning system and fault handling method of agricultural intelligent device
CN107390110A (en) * 2017-06-20 2017-11-24 广东科学技术职业学院 A kind of method, apparatus and system tested automatically PCBA
CN207074437U (en) * 2017-07-03 2018-03-06 惠州市天泽盈丰物联网科技股份有限公司 A kind of erect-position read head
CN206991477U (en) * 2017-07-13 2018-02-09 深圳怡化电脑股份有限公司 ATM card reader safety device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
An improved electronic voting machine using a microcontroller and a smart card;Dichou Karima等;《2014 9th International Design and Test Symposium (IDT)》;20150212;第219-224页 *

Also Published As

Publication number Publication date
CN109255265A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
US8543164B2 (en) Sleep method, wake method and mobile terminal device
US10514930B2 (en) Setting a startup parameter and controlling startup of a mainboard
CN109542744B (en) Method, device, storage medium and terminal for detecting abnormal starting problem of terminal
CN104220985A (en) Method and apparatus for enhancing a hibernate and resume process using user space synchronization
WO2009046284A1 (en) Firmware image update and management
CN104461631B (en) A kind of system OTA upgrade methods and device
CN104185836A (en) Method and system for verifying proper operation of computing device after system change
CN109683970A (en) A kind of amending method of server FRU information, modification system and relevant apparatus
CN113672306B (en) Server component self-checking abnormity recovery method, device, system and medium
CN112667442B (en) Control method, device and equipment based on nonvolatile memory device starting system
CN109255265B (en) Self-recovery method and device for reading abnormal identity card information
CN109669728A (en) The software closedown method and device of vxworks operating system
US20230087221A1 (en) Detection fields of view
US11789746B2 (en) Computing device reboot
CN106972963B (en) Service module starting control method and starting control method after crash restart
CN112416394B (en) Service upgrading method and device, storage medium and electronic equipment
CN113075992B (en) Memory power-on method, device, equipment and computer readable storage medium
CN106708541A (en) Version upgrading processing method and apparatus
CN114741119A (en) System starting method and device, computer equipment and storage medium
CN108509252B (en) Virtual machine starting device and method and host
CN103473081A (en) Operant method after system updating of terminal and terminal
CN114138314A (en) CPU microcode upgrading method, system and related assembly
CN114153503A (en) BIOS control method, device and medium
CN113127029A (en) Firmware updating method and device, electronic equipment and storage medium
JP2015102989A (en) Peripheral device control fault avoidance method, peripheral device control fault avoidance program, processing apparatus, and processing system

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