A card information acquisition and judgment method, system and medium
By integrating status acquisition, information acquisition, integration, and processing modules, the problem of information synchronization and sharing difficulties caused by multiple logical services in financial self-service terminals has been solved, realizing the synchronous processing of information from multiple cards and improving processing speed and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2026-03-24
AI Technical Summary
Existing financial self-service terminals suffer from difficulties in information synchronization and sharing, resulting in low efficiency and an inability to simultaneously read information from multiple types of cards, due to multiple sub-logic services operating on the same hardware.
By integrating the status acquisition module, information acquisition module, information integration module, and information processing module, different types of card processing modules are integrated into a single logical service. A hardware abstraction layer provides a unified interface, enabling multi-threaded parallel processing, forming a unified data format, and parsing card content information.
It enables the simultaneous processing of information from multiple card types, improving processing speed and user experience, reducing waiting time, and enhancing the data processing efficiency of financial self-service terminals.
Smart Images

Figure CN119068606B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of card reader technology, and more specifically, to a method, system, and medium for acquiring and judging card information. Background Technology
[0002] Self-service terminals are commonly used and important equipment in the financial sector, widely applied in various banks. Currently, existing financial self-service equipment typically consists of multiple peripheral modules, such as contact card readers, contactless card readers, card swipes, ID card readers, card issuers, etc. Different peripheral modules are used by customers for different transactions. With the miniaturization of equipment, hardware products have gradually emerged that integrate two or more sub-modules from contact card readers, contactless card readers, card swipes, and ID card readers into a single main control board.
[0003] Traditional financial self-service terminals typically employ multiple sub-logic services, each corresponding to a specific function of the hardware. While this approach involves minimal modification to existing business logic, the complexity is high due to the need to consider information synchronization and sharing, as well as command queuing, since different logical services operate on the same hardware. Information synchronization and sharing are difficult, resulting in low efficiency. Furthermore, because the upper-layer application logic is divided into different logical services, some advantages of card readers, such as the ability to simultaneously read multiple card types, cannot be realized.
[0004] Therefore, how to optimize the efficiency of the card reader is the technical problem that this application aims to solve. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention proposes a method for acquiring and judging card information. By integrating different types of card processing modules, two or more functions are integrated into a single logical service, enabling the simultaneous detection of multiple card types.
[0006] The technical solution of the present invention is as follows:
[0007] A method for acquiring and judging card information involves acquiring and judging information through the following process:
[0008] St10, the status acquisition module detects the type of all cards read;
[0009] St20, the information acquisition module detects and reads the content information of all cards;
[0010] St30, the information integration module integrates the content information of all the cards read into a unified data format, forming a unified return format information;
[0011] St40, the information processing module obtains the content information of each card by parsing the returned format information of the card. When the user selects a service, the information processing module filters out cards that match the corresponding service. After the user selects a specific card, the interface displays the content information of the corresponding card.
[0012] According to a second aspect of the present invention, an information acquisition and judgment system is provided, comprising a status acquisition module, an information acquisition module, an information integration module, and an information processing module 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, forming a unified return format information.
[0016] The information processing module is used to parse the returned format information of the cards to obtain the content information of each card.
[0017] According to a third aspect of the present invention, an information acquisition and judgment medium is provided, wherein a computer program is stored on the medium, and when the computer program is executed by a processor, the process of card information acquisition and judgment is implemented.
[0018] In summary, the above technical solution has the following beneficial effects: The status acquisition module and information acquisition module of this invention integrate different types of card processing modules, combining two or more functions into one logical service. This allows for the simultaneous detection of multiple card types. Then, through the information integration module and information processing module, multiple types of data can be processed simultaneously, achieving synchronous processing of multi-card information. Compared to the traditional financial self-service terminal method using multiple sub-logical services, this application offers faster processing speed. It processes all card information to form completion information before the user selects a card, resulting in faster user response. The method of this application improves the data processing efficiency and user experience of financial self-service terminals. Attached Figure Description
[0019] Figure 1 This is a module connection diagram for a method of obtaining and judging card information;
[0020] Figure 2 This is an information interaction diagram for a method of obtaining and judging card information.
[0021] Figure Labels
[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 Implementation
[0023] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0024] like Figure 1 As shown, a method for obtaining and judging card information involves the following process:
[0025] St10, the status acquisition module 10 detects the type of all cards read.
[0026] St20, the information acquisition module 20 detects and reads the content information of all cards.
[0027] St21, the status acquisition module 10 has preset values for different cards. When the status acquisition module 10 detects a card, it automatically detects and generates the corresponding card type value. The status acquisition module 10 is a key component in the system. It has an intelligent judgment mechanism that 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 the corresponding card's business interface. When the status acquisition module 10 detects multiple cards, it generates the corresponding card selection interface on the self-service terminal system.
[0028] Specifically, the status acquisition module 10 presets the card values to be powers of 2. The status acquisition module 10 defines different types of cards as different values; for example, contact IC cards are represented by the value 2, contactless IC cards by the value 4, and ID cards by the value 8, etc. These values are in powers of 2 form for easy logical operations and expansion. Furthermore, invalid / unsupported cards can be represented by the value 1. The above values can be modified to any other power of 2 form as needed. Further, the system converts the corresponding values to binary and performs a bitwise OR operation to determine the different cards.
[0029] like Figure 2As shown, the data acquisition module 20 further includes a hardware abstraction layer 21. This layer provides a unified interface, allowing upper-layer software to simultaneously read the content information of multiple cards. The status acquisition module 10 and the information acquisition module 20 acquire information based on various sensor hardware devices. This invention designs a hardware abstraction layer 21 to manage the operation of different sensor hardware devices and employs multi-threading technology and a parallel processing architecture to provide a unified interface for upper-layer software, enabling simultaneous reading of information from multiple cards. The main function of the hardware abstraction layer 21 is to provide a unified interface, allowing upper-layer software to access and control hardware devices in a consistent manner, regardless of the specific model of these hardware devices or the types of cards they support. This way, when hardware devices are replaced or upgraded, the software does not require extensive modifications.
[0030] During hardware device registration, the hardware abstraction layer 21 of this invention can be configured to identify hardware devices connected to the self-service terminal system, paying particular attention to the card types and related information supported by the hardware devices, and registering them in the system so that upper-layer software can use these hardware devices. During hardware device identification, the hardware abstraction layer 21 of this invention is responsible for identifying the device and determining its functions and characteristics. It needs to more precisely identify the types and characteristics of the cards it has registered in order to correctly handle different types of cards. In multi-threaded and parallel processing, this invention can simultaneously handle operation requests from multiple hardware devices or multiple types of cards, improving the system's response speed and processing capacity. Regarding standardized interfaces, this invention defines a unified interface standard, including connecting devices, obtaining device capabilities, device initialization, detecting card status, and reading card information.
[0031] Furthermore, the interfaces provided by the hardware abstraction layer 21 differentiate between different functions through defined settings. Standardized interfaces may require special design to support the reading and processing of information from different card types, as well as interaction with specific business logic. Specifically, this involves adding defined identifiers to the interfaces to distinguish between different functions. For example, the identifier for obtaining the DN code reading control version 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 and the information integration module 30 integrate 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 from each card according to a preset format, and separates each piece of card information using multiple preset delimiters to form a unified return format. Information formatting: Organizes each piece of card information according to a preset format, and the format type and category can be configured and extended. For example, a key=value format can be used, where the key represents the card type and the value represents the read card information. Information integration: Integrates the information from all cards, and separates each piece of card information using multiple preset delimiters to form a unified return format. Multiple delimiters are preferably three or more uncommon delimiters to avoid conflicts with delimiters developed later. For example, “ID card data” $$$ “IC card data” can be separated using three consecutive $ symbols or other consecutive symbols that do not conflict with card data. The preset delimiters can be flexibly configured. Each type of card data may have multiple fields, such as name, address, and validity period for ID card information. Each type of card data also has its own different identifiers and field separations.
[0034] St40 and the information processing module 40 parse the returned format information to extract the content information of each card. The information processing module 40 is connected to the self-service terminal system. When the user selects a service through the self-service terminal system, the information processing module 40 filters out cards that meet the criteria. When the user selects a card through the self-service terminal system, the information processing module 40 extracts the content information of the corresponding card.
[0035] St41, the information processing module 40 first parses the returned format information to extract the content information of each card.
[0036] St42, Users select services through the self-service terminal system, and the information processing module 40 filters out cards that meet the criteria.
[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 a user selects a service through the self-service terminal system, and the information processing module 40 filters out only one type of card that meets the criteria, the self-service terminal system directly displays the content information of the corresponding card.
[0039] The timing diagram of the system operation is as follows.
[0040] t0: Thread 1: Initialize Hardware Abstraction Layer 21; Thread 2: Initialize User Interface.
[0041] t1: Thread 1: Card insertion detected; Thread 2: Card insertion prompt displayed.
[0042] t2: Thread 1: Read card information; Thread 2: Wait for card information reading to complete.
[0043] t3: Thread 1: Sends card information to information integration module 30; Thread 2: Receives card information.
[0044] t4: Thread 1: Waiting for the user to select a service type; Thread 2: Displaying the service type selection interface.
[0045] t5: User: Selects the service type; Thread 2: Sends the user's selection to the data information processing module 40.
[0046] t6: Thread 1: Filter card information based on business type; Thread 2: Display the filtering results.
[0047] t7: User: Select card; Thread 2: Send user selection to Thread 1.
[0048] t8: Thread 1: Executes business operations based on user selection; Thread 2: Displays operation results.
[0049] t9: Thread 1: Completes operation and waits for the next card insertion; Thread 2: Waits for further user action or exit.
[0050] St50, the self-service terminal system captures the user's facial image through a camera and determines safety based on the image. If the self-service terminal system determines it is unsafe, it does not display the information processed by the information processing module 40. If the self-service terminal system determines it is safe, it displays the information processed by the information processing module 40 for the user to operate. Specifically, when a user approaches the self-service terminal system, the infrared sensor on the system detects the approach and the camera automatically activates to capture the user's facial image. After the user places a card, the status acquisition module 10, information acquisition module 20, and information integration module 30 sequentially generate a unified return format information. If the self-service terminal system determines it is unsafe based on the facial image captured by the camera, the information processing module 40 stops parsing the card's return format information. If the self-service terminal system determines it is safe based on the facial image captured by the camera, the information processing module 40 parses the card's return format information and provides it to the user for subsequent operations.
[0051] St51. The self-service terminal system determines security based on facial images through the following process: The self-service terminal system retrieves facial feature data associated with the card from the database using the content information parsed by the information processing module 40, and uses a feature matching algorithm to authenticate the facial feature data and the user's facial image captured by the camera. If authentication is successful, the self-service terminal system determines it to be secure; if authentication fails, the self-service terminal system determines it to be insecure. If the self-service terminal system detects multiple faces or faces that are not the user's, it determines this to be an abnormal situation, does not perform authentication, 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 detects the size and thickness of the card. The self-service terminal system has preset standard sizes, standard thicknesses, size deviation values, and thickness deviation values. 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 considers it abnormal and rejects the card. Similarly, 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 considers it abnormal and rejects the card. The counterfeit card identification mechanism is a technology used in financial self-service terminal systems to identify and reject invalid or counterfeit cards. This mechanism determines the validity of the card by analyzing its physical characteristics and data information. After the user places 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 sensors. The self-service terminal system sets size deviation value and thickness deviation value θ respectively to judge 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 database for each type of card, and can add and maintain it. For example, it can store the magnetic stripe card's second track data; the ATR information of contact IC cards; and the ATS information of contactless IC cards. If the corresponding information cannot be read, the card is considered invalid. When a bank card is issued, a hash value of the corresponding card information is added to the database. After the card reader reads the card data, the application uses a hash function to generate a digest of the read data and compares it with the hash value stored in the database. If the comparison does not match, the card is considered invalid. The formula is: Hash(Card Data) = Hashing Function(Read Data). The self-service terminal system will display a prompt on the interface when it determines that a card is abnormal, insecure, or invalid.
[0054] According to a second aspect of the present invention, a card information acquisition and judgment system is provided, comprising 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 card content information into a unified data format to form a unified return format information; and 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, a card information acquisition and judgment medium is provided, wherein a computer program is stored on the medium, and when the computer program is executed by a processor, the process of card information acquisition and judgment is implemented.
[0056] The status acquisition module 10 and information acquisition module 20 of this invention integrate different types of card processing modules, combining two or more functions into a single logical service. This allows for the simultaneous detection of multiple card types. Then, the information integration module 30 and information processing module 40 can simultaneously process multiple types of data, achieving synchronous processing of multi-card information. Compared to traditional financial self-service terminals that use multiple sub-logical services, this application offers faster processing speeds. It processes all card information to form completion information before the user selects a card, resulting in faster user response. The method described in this application improves the data processing efficiency and user experience of financial self-service terminals.
[0057] The above are merely preferred embodiments of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principle of the present invention should also be considered within the scope of protection of the present invention.
Claims
1. A method for acquiring and judging card information, characterized in that, Information is acquired and judged through the following process: It 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) detects the type of all cards read; The information acquisition module (20) detects the content information of all 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. When the user selects a service, the information processing module (40) filters out cards that match the corresponding service. After the user selects a specific card, the interface that displays the content information of the corresponding card is displayed.
2. The method for obtaining and judging card information according to claim 1, characterized in that, The status acquisition module (10) has preset values for different cards. When the status acquisition module (10) detects a card, it automatically detects and generates the corresponding card type value.
3. The method for obtaining and judging card information according to claim 1, characterized in that, The data information acquisition module (20) is equipped with a hardware abstraction layer (21), which provides a unified interface so that the upper-layer software can read the content information of multiple cards at the same time.
4. A method for obtaining and judging card information according to any one of claims 1-3, characterized in that, The information integration module (30) integrates the content information of each card according to a preset format, and the information of each card is separated by multiple preset delimiters to form a unified return format information.
5. The method for obtaining and judging card information according to claim 4, characterized in that, The information processing module (40) parses the returned format information to extract the content information of each card. The information processing module (40) is connected to the self-service terminal system. Users select services through the self-service terminal system, and the information processing module (40) filters out cards that meet the conditions. Users select cards through the self-service terminal system, and the information processing module (40) extracts the content information of the corresponding cards.
6. The method for obtaining and judging card information according to claim 5, characterized in that, The self-service terminal system captures 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 insecure, the self-service terminal system will not display the content information parsed by the information processing module (40); When the self-service terminal system determines that it is safe, it displays the content information parsed by the information processing module (40) for the user to operate.
7. The method for obtaining and judging card information according to claim 6, characterized in that, The self-service terminal system determines security based on facial images through 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 verify the facial feature data and the user's facial image captured by the camera; When authentication is successful, the self-service terminal system is deemed secure. If authentication fails, the self-service terminal system is deemed insecure.
8. The method for obtaining and judging card information 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. The self-service terminal system has preset standard size, standard thickness, size deviation value and 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 judges it as abnormal and exits the card. 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 judges it as abnormal and exits the card.
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 card.
10. A medium for acquiring and judging card information, characterized in that, The medium stores a computer program, which, when executed by a processor, implements the card information acquisition and judgment method as described in claim 8.
Citation Information
Patent Citations
Method for automatically acquiring type of bank card
CN106682556A
Configuration-based multi-data card automatic identification and unloading method
CN113064605A