Card information acquisition and judgment method and system and medium
By integrating the card processing module and designing a unified interface, the complex problem of information synchronization in traditional financial self-service terminals is solved, and the synchronization processing of multi-card information is realized, which improves processing speed and user experience.
Patent Information
- Application Number
- CN202411041644.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-07-31
AI Technical Summary
Traditional financial self-service terminals operate the same hardware due to multiple sub-logical services, resulting in complex information synchronization and sharing, low efficiency, and cannot fully reflect the advantages of card readers, such as the ability to read information of multiple types of cards at the same time.
By integrating different types of card processing modules, multiple functions are integrated into one logical service, and the status acquisition module, information acquisition module, information integration module and information processing module are used to realize the detection and data synchronization processing of multiple types of cards. Provide a unified data format and interface to improve processing efficiency.
It realizes the detection and processing of multiple types of cards simultaneously, improves processing speed and user experience, and improves the data processing efficiency and user response speed of financial self-service terminals.
Smart Images

Figure CN119068606A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of card readers, and more specifically, to a card information acquisition and judgment method, system and medium. Background Art
[0002] As a common and important equipment in the financial field, self-service terminals are widely used in various banks. At present, existing financial self-service equipment usually consists of multiple peripheral modules, such as contact card readers, contactless card readers, card swipes, ID card readers, card issuers, etc. Customers use different peripheral modules for different services; with the miniaturization of equipment, this kind of hardware product has gradually appeared, which integrates two or more sub-modules of contact card readers, contactless card readers, card swipes, and ID card readers together and shares a main control board.
[0003] Traditional financial self-service terminals generally use multiple sub-logical services when applied, and each sub-logical service corresponds to a sub-function of the hardware. This approach makes little change to the existing business logic, but because different logical services operate the same hardware, it is necessary to consider the synchronization and sharing of information, as well as the queuing of execution commands. This is highly complex, difficult to synchronize and share information, and inefficient. Because the upper logical application layer is divided into different logical services, some advantages of the card reader, such as reading multiple types of card information at the same time, cannot be reflected.
[0004] Therefore, how to optimize the efficiency of the card reader is exactly the technical problem to be solved by this application. Summary of the invention
[0005] In view of the shortcomings of the prior art, on the one hand, the present invention proposes a card information acquisition and judgment method, which can detect multiple types of cards at the same time by integrating different types of card processing modules and two or more functions into one logical service.
[0006] The technical solution of the present invention is as follows:
[0007] A card information acquisition and judgment method is provided, which performs information acquisition and judgment through the following process:
[0008] St10, the status acquisition module detects the types of all cards read;
[0009] St20, the information acquisition module detects the content information of all the cards read;
[0010] St30, the information integration module integrates the content information of all the cards read into a unified data format to form a unified return format information;
[0011] St40, the information processing module obtains the content information of each card by parsing the return format information of the card. The user selects a business, and the information processing module filters out cards that meet the corresponding business based on the business selected by the user. After the user selects a specific card, the interface of the content information of the corresponding card is displayed.
[0012] According to a second aspect of the present invention, there is provided an information acquisition and judgment system, comprising a state acquisition module, an information acquisition module, an information integration module and an information processing module which are connected in sequence.
[0013] The status acquisition module is used to detect the type of card.
[0014] The information acquisition module is used to read the content information of the card.
[0015] The information integration module is used to integrate the content information of the read cards into a unified data format to form a unified return format information.
[0016] The information processing module is used to parse the returned format information of the card to obtain the content information of each card.
[0017] According to a third aspect of the present invention, there is provided an information acquisition and judgment medium, on which a computer program is stored, and when the computer program is executed by a processor, a process of a card information acquisition and judgment method is implemented.
[0018] In summary, the above technical solution has the following beneficial effects: the status acquisition module and information acquisition module of the present invention integrate different types of card processing modules, and integrate two or more functions into one logical service, which can detect multiple types of cards at the same time, and then process multiple types of data at the same time through the information integration module and the information processing module, so as to realize the synchronous processing of multi-card information. Compared with the method of using multiple sub-logical services in traditional financial self-service terminals, the processing speed of the present application is faster, and the content information of all cards is processed to form completion information without waiting for the user to select a card, so that the user's response speed is faster when using it. The method of the present application can improve the data processing efficiency and user experience of the financial self-service terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A module connection diagram of a card information acquisition and judgment method;
[0020] Figure 2 This is an information interaction diagram of a card information acquisition and judgment method.
[0021] Reference numerals
[0022] 10. Status acquisition module; 20. Information acquisition module; 21. Hardware abstraction layer; 30. Information integration module; 40. Information processing module; 50. Card detection module. DETAILED DESCRIPTION
[0023] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] like Figure 1 As shown, a card information acquisition and judgment method is performed through the following process:
[0025] St10, the status acquisition module 10 detects the types of all read cards.
[0026] St20, the information acquisition module 20 detects the content information of all the cards read.
[0027] St21, the status acquisition module 10 is preset with values of different cards. When the status acquisition module 10 detects a card, it automatically detects and generates a value corresponding to the card type. The status acquisition module 10 is a key component in the system. It has an intelligent judgment mechanism and can automatically identify and process different types of cards. When the status acquisition module 10 detects only one card, the self-service terminal system directly generates a business interface for the corresponding card. When the status acquisition module 10 detects multiple cards, a card selection interface for the corresponding card is generated on the self-service terminal system.
[0028] Specifically, the value of the card preset by the status acquisition module 10 is in the form of a power of 2. The status acquisition module 10 defines different types of cards as different values, for example, a contact IC card is represented as a value of 2, a contactless IC card is represented as a value of 4, an ID card is represented as a value of 8, etc. These values are in the form of a power of 2, which is convenient for logical operations and expansion. Further, an invalid card / unsupported card can be represented as a value of 1, and the above values can be modified to any other power of 2 according to the situation. Further, the system converts the corresponding values into binary and performs "OR operation" bit by bit to judge different cards.
[0029] like Figure 2As shown, further, the data information acquisition module 20 is provided with a hardware abstraction layer 21, and the hardware abstraction layer 21 is used to provide a unified interface so that the upper-level software can read the content information of multiple cards at the same time. The state acquisition module 10 and the information acquisition module 20 realize information acquisition based on a variety of different sensor hardware devices. The present invention designs a hardware abstraction layer 21 to manage different sensor hardware device operations, and adopts multi-threading technology and parallel processing architecture to provide a unified interface for the upper-level software to realize the simultaneous reading of multi-card information. The main function of the hardware abstraction layer 21 is to provide a unified interface so that the upper-level software can access and control the hardware devices in a consistent manner, regardless of the specific models of these hardware devices and the types of cards supported. In this way, when the hardware devices are replaced or upgraded, the software does not need to be modified a lot.
[0030] When registering hardware devices, the hardware abstraction layer 21 of the present invention can be configured to identify the hardware devices connected to the self-service terminal system, pay special attention to the card types and related information supported by the hardware devices, and register them in the system so that the upper-level software can use these hardware devices. When identifying hardware devices, the hardware abstraction layer 21 of the present invention is responsible for identifying the device and determining its functions and characteristics. It needs to identify the types and characteristics of the registered cards in more detail in order to correctly handle different types of cards. When multi-threading and parallel processing are used, the present invention can simultaneously process operation requests of multiple hardware devices or multiple types of cards, thereby improving the response speed and processing power of the system. When standardizing interfaces, the present invention defines unified interface standards, including connecting devices, obtaining device capabilities, initializing devices, detecting card status, reading card information, etc.
[0031] Furthermore, the interface provided by the hardware abstraction layer 21 distinguishes different functions by setting definitions. The standardized interface may need to be specially designed to support the reading and processing of information of different card types, as well as the interaction with specific business logic. Specifically, definition identifiers are added from the interface to distinguish different functions. For example: the identifier for obtaining the version of the DN code reading control can be defined as "#000#", the identifier for obtaining ID verification data can be defined as "#111#", and the identifier for obtaining authentication code data can be defined as "#222#".
[0032] St30, the information integration module 30 integrates the content information of all the cards read into a unified data format to form a unified return format information.
[0033] The information integration module 30 integrates the information of each card read according to a preset format, and separates each card information with a preset multiple separator to form a unified return format information. Information formatting: Organize each card information read according to a preset format, and the type and type of the format support configuration and expansion. For example, the key=value method is adopted, where the key represents the card type and the value represents the read card information. Information integration: Integrate the information of all cards, and separate each card information with a preset multiple separator to form a unified return format. The multiple separators are preferably more than three uncommon separators, which can avoid conflicts with the separators developed later, such as "ID card data" $$$"IC card data", which is separated by three consecutive $ symbols or other continuous symbols that do not conflict with the card data. The preset separators can be flexibly configured. Each type of card data may have multiple fields, such as ID card information has name, address, validity period, etc. Each type of card data also has its own different identifiers and field segmentation.
[0034] St40, the information processing module 40 parses the read return format information to parse out the content information of each card; the information processing module 40 is connected to the self-service terminal system, the user selects the service through the self-service terminal system, and the information processing module 40 screens out the cards that meet the conditions; the user selects the card through the self-service terminal system, and the information processing module 40 extracts the content information of the corresponding card.
[0035] St41, the information processing module 40 first parses the read return format information to parse out the content information of each card.
[0036] St42: The user selects a service through the self-service terminal system, and the information processing module 40 selects cards that meet the conditions.
[0037] St43, the user selects a card through the self-service terminal system, and the information processing module 40 extracts the content information of the corresponding card.
[0038] St44, when the user selects a service through the self-service terminal system and the information processing module 40 screens out only one card that meets the conditions, the self-service terminal system directly displays the content information of the corresponding card.
[0039] The timing diagram of system operation is as follows.
[0040] t0: Thread 1: Initializes the hardware abstraction layer 21; Thread 2: Initializes the user interface.
[0041] t1: Thread 1: detects card insertion; Thread 2: displays card insertion prompt.
[0042] t2: Thread 1: read card information; Thread 2: wait for card information reading to complete.
[0043] t3: Thread 1: sends card information to the information integration module 30; Thread 2: receives card information.
[0044] t4: Thread 1: Waiting for the user to select the service type; Thread 2: Displaying the service type selection interface.
[0045] t5: User: selects the service type; Thread 2: sends the user selection to the data information processing module 40.
[0046] t6: Thread 1: filter card information according to business type; Thread 2: display filter results.
[0047] t7: User: selects a card; Thread 2: sends the user selection to Thread 1.
[0048] t8: Thread 1: Execute business operations according to user selection; Thread 2: Display operation results.
[0049] t9: Thread 1: completes the operation and waits for the next card insertion; Thread 2: waits for the user to further operate or exit.
[0050] St50, the self-service terminal system collects the user's facial image through the camera, and determines whether it is safe based on the facial image; when the self-service terminal system determines that it is not safe, the self-service terminal system does not display the content information parsed by the information processing module 40; when the self-service terminal system determines that it is safe, the self-service terminal system displays the content information parsed by the information processing module 40 for the user to operate. Specifically, when the user approaches the self-service terminal system, the infrared sensor on the self-service terminal system detects that someone is approaching, and then the camera automatically starts to collect the user's facial image. After the user puts in the card, the state acquisition module 10, the information acquisition module 20 and the information integration module 30 run in sequence to form a unified return format information. When the self-service terminal system determines that it is not safe through the facial image collected by the camera, the information processing module 40 stops parsing the return format information of the card; when the self-service terminal system determines that it is safe through the facial image collected by the camera, the information processing module 40 parses the return format information of the card and provides the user with subsequent operations.
[0051] St51, the self-service terminal system determines whether it is safe based on the facial image, including the following process: the self-service terminal system retrieves the facial feature data associated with the card in the database through the content information parsed by the information processing module 40, and uses the feature matching algorithm to authenticate the facial feature data and the user's facial image collected by the camera; when the identity authentication is successful, the self-service terminal system determines it is safe; when the identity authentication fails, the self-service terminal system determines it is unsafe. When the self-service terminal system detects multiple faces or faces that are not user identities through the camera, the self-service terminal system determines it as an abnormal situation and does not perform identity authentication. The self-service terminal system determines it as an abnormal situation and does not display the content information parsed by the information processing module 40.
[0052] St52, also includes a card detection module 50 connected to the self-service terminal system, the card detection module 50 is used to detect the size and thickness of the card, the self-service terminal system is preset with a standard size, a standard thickness, a size deviation value and a thickness deviation value; when the self-service terminal system determines that the difference between the detected size and the standard size is greater than the size deviation value, it is judged as abnormal and the card is ejected; when the self-service terminal system determines that the difference between the detected thickness and the standard thickness is greater than the thickness deviation value, it is judged as abnormal and the card is ejected. The counterfeit card identification mechanism is a technology used in the financial self-service terminal system to identify and reject invalid or counterfeit cards. The mechanism determines the validity of the card by analyzing the physical properties and data information of the card. After the user puts the card into the self-service terminal system, the card detection module 50 detects the card before the status acquisition module 10. The card detection module 50 measures the size and thickness of the card through the sensor. The self-service terminal system sets the size deviation value and the thickness deviation value θ respectively for judging the deviation. The judgment process is implemented by the following code, if|dmeasured-dstandard|>θ: Invalid=True; Otherwise: Invalid=False, where dmeasured is the measured size and dstandard is the standard size.
[0053] The financial self-service terminal system can also establish an information judgment standard library for each type of card, and can add and maintain it. For example, the second track data of the magnetic stripe card; the ATR information of the contact IC card; the ATS information of the contactless IC card, etc. If the corresponding information cannot be read, it is considered an illegal card. When the bank card is issued, the hash value of the corresponding card information is added to the database. After the card reader reads the card data, the application uses the hash function to summarize the read data and compare it with the hash value stored in the database. If the comparison is inconsistent, it is considered an illegal card. The formula is: Hash (Card Data) = Hashing Function (Read Data). When the self-service terminal system determines that it is an abnormal, unsafe or illegal card, a prompt will be generated on the interface.
[0054] According to the second aspect of the present invention, a card information acquisition and judgment system is provided, which includes a status acquisition module 10, an information acquisition module 20, an information integration module 30 and an information processing module 40 connected in sequence; the status acquisition module 10 is used to detect the type of card; the information acquisition module 20 is used to read the content information of the card; the information integration module 30 is used to integrate the read content information of the card into a unified data format to form a unified return format information; the information processing module 40 is used to parse the return format information of the card to obtain the content information of each card.
[0055] According to a third aspect of the present invention, there is provided a card information acquisition and judgment medium, on which a computer program is stored, and when the computer program is executed by a processor, a process of the card information acquisition and judgment method is implemented.
[0056] The status acquisition module 10 and the information acquisition module 20 of the present invention integrate different types of card processing modules, and integrate two or more functions into one logical service, so that multiple types of cards can be detected at the same time, and then multiple types of data can be processed at the same time through the information integration module 30 and the information processing module 40, so as to realize the synchronous processing of multi-card information. Compared with the method of using multiple sub-logical services in traditional financial self-service terminals, the processing speed of the present application is faster, and the content information of all cards is processed first to form completion information without waiting for the user to select a card, so that the user's response speed is faster when using it. The method of the present application can improve the data processing efficiency and user experience of the financial self-service terminal.
[0057] The above are only preferred embodiments of the present invention. The protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A card information acquisition and judgment method, characterized in that: Information acquisition and judgment are carried out through the following process: It comprises a state acquisition module (10), an information acquisition module (20), an information integration module (30) and an information processing module (40) which are connected in sequence; The status acquisition module (10) detects the types of all cards read; The information acquisition module (20) detects the content information of all the cards read; The information integration module (30) integrates the content information of all the cards read into a unified data format to form a unified return format information; The information processing module (40) obtains the content information of each card by parsing the returned format information of the card. The user selects a service, and the information processing module (40) selects cards that meet the corresponding service according to the service selected by the user. After the user selects a specific card, the interface of the content information of the corresponding card is displayed.
2. A card information acquisition and judgment method according to claim 1, characterized in that: The state acquisition module (10) is preset with numerical values of different cards, and when the state acquisition module (10) detects a card, it automatically detects and generates a numerical value corresponding to the card type.
3. A card information acquisition and judgment method according to claim 1, characterized in that: The data information acquisition module (20) is provided with a hardware abstraction layer (21), and the hardware abstraction layer (21) is used to provide a unified interface so that the upper layer software can read the content information of multiple cards at the same time.
4. A card information acquisition and judgment method according to any one of claims 1 to 3, characterized in that: The information integration module (30) integrates the content information of each card read according to a preset format, and separates each card information with a plurality of preset separators to form unified return format information.
5. A card information acquisition and judgment method according to claim 4, characterized in that: The information processing module (40) parses the read return format information, thereby parsing the content information of each card; The information processing module (40) is connected to the self-service terminal system, and the user selects a service through the self-service terminal system, and the information processing module (40) selects cards that meet the conditions; The user selects a card through the self-service terminal system, and the information processing module (40) extracts the content information of the corresponding card.
6. A card information acquisition and judgment method according to claim 5, characterized in that: The self-service terminal system collects the user's facial image through a camera and determines whether it is safe based on the facial image; When the self-service terminal system determines that it is unsafe, the self-service terminal system does not display the content information parsed by the information processing module (40); When the self-service terminal system determines that it is safe, the self-service terminal system displays the content information parsed by the information processing module (40) for user operation.
7. A card information acquisition and judgment method according to claim 6, characterized in that: The self-service terminal system determines whether it is safe based on the facial image, including the following process: The self-service terminal system retrieves facial feature data associated with the card from the database through the content information parsed by the information processing module (40), and uses a feature matching algorithm to perform identity authentication on the facial feature data and the user's facial image captured by the camera; When the identity verification is successful, the self-service terminal system is judged to be safe; When the identity authentication fails, the self-service terminal system is judged to be unsafe.
8. A card information acquisition and judgment method according to claim 6, characterized in that: It also includes a card detection module (50) connected to the self-service terminal system, the card detection module (50) is used to detect the size and thickness of the card, and the self-service terminal system is preset with a standard size, a standard thickness, a size deviation value, and a thickness deviation value; When the self-service terminal system determines that the difference between the detected size and the standard size is greater than the size deviation value, it is determined to be abnormal and the card is ejected; When the self-service terminal system determines that the difference between the detected thickness and the standard thickness is greater than the thickness deviation value, it is determined to be abnormal and the card is ejected.
9. A card information acquisition and judgment system, characterized in that: The system is used to execute the card information acquisition and judgment method as described in claim 8, and includes a status acquisition module (10), an information acquisition module (20), an information integration module (30) and an information processing module (40) connected in sequence; the status acquisition module (10) is used to detect the type of the card.
10. A card information acquisition and judgment medium, characterized in that: The medium stores a computer program, and when the computer program is executed by the processor, the process of the card information acquisition and judgment method as claimed in claim 8 is implemented.
Citation Information
Patent Citations
Method for automatically acquiring type of bank card
CN106682556A
Expansion card identifying method, device and frequency converter
CN108052094A
Configuration-based multi-data card automatic identification and unloading method
CN113064605A
All-in-one card reader calling method and system for self-service terminal and medium
CN114564974A
Data reading method and device, equipment and storage medium
CN117032583A
