Multi-Mifare card collaborative management system, method and device and storage medium

By embedding the Mifare access monitoring module and service management application into the SIM card, collaborative management of multiple Mifare cards can be achieved, overcoming the limitation that a SIM card can only support one card, and improving the application flexibility and user experience in multi-card simulation scenarios.

CN121284530APending Publication Date: 2026-01-06CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511388676.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-26
Publication Date
2026-01-06

AI Technical Summary

Technical Problem

In existing technology, a SIM card can only emulate one Mifare card, which leads to problems with card writing and usage conflicts when multiple Mifare cards are needed.

Method used

The Mifare access monitoring module and Mifare service management application are embedded in the SIM card. By monitoring and parsing access commands, the collaborative management of multiple Mifare cards can be achieved, including card writing coordination and automatic card swiping switching operations.

Benefits of technology

It resolves write conflicts between multiple Mifare cards, improves the application flexibility and user experience of the Super SIM card in multi-card simulation scenarios, and ensures data integrity and convenient card swiping for users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121284530A_ABST
    Figure CN121284530A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of security authentication, and provides a multi-Mifare card collaborative management system, method and device and a storage medium. The system comprises a Mifare access monitoring module which is embedded in a user identity module SIM card operating system and is used for monitoring an access instruction to a Mifare area and sending the access instruction to a Mifare service management application; and the Mifare service management application runs in the SIM card, is in communication connection with the Mifare access monitoring module, and is used for receiving and analyzing the access instruction and executing corresponding collaborative management operation according to an analysis result. According to the system provided by the invention, a plurality of Mifare cards can be written and read without conflicts, and the application flexibility and user experience of the super SIM card in a multi-card simulation scene are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of security authentication technology, and in particular to a multi-Mifare card collaborative management system, method, device and storage medium. Background Technology

[0002] Mifare is a contactless smart card solution implemented according to the ISO / IEC 14443-A standard, utilizing radio frequency identification (RFID) at a frequency of 13.56MHz. The contactless smart IC card product made based on this technology is called a Mifare card. Commonly known as the M1 card, the Mifare card, as a contactless IC smart card, is widely used in access control, attendance, public transportation, hotels, and many other fields. Its working principle is based on NFC technology, identifying and exchanging data through radio signals.

[0003] Given the limited space on a SIM card, the current Super SIM card implements a single Mifare card. This means a user can activate and use only one Mifare card. However, conflicts may arise when multiple Mifare cards are needed, leading to conflicts in card writing and usage. Summary of the Invention

[0004] This application provides a multi-Mifare card collaborative management system, method, device, and storage medium to solve the technical problem of writing and usage conflicts that occur when there are multiple Mifare cards to use.

[0005] In a first aspect, embodiments of this application provide a multi-Mifare card collaborative management system, applied to a terminal, comprising: The Mifare access monitoring module is embedded in the user identity module SIM card operating system. It is used to monitor access commands to the Mifare area and send the access commands to the Mifare service management application. The Mifare service management application runs on the SIM card and is communicatively connected to the Mifare access monitoring module. It is used to receive and parse the access command and perform corresponding collaborative management operations based on the parsing results. The collaborative management operations include write coordination operations for new card creation and / or automatic switching operations when swiping the card.

[0006] In some embodiments, the Mifare service management application includes: An instruction parsing unit is used to parse the access instruction; The write card coordination unit is used to coordinate and handle write card conflicts based on the parsing results; An automatic switching unit is used to automatically switch the active Mifare card when swiping the card, based on the parsing results.

[0007] In some embodiments, the card writing coordination unit is specifically used for: When the access instruction is a write card instruction, the write card instruction is parsed and the card data to be written to the new card and the target storage location are obtained; Determine whether the target storage location conflicts with the storage locations of other Mifare cards already existing in the SIM card; If a conflict exists, first deactivate the activated Mifare card that conflicts with the target storage location, then write the card data of the new card to the target storage location, and add the new card to the card application list; If there is no conflict, the card data of the new card is written to the target storage location, and the new card is added to the card application list.

[0008] In some embodiments, the target storage location is a sector and / or block of the Mifare card.

[0009] In some embodiments, the automatic switching unit is specifically used for: When the access instruction is a card reading instruction, the card reading instruction is parsed and the identifier of the target card to be read is obtained; Query the card application list to determine whether the Mifare card corresponding to the target card identifier is a currently active card; If not, the Mifare card corresponding to the target card identifier is identified as the card to be switched, and it is determined whether activating the card to be switched conflicts with the currently activated card in terms of storage location. If a conflict exists, the current activation card will be activated; otherwise, the current activation card status will be maintained. The data of the card to be switched is written into the Mifare simulation area, making it the new currently active card, and the card application list is updated; if there is no conflict, the current active card status is maintained.

[0010] In some embodiments, the automatic switching unit is further specifically used for: If the Mifare card corresponding to the target card identifier is a currently active card, then the card reading command is responded to.

[0011] In some embodiments, the Mifare access monitoring module is specifically used to: monitor near-field access commands initiated by the service terminal POS device from the near-field communication (NFC) front end via a first interface; The Mifare service management application is also used to: receive remote access commands from the over-the-air (OTA) platform via a second interface, and to collaboratively manage the near-field access commands and the remote access commands.

[0012] Secondly, embodiments of this application provide a multi-Mifare card collaborative management method, applied to a terminal, including: The Mifare access monitoring module monitors access commands to the Mifare area and sends the access commands to the Mifare service management application. The Mifare service management application receives and parses the access command, and performs corresponding collaborative management operations based on the parsing results. The collaborative management operations include write coordination operations for new card creation and / or automatic switching operations when swiping a card.

[0013] In some embodiments, receiving and parsing the access instruction through the Mifare service management application, and performing corresponding collaborative management operations based on the parsing result, includes: The access command is parsed; Based on the analysis results, coordinate and resolve write card conflicts; Based on the analysis results, the active Mifare card is automatically switched when the card is swiped.

[0014] In some embodiments, the process of coordinating and handling write card conflicts based on the parsing results includes: When the access instruction is a write card instruction, the write card instruction is parsed and the card data to be written to the new card and the target storage location are obtained; Determine whether the target storage location conflicts with the storage locations of other Mifare cards already existing in the SIM card; If a conflict exists, first deactivate the activated Mifare card that conflicts with the target storage location, then write the card data of the new card to the target storage location, and add the new card to the card application list; If there is no conflict, the card data of the new card is written to the target storage location, and the new card is added to the card application list.

[0015] In some embodiments, automatically switching the activated Mifare card upon swiping the card based on the parsing result includes: When the access instruction is a card reading instruction, the card reading instruction is parsed and the identifier of the target card to be read is obtained; Query the card application list to determine whether the Mifare card corresponding to the target card identifier is a currently active card; If not, the Mifare card corresponding to the target card identifier is identified as the card to be switched, and it is determined whether activating the card to be switched conflicts with the currently activated card in terms of storage location. If a conflict exists, the current activation card will be activated; otherwise, the current activation card status will be maintained. The data of the card to be switched is written into the Mifare simulation area, making it the new currently active card, and the card application list is updated.

[0016] Thirdly, embodiments of this application provide a terminal, including a memory, a transceiver, and a processor; A memory for storing computer programs; a transceiver for sending and receiving data under the control of the processor; and a processor for reading the computer programs from the memory and performing the following operations: The Mifare access monitoring module monitors access commands to the Mifare area and sends the access commands to the Mifare service management application. The Mifare service management application receives and parses the access command, and performs corresponding collaborative management operations based on the parsing results. The collaborative management operations include write coordination operations for new card creation and / or automatic switching operations when swiping a card.

[0017] Fourthly, embodiments of this application provide a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the multi-Mifare card collaborative management method described in the second aspect.

[0018] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the multi-Mifare card collaborative management method described in the first or second aspect.

[0019] The multi-Mifare card collaborative management system, method, device, and storage medium provided in this application embodiment, through the coordinated settings of the Mifare access monitoring module and the Mifare service management application, ensure that there are no conflicts when writing and reading multiple Mifare cards, thereby improving the application flexibility and user experience of the Super SIM card in multi-card simulation scenarios. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a schematic diagram of the structure of the multi-Mifare card collaborative management system provided in the embodiments of this application; Figure 2 This is a schematic diagram of the process for creating a new card provided in the embodiments of this application; Figure 3 This is a flowchart illustrating the automatic card-swiping switching mechanism provided in the embodiments of this application; Figure 4 This is a schematic diagram of the system interface provided in an embodiment of this application; Figure 5 This is a flowchart illustrating the multi-Mifare card collaborative management method provided in an embodiment of this application; Figure 6 This is a schematic diagram of the terminal structure according to an embodiment of this application. Detailed Implementation

[0022] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0023] Mifare is a contactless smart card solution implemented according to the ISO / IEC 14443-A standard, utilizing radio frequency identification (RFID) at a frequency of 13.56MHz. The contactless smart IC card product made based on this technology is called a Mifare card. Commonly known as the M1 card, the Mifare card, as a contactless IC smart card, is widely used in access control, attendance, public transportation, hotels, and many other fields. Its working principle is based on NFC technology, identifying and exchanging data through radio signals.

[0024] Given the limited space on a SIM card, the current Super SIM card implements a single Mifare card. This means a user can only activate and use one Mifare card. When multiple Mifare cards are needed, conflicts can arise between card writing and usage. For example, a new card might become unusable, or a new card might overwrite an old one, leading to the loss of the old card. Therefore, a management mechanism for multiple Mifare cards needs to be provided within the SIM card itself. This mechanism should enable initial data writing, activation permission allocation, and backup storage, preventing card loss and malfunctions caused by write and usage conflicts across multiple Mifare cards throughout their lifecycle. This ensures card security and improves overall service performance and user experience.

[0025] In view of this, this application provides a multi-Mifare card collaborative management system, including a Mifare access monitoring module embedded in the user identity module SIM card operating system. This module monitors access commands to the Mifare area and sends the access commands to the Mifare service management application. The Mifare service management application runs on the SIM card and is communicatively connected to the Mifare access monitoring module. It receives and parses the access commands and executes corresponding collaborative management operations based on the parsing results. These collaborative management operations include write coordination operations for new card creation and / or automatic switching operations during card swiping. Through the coordinated setup of the Mifare access monitoring module and the Mifare service management application, conflicts are avoided when writing and reading from multiple Mifare cards, improving the application flexibility and user experience of the Super SIM card in multi-card simulation scenarios.

[0026] Figure 1 This is a schematic diagram of the structure of the multi-Mifare card collaborative management system provided in an embodiment of this application. Figure 1 As shown in the figure, this application embodiment provides a multi-Mifare card collaborative management system 100, which may include: The Mifare access monitoring module 101 is embedded in the user identity module SIM card operating system and is used to monitor access commands to the Mifare area and send the access commands to the Mifare service management application. The Mifare service management application 102 runs on the SIM card and is communicatively connected to the Mifare access monitoring module. It is used to receive and parse the access command and perform corresponding collaborative management operations based on the parsing results. The collaborative management operations include a write coordination operation for new card creation and / or an automatic switching operation when swiping the card.

[0027] It should be noted that a Mifare access monitoring module can be embedded in the Subscriber Identity Module (SIM) card operating system. This module is responsible for monitoring near-field POS access to Mifare commands.

[0028] The Mifare service management application module is responsible for parsing and logically processing Mifare commands accessed over the air and Mifare commands accessed via Point of Service (POS). This enables the management of Mifare card writing and usage through both over-the-air and POS near-field channels.

[0029] The above embodiments embed a Mifare access monitoring module into the SIM card operating system, which works in conjunction with the Mifare service management application running within the SIM card to monitor, parse, and process access commands to the Mifare area, thereby enabling collaborative management of multiple Mifare cards. This overcomes the limitation that a SIM card can only emulate one Mifare card, achieving dual-channel (over-the-air OTA and near-field POS) collaborative management of multiple cards, avoiding write conflicts and data loss, and improving the user experience.

[0030] In some embodiments, the Mifare service management application may include: An instruction parsing unit is used to parse the access instruction; The write card coordination unit is used to coordinate and handle write card conflicts based on the parsing results; An automatic switching unit is used to automatically switch the active Mifare card when swiping the card, based on the parsing results.

[0031] It should be noted that the Mifare service management application may include a command parsing unit, a card writing coordination unit, and an automatic switching unit. The command parsing unit parses POS near-field commands; the card writing coordination unit coordinates data conflicts between over-the-air card writing and POS near-field card writing, ensuring that written data is not overwritten or rejected; and the automatic switching unit determines whether the target card read by the POS is the currently active Mifare card, and if not, replaces the active card with the target card.

[0032] The above embodiments further define the functions of the Mifare service management application, specifying that it contains three core functional units: an instruction parsing unit, a card writing coordination unit, and an automatic switching unit, which are responsible for instruction parsing, card writing conflict coordination, and automatic card swiping switching, respectively. Through the collaboration of these three functional units, intelligent coordination of multi-card write conflicts and automatic switching of card swiping scenarios are achieved, fundamentally avoiding data overwriting and the tediousness of manual operation.

[0033] In some embodiments, the card writing coordination unit is specifically used for: When the access instruction is a write card instruction, the write card instruction is parsed and the card data to be written to the new card and the target storage location are obtained; Determine whether the target storage location conflicts with the storage locations of other Mifare cards already existing in the SIM card; If a conflict exists, first deactivate the activated Mifare card that conflicts with the target storage location, then write the card data of the new card to the target storage location, and add the new card to the card application list; If there is no conflict, the card data of the new card is written to the target storage location, and the new card is added to the card application list.

[0034] Figure 2 This is a schematic diagram of the process for creating a new Mifare card provided in an embodiment of this application. Mifare card creation can be done in two ways: over-the-air creation and POS near-field creation, such as... Figure 2 The diagram illustrates the coordination mechanism when a new card is created at a POS near-field communication device. Key steps include: Command monitoring: The POS device sends a card writing command and data to the Mifare area. This command is monitored by the Mifare access monitoring module and sent to the Mifare management application.

[0035] Card writing command parsing: The control module parses the card writing command and extracts information such as card number, key, and application data.

[0036] Coordinated Card Writing: The Mifare management application uses a coordination mechanism module to check for conflicts between the current Mifare region and the relevant sector and block locations of the new card. If a conflict exists, the original card is activated and the new card is written. If there is no conflict, the new card is written, and the old card is left untouched.

[0037] Data storage: The management module stores new card data in the application list to ensure data integrity and consistency. The application list records information about currently active cards.

[0038] The card negotiation mechanism can resolve conflicts when writing to multiple cards, whether over-the-air or near-field. This is especially important for the coordination mechanism between cards written to via POS near-field and those written over-the-air.

[0039] The above embodiments specifically define the workflow of the card writing coordination unit, clarifying how it performs conflict detection (determining whether the target storage location is occupied) after receiving a card writing command, and how it executes different processing procedures (deactivating the old card before writing or writing directly) based on whether a conflict exists, thereby safely completing the creation of the new card. Through an intelligent conflict detection and handling mechanism, it ensures that whether issuing cards over the air or at a POS terminal, new card data can be safely written without mistakenly overwriting existing card data, eliminating data loss at the source.

[0040] In some embodiments, the target storage location is a sector and / or block of the Mifare card.

[0041] The above embodiments further specify the target storage location, clarifying that its physical carrier is the standard storage structure of the Mifare card—sectors and / or blocks. By precisely defining conflict detection and protection granularity down to the sector and block level, fine-grained management of storage space is achieved, ensuring complete isolation and secure coexistence of data across multiple cards in physical storage.

[0042] In some embodiments, the automatic switching unit is specifically used for: When the access instruction is a card reading instruction, the card reading instruction is parsed and the identifier of the target card to be read is obtained; Query the card application list to determine whether the Mifare card corresponding to the target card identifier is a currently active card; If not, the Mifare card corresponding to the target card identifier is identified as the card to be switched, and it is determined whether activating the card to be switched conflicts with the currently activated card in terms of storage location. If a conflict exists, the current activation card will be activated; otherwise, the current activation card status will be maintained. The data of the card to be switched is written into the Mifare simulation area, making it the new currently active card, and the card application list is updated; if there is no conflict, the current active card status is maintained.

[0043] The above embodiments specifically define the workflow of the automatic switching unit, clarifying how, upon receiving a card reading command, it automatically switches the simulated area to the target card sought by the POS device through a series of operations such as command parsing, list querying, and conflict determination. By automatically identifying the target card and intelligently handling storage conflicts, seamless automatic switching is achieved in multi-card scenarios. Users can swipe to open the target access control or device without manual selection, greatly improving convenience.

[0044] Furthermore, the automatic switching unit is specifically used to: respond to the card reading command if the Mifare card corresponding to the target card identifier is the currently active card.

[0045] The above embodiments significantly supplement the automatic switching process, clarifying the handling method when the target card is already the currently active card: directly respond to the card reading command without performing any switching operation. This optimizes the card reading process, avoids unnecessary switching overhead, and provides a fast response when the target card is already activated, further improving card swiping efficiency and system performance.

[0046] Figure 3 This is a flowchart illustrating the automatic card-swiping switching mechanism provided in an embodiment of this application. For example... Figure 3 As shown, automatic switching is responsible for finding and activating the target Mifare card corresponding to the POS during POS near-field interaction. Key steps are explained below: Command monitoring: The POS device sends card reading commands and data to the Mifare area. These commands are monitored by the Mifare access monitoring module and sent to the Mifare management application.

[0047] Card reading command parsing: The control module parses the card reading command and extracts information such as the target card number and application data.

[0048] Data Query: The automatic switching unit will search for the target card's information in the application list, query the card's current status, and determine whether it is an activated card; Target Card Switching: If the target card is active, the monitoring module is notified to send a POS card reading command to the Mifare area. If the target card is inactive, the target card information is written to the Mifare area. If there is a sector or block conflict with the original active card, the original card is activated. If there is no conflict, the original card does not need to be activated. After a successful switch, the currently active card information recorded in the application list is updated.

[0049] The automatic card switching mechanism automatically switches the target card through instruction parsing.

[0050] In some embodiments, the Mifare access monitoring module is specifically used to: monitor near-field access commands initiated by the service terminal POS device from the near-field communication (NFC) front end via a first interface; The Mifare service management application is also used to: receive remote access commands from the over-the-air (OTA) platform via a second interface; and to coordinate the management of the near-field access commands and the remote access commands.

[0051] The above embodiment specifically defines the data sources for the two core modules. It clarifies that the Mifare access monitoring module uses a first interface dedicated to monitoring near-field (POS) access commands, while the Mifare service management application uses a second interface dedicated to receiving remote (OTA) access commands. This application then manages the commands from both channels in a unified and collaborative manner. This clearly defined dual-interface architecture enables unified access and collaborative management of access commands initiated from both near-field POS and remote OTA channels, fundamentally solving the core technical challenge of dual-channel card writing conflicts.

[0052] Figure 4 This is a schematic diagram of the system interface provided in an embodiment of this application. For example... Figure 4As shown, the Trusted Service Manager (TSM) platform is responsible for downloading and installing the Mifare application through a secure channel. The SIM includes a Secure Element (SE) and a Chip Operating System (COS). Interface IF 1 connects the terminal's NFC front-end module and the Mifare contactless monitor module, enabling the acquisition of POS near-field commands. Interface IF 2 serves as the interface between the Mifare manager and the Mifare access monitor module, facilitating the transmission of Mifare access commands from the POS channel.

[0053] This application addresses the challenge of enabling collaborative management of multiple MIFARE cards through multiple channels when a SIM card can only emulate one MIFARE card. Specifically, it resolves conflicts during dual-channel card writing and contactless card swiping switching. This avoids situations where a new card overwrites an old card during different writing needs, leading to data loss on the old card, and the inconvenience of manually switching between multiple cards during swiping.

[0054] This application embodiment achieves the management of multiple Mifare cards by embedding a Mifare access monitoring module and a Mifare service management application within the SIM card. This overcomes the limitation of the existing Super SIM card, which only supports the simulation of one Mifare card, and improves the application flexibility and user experience of the Super SIM card in multi-card simulation scenarios.

[0055] The advantages of the Mifare card collaborative management system provided in this application embodiment include: 1. Multi-channel management capability: It has a wider management scope, managing both over-the-air and NFC near-field card writing, meeting users' needs for creating new cards in different scenarios and avoiding problems such as unusable new cards or lost old cards. 2. Flexible coordination mechanism: Through the coordination mechanism module, data conflicts between over-the-air card writing and POS near-field card writing are avoided, improving data integrity and accuracy. 3. Enhanced user card-swiping experience: Through the automatic switching mechanism, manual switching by users is eliminated, leveraging the speed advantage of NFC card swiping and providing users with a more convenient user experience.

[0056] The following describes the multi-Mifare card collaborative management method provided in the embodiments of this application. The multi-Mifare card collaborative management method described below can be referred to in correspondence with the multi-Mifare card collaborative management system described above.

[0057] Figure 5 This is a flowchart illustrating the multi-Mifare card collaborative management method provided in an embodiment of this application. Figure 5 As shown, the method includes: Step 201: Monitor access commands to the Mifare area through the Mifare access monitoring module and send the access commands to the Mifare service management application; Step 202: Receive and parse the access instruction through the Mifare service management application, and perform corresponding collaborative management operations based on the parsing results. The collaborative management operations include write coordination operations for new card creation and / or automatic switching operations when swiping a card.

[0058] In some embodiments, the Mifare service management application receives and parses the access instruction, and performs corresponding collaborative management operations based on the parsing result, including: The access command is parsed; Based on the analysis results, coordinate and resolve write card conflicts; Based on the analysis results, the active Mifare card is automatically switched when the card is swiped.

[0059] In some embodiments, the process of coordinating and handling write card conflicts based on the parsing results includes: When the access instruction is a write card instruction, the write card instruction is parsed and the card data to be written to the new card and the target storage location are obtained; Determine whether the target storage location conflicts with the storage locations of other Mifare cards already existing in the SIM card; If a conflict exists, first deactivate the activated Mifare card that conflicts with the target storage location, then write the card data of the new card to the target storage location, and add the new card to the card application list; If there is no conflict, the card data of the new card is written to the target storage location, and the new card is added to the card application list.

[0060] In some embodiments, the target storage location is a sector and / or block of the Mifare card.

[0061] In some embodiments, automatically switching the activated Mifare card upon swiping the card based on the parsing result includes: When the access instruction is a card reading instruction, the card reading instruction is parsed and the identifier of the target card to be read is obtained; Query the card application list to determine whether the Mifare card corresponding to the target card identifier is a currently active card; If not, the Mifare card corresponding to the target card identifier is identified as the card to be switched, and it is determined whether activating the card to be switched conflicts with the currently activated card in terms of storage location. If a conflict exists, the current activation card will be activated; otherwise, the current activation card status will be maintained. The data of the card to be switched is written into the Mifare simulation area, making it the new currently active card, and the card application list is updated.

[0062] In some embodiments, the step of automatically switching the activated Mifare card when swiping the card based on the parsing result further includes: If the Mifare card corresponding to the target card identifier is a currently active card, then the card reading command is responded to.

[0063] In some embodiments, monitoring access commands to the Mifare area and sending the access commands to the Mifare service management application includes: monitoring near-field access commands initiated by a service terminal POS device from a near-field communication (NFC) front end via a first interface; The step of receiving and parsing the access command and performing corresponding collaborative management operations based on the parsing result includes: receiving a remote access command from an over-the-air (OTA) download platform through a second interface, and performing collaborative management of the near-field access command and the remote access command.

[0064] The terminal involved in the embodiments of this application may be a device that provides voice and / or data connectivity to a user, a handheld device with wireless connectivity, or other processing devices connected to a wireless modem. The name of the terminal device may differ in different systems; for example, in a 5G system, the terminal device may be called a User Equipment (UE).

[0065] Figure 6 This is a schematic diagram of the terminal structure according to an embodiment of this application. Figure 6 As shown, this application embodiment also provides a terminal, which may include: a memory 310, a transceiver 320, and a processor 330; Memory 310 is used to store computer programs; transceiver 320 is used to send and receive data under the control of processor 330; processor 330 is used to read the computer program in memory 310 and perform the following operations: The Mifare access monitoring module monitors access commands to the Mifare area and sends the access commands to the Mifare service management application. The Mifare service management application receives and parses the access command, and performs corresponding collaborative management operations based on the parsing results. The collaborative management operations include write coordination operations for new card creation and / or automatic switching operations when swiping a card.

[0066] Among them, Figure 6In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 330 and memory represented by memory 310 together. The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. Transceiver 320 can be multiple elements, including transmitters and receivers, providing a unit for communicating with various other devices over a transmission medium. For different user equipment, user interface 340 can also be an interface capable of connecting external or internal devices as needed.

[0067] The processor 330 is responsible for managing the bus architecture and general processing, while the memory 310 can store the data used by the processor 330 when performing operations.

[0068] The processor 330 executes any of the methods described in the embodiments of this application according to the obtained executable instructions by calling a computer program stored in the memory 310. The processor and the memory may also be physically separated.

[0069] Optionally, the processor 330 is also used to perform the following operations: In some embodiments, the Mifare service management application receives and parses the access instruction, and performs corresponding collaborative management operations based on the parsing result, including: The access command is parsed; Based on the analysis results, coordinate and resolve write card conflicts; Based on the analysis results, the active Mifare card is automatically switched when the card is swiped.

[0070] In some embodiments, the process of coordinating and handling write card conflicts based on the parsing results includes: When the access instruction is a write card instruction, the write card instruction is parsed and the card data to be written to the new card and the target storage location are obtained; Determine whether the target storage location conflicts with the storage locations of other Mifare cards already existing in the SIM card; If a conflict exists, first deactivate the activated Mifare card that conflicts with the target storage location, then write the card data of the new card to the target storage location, and add the new card to the card application list; If there is no conflict, the card data of the new card is written to the target storage location, and the new card is added to the card application list.

[0071] In some embodiments, the target storage location is a sector and / or block of the Mifare card.

[0072] In some embodiments, automatically switching the activated Mifare card upon swiping the card based on the parsing result includes: When the access instruction is a card reading instruction, the card reading instruction is parsed and the identifier of the target card to be read is obtained; Query the card application list to determine whether the Mifare card corresponding to the target card identifier is a currently active card; If not, the Mifare card corresponding to the target card identifier is identified as the card to be switched, and it is determined whether activating the card to be switched conflicts with the currently activated card in terms of storage location. If a conflict exists, the current activation card will be activated; otherwise, the current activation card status will be maintained. The data of the card to be switched is written into the Mifare simulation area, making it the new currently active card, and the card application list is updated.

[0073] In some embodiments, the step of automatically switching the activated Mifare card when swiping the card based on the parsing result further includes: If the Mifare card corresponding to the target card identifier is a currently active card, then the card reading command is responded to.

[0074] In some embodiments, monitoring access commands to the Mifare area and sending the access commands to the Mifare service management application includes: monitoring near-field access commands initiated by a service terminal POS device from a near-field communication (NFC) front end via a first interface; The step of receiving and parsing the access command and performing corresponding collaborative management operations based on the parsing result includes: receiving a remote access command from an over-the-air (OTA) download platform through a second interface, and performing collaborative management of the near-field access command and the remote access command.

[0075] It should be noted that the terminal provided in this application embodiment can implement all the method steps implemented in the above method embodiment and can achieve the same technical effect. Here, the parts that are the same as those in the method embodiment and the beneficial effects will not be described in detail.

[0076] On the other hand, this application also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can perform the steps of the multi-Mifare card collaborative management method provided in the above embodiments, such as including: The Mifare access monitoring module monitors access commands to the Mifare area and sends the access commands to the Mifare service management application. The Mifare service management application receives and parses the access command, and performs corresponding collaborative management operations based on the parsing results. The collaborative management operations include write coordination operations for new card creation and / or automatic switching operations when swiping a card.

[0077] On the other hand, embodiments of this application also provide a processor-readable storage medium storing a computer program for causing a processor to perform the steps of the methods provided in the above embodiments, such as including: The Mifare access monitoring module monitors access commands to the Mifare area and sends the access commands to the Mifare service management application. The Mifare service management application receives and parses the access command, and performs corresponding collaborative management operations based on the parsing results. The collaborative management operations include write coordination operations for new card creation and / or automatic switching operations when swiping a card.

[0078] The processor-readable storage medium can be any available medium or data storage device that the processor can access, including but not limited to magnetic memory (e.g., floppy disk, hard disk, magnetic tape, magneto-optical disk (MO)), optical memory (e.g., CD, DVD, BD, HVD), and semiconductor memory (e.g., ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)).

[0079] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0080] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A multi-Mifare card cooperative management system, characterized by, Applied to a terminal, comprising: A Mifare access monitoring module embedded in a user identity module (SIM) card operating system, configured to monitor access instructions to a Mifare area and send the access instructions to a Mifare service management application; The Mifare service management application is configured to run in the SIM card, in communication connection with the Mifare access monitoring module, receive and analyze the access instructions, and perform corresponding collaborative management operations according to the analysis results, wherein the collaborative management operations include a write card coordination operation for new card creation and / or an automatic switching operation when a card is swiped.

2. The multi-Mifare card cooperative management system according to claim 1, characterized in that, The Mifare service management application comprises: An instruction analysis unit configured to analyze the access instructions; A write card coordination unit configured to coordinate write card conflicts based on the analysis results; An automatic switching unit configured to automatically switch the activated Mifare card when a card is swiped based on the analysis results.

3. The multi-Mifare card cooperative management system according to claim 2, characterized in that, The write card coordination unit is specifically configured to: When the access instruction is a write card instruction, analyze the write card instruction and obtain card data to be written into a new card and a target storage location; Determine whether the target storage location conflicts with the storage locations of other existing Mifare cards in the SIM card; If there is a conflict, first control the activated Mifare card that conflicts with the target storage location to deactivate, then write the card data of the new card into the target storage location, and add the new card to a card application list; If there is no conflict, write the card data of the new card into the target storage location, and add the new card to the card application list.

4. The multi-Mifare card cooperative management system according to claim 3, characterized in that, The target storage location is a sector and / or a block of the Mifare card.

5. The multi-Mifare card cooperative management system according to claim 2, characterized in that, The automatic switching unit is specifically configured to: When the access instruction is a read card instruction, analyze the read card instruction and obtain a target card identifier to be read; Query the card application list to determine whether the Mifare card corresponding to the target card identifier is a currently activated card; If not, determine the Mifare card corresponding to the target card identifier as a card to be switched, and determine whether activating the card to be switched conflicts with the currently activated card in terms of storage location; If there is a conflict, control the currently activated card to deactivate, and if there is no conflict, maintain the state of the currently activated card; Write the data of the card to be switched into a Mifare simulation area to make it a new currently activated card, and update the card application list.

6. The multi-Mifare card cooperative management system according to claim 5, characterized in that, The automatic switching unit is further specifically configured to: If the Mifare card corresponding to the target card identifier is the currently activated card, respond to the read card instruction.

7. The multi-Mifare card cooperative management system according to claim 1, characterized in that, The Mifare access monitoring module is specifically configured to monitor near field access instructions from a near field communication (NFC) front end initiated by a service terminal POS device through a first interface; The Mifare service management application is further configured to receive remote access instructions from an over-the-air (OTA) platform through a second interface, and perform collaborative management on the near field access instructions and the remote access instructions.

8. A multi-Mifare card cooperative management method, characterized by, Applied to a terminal, comprising: monitoring, by a Mifare access monitoring module, access instructions to a Mifare area and sending the access instructions to a Mifare service management application; receiving and analyzing, by the Mifare service management application, the access instructions and performing corresponding collaborative management operations according to the analysis results, the collaborative management operations including a write card coordination operation for new card creation and / or an automatic switching operation when a card is swiped.

9. The method of claim 8, wherein the step of managing the plurality of Mifare cards in cooperation comprises the steps of: receiving a request for a card from a user; and providing the card to the user. The receiving and analyzing, by the Mifare service management application, the access instructions and performing corresponding collaborative management operations according to the analysis results include: analyzing the access instructions; based on the analysis results, coordinating and processing write card conflicts; based on the analysis results, automatically switching activated Mifare cards when a card is swiped.

10. The method of claim 9, wherein the step of managing the plurality of Mifare cards in cooperation comprises the steps of: receiving a request for a card from a user; and providing the card to the user. The coordinating and processing write card conflicts based on the analysis results include: when the access instruction is a write card instruction, analyzing the write card instruction and obtaining card data to be written into a new card and a target storage location; determining whether the target storage location conflicts with storage locations of other existing Mifare cards in the SIM card; if there is a conflict, first controlling an activated Mifare card that conflicts with the target storage location to be deactivated, then writing the card data of the new card into the target storage location, and adding the new card to a card application list; if there is no conflict, writing the card data of the new card into the target storage location, and adding the new card to the card application list.

11. The method of claim 9, wherein the step of managing the plurality of Mifare cards in cooperation comprises the steps of: receiving a request for a card from a user; and providing the card to the user. The automatically switching activated Mifare cards based on the analysis results when a card is swiped includes: when the access instruction is a read card instruction, analyzing the read card instruction and obtaining a target card identifier to be read; querying a card application list to determine whether the Mifare card corresponding to the target card identifier is a currently activated card; if not, determining the Mifare card corresponding to the target card identifier as a card to be switched, and determining whether activating the card to be switched conflicts with the currently activated card in terms of storage location; if there is a conflict, controlling the currently activated card to be deactivated, and if there is no conflict, maintaining the state of the currently activated card; writing data of the card to be switched into a Mifare simulation area to make it a new currently activated card, and updating the card application list.

12. A terminal, characterized by comprising: a memory, a transceiver, and a processor; the memory is configured to store a computer program; the transceiver is configured to transceive data under control of the processor; and the processor is configured to read the computer program in the memory and perform the following operations: monitoring, by a Mifare access monitoring module, access instructions to a Mifare area and sending the access instructions to a Mifare service management application; receiving and analyzing, by the Mifare service management application, the access instructions and performing corresponding collaborative management operations according to the analysis results, the collaborative management operations including a write card coordination operation for new card creation and / or an automatic switching operation when a card is swiped.

13. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the multi-Mifare card collaborative management method of claim 8.