Multi-card compatible processing method and system in all-purpose card system

By providing a variety of card compatibility processing methods and systems in a one-card system, the problem that old cards cannot be used continues is solved, and the accurate identification and processing of different cards is achieved, which reduces costs and simplifies system updates.

CN119623493APending Publication Date: 2025-03-14NEWCAPEC ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411716838.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

After the existing one-card system is upgraded, the old cards cannot be used, resulting in the need to be recycled and reissued new cards, which increases economic, time and labor costs, and also causes trouble for employees who do not use cards frequently.

Method used

By providing a variety of card compatibility processing methods and systems in a card system, the response byte acquisition unit, card type determination module and processing module are used to obtain the response bytes of the terminal card, determine its type, and call the processing program one by one according to the preset processing program list to process the terminal card.

Benefits of technology

It realizes accurate identification and processing of different types of terminal cards, and can be identified and processed whether new cards are new or old cards, avoids the additional cost of recycling and reissueing new cards, reduces consumption, and simplifies the update and use of a card system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119623493A_ABST
    Figure CN119623493A_ABST
Patent Text Reader

Abstract

The invention provides a multi-card compatible processing method in an all-purpose card system, which comprises the following steps of: after a terminal card is connected to a card machine, acquiring a response byte of the terminal card; determining the type of the terminal card according to the response byte, and judging whether the type of the terminal card is supported by the card machine; and when the terminal card type is the terminal card type supported by the card machine, calling the processing programs one by one to process the terminal card according to the processing program sequence in the preset processing program list corresponding to the terminal card type. According to the invention, the response bytes are distinguished for different types of terminal cards so as to judge whether the terminal card type is the terminal card type supported by the card machine, and the card is further processed according to the processing program sequence in the preset processing program list corresponding to the terminal card type, so that both a new card and an old card can be accurately identified and processed, and the processing efficiency is improved. The additional cost increased by recovering the old card and resending the new card is avoided, the consumption is reduced, and the update and use of the all-purpose card system are facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of one-card system, and in particular to a method and system for processing compatibility of multiple cards in one-card system. Background Art

[0002] The one-card system's one-card card is a certain type of card that supports multiple business scenarios in terms of functional logic to achieve the purpose of one card being compatible with multiple systems.

[0003] New cards such as M1 cards, CPU cards, and NFC cards continue to appear, bringing improvements in functions and security. After the one-card system is upgraded, the industry generally recycles old cards and issues new cards. After the upgrade, the old cards can no longer be used. In order to facilitate the replacement of teachers and students, a centralized card replacement time and location are usually set. If you miss the centralized card replacement time, you need to use other methods to get a new one-card, which consumes costs in terms of economy, time, and manpower. And for retired faculty and staff or employees who do not often use the one-card card, they may not be able to use it because they do not have a new one-card card.

[0004] In order to solve the above problems, people have been seeking an ideal technical solution. Summary of the invention

[0005] The purpose of the present invention is to address the deficiencies of the prior art and to provide a method and system for processing compatibility of multiple cards in a one-card system.

[0006] In order to achieve the above object, the technical solution adopted by the present invention is: A first aspect provides a method for processing compatibility of multiple cards in a one-card system, comprising: After the terminal card is connected to the card machine, the response byte of the terminal card is obtained; Determine the type of the terminal card according to the response byte, and judge whether it is the terminal card type supported by the card machine; When it is a terminal card type supported by the card machine, the processing programs are called one by one to process the terminal card according to the processing program sequence in the preset processing program list corresponding to the terminal card type.

[0007] Specifically, the type of the terminal card is determined according to the response byte, including: If the response byte is the card ID number, it is determined to be an ID card; If the response byte is a reset response ATR byte, it is determined to be a contact CPU card; If the response byte is a reset response ATQA byte, the contactless CPU card or M1 card is determined according to the specific ATQA value; If the response byte includes at least two of the card ID number, the reset response ATR byte and the reset response ATQA byte, it is determined to be a composite card.

[0008] Furthermore, according to the order of the processing programs in the preset processing program list corresponding to the terminal card type, the processing programs are called one by one to process the terminal card: If it is determined to be an ID card, the terminal card will be processed accordingly according to the preset processing logic of the ID card; If it is determined to be a contact CPU card or a contactless CPU card, the preset application entry list is traversed, and after reading the user information and card number stored in the CPU card through a certain application entry, the preset processing logic corresponding to the current application entry is called to perform corresponding business processing on the CPU card; If it is determined to be an M1 card, the preset version and reading position association table is traversed. If the data stored in the M1 card and the device ID number can be read through the reading position associated with a certain version, the preset processing logic corresponding to the current version is called to perform corresponding business processing on the M1 card; If it is determined that the business type of the terminal card is a composite card, the traversal object is determined according to the preset usage order, where the usage includes CPU card and M1 card; when used as a CPU card, the preset application entry is traversed to read the card; when used as an M1 card, the preset version and reading position association table is traversed to read the card.

[0009] A second aspect provides a system for processing multiple cards compatible with one card system, including: The response byte acquisition unit is used to acquire the response byte of the terminal card after the terminal card is connected to the card machine; The card type determination module is used to determine the type of the terminal card according to the response byte and judge whether it is the terminal card type supported by the card machine; The processing module is used to call the processing programs one by one to process the terminal card according to the processing program sequence in the preset processing program list corresponding to the terminal card type.

[0010] Compared with the prior art, the present invention has outstanding substantive features and significant progress. Specifically, the present invention distinguishes the electrical characteristics of different types of terminal cards to determine whether they are terminal card types supported by the card machine, and further determines whether the card is a compatible card based on differences in application entry, version and / or purpose. Both new and old cards can be accurately identified and processed, avoiding the additional cost of recycling old cards and reissuing new cards, reducing consumption, and facilitating the update and use of the one-card system. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 It is a schematic diagram of the process of Example 1 of the present invention.

[0012] Figure 2 It is a principle block diagram of embodiment 3 of the present invention. DETAILED DESCRIPTION

[0013] The technical solution of the present invention is further described in detail below through specific implementation methods.

[0014] For contact smart cards, the ISO7816 interface protocol needs to be met. The ISO7816 interface protocol specifies the reset response ATR byte, which is sent by the card to the card reader as a response to the reset command. Specifically, the reset response ATR byte includes a start character, a format character, an interface character, a historical character, and a check character, wherein the start character specifies the convention for all data in the ATR and subsequent communication processes; the data element or historical character in the ATR can contain comprehensive information about the terminal card and the operating system used. For example, they can be used to store file selection functions and implicit selection functions supported by the terminal card, as well as mechanism information about logical channels, and they can also be used to store other information about the card issuer, the serial number of the card and chip, the mask ROM, the version number of the chip and the operating system, etc. Therefore, the type of the card can be determined based on the reset response ATR byte.

[0015] For contactless smart cards, the ISO14443 communication protocol must be met. The protocol includes the ATQA byte. For example, the ATQA byte returned by Mifare s50 is 0004H, and the ATQA byte returned by Mifare s70 is 0002H. Therefore, the card type can be distinguished based on the ATQA byte.

[0016] Example 1 This embodiment provides a method for processing compatibility of multiple cards in a one-card system. Figure 1 As shown, including: After the terminal card is connected to the card machine, get the response byte of the terminal card.

[0017] Specifically, the contact CPU card sends a reset response ATR byte to the card machine after powering on; the contactless smart card sends an ATQA byte to the card machine after powering on; and the ID card sends an ID card number to the card machine after powering on.

[0018] Therefore, the response byte can be used to determine the type of terminal card, and further determine whether it is the terminal card type supported by the card machine.

[0019] Specifically, if the response byte is a card ID number, it is determined to be an ID card; If the response byte is a reset response ATR byte, it is determined to be a contact CPU card; If the response byte is a reset response ATQA byte, the contactless CPU card or M1 card is determined according to the specific ATQA value; If the response byte includes at least two of the card ID number, the reset response ATR byte and the reset response ATQA byte, it is determined to be a composite card.

[0020] Furthermore, after determining the type of the terminal card, search the preset supported card type list. If it is consistent with a card type in the supported card type list, it is determined to be a terminal card type supported by the card machine; if it is inconsistent with all card types in the supported card type list, it is determined to be a terminal card type not supported by the card machine.

[0021] When the terminal card type is determined to be the terminal card type supported by the card machine, the processing program is called one by one to process the terminal card according to the processing program sequence in the preset processing program list corresponding to the terminal card type. This is because even if the terminal card is of the same type, the data storage location is different due to different manufacturers and versions. Therefore, it is necessary to determine the manufacturer or version of the current terminal card through traversal to find the processing program suitable for the current terminal card.

[0022] Specifically, if it is determined to be an ID card, the terminal card is processed accordingly according to the preset processing logic of the ID card; If it is determined to be a contact CPU card or a contactless CPU card, the preset application entry list is traversed, and after reading the user information and card number stored in the CPU card through a certain application entry, the preset processing logic corresponding to the current application entry is called to perform corresponding business processing on the CPU card; If it is determined to be an M1 card, the preset version and reading position association table is traversed. If the data stored in the M1 card and the device ID number can be read through the reading position associated with a certain version, the preset processing logic corresponding to the current version is called to perform corresponding business processing on the M1 card; If it is determined that the business type of the terminal card is a composite card, the traversal object is determined according to the preset usage order, where the usage includes CPU card and M1 card; when used as a CPU card, the preset application entry is traversed to read the card; when used as an M1 card, the preset version and reading position association table is traversed to read the card.

[0023] It is understandable that before use, the response signals of the new and old cards and the differences in data information such as application entry, version and purpose are collected, and a preset application entry list, a preset version and reading position association table, etc. are established for subsequent search.

[0024] Example 2 This embodiment provides a method for updating a preset application entry list, a preset version and a reading position association table.

[0025] Specifically, for the CPU cards, the usage frequency of each CPU card is counted according to a preset time interval, and the proportion of the usage frequency of each CPU card in the total usage frequency is calculated; Sort the proportions of all types of CPU cards, and use the sorting results as the initial arrangement order of application entries in the application entry list; For M1 cards, the usage frequency of each M1 card is counted at preset time intervals, and the usage frequency of each M1 card is calculated as a percentage of the total usage frequency; The proportion values ​​of all types of M1 cards are sorted, and the sorting results are used as the initial arrangement order of the versions in the version and reading position association table.

[0026] Furthermore, after any application entry is selected a preset number of times during the traversal process, its order in the application entry list is advanced by one position; When any version is selected a preset number of times during the traversal process, its order in the version and read position association table is advanced by one position.

[0027] By using the above method, the time for data reading can be shortened.

[0028] Example 3 This embodiment provides a system for processing multiple cards in a one-card system. Figure 2 As shown, including: The response byte acquisition unit is used to acquire the response byte of the terminal card after the terminal card is connected to the card machine; The card type determination module is used to determine the type of the terminal card according to the response byte and judge whether it is the terminal card type supported by the card machine; The processing module is used to call the processing programs one by one to process the terminal card according to the processing program sequence in the preset processing program list corresponding to the terminal card type.

[0029] Specifically, the specific processing steps of the processing module and the card type determination module refer to the steps described in Example 1 or Example 2.

[0030] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the present invention, which should be included in the scope of the technical solution for protection of the present invention.

Claims

1. A method for processing compatibility of multiple cards in a one-card system, characterized in that: include: After the terminal card is connected to the card machine, the response byte of the terminal card is obtained; Determine the type of the terminal card according to the response byte, and judge whether it is the terminal card type supported by the card machine; When it is a terminal card type supported by the card machine, the processing programs are called one by one to process the terminal card according to the processing program sequence in the preset processing program list corresponding to the terminal card type.

2. A method for processing multiple cards compatible with one card system according to claim 1, characterized in that: Determine the type of terminal card based on the response byte, including: If the response byte is the card ID number, it is determined to be an ID card; If the response byte is a reset response ATR byte, it is determined to be a contact CPU card; If the response byte is a reset response ATQA byte, the contactless CPU card or M1 card is determined according to the specific ATQA value; If the response byte includes at least two of the card ID number, the reset response ATR byte and the reset response ATQA byte, it is determined to be a composite card.

3. A method for processing multiple cards compatible with one card system according to claim 1 or 2, characterized in that: After determining the type of terminal card, search the preset supported card type list. If it is consistent with a card type in the supported card type list, it is determined to be a terminal card type supported by the card machine; if it is inconsistent with all card types in the supported card type list, it is determined to be a terminal card type not supported by the card machine.

4. The method for processing multiple cards compatible with one card system according to claim 2, characterized in that: According to the sequence of handlers in the preset handler list corresponding to the terminal card type, the handlers are called one by one to process the terminal card: If it is determined to be an ID card, the terminal card will be processed accordingly according to the preset processing logic of the ID card; If it is determined to be a contact CPU card or a contactless CPU card, the preset application entry list is traversed, and after reading the user information and card number stored in the CPU card through a certain application entry, the preset processing logic corresponding to the current application entry is called to perform corresponding business processing on the CPU card; If it is determined to be an M1 card, the preset version and reading position association table is traversed. If the data stored in the M1 card and the device ID number can be read through the reading position associated with a certain version, the preset processing logic corresponding to the current version is called to perform corresponding business processing on the M1 card; If it is determined that the business type of the terminal card is a composite card, the traversal object is determined according to the preset usage order, where the usage includes CPU card and M1 card; when used as a CPU card, the preset application entry is traversed to read the card; when used as an M1 card, the preset version and reading position association table is traversed to read the card.

5. The method for processing compatibility of multiple cards in a one-card system according to claim 4, characterized in that: For CPU cards, the usage frequency of each CPU card is counted at preset time intervals, and the usage frequency of each CPU card is calculated as a percentage of the total usage frequency; Sort the proportions of all types of CPU cards, and use the sorting results as the initial arrangement order of application entries in the application entry list; For M1 cards, the usage frequency of each M1 card is counted at preset time intervals, and the usage frequency of each M1 card is calculated as a percentage of the total usage frequency; The proportion values ​​of all types of M1 cards are sorted, and the sorting results are used as the initial arrangement order of the versions in the version and reading position association table.

6. The method for processing compatibility of multiple cards in a one-card system according to claim 5, characterized in that: When any application entry is selected a preset number of times during the traversal process, its order in the application entry list is moved up one place; When any version is selected a preset number of times during the traversal process, its order in the version and read position association table is advanced by one position.

7. A system for processing multiple cards in a one-card system, characterized in that: include: The response byte acquisition unit is used to acquire the response byte of the terminal card after the terminal card is connected to the card machine; The card type determination module is used to determine the type of the terminal card according to the response byte and judge whether it is the terminal card type supported by the card machine; The processing module is used to call the processing programs one by one to process the terminal card according to the processing program sequence in the preset processing program list corresponding to the terminal card type.