WO2025139119A1 - Intelligent card switching method and apparatus, storage medium and electronic device - Google Patents
Intelligent card switching method and apparatus, storage medium and electronic device Download PDFInfo
- Publication number
- WO2025139119A1 WO2025139119A1 PCT/CN2024/120797 CN2024120797W WO2025139119A1 WO 2025139119 A1 WO2025139119 A1 WO 2025139119A1 CN 2024120797 W CN2024120797 W CN 2024120797W WO 2025139119 A1 WO2025139119 A1 WO 2025139119A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- card
- target
- application
- application identifier
- contactless
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F7/00—Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus
- G07F7/08—Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means
- G07F7/10—Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means together with a coded signal, e.g. in the form of personal identification information, like personal identification number [PIN] or biometric data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
Definitions
- the present application relates to the field of near field communication technology, and in particular to a smart card cutting method, device, storage medium and electronic device.
- NFC Near Field Communication, near-field wireless communication technology, also known as near-field communication technology
- NFC function such as mobile phones with NFC function
- electronic devices with NFC cards can be simulated as NFC cards for use, that is, electronic devices can simulate contactless radio frequency cards that meet NFC standards so as to interact with NFC card readers, which can be used in contactless scenarios such as consumption, transportation, and access control;
- near-field communication technology is evolved from the integration of contactless radio frequency identification and interconnection technology, combining inductive card readers, inductive cards and point-to-point functions on a single chip, and can identify and exchange data with compatible devices within a short distance.
- a security chip of an electronic device such as a secure element (Secure Element, SE) or an embedded secure element (embedded Secure Element, eSE, etc., also known as a security unit) is installed with multiple cards (i.e., NFC cards, also known as virtual cards or smart cards, etc.), and the currently required card is in an unactivated state
- the relevant technology usually needs to deactivate the currently activated card and activate the currently required card that is not in the activated state, thereby realizing the card cutting operation, resulting in low efficiency of smart card cutting. Based on this, how to conveniently perform intelligent card cutting to improve the efficiency of intelligent card cutting has become a research hotspot.
- a smart card cutting method is provided, the method being applied to an electronic
- the electronic device comprises a card management application, a near field communication controller and a security unit, wherein M cards are installed in the security unit, where M is a positive integer; the method comprises:
- a target card is selected from the M cards by the card management application, and a card switching instruction is sent to the security unit, wherein the card switching instruction carries a target main application identifier of the target card, and one card corresponds to at least one application, and the at least one application corresponding to one card includes one main application;
- the target contactless protocol parameters of the target card are sent to the near field communication controller, so that the near field communication controller uses the target contactless protocol parameters to perform anti-collision interaction with the card reading device.
- a smart card cutting device running on an electronic device, the electronic device comprising a card management application, a near field communication controller and a security unit, the security unit having M cards installed therein, M being a positive integer; the device comprising:
- a sending unit configured to select a target card from the M cards through the card management application when a card selection requirement is detected, and send a card switching instruction to the security unit, wherein the card switching instruction carries a target main application identifier of the target card, wherein one card corresponds to at least one application, and the at least one application corresponding to one card includes one main application;
- a processing unit configured to determine the target main application identifier according to the card cutting instruction through the security unit, and set a logic mark for the target main application identifier in the application identifier set, wherein the logic mark is used to indicate that the target card is in an activated state;
- the sending unit is further used to send the target contactless protocol parameters of the target card to the near field communication controller according to the card cutting instruction, so that the near field communication controller adopts the target contactless protocol parameters to perform anti-collision interaction with the card reader.
- an electronic device which includes one or more processors and one or more memories storing programs, wherein the program includes instructions that, when executed by the one or more processors, cause the one or more processors to perform the above-mentioned method.
- a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the above-mentioned method.
- the target card when the card selection requirement is detected, can be selected from M cards through the card management application, and a card cutting instruction is sent to the security unit.
- the card cutting instruction carries the target main application identifier of the target card.
- One card corresponds to at least one application, and at least one application corresponding to one card includes a main application.
- the target main application identifier can be determined by the security unit according to the card cutting instruction, and a logical mark is set for the target main application identifier in the application identifier set, and the logical mark is used to indicate that the target card is in an activated state.
- the target contactless protocol parameters of the target card can be sent to the near field communication controller, so that the near field communication controller uses the target contactless protocol parameters to perform anti-collision interaction with the card reader.
- the embodiment of the present application does not need to implement the card cutting operation through deactivation and activation operations, so there is no need to perform conflict detection, parameter merging, and flash writing operations. That is to say, the embodiment of the present application can conveniently perform intelligent card cutting, thereby improving the efficiency of intelligent card cutting, and effectively improving the performance of card cutting; and accordingly, the embodiment of the present application does not need to write flash to a fixed position of the security unit, thereby effectively avoiding the impact on the life of the flash, so as to increase the life of the security unit.
- FIG1 is a schematic diagram showing a flow chart of a smart card cutting method according to an exemplary embodiment of the present application
- FIG2 shows a schematic flow chart of another smart card cutting method according to an exemplary embodiment of the present application
- FIG3 is a schematic diagram showing a smart card selection and opening operation according to an exemplary embodiment of the present application
- FIG5 shows a block diagram of an exemplary electronic device that can be used to implement the embodiments of the present application
- FIG. 6 shows a structural block diagram of another exemplary electronic device that can be used to implement the embodiments of the present application.
- the execution subject of the smart card cutting method provided in the embodiment of the present application can be an electronic device, and the electronic device here refers to an NFC electronic device (i.e., an electronic device with NFC function); specifically, the electronic device may include a card management application, a near field communication controller (Near Field Communication Controller, NFCC) and a security unit, and M cards are installed in the security unit, where M is a positive integer.
- the electronic device can be a terminal (Device Host, DH) or a server; accordingly, the terminal mentioned here can include but is not limited to: smart phones, bracelets, tablet computers, laptops, desktop computers, smart watches, smart voice interaction devices, etc.
- the card management application can be used to manage the M cards. It should be understood that the operations performed by the electronic device through the card management application can also be represented as operations performed by the card management application in the electronic device, and the embodiments of the present application do not limit this.
- the communication path between the card management application and the security unit can be SPI (Serial Peripheral interface, a contact channel) or Apdu Gate (another contact channel), etc., which is not limited to the embodiments of the present application.
- SPI Serial Peripheral interface, a contact channel
- Apdu Gate another contact channel
- the security unit in the electronic device can determine the target main application identifier carried by the card cutting instruction.
- the main application identifier carried by the card cutting instruction.
- the application identification set may include the application identification of each application corresponding to each card in the M cards, that is, the application identification set may include the application identification of each application in at least one application corresponding to any card.
- the logical tag may be a digital tag or an alphabetic tag, etc., which is not limited in the embodiments of the present application.
- the target main application identifier in the application identifier set when setting a logical tag for a target main application identifier in an application identifier set, can be marked with a logical tag, that is, a logical tag corresponding to the target main application identifier can be added to achieve the setting of a logical tag for the target main application identifier.
- a logical tag corresponding to the target main application identifier when there are multiple marked application identifiers in the application identifier set, one application identifier can correspond to one logical tag.
- the logical tags corresponding to each marked application identifier can be the same or different, and this embodiment of the present application is not limited to this.
- a key-value pair when setting a logical tag for a target main application identifier in an application identifier set, can be constructed using the logical tag and the target main application identifier, and at this time the key-value pair can be a one-to-many relationship, the key can be a logical tag, the value can be empty or at least one application identifier (such as including the target main application identifier); based on this, the target main application identifier can be added to the tag value corresponding to the logical tag, that is, added to the value, to achieve the setting of the logical tag for the target main application identifier, and so on.
- the target contactless protocol parameters can be sent to the near field communication controller as parameters for -3 layer anti-collision; specifically, the electronic device can send the target contactless protocol parameters to the card reader device through the near field communication controller, so that the card reader device uses the target contactless protocol parameters to perform -3 layer anti-collision verification (i.e., anti-collision verification), thereby achieving anti-collision interaction with the card reader device through the near field communication controller using the target contactless protocol parameters.
- -3 layer anti-collision verification i.e., anti-collision verification
- the contactless protocol parameters may include, but are not limited to, UID (User Identification), SAK/SEL_RES (a type of card), ATS (Answer To Select), ATQA (card type returned in response), and other parameters related to card identification and card type identification.
- UID User Identification
- SAK/SEL_RES a type of card
- ATS Automatic To Select
- ATQA card type returned in response
- the card reader device can determine whether anti-collision is successful by verifying the received contactless protocol parameters.
- the card verification method may be different depending on the card type.
- the card types selected include the first type and the second type.
- the card swiping verification of the first type may only include anti-collision verification, such as ordinary access control cards; the card swiping verification of the second type may include anti-collision verification and verification of data to be verified, such as encrypted access control cards, bank cards, transportation cards, etc.
- the card reading device can determine whether the card swiping is successful based on whether the anti-collision verification is successful, thereby determining whether the smart card selection is successful; for the second type of card, due to the need for encryption, decryption, consumption and other data verification, the card reading device will continue to perform encryption, decryption, consumption and other data verifications when determining that the anti-collision verification is successful, and can send instructions for obtaining data to be verified to obtain data to be verified, etc., thereby determining the final card swiping result; in the case of failure of the anti-collision verification, it can be directly determined that the card swiping has failed.
- the method for determining the data to be verified can be seen as follows, and the embodiments of the present application will not be repeated again.
- the target card when the card selection requirement is detected, can be selected from M cards through the card management application, and a card cutting instruction is sent to the security unit.
- the card cutting instruction carries the target main application identifier of the target card.
- One card corresponds to at least one application, and at least one application corresponding to one card includes a main application.
- the target main application identifier can be determined by the security unit according to the card cutting instruction, and a logical mark is set for the target main application identifier in the application identifier set, and the logical mark is used to indicate that the target card is in an activated state.
- the target contactless protocol parameters of the target card can be sent to the near field communication controller, so that the near field communication controller uses the target contactless protocol parameters to perform anti-collision interaction with the card reader.
- the embodiment of the present application does not need to implement the card cutting operation through deactivation and activation operations, so there is no need to perform conflict detection, parameter merging, and flash writing operations. That is to say, the embodiment of the present application can conveniently perform intelligent card cutting, thereby improving the efficiency of intelligent card cutting, and effectively improving the performance of card cutting; and accordingly, the embodiment of the present application does not need to write flash to a fixed position of the security unit, thereby effectively avoiding the impact on the life of the flash, so as to increase the life of the security unit.
- the embodiment of the present application also proposes a more specific smart card cutting method.
- the smart card cutting method can be executed by the electronic device mentioned above, that is, the method can be applied to the electronic device; specifically, the electronic device includes a card management application, a near field communication controller and a security unit, and M cards are installed in the security unit, where M is a positive integer.
- the smart card cutting method may include the following steps S201-S205:
- the card cutting instruction may be a contactless parameter acquisition instruction or a contactless parameter setting instruction, which is not limited in this embodiment of the present application.
- the electronic device can determine the target main application identifier according to the card cutting instruction through the security unit, and set a logical mark for the target main application identifier in the application identifier set.
- the card cutting instruction is a contactless parameter setting instruction
- the contactless parameter setting instruction is used to instruct the security unit to send the target contactless protocol parameters to the near field communication controller; based on this, the electronic device can determine the target contactless protocol parameters of the target card through the security unit according to the contactless parameter setting instruction, and send the target contactless protocol parameters to the near field communication controller.
- the target contactless protocol parameters can be sent by the security unit to the near field communication controller.
- the specific implementation process of the above-mentioned detection of whether the anti-collision interaction under the target contactless protocol parameters fails may include: determining whether the security unit receives the to-be-verified data acquisition instruction sent by the card reader device, and/or determining whether the card swipe is successful; if it is determined that the security unit receives the to-be-verified data acquisition instruction sent by the card reader device or determines that the card swipe is successful, it can be determined that the anti-collision interaction under the target contactless protocol parameters is detected to be successful; if it is determined that the security unit does not receive the to-be-verified data acquisition instruction and determines that the card swipe is not successful, it can be determined that the anti-collision interaction under the target contactless protocol parameters fails to be detected.
- the card management application determines the card swiping result (such as the card swiping success or card swiping failure), it can be detected directly by the card management application, or it can be detected by other modules in the electronic device to send the card swiping result to the card management application, etc.; that is, the card management application can determine whether the card swiping is successful based on various opportunity data, and the embodiments of the present application are not limited to this.
- the data acquisition instruction to be verified may be a layer-4 instruction sent by the card reader to implement layer-4 instruction interaction.
- the data acquisition instruction to be verified may be an APDU (information unit transmitted between the smart card and the card reader) instruction, or a protocol private instruction CMD_x, etc., which is not limited in the embodiment of the present application.
- the data acquisition instruction to be verified may include but is not limited to: application selection instructions, triple authentication instructions for encrypted access control, and various consumption instructions, etc.; the embodiment of the present application The examples are not limited to this.
- a card to be verified is selected from the M cards, and the card to be verified is used to update the target card, thereby triggering the execution of sending a card cutting instruction to the security unit through the card management application.
- the above-mentioned logical tag supports the application identifiers for indicating each application corresponding to the target card, because the logical tag corresponds to the target main application identifier, and the target main application identifier is the application identifier of the main application corresponding to the target card, then based on the correspondence between the target card and at least one application, when the target main application identifier is marked by the logical tag, the logical tag can support the application identifiers for indicating each application corresponding to the target card.
- an application identifier to be verified indicated by the logical tag can be determined from at least one matching application identifier; that is, for any matching application identifier in at least one matching application identifier, it can be determined whether any matching application identifier is set with a logical tag, that is, whether any matching application identifier is set with a logical tag. Whether the identifier is an application identifier indicated by the logical tag. If it is determined that any matching application identifier is an application identifier indicated by the logical tag, any matching application identifier is used as an application identifier to be verified, so as to determine an application identifier to be verified indicated by the logical tag.
- the electronic device can determine the data to be verified of the application indicated by the application identifier to be verified through the security unit, and send the data to be verified to the card reader for data verification, and then send the data to be verified to the near field communication controller, so that the near field communication controller sends the data to be verified to the card reader for data verification.
- the data to be verified can be balance information (such as verifying whether the balance is greater than or equal to the amount required for swiping the card), or a card swiping password (to verify whether the card swiping password is correct), etc.; the embodiment of the present application does not limit this.
- the card cutting instruction is a contactless parameter acquisition instruction
- the contactless parameter acquisition instruction is used to instruct the security unit to return the target contactless protocol parameters to the card management application; when the sending unit 401 sends the target contactless protocol parameters of the target card to the near field communication controller according to the card cutting instruction, it can be specifically used to:
- the target contactless protocol parameters are sent to the near field communication controller via the card management application.
- processing unit 402 may also be used to:
- a card to be verified is selected from the M cards, and the target card is updated with the card to be verified, thereby triggering the execution of sending a card cutting instruction to the security unit through the card management application;
- the card reading device supports sending a to-be-verified data acquisition instruction to perform data verification.
- the security unit determines, from the application identifier set, at least one matching application identifier that matches the local application identifier to be matched, wherein each matching application identifier in the at least one matching application identifier includes the local application identifier to be matched;
- the sending unit 401 may also be used for:
- the data to be verified is sent to the card reading device for data verification.
- the security unit determines, from the at least one matching application identifier, an updated application identifier to be verified indicated by the logic mark;
- the updating of the to-be-verified application identifier is adopted to update the to-be-verified application identifier, so as to trigger the execution of determining the to-be-verified data of the application indicated by the to-be-verified application identifier.
- the card management application detects a smart card selection activation operation, wherein the smart card selection activation operation supports setting the smart card selection function to an activated state; when the smart card selection function is in an activated state, the card management application supports detecting a card selection requirement;
- the card management application is triggered to detect the card selection requirement.
- processing unit 402 may also be used to:
- the contactless state management state is the contactless state management on state
- the step of determining the target main application identifier according to the card switching instruction is triggered, and a logic mark is set for the target main application identifier in the application identifier set.
- processing unit 402 may also be used to:
- each step involved in the method shown in FIG. 1 or FIG. 2 can be executed by each unit in the intelligent card cutting device shown in FIG. 4.
- steps S101 and S103 shown in FIG. 1 can be executed by the sending unit 401 shown in FIG. 4
- step S102 can be executed by the processing unit 402 shown in FIG. 4.
- steps S201 and S203 shown in FIG. 2 can be executed by the sending unit 401 shown in FIG. 4, and steps S202, S204, and S205 can be executed by the processing unit 402 shown in FIG. 4, and so on.
- each unit in the intelligent card cutting device shown in Figure 4 can be separately or completely combined into one or several other units to constitute, or one (some) of the units can be further divided into multiple functionally smaller units to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application.
- the above-mentioned units are divided based on logical functions.
- the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit.
- any intelligent card cutting device can also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
- a computer program capable of executing each step involved in the corresponding method shown in FIG. 1 or FIG. 2 can be run on a general electronic device such as a computer including a central processing unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM) and other processing elements and storage elements to construct a smart card cutting device as shown in FIG. 4 and implement the smart card cutting method of the embodiment of the present application.
- the computer program can be recorded on, for example, a computer storage medium, and loaded into the above-mentioned electronic device through the computer storage medium and run therein.
- the card management application selects a target card from M cards and sends a card cutting instruction to the security unit.
- the card cutting instruction carries the target main application identifier of the target card.
- One card corresponds to at least one application, and at least one application corresponding to one card includes a main application.
- the security unit can determine the target card according to the card cutting instruction.
- the main application identifier is set, and a logical mark is set for the target main application identifier in the application identifier set, and the logical mark is used to indicate that the target card is in an activated state.
- the target contactless protocol parameters of the target card can be sent to the near field communication controller according to the card cutting instruction, so that the near field communication controller uses the target contactless protocol parameters to perform anti-collision interaction with the card reading device.
- the embodiment of the present application does not need to implement the card cutting operation through deactivation and activation operations, so there is no need to perform conflict detection, parameter merging, and flash writing operations.
- the embodiment of the present application can conveniently perform intelligent card cutting, thereby improving the efficiency of intelligent card cutting, which can effectively improve the performance of card cutting; and accordingly, the embodiment of the present application does not need to write flash to a fixed position of the security unit, thereby effectively avoiding the impact on the life of the flash, so as to increase the life of the security unit.
- the exemplary embodiment of the present application further provides an electronic device, including: one or more processors; and one or more memories connected to the one or more processors in communication.
- the one or more memories store a computer program that can be executed by the one or more processors, and the computer program is used to enable the electronic device to perform the method according to the embodiment of the present application when executed by the one or more processors.
- the exemplary embodiment of the present application further provides a more specific electronic device, as shown in FIG5 , the electronic device may include an application processor 501 and a security unit processor 502 ;
- the application processor 501 is used to select a target card from the M cards through the card management application when a card selection requirement is detected, and send a card switching instruction to the security unit, wherein the card switching instruction carries a target main application identifier of the target card, and one card corresponds to at least one application, and the at least one application corresponding to one card includes one main application;
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
Abstract
Description
本申请要求于2023年12月29日提交中国专利局,申请号为2023118619763,申请名称为“智能切卡方法、装置、存储介质及电子设备”的中国申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese application filed with the China Patent Office on December 29, 2023, with application number 2023118619763 and application name “Smart card cutting method, device, storage medium and electronic device”, all contents of which are incorporated by reference in this application.
本申请涉及近场通信技术领域,尤其涉及一种智能切卡方法、装置、存储介质及电子设备。The present application relates to the field of near field communication technology, and in particular to a smart card cutting method, device, storage medium and electronic device.
目前,具有NFC(Near Field Communication,近距离无线通信技术,也可称为近场通信技术)功能的电子设备(如具有NFC功能的手机)可以模拟成NFC卡来使用,即电子设备可模拟符合NFC相关标准的非接触式射频卡,以便与NFC读卡设备进行交互,可用于消费、交通以及门禁等非接触场景中;其中,近场通信技术是由非接触式射频识别及互联互通技术整合演变而来,在单一芯片上结合感应式读卡器、感应式卡片和点对点的功能,能在短距离内与兼容设备进行识别和数据交换。那么相应的,当一个电子设备的安全芯片(如安全元件(Secure Element,SE)或嵌入式安全元件(embedded Secure Element,eSE)等,也可称为安全单元)内安装有多张卡片(即NFC卡,也可称为虚拟卡或智能卡等),且当前所需卡片处于为未激活状态时,相关技术通常需去激活当前激活状态下的卡片,并激活当前所需的未在激活状态下的卡片,进而实现切卡操作,导致智能切卡效率较低。基于此,如何便捷地进行智能切卡,以提高智能切卡效率成为一个研究热点。At present, electronic devices with NFC (Near Field Communication, near-field wireless communication technology, also known as near-field communication technology) function (such as mobile phones with NFC function) can be simulated as NFC cards for use, that is, electronic devices can simulate contactless radio frequency cards that meet NFC standards so as to interact with NFC card readers, which can be used in contactless scenarios such as consumption, transportation, and access control; Among them, near-field communication technology is evolved from the integration of contactless radio frequency identification and interconnection technology, combining inductive card readers, inductive cards and point-to-point functions on a single chip, and can identify and exchange data with compatible devices within a short distance. Then, accordingly, when a security chip of an electronic device (such as a secure element (Secure Element, SE) or an embedded secure element (embedded Secure Element, eSE, etc., also known as a security unit) is installed with multiple cards (i.e., NFC cards, also known as virtual cards or smart cards, etc.), and the currently required card is in an unactivated state, the relevant technology usually needs to deactivate the currently activated card and activate the currently required card that is not in the activated state, thereby realizing the card cutting operation, resulting in low efficiency of smart card cutting. Based on this, how to conveniently perform intelligent card cutting to improve the efficiency of intelligent card cutting has become a research hotspot.
发明内容Summary of the invention
有鉴于此,本申请实施例提供了一种智能切卡方法、装置、存储介质及电子设备,以解决相关技术需通过去激活操作和激活操作实现切卡操作,这会涉及到冲突检测、参数合并以及写flash(闪存)等操作,导致切卡效率较低等问题;也就是说,本申请实施例可便捷地进行智能切卡,从而提高智能切卡效率。In view of this, the embodiments of the present application provide a smart card cutting method, device, storage medium and electronic device to solve the problem that the related technology needs to implement the card cutting operation through deactivation operation and activation operation, which will involve conflict detection, parameter merging and writing flash (flash memory) and other operations, resulting in low card cutting efficiency. In other words, the embodiments of the present application can conveniently perform smart card cutting, thereby improving the efficiency of smart card cutting.
根据本申请的一方面,提供了一种智能切卡方法,所述方法应用于电子 设备,所述电子设备包括卡管理应用、近场通讯控制器以及安全单元,所述安全单元内安装有M张卡片,M为正整数;所述方法包括:According to one aspect of the present application, a smart card cutting method is provided, the method being applied to an electronic The electronic device comprises a card management application, a near field communication controller and a security unit, wherein M cards are installed in the security unit, where M is a positive integer; the method comprises:
在检测到选卡需求时,通过所述卡管理应用从所述M张卡片中选取出目标卡片,并向所述安全单元发送切卡指令,所述切卡指令携带有所述目标卡片的目标主应用标识,一张卡片对应至少一个应用,且一张卡片所对应的至少一个应用包括一个主应用;When a card selection requirement is detected, a target card is selected from the M cards by the card management application, and a card switching instruction is sent to the security unit, wherein the card switching instruction carries a target main application identifier of the target card, and one card corresponds to at least one application, and the at least one application corresponding to one card includes one main application;
通过所述安全单元,根据所述切卡指令确定所述目标主应用标识,并对应用标识集合中的所述目标主应用标识设置逻辑标记,所述逻辑标记用于指示所述目标卡片处于激活状态;Determine the target main application identifier according to the card cutting instruction through the security unit, and set a logic mark for the target main application identifier in the application identifier set, wherein the logic mark is used to indicate that the target card is in an activated state;
按照所述切卡指令,将所述目标卡片的目标非接触式协议参数发送至所述近场通讯控制器,以使所述近场通讯控制器采用所述目标非接触式协议参数与读卡设备进行防冲突交互。According to the card cutting instruction, the target contactless protocol parameters of the target card are sent to the near field communication controller, so that the near field communication controller uses the target contactless protocol parameters to perform anti-collision interaction with the card reading device.
根据本申请的另一方面,提供了一种智能切卡装置,所述装置运行于电子设备上,所述电子设备包括卡管理应用、近场通讯控制器以及安全单元,所述安全单元内安装有M张卡片,M为正整数;所述装置包括:According to another aspect of the present application, a smart card cutting device is provided, the device running on an electronic device, the electronic device comprising a card management application, a near field communication controller and a security unit, the security unit having M cards installed therein, M being a positive integer; the device comprising:
发送单元,用于在检测到选卡需求时,通过所述卡管理应用从所述M张卡片中选取出目标卡片,并向所述安全单元发送切卡指令,所述切卡指令携带有所述目标卡片的目标主应用标识,一张卡片对应至少一个应用,且一张卡片所对应的至少一个应用包括一个主应用;a sending unit, configured to select a target card from the M cards through the card management application when a card selection requirement is detected, and send a card switching instruction to the security unit, wherein the card switching instruction carries a target main application identifier of the target card, wherein one card corresponds to at least one application, and the at least one application corresponding to one card includes one main application;
处理单元,用于通过所述安全单元,根据所述切卡指令确定所述目标主应用标识,并对应用标识集合中的所述目标主应用标识设置逻辑标记,所述逻辑标记用于指示所述目标卡片处于激活状态;a processing unit, configured to determine the target main application identifier according to the card cutting instruction through the security unit, and set a logic mark for the target main application identifier in the application identifier set, wherein the logic mark is used to indicate that the target card is in an activated state;
所述发送单元,还用于按照所述切卡指令,将所述目标卡片的目标非接触式协议参数发送至所述近场通讯控制器,以使所述近场通讯控制器采用所述目标非接触式协议参数与读卡设备进行防冲突交互。The sending unit is further used to send the target contactless protocol parameters of the target card to the near field communication controller according to the card cutting instruction, so that the near field communication controller adopts the target contactless protocol parameters to perform anti-collision interaction with the card reader.
根据本申请的另一方面,提供了一种电子设备,所述电子设备包括一个或多个处理器、以及存储程序的一个或多个存储器,其中,所述程序包括指令,所述指令在由所述一个或多个处理器执行时使所述一个或多个处理器执行上述所提及的方法。According to another aspect of the present application, an electronic device is provided, which includes one or more processors and one or more memories storing programs, wherein the program includes instructions that, when executed by the one or more processors, cause the one or more processors to perform the above-mentioned method.
根据本申请的另一方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使计算机执行上述所提及的方法。 According to another aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the above-mentioned method.
本申请实施例可在检测到选卡需求时,通过卡管理应用从M张卡片中选取出目标卡片,并向安全单元发送切卡指令,切卡指令携带有目标卡片的目标主应用标识,一张卡片对应至少一个应用,且一张卡片所对应的至少一个应用包括一个主应用。基于此,可通过安全单元,根据切卡指令确定目标主应用标识,并对应用标识集合中的目标主应用标识设置逻辑标记,逻辑标记用于指示目标卡片处于激活状态。进一步的,可按照切卡指令,将目标卡片的目标非接触式协议参数发送至近场通讯控制器,以使近场通讯控制器采用目标非接触式协议参数与读卡设备进行防冲突交互。可见,本申请实施例无需通过去激活操作和激活操作实现切卡操作,从而无需执行冲突检测、参数合并以及写flash等操作,也就是说,本申请实施例可便捷地进行智能切卡,从而提高智能切卡效率,即可有效提高切卡的性能;并且相应的,本申请实施例无需对安全单元固定位置写flash,从而有效避免了对flash的寿命影响,以增加安全单元的寿命。In the embodiment of the present application, when the card selection requirement is detected, the target card can be selected from M cards through the card management application, and a card cutting instruction is sent to the security unit. The card cutting instruction carries the target main application identifier of the target card. One card corresponds to at least one application, and at least one application corresponding to one card includes a main application. Based on this, the target main application identifier can be determined by the security unit according to the card cutting instruction, and a logical mark is set for the target main application identifier in the application identifier set, and the logical mark is used to indicate that the target card is in an activated state. Further, according to the card cutting instruction, the target contactless protocol parameters of the target card can be sent to the near field communication controller, so that the near field communication controller uses the target contactless protocol parameters to perform anti-collision interaction with the card reader. It can be seen that the embodiment of the present application does not need to implement the card cutting operation through deactivation and activation operations, so there is no need to perform conflict detection, parameter merging, and flash writing operations. That is to say, the embodiment of the present application can conveniently perform intelligent card cutting, thereby improving the efficiency of intelligent card cutting, and effectively improving the performance of card cutting; and accordingly, the embodiment of the present application does not need to write flash to a fixed position of the security unit, thereby effectively avoiding the impact on the life of the flash, so as to increase the life of the security unit.
在下面结合附图对于示例性实施例的描述中,本申请的更多细节、特征和优点被公开,在附图中:Further details, features and advantages of the present application are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
图1示出了根据本申请示例性实施例的一种智能切卡方法的流程示意图;FIG1 is a schematic diagram showing a flow chart of a smart card cutting method according to an exemplary embodiment of the present application;
图2示出了根据本申请示例性实施例的另一种智能切卡方法的流程示意图;FIG2 shows a schematic flow chart of another smart card cutting method according to an exemplary embodiment of the present application;
图3示出了根据本申请示例性实施例的一种智能选卡开启操作的示意图;FIG3 is a schematic diagram showing a smart card selection and opening operation according to an exemplary embodiment of the present application;
图4示出了根据本申请示例性实施例的一种智能切卡装置的示意性框图;FIG4 shows a schematic block diagram of a smart card cutting device according to an exemplary embodiment of the present application;
图5示出了能够用于实现本申请的实施例的一种示例性电子设备的结构框图;FIG5 shows a block diagram of an exemplary electronic device that can be used to implement the embodiments of the present application;
图6示出了能够用于实现本申请的实施例的另一种示例性电子设备的结构框图。FIG. 6 shows a structural block diagram of another exemplary electronic device that can be used to implement the embodiments of the present application.
下面将参照附图更详细地描述本申请的实施例。虽然附图中显示了本申请的某些实施例,然而应当理解的是,本申请可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加 透彻和完整地理解本申请。应当理解的是,本申请的附图及实施例仅用于示例性作用,并非用于限制本申请的保护范围。The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided for more It should be understood that the drawings and embodiments of the present application are only for illustrative purposes and are not intended to limit the scope of protection of the present application.
应当理解,本申请的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本申请的范围在此方面不受限制。It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and/or performed in parallel. In addition, the method implementation may include additional steps and/or omit the steps shown. The scope of the present application is not limited in this respect.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。需要注意,本申请中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
需要注意,本申请中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
本申请实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of the messages or information exchanged between multiple devices in the embodiments of the present application are only used for illustrative purposes and are not used to limit the scope of these messages or information.
需要说明的是,本申请实施例提供的智能切卡方法的执行主体可以是电子设备,此处的电子设备是指NFC电子设备(即具有NFC功能的电子设备);具体的,电子设备可包括卡管理应用、近场通讯控制器(Near Field Communication Controller,NFCC)以及安全单元,安全单元内安装有M张卡片,M为正整数。其中,电子设备可以是终端(Device Host,DH)或者服务器;相应的,此处所提及的终端可以包括但不限于:智能手机、手环、平板电脑、笔记本电脑、台式计算机、智能手表、智能语音交互设备,等等。此处所提及的服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算(cloud computing)、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器,等等。It should be noted that the execution subject of the smart card cutting method provided in the embodiment of the present application can be an electronic device, and the electronic device here refers to an NFC electronic device (i.e., an electronic device with NFC function); specifically, the electronic device may include a card management application, a near field communication controller (Near Field Communication Controller, NFCC) and a security unit, and M cards are installed in the security unit, where M is a positive integer. Among them, the electronic device can be a terminal (Device Host, DH) or a server; accordingly, the terminal mentioned here can include but is not limited to: smart phones, bracelets, tablet computers, laptops, desktop computers, smart watches, smart voice interaction devices, etc. The server mentioned here can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing (cloud computing), cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms, etc.
在介绍本申请实施例之前,首先对电子设备模拟的虚拟卡进行简单介绍:Before introducing the embodiments of the present application, a virtual card simulated by an electronic device is briefly introduced:
传统的各种智能卡,比如公交卡、银行卡、医保卡等,因为卡内含有芯 片而能被各种读卡器(即读卡设备)读取数据进行刷卡,而常见的用于智能卡的芯片有两大类,一类是接触式刷卡,比如常见的插卡POS机(point of sale,销售终端),另一类是非接触式刷卡,其内含有类似NFC的非接触式数据传输控制芯片(含配套天线),比如常见的靠近读卡机刷卡的公交卡。将这些常见的实体卡片功能,通过电子设备来模拟,就称为虚拟卡,这时并没有实实在在的卡片存在,只是通过电子设备内添加卡片的相关信息或程序以“模拟”一张智能卡,这样同一个电子设备可以通过NFC芯片和安全元件的配合实现多种卡、多张卡的模拟,相当于在电子设备上安装了多张智能卡,其中可以简单理解为安全元件内存储了用于模拟多张卡片的信息,通过与其连接的NFC芯片与外部的读卡器进行信息交互,实现刷卡功能。通过这些“模拟卡”(虚拟卡)可以在不同场合使用同一个电子设备实现不同卡的刷卡认证、刷卡消费等行为。Traditional smart cards, such as bus cards, bank cards, medical insurance cards, etc., contain chips. The chip can be read by various card readers (i.e., card reading devices) to swipe the card. There are two common types of chips used for smart cards. One is contact swiping, such as the common card insertion POS machine (point of sale, sales terminal), and the other is contactless swiping, which contains a contactless data transmission control chip similar to NFC (including supporting antenna), such as the common bus card that is swiped by approaching the card reader. The simulation of these common physical card functions through electronic devices is called a virtual card. At this time, there is no real card. It is just to add relevant information or programs of the card in the electronic device to "simulate" a smart card. In this way, the same electronic device can realize the simulation of multiple cards and multiple cards through the cooperation of NFC chips and security elements, which is equivalent to installing multiple smart cards on the electronic device. It can be simply understood that the security element stores information for simulating multiple cards, and the NFC chip connected to it interacts with the external card reader to realize the card swiping function. Through these "simulated cards" (virtual cards), the same electronic device can be used in different occasions to realize card authentication, card swiping consumption and other behaviors of different cards.
基于上述描述,本申请实施例提出一种智能切卡方法,该智能切卡方法可以由上述所提及的电子设备执行,即该方法可应用于电子设备;具体的,电子设备包括卡管理应用、近场通讯控制器以及安全单元,安全单元内安装有M张卡片,M为正整数。如图1所示,该智能切卡方法可包括以下步骤S101-S103:Based on the above description, the embodiment of the present application proposes a smart card cutting method, which can be executed by the electronic device mentioned above, that is, the method can be applied to the electronic device; specifically, the electronic device includes a card management application, a near field communication controller and a security unit, and M cards are installed in the security unit, where M is a positive integer. As shown in Figure 1, the smart card cutting method may include the following steps S101-S103:
S101,在检测到选卡需求时,通过卡管理应用从M张卡片中选取出目标卡片,并向安全单元发送切卡指令,切卡指令携带有目标卡片的目标主应用标识,一张卡片对应至少一个应用,且一张卡片所对应的至少一个应用包括一个主应用。S101, when a card selection requirement is detected, a target card is selected from M cards through the card management application, and a card cutting instruction is sent to the security unit. The card cutting instruction carries the target main application identifier of the target card. One card corresponds to at least one application, and at least one application corresponding to one card includes a main application.
其中,卡管理应用可用于对上述M张卡片进行管理。应当理解的是,电子设备通过卡管理应用所执行的操作,也可以表示为电子设备中的卡管理应用所执行的操作,本申请实施例对此不作限定。The card management application can be used to manage the M cards. It should be understood that the operations performed by the electronic device through the card management application can also be represented as operations performed by the card management application in the electronic device, and the embodiments of the present application do not limit this.
在本申请实施例中,卡管理应用可以支持用于检测选卡需求;可选的,电子设备可通过卡管理应用直接检测选卡需求;或者,电子设备也可通过其他模块(如近场通讯控制器)检测选卡需求,并在检测到选卡需求时,将选卡需求通知发送至卡管理应用,以使卡管理应用检测到选卡需求,从而实现卡管理应用检测选卡需求,等等;本申请实施例对此不作限定。可选的,在检测到电子设备进入读卡设备的射频范围时,可确定检测到刷卡需求,从而确定检测到选卡需求。可选的,此处所提及的读卡设备可以是任一NFC读 卡设备。In the embodiments of the present application, the card management application may support the detection of card selection requirements; optionally, the electronic device may directly detect the card selection requirements through the card management application; or, the electronic device may also detect the card selection requirements through other modules (such as a near field communication controller), and when the card selection requirements are detected, the card selection requirement notification is sent to the card management application, so that the card management application detects the card selection requirements, thereby enabling the card management application to detect the card selection requirements, and so on; the embodiments of the present application are not limited to this. Optionally, when it is detected that the electronic device enters the radio frequency range of the card reader device, it can be determined that a card swipe requirement is detected, thereby determining that a card selection requirement is detected. Optionally, the card reader device mentioned here can be any NFC reader. Card device.
可选的,在从M张卡片中选取出目标卡片时,可从M张卡片中随机选取一张卡片,并将随机选取的卡片作为目标卡片;或者,可对M张卡片进行排序,并按照排序结果从M张卡片中选取出目标卡片,等等;本申请实施例对此不作限定。可选的,可按照安装时间对M张卡片进行排序,也可按照刷卡频率对M张卡片进行排序,等等;本申请实施例对此不作限定。Optionally, when selecting a target card from M cards, a card may be randomly selected from the M cards and the randomly selected card may be used as the target card; or, the M cards may be sorted and the target card may be selected from the M cards according to the sorting result, etc.; this embodiment of the present application does not limit this. Optionally, the M cards may be sorted according to the installation time, or the M cards may be sorted according to the card swiping frequency, etc.; this embodiment of the present application does not limit this.
需要说明的是,目标主应用标识可以为目标卡片对应的至少一个应用中主应用(即目标卡片对应的主应用)的应用标识(即全匹配应用标识,也可称为全局应用标识)。可选的,一个应用标识可以是数字标识,也可以是字符串标识等,本申请实施例对此不作限定。It should be noted that the target main application identifier can be the application identifier (i.e., a fully matching application identifier, also known as a global application identifier) of the main application in at least one application corresponding to the target card (i.e., the main application corresponding to the target card). Optionally, an application identifier can be a digital identifier or a string identifier, etc., which is not limited in the embodiments of the present application.
可选的,目标卡片对应的主应用可以为目标卡片对应的至少一个应用中的任一应用,如指定应用或目标卡片对应的至少一个应用中第一个安装的应用等,本申请实施例对此不作限定。示例性的,当目标卡片对应的应用数量为一个时,可确定目标卡片对应的应用即为目标卡片对应的主应用,即可直接通过目标卡片对应的应用确定目标卡片对应的主应用;当目标卡片对应的应用数量为多个时,可基于主应用指示标识确定目标卡片对应的主应用,在此种情况下,目标卡片对应的应用中存在具有主应用指示标识的应用;其中,主应用指示标识可以与上述指定应用相对应,也可以与上述第一个安装的应用相对应等,本申请实施例对此不作限定。可选的,指定应用和主应用指示标识均可以是按照经验设置的,也可以是按照实际需求设置的,本申请实施例对此不作限定。Optionally, the main application corresponding to the target card can be any application in at least one application corresponding to the target card, such as a designated application or the first installed application in at least one application corresponding to the target card, etc., and the embodiments of the present application do not limit this. Exemplarily, when the number of applications corresponding to the target card is one, it can be determined that the application corresponding to the target card is the main application corresponding to the target card, that is, the main application corresponding to the target card can be directly determined by the application corresponding to the target card; when the number of applications corresponding to the target card is multiple, the main application corresponding to the target card can be determined based on the main application indication identifier. In this case, there is an application with a main application indication identifier in the applications corresponding to the target card; wherein, the main application indication identifier can correspond to the above-mentioned designated application, or can correspond to the above-mentioned first installed application, etc., and the embodiments of the present application do not limit this. Optionally, both the designated application and the main application indication identifier can be set according to experience, or can be set according to actual needs, and the embodiments of the present application do not limit this.
可选的,卡管理应用和安全单元之间的通信通路可以为SPI(Serial Peripheral interface,串行外围设备接口,一种接触通道)或者Apdu Gate(另一种接触通道)等,本申请实施例对此不作限定。Optionally, the communication path between the card management application and the security unit can be SPI (Serial Peripheral interface, a contact channel) or Apdu Gate (another contact channel), etc., which is not limited to the embodiments of the present application.
S102,通过安全单元,根据切卡指令确定目标主应用标识,并对应用标识集合中的目标主应用标识设置逻辑标记,逻辑标记用于指示目标卡片处于激活状态。S102, determining the target main application identifier according to the card cutting instruction through the security unit, and setting a logical mark for the target main application identifier in the application identifier set, wherein the logical mark is used to indicate that the target card is in an activated state.
需要说明的是,电子设备通过安全单元所执行的操作,也可以表示为电子设备中的安全单元所执行的操作,本申请实施例对此不作限定。It should be noted that the operations performed by the electronic device through the security unit can also be expressed as operations performed by the security unit in the electronic device, which is not limited in the embodiments of the present application.
在本申请实施例中,在安全单元接收到卡管理应用发送的切卡指令后,电子设备中的安全单元可基于切卡指令所携带的目标主应用标识,确定目标 主应用标识。In the embodiment of the present application, after the security unit receives the card cutting instruction sent by the card management application, the security unit in the electronic device can determine the target main application identifier carried by the card cutting instruction. The main application identifier.
可选的,应用标识集合可包括M张卡片中各张卡片对应的每个应用的应用标识,也就是说,应用标识集合可包括任一张卡片对应的至少一个应用中各个应用的应用标识。可选的,逻辑标记可以是数字标记,也可以是字母标记等,本申请实施例对此不作限定。Optionally, the application identification set may include the application identification of each application corresponding to each card in the M cards, that is, the application identification set may include the application identification of each application in at least one application corresponding to any card. Optionally, the logical tag may be a digital tag or an alphabetic tag, etc., which is not limited in the embodiments of the present application.
在一种实施方式中,在对应用标识集合中的目标主应用标识设置逻辑标记时,可采用逻辑标记对应用标识集合中的目标主应用标识进行标记,也就是说,可添加目标主应用标识对应的逻辑标记,以实现对目标主应用标识设置逻辑标记。在此种情况下,当应用标识集合中存在多个被标记的应用标识时,一个应用标识可对应一个逻辑标记。可选的,各个被标记的应用标识对应的逻辑标记可以相同,也可以不同,本申请实施例对此不作限定。In one embodiment, when setting a logical tag for a target main application identifier in an application identifier set, the target main application identifier in the application identifier set can be marked with a logical tag, that is, a logical tag corresponding to the target main application identifier can be added to achieve the setting of a logical tag for the target main application identifier. In this case, when there are multiple marked application identifiers in the application identifier set, one application identifier can correspond to one logical tag. Optionally, the logical tags corresponding to each marked application identifier can be the same or different, and this embodiment of the present application is not limited to this.
另一种实施方式中,在对应用标识集合中的目标主应用标识设置逻辑标记时,可采用逻辑标记和目标主应用标识构建键值对,且此时键值对可以是一对多的关系,key(关键字)可以为逻辑标记,value(值)为空或者至少一个应用标识(如包括目标主应用标识);基于此,可将目标主应用标识添加至逻辑标记对应的标记值中,即添加至value中,以实现对目标主应用标识设置逻辑标记,等等。In another implementation, when setting a logical tag for a target main application identifier in an application identifier set, a key-value pair can be constructed using the logical tag and the target main application identifier, and at this time the key-value pair can be a one-to-many relationship, the key can be a logical tag, the value can be empty or at least one application identifier (such as including the target main application identifier); based on this, the target main application identifier can be added to the tag value corresponding to the logical tag, that is, added to the value, to achieve the setting of the logical tag for the target main application identifier, and so on.
S103,按照切卡指令,将目标卡片的目标非接触式协议参数发送至近场通讯控制器,以使近场通讯控制器采用目标非接触式协议参数与读卡设备进行防冲突交互。S103, according to the card cutting instruction, sending the target contactless protocol parameters of the target card to the near field communication controller, so that the near field communication controller adopts the target contactless protocol parameters to perform anti-collision interaction with the card reading device.
在本申请实施例中,可将目标非接触式协议参数发送至近场通讯控制器,以作为-3层防冲突的参数;具体的,电子设备可通过近场通讯控制器将目标非接触式协议参数发送至读卡设备,以使读卡设备采用目标非接触式协议参数进行-3层防冲突校验(即防冲突校验),从而实现通过近场通讯控制器采用目标非接触式协议参数与读卡设备进行防冲突交互。In an embodiment of the present application, the target contactless protocol parameters can be sent to the near field communication controller as parameters for -3 layer anti-collision; specifically, the electronic device can send the target contactless protocol parameters to the card reader device through the near field communication controller, so that the card reader device uses the target contactless protocol parameters to perform -3 layer anti-collision verification (i.e., anti-collision verification), thereby achieving anti-collision interaction with the card reader device through the near field communication controller using the target contactless protocol parameters.
可选的,非接触式协议参数可以包括但不限于:UID(User Identification,用户身份证明)、SAK/SEL_RES(一种卡片类型)、ATS(Answer To Select,选择应答)、ATQA(应答返回的卡类型)等卡片标识、卡片类型标识相关的参数,读卡设备可通过对接收到的非接触式协议参数进行校验,判断防冲突是否成功。Optionally, the contactless protocol parameters may include, but are not limited to, UID (User Identification), SAK/SEL_RES (a type of card), ATS (Answer To Select), ATQA (card type returned in response), and other parameters related to card identification and card type identification. The card reader device can determine whether anti-collision is successful by verifying the received contactless protocol parameters.
需要说明的是,根据卡片的卡片类型不同,刷卡校验方式也可不同。可 选的,卡片的卡片类型包括第一类型和第二类型,第一类型的刷卡校验可仅包括防冲突校验,比如,普通门禁卡;第二类型的刷卡校验可包括防冲突校验和待验证数据校验,比如,加密门禁卡、银行卡、交通卡等。针对第一类型的卡片,读卡设备根据防冲突校验是否校验成功即可确定是否刷卡成功,从而可确定智能选卡是否成功;针对第二类型的卡片,由于存在加解密、消费等数据验证的需求,读卡设备在确定防冲突校验成功的情况下,会继续执行加解密、消费等数据校验,即可发送待验证数据获取指令以获取待验证数据等,从而确定最终的刷卡结果;在防冲突校验失败的情况下,则可直接认定刷卡失败。其中,待验证数据的确定方式可见下述所示,本申请实施例再次不再赘述。It should be noted that the card verification method may be different depending on the card type. The card types selected include the first type and the second type. The card swiping verification of the first type may only include anti-collision verification, such as ordinary access control cards; the card swiping verification of the second type may include anti-collision verification and verification of data to be verified, such as encrypted access control cards, bank cards, transportation cards, etc. For the first type of card, the card reading device can determine whether the card swiping is successful based on whether the anti-collision verification is successful, thereby determining whether the smart card selection is successful; for the second type of card, due to the need for encryption, decryption, consumption and other data verification, the card reading device will continue to perform encryption, decryption, consumption and other data verifications when determining that the anti-collision verification is successful, and can send instructions for obtaining data to be verified to obtain data to be verified, etc., thereby determining the final card swiping result; in the case of failure of the anti-collision verification, it can be directly determined that the card swiping has failed. Among them, the method for determining the data to be verified can be seen as follows, and the embodiments of the present application will not be repeated again.
本申请实施例可在检测到选卡需求时,通过卡管理应用从M张卡片中选取出目标卡片,并向安全单元发送切卡指令,切卡指令携带有目标卡片的目标主应用标识,一张卡片对应至少一个应用,且一张卡片所对应的至少一个应用包括一个主应用。基于此,可通过安全单元,根据切卡指令确定目标主应用标识,并对应用标识集合中的目标主应用标识设置逻辑标记,逻辑标记用于指示目标卡片处于激活状态。进一步的,可按照切卡指令,将目标卡片的目标非接触式协议参数发送至近场通讯控制器,以使近场通讯控制器采用目标非接触式协议参数与读卡设备进行防冲突交互。可见,本申请实施例无需通过去激活操作和激活操作实现切卡操作,从而无需执行冲突检测、参数合并以及写flash等操作,也就是说,本申请实施例可便捷地进行智能切卡,从而提高智能切卡效率,即可有效提高切卡的性能;并且相应的,本申请实施例无需对安全单元固定位置写flash,从而有效避免了对flash的寿命影响,以增加安全单元的寿命。In the embodiment of the present application, when the card selection requirement is detected, the target card can be selected from M cards through the card management application, and a card cutting instruction is sent to the security unit. The card cutting instruction carries the target main application identifier of the target card. One card corresponds to at least one application, and at least one application corresponding to one card includes a main application. Based on this, the target main application identifier can be determined by the security unit according to the card cutting instruction, and a logical mark is set for the target main application identifier in the application identifier set, and the logical mark is used to indicate that the target card is in an activated state. Further, according to the card cutting instruction, the target contactless protocol parameters of the target card can be sent to the near field communication controller, so that the near field communication controller uses the target contactless protocol parameters to perform anti-collision interaction with the card reader. It can be seen that the embodiment of the present application does not need to implement the card cutting operation through deactivation and activation operations, so there is no need to perform conflict detection, parameter merging, and flash writing operations. That is to say, the embodiment of the present application can conveniently perform intelligent card cutting, thereby improving the efficiency of intelligent card cutting, and effectively improving the performance of card cutting; and accordingly, the embodiment of the present application does not need to write flash to a fixed position of the security unit, thereby effectively avoiding the impact on the life of the flash, so as to increase the life of the security unit.
基于上述描述,本申请实施例还提出一种更为具体的智能切卡方法。相应的,该智能切卡方法可以由上述所提及的电子设备执行,即该方法可应用于电子设备;具体的,电子设备包括卡管理应用、近场通讯控制器以及安全单元,安全单元内安装有M张卡片,M为正整数。请参见图2,该智能切卡方法可包括以下步骤S201-S205:Based on the above description, the embodiment of the present application also proposes a more specific smart card cutting method. Accordingly, the smart card cutting method can be executed by the electronic device mentioned above, that is, the method can be applied to the electronic device; specifically, the electronic device includes a card management application, a near field communication controller and a security unit, and M cards are installed in the security unit, where M is a positive integer. Please refer to Figure 2, the smart card cutting method may include the following steps S201-S205:
S201,在检测到选卡需求时,通过卡管理应用从M张卡片中选取出目标卡片,并向安全单元发送切卡指令,切卡指令携带有目标卡片的目标主应 用标识,一张卡片对应至少一个应用,且一张卡片所对应的至少一个应用包括一个主应用。S201, when a card selection requirement is detected, a target card is selected from M cards through the card management application, and a card cutting instruction is sent to the security unit. The card cutting instruction carries the target main application of the target card. With identification, one card corresponds to at least one application, and the at least one application corresponding to one card includes a main application.
可选的,切卡指令可以是非接参数获取指令或非接参数设置指令,本申请实施例对此不作限定。Optionally, the card cutting instruction may be a contactless parameter acquisition instruction or a contactless parameter setting instruction, which is not limited in this embodiment of the present application.
S202,通过安全单元,根据切卡指令确定目标主应用标识,并对应用标识集合中的目标主应用标识设置逻辑标记,逻辑标记用于指示目标卡片处于激活状态。S202, determining the target main application identifier according to the card cutting instruction through the security unit, and setting a logical mark for the target main application identifier in the application identifier set, wherein the logical mark is used to indicate that the target card is in an activated state.
应当理解的是,不管切卡指令是非接参数获取指令,还是非接参数设置指令,电子设备均可通过安全单元,根据切卡指令确定目标主应用标识,并对应用标识集合中的目标主应用标识设置逻辑标记。It should be understood that no matter whether the card cutting instruction is a contactless parameter acquisition instruction or a contactless parameter setting instruction, the electronic device can determine the target main application identifier according to the card cutting instruction through the security unit, and set a logical mark for the target main application identifier in the application identifier set.
S203,按照切卡指令,将目标卡片的目标非接触式协议参数发送至近场通讯控制器,以使近场通讯控制器采用目标非接触式协议参数与读卡设备进行防冲突交互。S203, sending the target contactless protocol parameters of the target card to the near field communication controller according to the card cutting instruction, so that the near field communication controller adopts the target contactless protocol parameters to perform anti-collision interaction with the card reading device.
在一种实施方式中,切卡指令为非接参数设置指令,非接参数设置指令用于指导安全单元向近场通讯控制器发送目标非接触式协议参数;基于此,电子设备可通过安全单元,按照非接参数设置指令确定目标卡片的目标非接触式协议参数,并将目标非接触式协议参数发送至近场通讯控制器。在此种情况下,目标非接触式协议参数可以是安全单元发送至近场通讯控制器的。In one embodiment, the card cutting instruction is a contactless parameter setting instruction, and the contactless parameter setting instruction is used to instruct the security unit to send the target contactless protocol parameters to the near field communication controller; based on this, the electronic device can determine the target contactless protocol parameters of the target card through the security unit according to the contactless parameter setting instruction, and send the target contactless protocol parameters to the near field communication controller. In this case, the target contactless protocol parameters can be sent by the security unit to the near field communication controller.
另一种实施方式中,切卡指令为非接参数获取指令,非接参数获取指令用于指导安全单元向卡管理应用返回目标非接触式协议参数;基于此,电子设备可通过安全单元,按照非接参数获取指令确定目标卡片的目标非接触式协议参数,并将目标非接触式协议参数返回至卡管理应用;那么相应的,电子设备可通过卡管理应用,将目标非接触式协议参数发送至近场通讯控制器。在此种情况下,目标非接触式协议参数可以是卡管理应用发送至近场通讯控制器的。可见,本申请的智能切卡方法通过终端的卡管理应用主导切卡时机及方式。In another embodiment, the card cutting instruction is a contactless parameter acquisition instruction, and the contactless parameter acquisition instruction is used to instruct the security unit to return the target contactless protocol parameters to the card management application; based on this, the electronic device can determine the target contactless protocol parameters of the target card through the security unit according to the contactless parameter acquisition instruction, and return the target contactless protocol parameters to the card management application; then correspondingly, the electronic device can send the target contactless protocol parameters to the near field communication controller through the card management application. In this case, the target contactless protocol parameters can be sent to the near field communication controller by the card management application. It can be seen that the smart card cutting method of the present application controls the timing and method of card cutting through the terminal's card management application.
可选的,在确定目标卡片的目标非接触式协议参数时,可基于目标主应用标识确定目标卡片对应的主应用的非接触式协议参数,并将目标卡片对应的主应用的非接触式协议参数作为目标非接触式协议参数;或者,一张卡片对应的至少一个应用中各个应用的非接触式协议参数相同,那么一张卡片可与相应应用的非接触式协议参数相对应,即一张卡片的卡片标识可与一个非 接触式协议参数相对应,在此种情况下,可基于目标主应用标识确定目标卡片的卡片标识,并将目标卡片的卡片标识对应的非接触式协议参数,作为目标非接触式协议参数;或者,切卡指令还可携带目标卡片的卡片标识,那么可根据切卡指令确定目标卡片的卡片标识,并将目标卡片的卡片标识对应的非接触式协议参数,作为目标非接触式协议参数,等等;本申请实施例对此不作限定。Optionally, when determining the target contactless protocol parameters of the target card, the contactless protocol parameters of the main application corresponding to the target card may be determined based on the target main application identifier, and the contactless protocol parameters of the main application corresponding to the target card may be used as the target contactless protocol parameters; or, if the contactless protocol parameters of each application in at least one application corresponding to a card are the same, then a card may correspond to the contactless protocol parameters of the corresponding application, that is, the card identifier of a card may correspond to a non- Corresponding to the contact protocol parameters, in this case, the card identifier of the target card can be determined based on the target main application identifier, and the contactless protocol parameters corresponding to the card identifier of the target card can be used as the target contactless protocol parameters; alternatively, the card cutting instruction can also carry the card identifier of the target card, then the card identifier of the target card can be determined according to the card cutting instruction, and the contactless protocol parameters corresponding to the card identifier of the target card can be used as the target contactless protocol parameters, and so on; the embodiments of the present application are not limited to this.
S204,通过卡管理应用,检测目标非接触式协议参数下的防冲突交互是否失败。S204, detecting, through the card management application, whether the anti-collision interaction under the target contactless protocol parameters fails.
在本申请实施例中,电子设备可通过卡管理应用,从开始等待时刻起,间隔预设等待时长,检测目标非接触式协议参数下的防冲突交互是否失败;可选的,预设等待时长可以是按照经验设置的,也可以是按照实际需求设置的,本申请实施例对此不作限定。In an embodiment of the present application, the electronic device may, through a card management application, detect whether the anti-collision interaction under the target contactless protocol parameters fails at intervals of a preset waiting time starting from the start of the waiting time; optionally, the preset waiting time may be set according to experience or according to actual needs, and the embodiment of the present application is not limited to this.
可选的,上述开始等待时刻可以为卡管理应用将目标非接触式协议参数发送至近场通讯控制器的时刻,也可以为卡管理应用发送切卡指令的时刻,还可以为安全单元将目标非接触式协议参数发送至近场通讯控制器的时刻,等等;本申请实施例对此不作限定。Optionally, the above-mentioned start waiting time may be the time when the card management application sends the target contactless protocol parameters to the near field communication controller, or the time when the card management application sends the card cutting instruction, or the time when the security unit sends the target contactless protocol parameters to the near field communication controller, etc.; the embodiments of the present application are not limited to this.
具体的,上述检测目标非接触式协议参数下的防冲突交互是否失败的具体实施过程可以包括:,确定安全单元是否接受到读卡设备发送的待验证数据获取指令,和/或确定是否刷卡成功;若确定安全单元接受到读卡设备发送的待验证数据获取指令或确定刷卡成功,则可确定检测到目标非接触式协议参数下的防冲突交互成功;若确定安全单元未接收到待验证数据获取指令且确定未刷卡成功,则可确定检测到目标非接触式协议参数下的防冲突交互失败。可选的,卡管理应用在确定刷卡结果(如刷卡成功或刷卡失败)时,可以是卡管理应用直接检测的,也可以是电子设备中的其他模块检测以将刷卡结果发送至卡管理应用的,等等;也就是说,卡管理应用可根据各种机会数据,判断是否刷卡成功,本申请实施例对此不作限定。Specifically, the specific implementation process of the above-mentioned detection of whether the anti-collision interaction under the target contactless protocol parameters fails may include: determining whether the security unit receives the to-be-verified data acquisition instruction sent by the card reader device, and/or determining whether the card swipe is successful; if it is determined that the security unit receives the to-be-verified data acquisition instruction sent by the card reader device or determines that the card swipe is successful, it can be determined that the anti-collision interaction under the target contactless protocol parameters is detected to be successful; if it is determined that the security unit does not receive the to-be-verified data acquisition instruction and determines that the card swipe is not successful, it can be determined that the anti-collision interaction under the target contactless protocol parameters fails to be detected. Optionally, when the card management application determines the card swiping result (such as the card swiping success or card swiping failure), it can be detected directly by the card management application, or it can be detected by other modules in the electronic device to send the card swiping result to the card management application, etc.; that is, the card management application can determine whether the card swiping is successful based on various opportunity data, and the embodiments of the present application are not limited to this.
其中,待验证数据获取指令可以是读卡设备发送的-4层指令,以实现-4层指令交互。可选的,待验证数据获取指令可以是APDU(智能卡与读卡设备之间传送的信息单元)指令,也可以是协议私有指令CMD_x等,本申请实施例对此不作限定。可选的,待验证数据获取指令可以包括但不限于:应用选择指令,加密门禁的三重认证指令以及各种消费指令,等等;本申请实 施例对此不作限定。The data acquisition instruction to be verified may be a layer-4 instruction sent by the card reader to implement layer-4 instruction interaction. Optionally, the data acquisition instruction to be verified may be an APDU (information unit transmitted between the smart card and the card reader) instruction, or a protocol private instruction CMD_x, etc., which is not limited in the embodiment of the present application. Optionally, the data acquisition instruction to be verified may include but is not limited to: application selection instructions, triple authentication instructions for encrypted access control, and various consumption instructions, etc.; the embodiment of the present application The examples are not limited to this.
S205,若检测到防冲突交互失败,则从M张卡片中选取出待校验卡片,并采用待校验卡片更新目标卡片,从而触发执行通过卡管理应用向安全单元发送切卡指令。S205, if it is detected that the anti-collision interaction fails, a card to be verified is selected from the M cards, and the card to be verified is used to update the target card, thereby triggering the execution of sending a card cutting instruction to the security unit through the card management application.
其中,在目标非接触式协议参数下的防冲突交互成功时,读卡设备支持发送待验证数据获取指令进行数据校验。具体的,读卡设备可支持将待验证数据获取指令发送至近场通讯控制器。When the anti-collision interaction under the target contactless protocol parameters is successful, the card reader device supports sending a to-be-verified data acquisition instruction for data verification. Specifically, the card reader device can support sending the to-be-verified data acquisition instruction to the near field communication controller.
在本申请实施例中,待验证数据获取指令可包括待匹配局部应用标识,待验证数据获取指令用于请求待匹配局部应用标识所指示应用的待验证数据,一个局部应用标识与至少一个应用标识相对应,一个局部应用标识对应的应用标识包括相应的局部应用标识(即一个局部应用标识可以为相应应用标识中的部分标识),且待匹配局部应用标识所指示应用包括待匹配局部应用标识对应的各个应用标识所指示的应用;安全单元支持接收待验证数据获取指令,也就是说,在近场通讯控制器接收到读卡设备发送的待验证数据获取指令后,近场通讯控制器可将待验证数据获取指令发送至安全单元,以使安全单元接收到待验证数据获取指令。并且,上述逻辑标记支持用于指示目标卡片对应的各个应用的应用标识,这是由于逻辑标记与目标主应用标识相对应,目标主应用标识为目标卡片对应主应用的应用标识,那么基于目标卡片与至少一个应用之间的对应关系,在采用逻辑标记对目标主应用标识进行标记的情况下,逻辑标记可支持用于指示目标卡片对应的各个应用的应用标识。In an embodiment of the present application, the instruction for obtaining data to be verified may include a local application identifier to be matched, the instruction for obtaining data to be verified is used to request the data to be verified of the application indicated by the local application identifier to be matched, a local application identifier corresponds to at least one application identifier, an application identifier corresponding to a local application identifier includes a corresponding local application identifier (i.e., a local application identifier may be a partial identifier in the corresponding application identifier), and the application indicated by the local application identifier to be matched includes the application indicated by each application identifier corresponding to the local application identifier to be matched; the security unit supports receiving the instruction for obtaining data to be verified, that is, after the near field communication controller receives the instruction for obtaining data to be verified sent by the card reader, the near field communication controller may send the instruction for obtaining data to be verified to the security unit, so that the security unit receives the instruction for obtaining data to be verified. In addition, the above-mentioned logical tag supports the application identifiers for indicating each application corresponding to the target card, because the logical tag corresponds to the target main application identifier, and the target main application identifier is the application identifier of the main application corresponding to the target card, then based on the correspondence between the target card and at least one application, when the target main application identifier is marked by the logical tag, the logical tag can support the application identifiers for indicating each application corresponding to the target card.
进一步的,在安全单元接收到待验证数据获取指令后,电子设备可通过安全单元从应用标识集合中,确定出与待匹配局部应用标识相匹配的至少一个匹配应用标识,至少一个匹配应用标识中的各个匹配应用标识均包括待匹配局部应用标识;具体的,针对应用标识集合中的任一应用标识,若任一应用标识包括待匹配局部应用标识,则可将该任一应用标识作为一个与待匹配局部应用标识相匹配的匹配应用标识,以实现确定出与待匹配局部应用标识相匹配的至少一个匹配应用标识。Furthermore, after the security unit receives the instruction to obtain the data to be verified, the electronic device can determine, through the security unit, at least one matching application identifier that matches the local application identifier to be matched from the application identifier set, and each matching application identifier in the at least one matching application identifier includes the local application identifier to be matched; specifically, for any application identifier in the application identifier set, if any application identifier includes the local application identifier to be matched, then any application identifier can be used as a matching application identifier that matches the local application identifier to be matched, so as to determine at least one matching application identifier that matches the local application identifier to be matched.
基于此,可从至少一个匹配应用标识中,确定出逻辑标记所指示的一个待验证应用标识;也就是说,针对至少一个匹配应用标识中的任一匹配应用标识,可确定任一匹配应用标识是否设置有逻辑标记,即确定任一匹配应用 标识是否为逻辑标记所指示的一个应用标识,若确定任一匹配应用标识为逻辑标记所指示的一个应用标识,则将任一匹配应用标识作为待验证应用标识,以实现确定出逻辑标记所指示的一个待验证应用标识。Based on this, an application identifier to be verified indicated by the logical tag can be determined from at least one matching application identifier; that is, for any matching application identifier in at least one matching application identifier, it can be determined whether any matching application identifier is set with a logical tag, that is, whether any matching application identifier is set with a logical tag. Whether the identifier is an application identifier indicated by the logical tag. If it is determined that any matching application identifier is an application identifier indicated by the logical tag, any matching application identifier is used as an application identifier to be verified, so as to determine an application identifier to be verified indicated by the logical tag.
那么相应的,电子设备可通过安全单元,确定待验证应用标识所指示应用的待验证数据,并将待验证数据发送至读卡设备进行数据校验,即可将待验证数据发送至近场通讯控制器,以使近场通讯控制器将待验证数据发送至读卡设备进行数据校验。其中,待验证数据可以为余额信息(如验证余额是否大于或等于刷卡所需金额),也可以为刷卡密码(以验证刷卡密码是否正确),等等;本申请实施例对此不作限定。Then, correspondingly, the electronic device can determine the data to be verified of the application indicated by the application identifier to be verified through the security unit, and send the data to be verified to the card reader for data verification, and then send the data to be verified to the near field communication controller, so that the near field communication controller sends the data to be verified to the card reader for data verification. The data to be verified can be balance information (such as verifying whether the balance is greater than or equal to the amount required for swiping the card), or a card swiping password (to verify whether the card swiping password is correct), etc.; the embodiment of the present application does not limit this.
进一步的,在安全单元检测到待验证数据校验失败后,电子设备可通过安全单元从至少一个匹配应用标识中,确定出逻辑标记所指示的一个更新待验证应用标识,更新待验证应用标识为至少一个匹配应用标识中未被选取过的应用标识;并采用更新待验证应用标识,对待验证应用标识进行更新,以触发执行确定待验证应用标识所指示应用的待验证数据,即可确定更新待验证应用标识所指示应用的待验证数据。需要说明的是,在确定更新待验证应用标识时,若至少一个匹配应用标识中不存在未被选取过的应用标识,即至少一个匹配应用标识中的所有匹配应用标识均被选取后,可停止确定更新待验证应用标识,此时-4层指令交互失败,在此种情况下,卡管理应用可检测到刷卡失败。可见,安全单元可依次从至少一个匹配应用标识中确定出一个待验证应用标识,直至刷卡成功或至少一个匹配应用标识中的所有匹配应用标识均被选取。Further, after the security unit detects that the verification of the data to be verified fails, the electronic device can determine an updated application identifier to be verified indicated by the logic mark from at least one matching application identifier through the security unit, and update the application identifier to be verified to an application identifier that has not been selected in at least one matching application identifier; and use the updated application identifier to be verified to update the application identifier to be verified, so as to trigger the execution of determining the data to be verified of the application indicated by the application identifier to be verified, and the data to be verified of the application indicated by the updated application identifier to be verified can be determined. It should be noted that when determining to update the application identifier to be verified, if there is no application identifier that has not been selected in at least one matching application identifier, that is, after all matching application identifiers in at least one matching application identifier are selected, the determination to update the application identifier to be verified can be stopped, and at this time, the -4 layer instruction interaction fails. In this case, the card management application can detect that the card swiping fails. It can be seen that the security unit can determine an application identifier to be verified from at least one matching application identifier in turn until the card swiping is successful or all matching application identifiers in at least one matching application identifier are selected.
在本申请实施例中,电子设备可通过安全单元检测待验证数据是否校验失败。可选的,电子设备可通过安全单元,在安全单元发送待验证数据后,间隔预设校验检测时长,确定是否刷卡成功,若确定刷卡成功,则可确定检测到待验证数据校验成功,若确定刷卡失败,则可确定检测到待验证数据校验失败;可选的,电子设备可通过卡管理应用确定是否刷卡成功,那么安全单元可通过卡管理应用确定的刷卡结果(如刷卡成功或刷卡失败),确定是否刷卡成功;可选的,预设校验检测时长可以是按照经验设置的,也可以是按照实际需求设置的,本申请实施例对此不作限定。可选的,安全单元也可接收读卡设备发送的验证失败指示信息,在此种情况下,安全单元可检测到待验证数据校验失败,等等。 In an embodiment of the present application, the electronic device can detect whether the verification of the data to be verified fails through the security unit. Optionally, the electronic device can determine whether the card is successfully swiped through the security unit after the security unit sends the data to be verified, and the preset verification detection time interval. If it is determined that the card is successfully swiped, it can be determined that the verification of the data to be verified is successful. If it is determined that the card is failed, it can be determined that the verification of the data to be verified fails; Optionally, the electronic device can determine whether the card is successfully swiped through the card management application, and the security unit can determine whether the card is successfully swiped through the card management application. The result of the card swiping (such as successful or failed card swiping) determined by the card management application determines whether the card is successfully swiped; Optionally, the preset verification detection time can be set according to experience or according to actual needs, and the embodiment of the present application does not limit this. Optionally, the security unit can also receive verification failure indication information sent by the card reader device. In this case, the security unit can detect that the verification of the data to be verified fails, and so on.
可选的,电子设备还可通过卡管理应用检测智能选卡开启操作,智能选卡开启操作支持将智能选卡功能设置为开启状态;在智能选卡功能处于开启状态时,卡管理应用支持检测选卡需求。基于此,在检测到所智能选卡开启操作时,可触发执行通过卡管理应用检测选卡需求;那么相应的,在检测到选卡需求时,可触发执行从M张卡片中确定出目标卡片,等等。基于此,在智能选卡功能处于开启状态时,卡管理应用支持用于检测选卡需求,即电子设备可通过卡管理应用检测选卡需求;在智能选卡功能处于关闭状态时,卡管理应用不支持用于检测选卡需求,即电子设备不可通过卡管理应用检测选卡需求。Optionally, the electronic device can also detect the smart card selection activation operation through the card management application, and the smart card selection activation operation supports setting the smart card selection function to the on state; when the smart card selection function is in the on state, the card management application supports detecting the card selection demand. Based on this, when the smart card selection activation operation is detected, the card management application can be triggered to detect the card selection demand; then correspondingly, when the card selection demand is detected, the target card can be determined from M cards. The card management application can be triggered to determine the target card from M cards, and so on. Based on this, when the smart card selection function is in the on state, the card management application supports detecting the card selection demand, that is, the electronic device can detect the card selection demand through the card management application; when the smart card selection function is in the off state, the card management application does not support detecting the card selection demand, that is, the electronic device cannot detect the card selection demand through the card management application.
在一种实施方式中,卡管理应用可设置有智能选卡开关按钮,该智能选卡开关按钮可用于执行智能选卡开启操作和智能选卡关闭操作;具体的,该智能选卡开关按钮可用于设置智能选卡功能所处的状态(如开启状态或关闭状态)。在此种情况下,用户可通过智能选卡开关按钮执行智能选卡开启操作,那么电子设备可通过卡管理应用检测到用户执行的智能选卡开启操作。In one embodiment, the card management application may be provided with a smart card selection switch button, which can be used to perform a smart card selection on operation and a smart card selection off operation; specifically, the smart card selection switch button can be used to set the state of the smart card selection function (such as an on state or an off state). In this case, the user can perform a smart card selection on operation through the smart card selection switch button, and the electronic device can detect the smart card selection on operation performed by the user through the card management application.
示例性的,如图3所示,电子设备可在卡管理应用的应用界面中显示智能选卡开关按钮301,在此种情况下,用户可在智能选卡开关按钮301上执行智能选卡开启操作,以开启智能选卡功能,即可使智能选卡功能处于开启状态。Exemplarily, as shown in FIG3 , the electronic device may display a smart card selection switch button 301 in the application interface of the card management application. In this case, the user may perform a smart card selection start operation on the smart card selection switch button 301 to turn on the smart card selection function, thereby turning on the smart card selection function.
可选的,智能选卡开启操作可以是对智能选卡开关按钮执行的点击操作,也可以是长按操作(即按压时长大于预设按压时长的操作),还可以是滑动操作,等等;本申请实施例对此不作限定。可选的,预设按照时长可以是按照经验设置的,也可以是按照实际需求设置的,本申请实施例对此不作限定。Optionally, the smart card selection on-off operation may be a click operation on the smart card selection switch button, or a long press operation (i.e., an operation in which the pressing time is longer than a preset pressing time), or a sliding operation, etc.; this embodiment of the present application does not limit this. Optionally, the preset time can be set according to experience or according to actual needs, and this embodiment of the present application does not limit this.
另一种实施方式,电子设备可支持语音输入,且支持以语音输入的方式进行智能选卡开启操作。在此种情况下,用户可在卡管理应用中通过语音输入的方式执行智能选卡开启操作,以使卡管理应用通过接收到的针对智能选卡开启操作的语音指令,检测到智能选卡开启操作。相应的,用户也可通过语音输入的方式执行智能选卡关闭操作,等等。In another implementation, the electronic device may support voice input, and support the smart card selection opening operation by voice input. In this case, the user may perform the smart card selection opening operation by voice input in the card management application, so that the card management application detects the smart card selection opening operation by receiving the voice instruction for the smart card selection opening operation. Accordingly, the user may also perform the smart card selection closing operation by voice input, and so on.
进一步的,电子设备可通过安全单元确定非接触式状态管理状态,非接触式状态管理状态支持为非接触式状态管理开启状态或非接触式状态管理关闭状态;若非接触式状态管理状态为非接触式状态管理开启状态,则触发执行根据切卡指令确定目标主应用标识,并对应用标识集合中的目标主应用 标识设置逻辑标记;相应的,若非接触式状态管理状态为非接触式状态管理关闭状态,则不触发执行根据切卡指令确定目标主应用标识,等等。换句话说,在相应切卡指令之前,安全单元可先判断非接触式状态管理状态是否为非接触式状态管理开启状态。Furthermore, the electronic device can determine the contactless state management state through the security unit, and the contactless state management state can support the contactless state management on state or the contactless state management off state; if the contactless state management state is the contactless state management on state, the trigger execution determines the target main application identifier according to the card cutting instruction, and the target main application in the application identifier set is triggered. The identification sets a logical mark; accordingly, if the contactless state management state is the contactless state management closed state, the execution of determining the target main application identification according to the card cutting instruction is not triggered, etc. In other words, before the corresponding card cutting instruction, the security unit can first determine whether the contactless state management state is the contactless state management opened state.
可选的,安全单元可设置有非接触式状态管理开关标记位,非接触式状态管理开关标记位可用于指示非接触式状态管理状态;在此种情况下,安全单元可接收卡管理应用发送的开启指令,并响应于开启指令,从而将非接触式状态管理开关标记位设置为非接触式状态管理开启状态指示信息,非接触式状态管理开启状态指示信息可用于指示非接触式状态管理开启状态,即此时非接触式状态管理状态可为非接触式状态管理开启状态。那么相应的,安全单元可接收卡管理应用发送的关闭指令,并响应于关闭指令,从而将非接触式状态管理开关标记位设置为非接触式状态管理关闭状态指示信息,非接触式状态管理关闭状态指示信息可用于指示非接触式状态管理关闭状态,即此时非接触式状态管理状态可为非接触式状态管理关闭状态,等等。可选的,非接触式状态管理开启状态指示信息和非接触式状态管理关闭状态指示信息均可以是按照经验设置的,也可以是按照实际需求设置的,本申请实施例对此不作限定。Optionally, the security unit may be provided with a contactless state management switch flag, which may be used to indicate the contactless state management state; in this case, the security unit may receive an opening instruction sent by the card management application, and respond to the opening instruction, thereby setting the contactless state management switch flag to the contactless state management opening state indication information, and the contactless state management opening state indication information may be used to indicate the contactless state management opening state, that is, at this time, the contactless state management state may be the contactless state management opening state. Then correspondingly, the security unit may receive a closing instruction sent by the card management application, and respond to the closing instruction, thereby setting the contactless state management switch flag to the contactless state management closing state indication information, and the contactless state management closing state indication information may be used to indicate the contactless state management closing state, that is, at this time, the contactless state management state may be the contactless state management closing state, and so on. Optionally, the contactless state management opening state indication information and the contactless state management closing state indication information may be set according to experience or according to actual needs, and the embodiments of the present application do not limit this.
可选的,卡管理应用在检测到智能选卡开启操作时,可确定检测到非接触式状态管理开启操作时,从而向安全单元发送开启指令;卡管理应用在检测到智能选卡关闭操作时,可确定检测到非接触式状态管理关闭操作,从而向安全单元发送关闭指令,等等。Optionally, when the card management application detects a smart card selection start operation, it can determine that a contactless status management start operation has been detected, thereby sending a start instruction to the security unit; when the card management application detects a smart card selection close operation, it can determine that a contactless status management close operation has been detected, thereby sending a close instruction to the security unit, and so on.
综上可见,可在非接触式状态管理开关标记位处于开启状态(即非接触式状态管理开关标记位为非接触式状态管理开启状态指示信息),且相应应用的应用标识设置有逻辑标记时,可确定相应应用满足逻辑激活条件,从而可确定相应应用对应卡片处于激活状态;基于此,本申请实施例无需安全单元的写flash操作,也可实现应用的非接触式状态为实质激活状态的同等效果。From the above, it can be seen that when the contactless status management switch mark bit is in the on state (that is, the contactless status management switch mark bit is the contactless status management on state indication information), and the application identifier of the corresponding application is set with a logical mark, it can be determined that the corresponding application meets the logical activation condition, and thus it can be determined that the corresponding card of the corresponding application is in the activated state; based on this, the embodiment of the present application does not require the write flash operation of the security unit, and can also achieve the same effect that the contactless state of the application is a substantially activated state.
在本申请实施例中,电子设备还可通过安全单元判断逻辑标记是否失效;若确定逻辑标记失效,则删除逻辑标记。可选的,安全单元可确定逻辑标记的设置时长,在设置时长大于预设设置时长阈值时,可确定逻辑标记失效;或者,可在目标卡片刷卡失败时,确定逻辑标记失效,即可确定目标卡片的 目标主应用标识对应的逻辑标记失效,等等;本申请实施例对此不作限定。可选的,预设设置时长阈值可以是按照经验设置的,也可以是按照实际需求设置的,本申请实施例对此不作限定。In the embodiment of the present application, the electronic device can also determine whether the logical mark is invalid through the security unit; if the logical mark is determined to be invalid, the logical mark is deleted. Optionally, the security unit can determine the setting time of the logical mark, and when the setting time is greater than the preset setting time threshold, the logical mark can be determined to be invalid; or, when the target card fails to be swiped, the logical mark can be determined to be invalid, and the target card can be determined to be invalid. The logic mark corresponding to the target main application identifier is invalid, etc.; the embodiment of the present application does not limit this. Optionally, the preset setting time threshold can be set according to experience or according to actual needs, and the embodiment of the present application does not limit this.
本申请实施例可在检测到选卡需求时,通过卡管理应用从M张卡片中选取出目标卡片,并向安全单元发送切卡指令,切卡指令携带有目标卡片的目标主应用标识,一张卡片对应至少一个应用,且一张卡片所对应的至少一个应用包括一个主应用;并可通过安全单元,根据切卡指令确定目标主应用标识,并对应用标识集合中的目标主应用标识设置逻辑标记,逻辑标记用于指示目标卡片处于激活状态。基于此,可按照切卡指令,将目标卡片的目标非接触式协议参数发送至近场通讯控制器,以使近场通讯控制器采用目标非接触式协议参数与读卡设备进行防冲突交互。进一步的,可通过卡管理应用,检测目标非接触式协议参数下的防冲突交互是否失败;若检测到防冲突交互失败,则从M张卡片中选取出待校验卡片,并采用待校验卡片更新目标卡片,从而触发执行通过卡管理应用向安全单元发送切卡指令;其中,在目标非接触式协议参数下的防冲突交互成功时,读卡设备支持发送待验证数据获取指令进行数据校验。可见,本申请实施例可便捷地进行智能切卡,从而提高智能切卡效率;并且,可在检测到选卡需求时,从M张卡片中选取出目标卡片或在防冲突交互失败时更新目标卡片,以实现智能选卡功能,进而可有效提高智能选卡性能,增强用户体验;另外,在进行智能选卡过程中,每次切卡无需进行写flash等操作,从而避免安全单元的反复写入操作,可保障安全单元的flash寿命,以延长安全单元的使用寿命。In the embodiment of the present application, when the card selection requirement is detected, the target card can be selected from M cards through the card management application, and a card cutting instruction can be sent to the security unit. The card cutting instruction carries the target main application identifier of the target card. One card corresponds to at least one application, and at least one application corresponding to one card includes a main application. The target main application identifier can be determined by the security unit according to the card cutting instruction, and a logical mark is set for the target main application identifier in the application identifier set. The logical mark is used to indicate that the target card is in an activated state. Based on this, the target contactless protocol parameters of the target card can be sent to the near field communication controller according to the card cutting instruction, so that the near field communication controller uses the target contactless protocol parameters to perform anti-collision interaction with the card reader device. Further, the card management application can be used to detect whether the anti-collision interaction under the target contactless protocol parameters fails; if the anti-collision interaction failure is detected, the card to be verified is selected from the M cards, and the card to be verified is used to update the target card, thereby triggering the execution of sending the card cutting instruction to the security unit through the card management application; wherein, when the anti-collision interaction under the target contactless protocol parameters is successful, the card reader device supports sending the data acquisition instruction to be verified for data verification. It can be seen that the embodiments of the present application can conveniently perform intelligent card cutting, thereby improving the efficiency of intelligent card cutting; and, when a card selection requirement is detected, a target card can be selected from M cards or the target card can be updated when the anti-collision interaction fails, so as to realize the intelligent card selection function, thereby effectively improving the intelligent card selection performance and enhancing the user experience; in addition, in the process of intelligent card selection, there is no need to write to the flash each time the card is cut, thereby avoiding repeated write operations of the security unit, which can ensure the flash life of the security unit and extend the service life of the security unit.
基于上述智能切卡方法的相关实施例的描述,本申请实施例还提出了一种智能切卡装置,该智能切卡装置可以是运行于电子设备中的一个计算机程序(包括程序代码),电子设备包括卡管理应用、近场通讯控制器以及安全单元,安全单元内安装有M张卡片,M为正整数;如图4所示,该智能切卡装置可包括发送单元401和处理单元402。该智能切卡装置可以执行图1或图2所示的智能切卡方法,即该智能切卡装置可以运行上述单元:Based on the description of the above-mentioned related embodiments of the smart card cutting method, the embodiment of the present application also proposes a smart card cutting device, which can be a computer program (including program code) running in an electronic device, the electronic device includes a card management application, a near field communication controller and a security unit, and M cards are installed in the security unit, where M is a positive integer; as shown in FIG4, the smart card cutting device may include a sending unit 401 and a processing unit 402. The smart card cutting device can execute the smart card cutting method shown in FIG1 or FIG2, that is, the smart card cutting device can run the above-mentioned units:
发送单元401,用于在检测到选卡需求时,通过所述卡管理应用从所述M张卡片中选取出目标卡片,并向所述安全单元发送切卡指令,所述切卡指令携带有所述目标卡片的目标主应用标识,一张卡片对应至少一个应用,且 一张卡片所对应的至少一个应用包括一个主应用;The sending unit 401 is used to select a target card from the M cards through the card management application when a card selection requirement is detected, and send a card switching instruction to the security unit, wherein the card switching instruction carries a target main application identifier of the target card, and one card corresponds to at least one application, and At least one application corresponding to a card includes a main application;
处理单元402,用于通过所述安全单元,根据所述切卡指令确定所述目标主应用标识,并对应用标识集合中的所述目标主应用标识设置逻辑标记,所述逻辑标记用于指示所述目标卡片处于激活状态;The processing unit 402 is used to determine the target main application identifier according to the card cutting instruction through the security unit, and set a logical mark for the target main application identifier in the application identifier set, wherein the logical mark is used to indicate that the target card is in an activated state;
所述发送单元401,还用于按照所述切卡指令,将所述目标卡片的目标非接触式协议参数发送至所述近场通讯控制器,以使所述近场通讯控制器采用所述目标非接触式协议参数与读卡设备进行防冲突交互。The sending unit 401 is further configured to send the target contactless protocol parameters of the target card to the near field communication controller according to the card cutting instruction, so that the near field communication controller uses the target contactless protocol parameters to perform anti-collision interaction with the card reader.
在一种实施方式中,所述切卡指令为非接参数设置指令,所述非接参数设置指令用于指导所述安全单元向所述近场通讯控制器发送所述目标非接触式协议参数;发送单元401在按照所述切卡指令,将所述目标卡片的目标非接触式协议参数发送至所述近场通讯控制器时,可具体用于:In one embodiment, the card cutting instruction is a contactless parameter setting instruction, and the contactless parameter setting instruction is used to instruct the security unit to send the target contactless protocol parameters to the near field communication controller; when the sending unit 401 sends the target contactless protocol parameters of the target card to the near field communication controller according to the card cutting instruction, it can be specifically used to:
通过所述安全单元,按照所述非接参数设置指令确定所述目标卡片的目标非接触式协议参数,并将所述目标非接触式协议参数发送至所述近场通讯控制器。The target contactless protocol parameters of the target card are determined by the security unit according to the contactless parameter setting instruction, and the target contactless protocol parameters are sent to the near field communication controller.
另一种实施方式中,所述切卡指令为非接参数获取指令,所述非接参数获取指令用于指导所述安全单元向所述卡管理应用返回所述目标非接触式协议参数;发送单元401在按照所述切卡指令,将所述目标卡片的目标非接触式协议参数发送至所述近场通讯控制器时,可具体用于:In another embodiment, the card cutting instruction is a contactless parameter acquisition instruction, and the contactless parameter acquisition instruction is used to instruct the security unit to return the target contactless protocol parameters to the card management application; when the sending unit 401 sends the target contactless protocol parameters of the target card to the near field communication controller according to the card cutting instruction, it can be specifically used to:
通过所述安全单元,按照所述非接参数获取指令确定所述目标卡片的目标非接触式协议参数,并将所述目标非接触式协议参数返回至所述卡管理应用;Determining, by the security unit, target contactless protocol parameters of the target card according to the contactless parameter acquisition instruction, and returning the target contactless protocol parameters to the card management application;
通过所述卡管理应用,将所述目标非接触式协议参数发送至所述近场通讯控制器。The target contactless protocol parameters are sent to the near field communication controller via the card management application.
另一种实施方式中,处理单元402还可用于:In another implementation, the processing unit 402 may also be used to:
通过所述卡管理应用,检测所述目标非接触式协议参数下的防冲突交互是否失败;detecting, by the card management application, whether the anti-collision interaction under the target contactless protocol parameters fails;
若检测到防冲突交互失败,则从所述M张卡片中选取出待校验卡片,并采用所述待校验卡片更新所述目标卡片,从而触发执行所述通过所述卡管理应用向所述安全单元发送切卡指令;If it is detected that the anti-collision interaction fails, a card to be verified is selected from the M cards, and the target card is updated with the card to be verified, thereby triggering the execution of sending a card cutting instruction to the security unit through the card management application;
其中,在所述目标非接触式协议参数下的防冲突交互成功时,所述读卡设备支持发送待验证数据获取指令进行数据校验。 Wherein, when the anti-collision interaction under the target contactless protocol parameters is successful, the card reading device supports sending a to-be-verified data acquisition instruction to perform data verification.
另一种实施方式中,所述待验证数据获取指令包括待匹配局部应用标识,所述待验证数据获取指令用于请求所述待匹配局部应用标识所指示应用的待验证数据,一个局部应用标识与至少一个应用标识相对应,一个局部应用标识对应的应用标识包括相应的局部应用标识,且所述待匹配局部应用标识所指示应用包括所述待匹配局部应用标识对应的各个应用标识所指示的应用;所述安全单元支持接收所述待验证数据获取指令,且所述逻辑标记支持用于指示所述目标卡片对应的各个应用的应用标识;处理单元402还可用于:In another embodiment, the instruction for obtaining the data to be verified includes a local application identifier to be matched, the instruction for obtaining the data to be verified is used to request the data to be verified of the application indicated by the local application identifier to be matched, a local application identifier corresponds to at least one application identifier, an application identifier corresponding to a local application identifier includes a corresponding local application identifier, and the application indicated by the local application identifier to be matched includes the application indicated by each application identifier corresponding to the local application identifier to be matched; the security unit supports receiving the instruction for obtaining the data to be verified, and the logical tag supports indicating the application identifiers of each application corresponding to the target card; the processing unit 402 can also be used to:
在所述安全单元接收到所述待验证数据获取指令后,通过所述安全单元从所述应用标识集合中,确定出与所述待匹配局部应用标识相匹配的至少一个匹配应用标识,所述至少一个匹配应用标识中的各个匹配应用标识均包括所述待匹配局部应用标识;After the security unit receives the instruction to obtain the data to be verified, the security unit determines, from the application identifier set, at least one matching application identifier that matches the local application identifier to be matched, wherein each matching application identifier in the at least one matching application identifier includes the local application identifier to be matched;
从所述至少一个匹配应用标识中,确定出所述逻辑标记所指示的一个待验证应用标识;Determining an application identifier to be verified indicated by the logical tag from the at least one matching application identifier;
确定所述待验证应用标识所指示应用的待验证数据;Determine the data to be verified of the application indicated by the application identifier to be verified;
发送单元401还可用于:The sending unit 401 may also be used for:
将所述待验证数据发送至所述读卡设备进行数据校验。The data to be verified is sent to the card reading device for data verification.
另一种实施方式中,处理单元402还可用于:In another implementation, the processing unit 402 may also be used to:
在所述安全单元检测到所述待验证数据校验失败后,通过所述安全单元从所述至少一个匹配应用标识中,确定出所述逻辑标记所指示的一个更新待验证应用标识;After the security unit detects that the verification of the data to be verified fails, the security unit determines, from the at least one matching application identifier, an updated application identifier to be verified indicated by the logic mark;
采用所述更新待验证应用标识,对所述待验证应用标识进行更新,以触发执行所述确定所述待验证应用标识所指示应用的待验证数据。The updating of the to-be-verified application identifier is adopted to update the to-be-verified application identifier, so as to trigger the execution of determining the to-be-verified data of the application indicated by the to-be-verified application identifier.
另一种实施方式中,处理单元402还可用于:In another implementation, the processing unit 402 may also be used to:
通过所述卡管理应用检测智能选卡开启操作,所述智能选卡开启操作支持将智能选卡功能设置为开启状态;在所述智能选卡功能处于开启状态时,所述卡管理应用支持检测选卡需求;The card management application detects a smart card selection activation operation, wherein the smart card selection activation operation supports setting the smart card selection function to an activated state; when the smart card selection function is in an activated state, the card management application supports detecting a card selection requirement;
在检测到所述智能选卡开启操作时,触发执行通过所述卡管理应用检测选卡需求。When the smart card selection start operation is detected, the card management application is triggered to detect the card selection requirement.
另一种实施方式中,处理单元402还可用于:In another implementation, the processing unit 402 may also be used to:
通过所述安全单元确定非接触式状态管理状态,所述非接触式状态管理状态支持为非接触式状态管理开启状态或非接触式状态管理关闭状态; Determining a contactless state management state through the security unit, wherein the contactless state management state supports a contactless state management on state or a contactless state management off state;
若所述非接触式状态管理状态为所述非接触式状态管理开启状态,则触发执行所述根据所述切卡指令确定所述目标主应用标识,并对应用标识集合中的所述目标主应用标识设置逻辑标记。If the contactless state management state is the contactless state management on state, the step of determining the target main application identifier according to the card switching instruction is triggered, and a logic mark is set for the target main application identifier in the application identifier set.
另一种实施方式中,处理单元402还可用于:In another implementation, the processing unit 402 may also be used to:
通过所述安全单元判断所述逻辑标记是否失效;Determining whether the logic mark is invalid by the safety unit;
若确定所述逻辑标记失效,则删除所述逻辑标记。If it is determined that the logical mark is invalid, the logical mark is deleted.
根据本申请的一个实施例,图1或图2所示的方法所涉及的各个步骤均可由图4所示的智能切卡装置中的各个单元来执行的。例如,图1中所示的步骤S101和S103均可由图4中所示的发送单元401执行,步骤S102可由图4中所示的处理单元402执行。又如,图2中所示的步骤S201和S203均可由图4中所示的发送单元401执行,步骤S202、S204以及S205均可由图4中所示的处理单元402执行,等等。According to an embodiment of the present application, each step involved in the method shown in FIG. 1 or FIG. 2 can be executed by each unit in the intelligent card cutting device shown in FIG. 4. For example, steps S101 and S103 shown in FIG. 1 can be executed by the sending unit 401 shown in FIG. 4, and step S102 can be executed by the processing unit 402 shown in FIG. 4. For another example, steps S201 and S203 shown in FIG. 2 can be executed by the sending unit 401 shown in FIG. 4, and steps S202, S204, and S205 can be executed by the processing unit 402 shown in FIG. 4, and so on.
根据本申请的另一个实施例,图4所示的智能切卡装置中的各个单元均可以分别或全部合并为一个或若干个另外的单元来构成,或者其中的某个(些)单元还可以再拆分为功能上更小的多个单元来构成,这可以实现同样的操作,而不影响本申请的实施例的技术效果的实现。上述单元是基于逻辑功能划分的,在实际应用中,一个单元的功能也可以由多个单元来实现,或者多个单元的功能由一个单元实现。在本申请的其它实施例中,任一智能切卡装置也可以包括其他单元,在实际应用中,这些功能也可以由其它单元协助实现,并且可以由多个单元协作实现。According to another embodiment of the present application, each unit in the intelligent card cutting device shown in Figure 4 can be separately or completely combined into one or several other units to constitute, or one (some) of the units can be further divided into multiple functionally smaller units to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In actual applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, any intelligent card cutting device can also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
根据本申请的另一个实施例,可以通过在包括中央处理单元(CPU)、随机存取存储介质(RAM)、只读存储介质(ROM)等处理元件和存储元件的例如计算机的通用电子设备上运行能够执行如图1或图2中所示的相应方法所涉及的各步骤的计算机程序(包括程序代码),来构造如图4中所示的智能切卡装置,以及来实现本申请实施例的智能切卡方法。所述计算机程序可以记载于例如计算机存储介质上,并通过计算机存储介质装载于上述电子设备中,并在其中运行。According to another embodiment of the present application, a computer program (including program code) capable of executing each step involved in the corresponding method shown in FIG. 1 or FIG. 2 can be run on a general electronic device such as a computer including a central processing unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM) and other processing elements and storage elements to construct a smart card cutting device as shown in FIG. 4 and implement the smart card cutting method of the embodiment of the present application. The computer program can be recorded on, for example, a computer storage medium, and loaded into the above-mentioned electronic device through the computer storage medium and run therein.
本申请实施例可在检测到选卡需求时,通过卡管理应用从M张卡片中选取出目标卡片,并向安全单元发送切卡指令,切卡指令携带有目标卡片的目标主应用标识,一张卡片对应至少一个应用,且一张卡片所对应的至少一个应用包括一个主应用。基于此,可通过安全单元,根据切卡指令确定目标 主应用标识,并对应用标识集合中的目标主应用标识设置逻辑标记,逻辑标记用于指示目标卡片处于激活状态。进一步的,可按照切卡指令,将目标卡片的目标非接触式协议参数发送至近场通讯控制器,以使近场通讯控制器采用目标非接触式协议参数与读卡设备进行防冲突交互。可见,本申请实施例无需通过去激活操作和激活操作实现切卡操作,从而无需执行冲突检测、参数合并以及写flash等操作,也就是说,本申请实施例可便捷地进行智能切卡,从而提高智能切卡效率,即可有效提高切卡的性能;并且相应的,本申请实施例无需对安全单元固定位置写flash,从而有效避免了对flash的寿命影响,以增加安全单元的寿命。In the embodiment of the present application, when a card selection requirement is detected, the card management application selects a target card from M cards and sends a card cutting instruction to the security unit. The card cutting instruction carries the target main application identifier of the target card. One card corresponds to at least one application, and at least one application corresponding to one card includes a main application. Based on this, the security unit can determine the target card according to the card cutting instruction. The main application identifier is set, and a logical mark is set for the target main application identifier in the application identifier set, and the logical mark is used to indicate that the target card is in an activated state. Furthermore, the target contactless protocol parameters of the target card can be sent to the near field communication controller according to the card cutting instruction, so that the near field communication controller uses the target contactless protocol parameters to perform anti-collision interaction with the card reading device. It can be seen that the embodiment of the present application does not need to implement the card cutting operation through deactivation and activation operations, so there is no need to perform conflict detection, parameter merging, and flash writing operations. In other words, the embodiment of the present application can conveniently perform intelligent card cutting, thereby improving the efficiency of intelligent card cutting, which can effectively improve the performance of card cutting; and accordingly, the embodiment of the present application does not need to write flash to a fixed position of the security unit, thereby effectively avoiding the impact on the life of the flash, so as to increase the life of the security unit.
基于上述方法实施例以及装置实施例的描述,本申请示例性实施例还提供一种电子设备,包括:一个或多个处理器;以及与一个或多个处理器通信连接的一个或多个存储器。所述一个或多个存储器存储有能够被所述一个或多个处理器执行的计算机程序,所述计算机程序在被所述一个或多个处理器执行时用于使所述电子设备执行根据本申请实施例的方法。Based on the description of the above method embodiment and device embodiment, the exemplary embodiment of the present application further provides an electronic device, including: one or more processors; and one or more memories connected to the one or more processors in communication. The one or more memories store a computer program that can be executed by the one or more processors, and the computer program is used to enable the electronic device to perform the method according to the embodiment of the present application when executed by the one or more processors.
本申请示例性实施例还提供一种更为具体的电子设备,可参见图5所示,电子设备可包括应用处理器501和安全单元处理器502;The exemplary embodiment of the present application further provides a more specific electronic device, as shown in FIG5 , the electronic device may include an application processor 501 and a security unit processor 502 ;
其中,应用处理器501,用于在检测到选卡需求时,通过所述卡管理应用从所述M张卡片中选取出目标卡片,并向所述安全单元发送切卡指令,所述切卡指令携带有所述目标卡片的目标主应用标识,一张卡片对应至少一个应用,且一张卡片所对应的至少一个应用包括一个主应用;The application processor 501 is used to select a target card from the M cards through the card management application when a card selection requirement is detected, and send a card switching instruction to the security unit, wherein the card switching instruction carries a target main application identifier of the target card, and one card corresponds to at least one application, and the at least one application corresponding to one card includes one main application;
安全单元处理器502,用于通过所述安全单元,根据所述切卡指令确定所述目标主应用标识,并对应用标识集合中的所述目标主应用标识设置逻辑标记,所述逻辑标记用于指示所述目标卡片处于激活状态;The security unit processor 502 is used to determine the target main application identifier according to the card cutting instruction through the security unit, and set a logical mark for the target main application identifier in the application identifier set, wherein the logical mark is used to indicate that the target card is in an activated state;
所述应用处理器501或所述安全单元处理器502,还用于按照所述切卡指令,将所述目标卡片的目标非接触式协议参数发送至所述近场通讯控制器,以使所述近场通讯控制器采用所述目标非接触式协议参数与读卡设备进行防冲突交互。The application processor 501 or the security unit processor 502 is also used to send the target contactless protocol parameters of the target card to the near field communication controller according to the card cutting instruction, so that the near field communication controller adopts the target contactless protocol parameters to perform anti-collision interaction with the card reader.
本申请示例性实施例还提供一种存储有计算机程序的非瞬时计算机可读存储介质,其中,所述计算机程序在被计算机的处理器执行时用于使所述计算机执行根据本申请实施例的方法。 The exemplary embodiment of the present application further provides a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform a method according to an embodiment of the present application.
本申请示例性实施例还提供一种计算机程序产品,包括计算机程序,其中,所述计算机程序在被计算机的处理器执行时用于使所述计算机执行根据本申请实施例的方法。The exemplary embodiments of the present application further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor of a computer, it is used to enable the computer to execute the method according to the embodiment of the present application.
参考图6,现将描述可以作为本申请的服务器或客户端的电子设备600的结构框图,其是可以应用于本申请的各方面的硬件设备的示例。电子设备旨在表示各种形式的数字电子的计算机设备,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本申请的实现。With reference to Fig. 6, the structural block diagram of the electronic device 600 that can be used as the server or client of the present application will now be described, which is an example of the hardware device that can be applied to various aspects of the present application. The electronic device is intended to represent the computer device of various forms of digital electronics, such as, laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only used as examples, and are not intended to limit the implementation of the present application described herein and/or required.
如图6所示,电子设备600包括计算单元601,其可以根据存储在只读存储器(ROM)602中的计算机程序或者从存储单元608加载到随机访问存储器(RAM)603中的计算机程序,来执行各种适当的动作和处理。在RAM 603中,还可存储电子设备600操作所需的各种程序和数据。计算单元601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG6 , the electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to the bus 604.
电子设备600中的多个部件连接至I/O接口605,包括:输入单元606、输出单元607、存储单元608以及通信单元609。输入单元606可以是能向电子设备600输入信息的任何类型的设备,输入单元606可以接收输入的数字或字符信息,以及产生与电子设备的用户设置和/或功能控制有关的键信号输入。输出单元607可以是能呈现信息的任何类型的设备,并且可以包括但不限于显示器、扬声器、视频/音频输出终端、振动器和/或打印机。存储单元608可以包括但不限于磁盘、光盘。通信单元609允许电子设备600通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据,并且可以包括但不限于调制解调器、网卡、红外通信设备、无线通信收发机和/或芯片组,例如蓝牙TM设备、WiFi设备、WiMax设备、蜂窝通信设备和/或类似物。A plurality of components in the electronic device 600 are connected to the I/O interface 605, including: an input unit 606, an output unit 607, a storage unit 608, and a communication unit 609. The input unit 606 may be any type of device capable of inputting information to the electronic device 600, and the input unit 606 may receive input digital or character information, and generate key signal inputs related to user settings and/or function control of the electronic device. The output unit 607 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video/audio output terminal, a vibrator, and/or a printer. The storage unit 608 may include, but is not limited to, a disk, an optical disk. The communication unit 609 allows the electronic device 600 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and/or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and/or the like.
计算单元601可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元601的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习 模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元601执行上文所描述的各个方法和处理。例如,在一些实施例中,智能切卡方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元608。在一些实施例中,计算机程序的部分或者全部可以经由ROM 602和/或通信单元609而被载入和/或安装到电子设备600上。在一些实施例中,计算单元601可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行智能切卡方法。The computing unit 601 may be a variety of general and/or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors that run machine learning, and various processors that run machine learning. The computing unit 601 of the model algorithm, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above. For example, in some embodiments, the intelligent card cutting method can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program can be loaded and/or installed on the electronic device 600 via the ROM 602 and/or the communication unit 609. In some embodiments, the computing unit 601 can be configured to perform the intelligent card cutting method in any other appropriate manner (for example, by means of firmware).
用于实施本申请的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions/operations specified in the flow chart and/or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
在本申请的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
如本申请使用的,术语“机器可读介质”和“计算机可读介质”指的是用于将机器指令和/或数据提供给可编程处理器的任何计算机程序产品、设备、和/或装置(例如,磁盘、光盘、存储器、可编程逻辑装置(PLD)),包括,接收作为机器可读信号的机器指令的机器可读介质。术语“机器可读信号”指的是用于将机器指令和/或数据提供给可编程处理器的任何信号。As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and/or data to a programmable processor.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它 种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other Devices of this type can also be used to provide interaction with a user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
并且,应理解的是,以上所揭露的仅为本申请较佳实施例而已,当然不能以此来限定本申请之权利范围,因此依本申请权利要求所作的等同变化,仍属本申请所涵盖的范围。 Furthermore, it should be understood that what is disclosed above is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims (13)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311861976.3A CN117811617B (en) | 2023-12-29 | 2023-12-29 | Intelligent card cutting method and device, storage medium and electronic equipment |
| CN202311861976.3 | 2023-12-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025139119A1 true WO2025139119A1 (en) | 2025-07-03 |
Family
ID=90421682
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/120797 Pending WO2025139119A1 (en) | 2023-12-29 | 2024-09-24 | Intelligent card switching method and apparatus, storage medium and electronic device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN117811617B (en) |
| WO (1) | WO2025139119A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117811617B (en) * | 2023-12-29 | 2024-12-03 | 深圳市汇顶科技股份有限公司 | Intelligent card cutting method and device, storage medium and electronic equipment |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110781699A (en) * | 2019-10-31 | 2020-02-11 | 北京小米支付技术有限公司 | NFC card switching method and device |
| EP3817414A1 (en) * | 2019-10-31 | 2021-05-05 | Xiaomi Digital Technology Co., Ltd. | Method and device for configuring a nfc smart card |
| CN114466337A (en) * | 2020-11-09 | 2022-05-10 | Oppo广东移动通信有限公司 | Analog card switching method, device, electronic device and storage medium for near field communication |
| CN115618899A (en) * | 2022-12-20 | 2023-01-17 | 北京紫光青藤微系统有限公司 | Card switching method and device based on near field communication |
| CN117811617A (en) * | 2023-12-29 | 2024-04-02 | 深圳市汇顶科技股份有限公司 | Intelligent card cutting method and device, storage medium and electronic equipment |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110866580B (en) * | 2019-10-31 | 2024-01-16 | 天星数科科技有限公司 | Preprocessing method and device for configuring NFC smart card |
| CN111581994B (en) * | 2020-05-06 | 2024-05-03 | 维沃移动通信有限公司 | Near field communication NFC communication method and device and electronic equipment |
-
2023
- 2023-12-29 CN CN202311861976.3A patent/CN117811617B/en active Active
-
2024
- 2024-09-24 WO PCT/CN2024/120797 patent/WO2025139119A1/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110781699A (en) * | 2019-10-31 | 2020-02-11 | 北京小米支付技术有限公司 | NFC card switching method and device |
| EP3817414A1 (en) * | 2019-10-31 | 2021-05-05 | Xiaomi Digital Technology Co., Ltd. | Method and device for configuring a nfc smart card |
| CN114466337A (en) * | 2020-11-09 | 2022-05-10 | Oppo广东移动通信有限公司 | Analog card switching method, device, electronic device and storage medium for near field communication |
| CN115618899A (en) * | 2022-12-20 | 2023-01-17 | 北京紫光青藤微系统有限公司 | Card switching method and device based on near field communication |
| CN117811617A (en) * | 2023-12-29 | 2024-04-02 | 深圳市汇顶科技股份有限公司 | Intelligent card cutting method and device, storage medium and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117811617B (en) | 2024-12-03 |
| CN117811617A (en) | 2024-04-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10140479B1 (en) | Systems and methods for a wearable user authentication factor | |
| US11392935B2 (en) | Automatic activation of a physical payment card | |
| US10268941B2 (en) | Smart card information querying method and apparatus, and storage medium | |
| US11004080B2 (en) | Fraud deterrence and/or identification using multi-faceted authorization procedures | |
| US11347519B2 (en) | Systems and methods for detecting short-term changes to BIOS setup | |
| US20220245208A1 (en) | Method for switching skin of mini-program page, and electronic device | |
| US20240169344A1 (en) | System, method, and computer-accessible medium for blocking malicious emv transactions | |
| US12470253B2 (en) | Near-field communication functionality for partial applications accessed over a network | |
| WO2025139119A1 (en) | Intelligent card switching method and apparatus, storage medium and electronic device | |
| WO2025139106A1 (en) | Intelligent card selection method and apparatus and electronic device | |
| CN109872148B (en) | Trusted data processing method and device based on TUI and mobile terminal | |
| US20220358299A1 (en) | Systems, methods, and computer-accessible mediums for repressing or turning off the read of a digital tag | |
| CN108600084A (en) | Information transmission method, device, storage medium and mobile terminal | |
| CN119781835B (en) | Data processing method, device, electronic device and readable storage medium | |
| KR102890059B1 (en) | Nfc tag device for cloud pos payment system and method of processing order information thereof | |
| KR102640647B1 (en) | Electronic device that performs adult authentication to identify minors in cashierless stores and its operation method | |
| CN105184564B (en) | Card-free payment method and system | |
| CN113922967B (en) | Blockchain key management method, device and computer equipment | |
| CN109525554B (en) | Financial data communication method, device, medium and electronic equipment | |
| US20240372726A1 (en) | Operation method of electronic devices for initializing password of bios and same electronic devices | |
| US20190251410A1 (en) | Ic chip support terminal, ic chip setting method, and program | |
| EP3734479B1 (en) | Access control apparatus and method for controlling configuration of automation apparatus | |
| HK40076726A (en) | System, method, and computer-accessible medium for blocking malicious emv transactions | |
| CN104574077B (en) | Switching system for preventing from being lured by wrong information | |
| WO2018205057A1 (en) | Method and system for reminding about event |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24910063 Country of ref document: EP Kind code of ref document: A1 |