Method for controlling services based on active smart card, active smart card, storage medium

By controlling the detection pin to output a low level in the active smart card, the problem of transaction failure caused by concurrent business interactions of multiple communication interfaces is solved, the integrity of business interactions of each communication interface is achieved, and transaction failure is avoided.

CN115860042BActive Publication Date: 2026-02-27EASTCOMPEACE TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211673654.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-26
Publication Date
2026-02-27
Estimated Expiration
2042-12-26

AI Technical Summary

Technical Problem

The concurrent business interactions of multiple communication interfaces of existing active smart cards lead to transaction failures and disordered smart card chip transaction operations.

Method used

By controlling the detection pin to output a low level when the contact interface or RF antenna is triggered, the MCU is prevented from interacting with the smart card chip via the SPI interface, and priorities are assigned to ensure the integrity of service interactions between various communication interfaces.

Benefits of technology

This effectively avoids transaction failures with active smart cards, ensures the integrity of business interactions across various communication interfaces, and prevents transaction failures caused by concurrent operations across multiple communication interfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115860042B_ABST
    Figure CN115860042B_ABST
Patent Text Reader

Abstract

The application discloses a service control method based on an active smart card, the active smart card, and a storage medium, wherein the active smart card comprises a contact interface, the contact interface is used for being communicatively connected with a card reader; a radio frequency antenna, the radio frequency antenna is used for being communicatively connected with the card reader; an MCU, the MCU is provided with an SPI interface; a smart card chip, the smart card chip is electrically connected with the SPI interface, the contact interface and the radio frequency antenna respectively; a communication module, the communication module is electrically connected with the MCU, and the communication module is used for being communicatively connected with the card reader; and a power management module, the power management module is electrically connected with the contact interface, the radio frequency antenna, a detection pin of the MCU and the smart card chip respectively. Compared with the defect that multiple communication interfaces exist in the related art and concurrent service interaction is independent, the embodiment of the application can effectively guarantee the integrity of service interaction on each communication interface of the active smart card under the condition that multiple communication interfaces of the active smart card are independent, and avoid transaction failure of the active smart card.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of active smart cards, and in particular to a service control method based on an active smart card, an active smart card, and a storage medium. BACKGROUND

[0002] Currently, the smart card chip of an active smart card is connected with a radio frequency antenna and a contact interface, and the smart card chip is electrically connected with an MCU through an SPI interface. The input and output of multiple communication interfaces are independent (that is, the input and output of the radio frequency antenna, the contact interface, and the SPI interface are independent of each other). In the case that a card reader performs service interaction on the smart card chip through the radio frequency antenna or the contact interface of the active smart card, the MCU may also perform service interaction on the smart card chip through the SPI interface. Concurrent service interaction operations of multiple communication interfaces cause transaction service confusion of the smart card chip, thereby causing transaction failure of the active smart card. SUMMARY

[0003] The embodiments of the present application provide a service control method based on an active smart card, an active smart card, and a storage medium, which can effectively guarantee the integrity of service interaction on each communication interface of the active smart card in the case that multiple communication interfaces of the active smart card are independent, and avoid transaction failure of the active smart card.

[0004] In a first aspect, the embodiments of the present application provide an active smart card, comprising:

[0005] a contact interface, configured to be in communication connection with a card reader;

[0006] a radio frequency antenna, configured to be in communication connection with the card reader;

[0007] an MCU, provided with an SPI interface;

[0008] a smart card chip, electrically connected with the SPI interface, the contact interface, and the radio frequency antenna respectively;

[0009] a communication module, electrically connected with the MCU, and configured to be in communication connection with the card reader;

[0010] a power management module, electrically connected with the contact interface, the radio frequency antenna, a detection pin of the MCU, and the smart card chip respectively;

[0011] wherein, in the case that the contact interface or the radio frequency antenna is triggered, the detection pin outputs a low level, and in the case that the contact interface or the radio frequency antenna is not triggered, the detection pin outputs a high level.

[0012] According to the active smart card provided in the embodiment of the first aspect of the present application, at least the following beneficial effects are achieved: the active smart card comprises a contact interface, which is configured to be communicatively connected with a card reader; a radio frequency antenna, which is configured to be communicatively connected with the card reader; an MCU, which is provided with an SPI interface; a smart card chip, which is electrically connected with the SPI interface, the contact interface and the radio frequency antenna respectively; a communication module, which is electrically connected with the MCU and is configured to be communicatively connected with the card reader; and a power management module, which is electrically connected with the contact interface, the radio frequency antenna, a detection pin of the MCU and the smart card chip respectively. Compared with the defect of concurrent service interaction of multiple communication interfaces in the related art, the embodiment of the present application can effectively guarantee the integrity of service interaction on each communication interface of the active smart card in the case that multiple communication interfaces of the active smart card are independent, thereby avoiding transaction failure of the active smart card.

[0013] According to some embodiments of the first aspect of the present application, the power management module comprises:

[0014] a rectifier and voltage stabilizer module, which is electrically connected with the contact interface, the radio frequency antenna and the smart card chip respectively;

[0015] an MCU power supply module;

[0016] a triode, a base of the triode being electrically connected with an output end of the rectifier and voltage stabilizer module, a collector of the triode being electrically connected with the MCU power supply module and the detection pin respectively, and an emitter of the triode being grounded.

[0017] According to some embodiments of the first aspect of the present application, the rectifier and voltage stabilizer module comprises a first diode, a second diode, a third diode, a fourth diode, a voltage stabilizing diode, a first capacitor and a second capacitor, wherein a cathode of the second diode is electrically connected with an anode of the first diode, a cathode of the fourth diode is electrically connected with an anode of the third diode, a cathode of the third diode is electrically connected with a cathode of the first diode, an anode of the fourth diode is grounded, an anode of the second diode is grounded, a cathode of the voltage stabilizing diode is electrically connected with the cathode of the third diode, an anode of the voltage stabilizing diode is grounded, a first end of the first capacitor is electrically connected with the cathode of the voltage stabilizing diode, a second end of the first capacitor is grounded, a first end of the second capacitor is electrically connected with the first end of the first capacitor, and a second end of the second capacitor is grounded.

[0018] According to some embodiments of the first aspect of the present application, the radio frequency antenna is an ISO 14443 protocol radio frequency antenna.

[0019] According to some embodiments of the first aspect of the present application, the contact interface is an ISO 7816 protocol interface.

[0020] According to some embodiments of the first aspect of the present application, the communication module is a Bluetooth module.

[0021] In the second aspect, embodiments of the present application provide a service control method based on an active smart card. The method is applied to the active smart card of any one of the embodiments of the first aspect, and the method comprises:

[0022] In the case that the contact interface or the radio frequency antenna is triggered, the detection pin and the SPI interface are both controlled to output a low level;

[0023] Alternatively,

[0024] In the case that the contact interface or the radio frequency antenna is not triggered, the detection pin or the SPI interface is triggered, so that the MCU performs service interaction with the smart card chip through the SPI interface, or the MCU performs service interaction with the card reader through the communication module.

[0025] The service control method based on the active smart card according to the embodiments of the second aspect of the present application has at least the following beneficial effects: the method provided in the embodiments is applied to the active smart card of the embodiments of the first aspect, and the method comprises: in the case that the contact interface or the radio frequency antenna is triggered, the detection pin is controlled to output a low level; or, in the case that the contact interface or the radio frequency antenna is not triggered, the detection pin is controlled to output a high level, so that the MCU performs service interaction with the smart card chip through the SPI interface, or the MCU performs service interaction with the card reader through the communication module. Based on the hardware structure of the active smart card with multiple communication interfaces whose input and output are independent provided in the embodiments of the first aspect, by assigning priorities to the contact interface, the radio frequency antenna, the SPI interface and other multiple communication interfaces respectively, the integrity of the service interaction corresponding to each communication interface is guaranteed, and service interaction failure caused by concurrent service interaction of the multiple communication interfaces with independent input and output is effectively avoided.

[0026] According to some embodiments of the second aspect of the present application, the service control method based on the active smart card further comprises:

[0027] In the case that the MCU performs service interaction with the smart card chip through the SPI interface, when it is detected that the contact interface or the radio frequency antenna is triggered, the detection pin is controlled to output a low level;

[0028] In the case that the MCU interacts with the card reader through the communication module, when the contact interface or the radio frequency antenna is detected to be triggered, the detection pin is controlled to output a low level.

[0029] In a third aspect, the embodiments of the present application provide an active smart card, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the active smart card-based service control method according to the second aspect when executing the computer program.

[0030] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium storing computer executable instructions for executing the active smart card-based service control method according to the second aspect. BRIEF DESCRIPTION OF DRAWINGS

[0031] Figure 1 is a module schematic diagram of an active smart card provided by an embodiment of the present application;

[0032] Figure 2 is a circuit schematic diagram of an active smart card provided by another embodiment of the present application;

[0033] Figure 3 is a step flow chart of the active smart card-based service control method provided by another embodiment of the present application;

[0034] Figure 4 is a step flow chart of the active smart card-based service control method provided by another embodiment of the present application;

[0035] Figure 5 is a structural diagram of an active smart card provided by another embodiment of the present application. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.

[0037] It can be understood that, although the functional modules are divided in the device schematic diagram, and the logical order is shown in the flow chart, in some cases, the steps shown or described can be executed in a manner different from the module division in the device or the order in the flow chart. The terms "first", "second", etc. in the specification, claims or above-mentioned drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.

[0038] The application provides a service control method based on an active smart card, the active smart card, and a storage medium, wherein the active smart card comprises a contact interface, the contact interface is used for being communicatively connected with a card reader; a radio frequency antenna, the radio frequency antenna is used for being communicatively connected with the card reader; an MCU, the MCU is provided with an SPI interface; a smart card chip, the smart card chip is electrically connected with the SPI interface, the contact interface and the radio frequency antenna respectively; a communication module, the communication module is electrically connected with the MCU, and the communication module is used for being communicatively connected with the card reader; and a power management module, the power management module is electrically connected with the contact interface, the radio frequency antenna, a detection pin of the MCU and the smart card chip respectively. Compared with the defect that multiple communication interfaces exist in the related art and concurrent service interaction is independent, the embodiment of the application can effectively guarantee the integrity of service interaction on each communication interface of the active smart card under the condition that multiple communication interfaces of the active smart card are independent, and avoid transaction failure of the active smart card.

[0039] The embodiment of the application is further described below with reference to the drawings.

[0040] Reference Figure 1 , Figure 1 is a module schematic diagram of the active smart card provided by the embodiment of the application, and the embodiment of the application provides an active smart card 100, comprising:

[0041] a contact interface 110, the contact interface 110 is used for being communicatively connected with a card reader 200;

[0042] a radio frequency antenna 120, the radio frequency antenna 120 is used for being communicatively connected with the card reader 200;

[0043] an MCU 130, the MCU 130 is provided with an SPI interface;

[0044] a smart card chip 140, the smart card chip 140 is electrically connected with the SPI interface, the contact interface 110 and the radio frequency antenna 120 respectively;

[0045] a communication module 150, the communication module 150 is electrically connected with the MCU 130, and the communication module 150 is used for being communicatively connected with the card reader 200;

[0046] a power management module 160, the power management module 160 is electrically connected with the contact interface 110, the radio frequency antenna 120, a detection pin of the MCU 130 and the smart card chip 140 respectively;

[0047] wherein, in the case that the contact interface 110 or the radio frequency antenna 120 is triggered, the detection pin outputs a low level, and in the case that the contact interface 110 or the radio frequency antenna 120 is not triggered, the detection pin outputs a high level.

[0048] It can be understood that in the case that the contact interface 110 or the radio frequency antenna 120 is triggered, that is, the active smart card 100 performs a card swiping operation (contact card swiping) through the contact interface 110 to interact with the card reader 200, or the active smart card 100 performs a card swiping operation (non-contact card swiping) through the radio frequency antenna 120 to interact with the card reader 200, the detection pin outputs a low level, and the power management module 160 cannot supply power to the MCU 130, so that when the active smart card 100 interacts with the card reader 200 through the contact interface 110 or the radio frequency antenna 120, the MCU 130 cannot realize the business interaction with the card reader 200 through the communication module 150, and the MCU 130 also cannot interact with the smart card chip 140 through the SPI interface; in the case that the contact interface 110 or the radio frequency antenna 120 is not triggered, that is, the active smart card 100 does not perform the contact card swiping operation and the non-contact card swiping operation, the detection pin outputs a high level, and the power management module 160 supplies power to the MCU 130, so that the MCU 130 can interact with the card reader 200 through the communication module 150, or the MCU 130 can interact with the smart card chip 140 through the SPI interface. Since the contact card swiping and the non-contact card swiping cannot be performed at the same time, therefore, the embodiment of the present application can effectively guarantee the integrity of the business interaction on each communication interface of the active smart card 100 in the case that the active smart card 100 has multiple independent communication interfaces, and avoid transaction failure of the active smart card 100.

[0049] It can be understood that in the process of the digital renminbi business process, the transaction process must be strictly in accordance with the process, otherwise the transaction will fail, and the digital renminbi business process is mainly based on data interaction between the active smart card 100 and the card reader 200. However, the smart card chip 140 of the current active smart card 100 is connected with the radio frequency antenna 120 and the contact interface 110, and the smart card chip 140 is electrically connected with the MCU 130 through the SPI interface. The input and output of the multiple communication interfaces are independent (that is, the input and output of the radio frequency antenna 120, the contact interface 110 and the SPI interface are independent of each other), and in the case that the card reader 200 interacts with the smart card chip 140 through the radio frequency antenna 120 or the contact interface 110 of the active smart card 100, the MCU 130 may also interact with the smart card chip 140 through the SPI interface. The concurrent business interaction operation of multiple communication interfaces may exist a communication interface that interrupts the digital currency transaction business logic on another communication interface, thereby causing the smart card chip 140 transaction business disorder, thereby causing the transaction failure of the active smart card 100. Based on this, the active smart card 100 provided by the embodiment of the present application includes a contact interface 110, the contact interface 110 is used for communication connection with the card reader 200; a radio frequency antenna 120, the radio frequency antenna 120 is used for communication connection with the card reader 200; an MCU 130, the MCU 130 is provided with an SPI interface; a smart card chip 140, the smart card chip 140 is electrically connected with the SPI interface, the contact interface 110 and the radio frequency antenna 120 respectively; a communication module 150, the communication module 150 is electrically connected with the MCU 130, and the communication module 150 is used for communication connection with the card reader 200; a power management module 160, the power management module 160 is electrically connected with the contact interface 110, the radio frequency antenna 120, the detection pin of the MCU 130 and the smart card chip 140 respectively. Based on the technical scheme of the embodiment of the present application, in the case that the contact interface 110 or the radio frequency antenna 120 is triggered, the detection pin is controlled to output low level, and in the case that the contact interface 110 or the radio frequency antenna 120 is not triggered, the detection pin is controlled to output high level. Compared with the defect of concurrent business interaction of multiple communication interfaces with independent input and output in the related art, the embodiment of the present application can effectively guarantee the integrity of the business interaction on each communication interface of the active smart card 100 in the case of independent multiple communication interfaces of the active smart card 100, and avoid the transaction failure of the active smart card 100.

[0050] It should be noted that the embodiment of the present application does not limit the specific type of MCU 130, and the MCU 130 can be an STM32 chip. Using the STM32 chip can effectively reduce the manufacturing cost of the active smart card 100.

[0051] It should be noted that the embodiments of the present application do not limit the specific working frequency of the radio frequency antenna 120, which can be determined by the person skilled in the art according to the actual needs.

[0052] It should be noted that the embodiments of the present application do not limit the specific structure of the radio frequency antenna 120 and the contact interface 110. The radio frequency antenna 120 can be an ISO14443 protocol radio frequency antenna 120, and the contact interface 110 can be an ISO7816 protocol interface. The person skilled in the art can determine according to the actual needs.

[0053] It should be noted that the embodiments of the present application do not limit the specific structure of the communication module 150, which can be a Bluetooth module or a WiFi module. The person skilled in the art can determine according to the actual needs.

[0054] Reference Figure 2 In an embodiment, the power management module 160 includes:

[0055] The rectifier and voltage stabilizing module 161 is electrically connected to the contact interface 110, the radio frequency antenna 120, and the smart card chip 140, respectively.

[0056] The MCU power supply module 162;

[0057] The transistor Q1 has its base electrically connected to the output terminal of the rectifier and voltage stabilizing module 161, its collector electrically connected to the power supply module and the detection pin, respectively, and its emitter grounded.

[0058] It should be noted that the embodiments of the present application do not limit the specific type of the transistor Q1, which can be, for example, Figure 2 The transistor Q1 of the present embodiment is an NPN type transistor Q1, and can also be a PNP type transistor Q1.

[0059] It can be understood that when the active smart card 100 interacts with the card reader 200 through the contact interface 110 or the radio frequency antenna 120, the induced current obtained by the radio frequency antenna 120 is converted into direct current by the rectifier and voltage stabilizing module 161, or the current received by the contact interface 110 is converted into direct current by the rectifier and voltage stabilizing module 161, and then the direct current is input to the base of the triode Q1, so that the collector and the emitter of the triode Q1 are short-circuited, so that the detection pin of the MCU 130 detects a low level, and the power management module 160 cannot supply power to the MCU 130, so that when the active smart card 100 interacts with the card reader 200 through the contact interface 110 or the radio frequency antenna 120, the MCU 130 cannot realize the business interaction with the card reader 200 through the communication module 150, and the MCU 130 cannot also interact with the smart card chip 140 through the SPI interface; in the case that the contact interface 110 or the radio frequency antenna 120 is not triggered, that is, the active smart card 100 does not perform the contact card swiping and the non-contact card swiping, the base of the triode Q1 detects a low voltage, so that the collector and the emitter of the triode Q1 are open-circuited, so that the detection pin of the MCU 130 detects a high level, and the power management module 160 supplies power to the MCU 130, so that the MCU 130 can interact with the card reader 200 through the communication module 150, or the MCU 130 can interact with the smart card chip 140 through the SPI interface. Since the contact card swiping and the non-contact card swiping cannot be performed at the same time, the embodiment of the present application can effectively guarantee the integrity of the business interaction on each communication interface of the active smart card 100 in the case that the active smart card 100 has multiple independent communication interfaces, and avoid transaction failure of the active smart card 100.

[0060] It should be noted that the embodiment of the present application does not limit the specific structure of the rectifier and voltage stabilizing module 161, which can be as shown in Figure 2 The rectifier and voltage stabilizing module 161 includes a first diode D1, a second diode D2, a third diode D3, a fourth diode D4, a voltage stabilizing diode D5, a first capacitor C1 and a second capacitor C2, wherein the cathode of the second diode D2 is electrically connected with the anode of the first diode D1, the cathode of the fourth diode D4 is electrically connected with the anode of the third diode D3, the cathode of the third diode D3 is electrically connected with the cathode of the first diode D1, the anode of the fourth diode D4 is grounded, the anode of the second diode D2 is grounded, the cathode of the voltage stabilizing diode D5 is electrically connected with the cathode of the third diode D3, the anode of the voltage stabilizing diode D5 is grounded, the first end of the first capacitor C1 is electrically connected with the cathode of the voltage stabilizing diode D5, the second end of the first capacitor C1 is grounded, the first end of the second capacitor C2 is electrically connected with the first end of the first capacitor C1, and the second end of the second capacitor C2 is grounded.

[0061] It should be noted that the embodiments of this application do not limit the specific types and structures of the first diode D1, the second diode D2, the third diode D3, the fourth diode D4, the Zener diode D5, the first capacitor C1, and the second capacitor C2. Those skilled in the art can select according to the actual situation.

[0062] It is understandable that the number of the above-mentioned components can be increased or decreased according to actual needs. The specific values ​​can be adjusted according to the specific situation of the active smart card 100, which will not be elaborated here.

[0063] Understandably, the rectifier and voltage regulator module 161 with Zener diode D5 can filter out the ripple in the DC power and maintain the voltage stability of the DC power.

[0064] In addition, such as Figure 3 As shown, Figure 3 This is a flowchart illustrating the steps of a service control method based on an active smart card according to another embodiment of this application. Another embodiment of this application also provides a service control method based on an active smart card, applied to the active smart card provided in the above embodiments. This method includes, but is not limited to, the following steps:

[0065] In step S310, when the contact interface 110 or the radio frequency antenna 120 is triggered, the control detection pin outputs a low level.

[0066] or,

[0067] In step S320, if the contact interface 110 or the RF antenna 120 is not triggered, the control detection pin outputs a high level so that the MCU 130 can perform business interaction with the smart card chip 140 through the SPI interface, or the MCU 130 can perform business interaction with the card reader 200 through the communication module 150.

[0068] It can be understood that based on the hardware structure of the active smart card with independent input and output of multiple communication interfaces provided in the above embodiment, in the case that the contact interface 110 or the radio frequency antenna 120 is triggered, that is, the active smart card performs card swiping through the contact interface 110 (contact card swiping) and interacts with the card reader 200, or the active smart card performs card swiping through the radio frequency antenna 120 (non-contact card swiping) and interacts with the card reader 200, the detection pin is controlled to output a low level, so that the power management module 160 cannot supply power to the MCU 130, so that when the active smart card interacts with the card reader 200 through the contact interface 110 or the radio frequency antenna 120, the MCU 130 cannot realize the business interaction with the card reader 200 through the communication module 150, and the MCU 130 cannot also interact with the smart card chip 140 through the SPI interface; in the case that the contact interface 110 or the radio frequency antenna 120 is not triggered, that is, the active smart card does not perform contact card swiping and non-contact card swiping, the detection pin is controlled to output a high level, so that the power management module 160 supplies power to the MCU 130, so that the MCU 130 can interact with the card reader 200 through the communication module 150, or the MCU 130 can interact with the smart card chip 140 through the SPI interface. Thus, the priority of the contact interface 110, the radio frequency antenna 120, and the SPI interface is allocated respectively, the contact interface 110 and the radio frequency antenna 120 have the highest priority and the same priority (contact card swiping and non-contact card swiping cannot be performed at the same time), the business interaction of the MCU 130 corresponding to the SPI interface has the lowest priority, thereby ensuring the integrity of the business interaction corresponding to each communication interface, and effectively avoiding the business interaction failure caused by concurrent business interaction of the independent input and output of multiple communication interfaces.

[0069] In addition, as shown in Figure 4 Figure 4 is a step flowchart of the business control method based on the active smart card provided in another embodiment of the present application, and the method further includes but is not limited to the following steps:

[0070] Step S410, in the case that the MCU 130 interacts with the smart card chip 140 through the SPI interface, when it is detected that the contact interface 110 or the radio frequency antenna 120 is triggered, the detection pin is controlled to output a low level;

[0071] Step S420, in the case that the MCU 130 interacts with the card reader 200 through the communication module 150, when it is detected that the contact interface 110 or the radio frequency antenna 120 is triggered, the detection pin is controlled to output a low level.

[0072] ​It can be understood that, in the case that the MCU 130 interacts with the smart card chip 140 through the SPI interface, or in the case that the MCU 130 interacts with the card reader 200 through the communication module 150, when it is detected that the contact interface 110 or the radio frequency antenna 120 is triggered, the control detection pin outputs a low level, that is, the contact interface 110 and the radio frequency antenna 120 correspond to the highest priority of the business process, and in the process of the MCU 130 interacting with the business, if it is detected that the contact interface 110 or the radio frequency antenna 120 is triggered, the business interaction process on the MCU 130 side is immediately exited, and after the business interaction corresponding to the contact interface 110 or the radio frequency antenna 120 is completed, the business processing on the MCU 130 side is performed again.

[0073] In addition, with reference to Figure 5 An embodiment of the present application further provides an active smart card 500, which comprises a memory 510, a processor 520 and a computer program stored in the memory 510 and executable on the processor 520.

[0074] The processor 520 and the memory 510 can be connected through a bus or other manners.

[0075] The non-transient software program and instructions required for implementing the data processing method of the above embodiment are stored in the memory 510, and when executed by the processor 520, the business control method based on the active smart card in the above embodiment is executed, for example, the method steps S310 to S330 in the above description Figure 3 , the method steps S410 to S420 in the above description Figure 4 .

[0076] The apparatus embodiment described above is only schematic, and the units described as separate components can or can not be physically separate, that is, can be located in one place, or can be distributed on multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0077] In addition, an embodiment of the present application further provides a computer readable storage medium, which stores computer executable instructions, and the computer executable instructions are executed by a processor or a controller, for example, a processor in the above active smart card 500 embodiment, so that the above processor executes the business control method based on the active smart card in the above embodiment, for example, executes the method steps S310 to S330 in the above description Figure 3 , the method steps S410 to S420 in the above description Figure 4The method steps S410-S420 in the above disclosed method can be implemented as software, firmware, hardware, or appropriate combination thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software can be distributed on computer readable media, which can comprise computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Further, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes any information delivery media.

Claims

1. A service control method based on an active smart card, characterized in that, An active smart card is used in an active smart card, which includes a contact interface for communicating with a card reader; an RF antenna for communicating with the card reader; an MCU with an SPI interface; and a smart card chip electrically connected to the SPI interface, the contact interface, and the RF antenna. A communication module, which is electrically connected to the MCU, is used to communicate with the card reader; A power management module, which is electrically connected to the contact interface, the radio frequency antenna, the detection pins of the MCU, and the smart card chip, respectively, the method includes: When the contact interface or the radio frequency antenna is triggered, the detection pin is controlled to output a low level; or, When the contact interface or the radio frequency antenna is not triggered, the detection pin is controlled to output a high level so that the MCU can perform business interaction with the smart card chip through the SPI interface, or the MCU can perform business interaction with the card reader through the communication module.

2. The service control method based on an active smart card according to claim 1, characterized in that, The method further includes: When the MCU interacts with the smart card chip through the SPI interface, if the contact interface or the radio frequency antenna is detected to be triggered, the detection pin is controlled to output a low level. When the MCU interacts with the card reader through the communication module, it controls the detection pin to output a low level when the contact interface or the radio frequency antenna is detected to be triggered.

3. The service control method based on an active smart card according to claim 1, characterized in that, The power management module includes: A rectifier and voltage regulator module, wherein the rectifier and voltage regulator module is electrically connected to the contact interface, the radio frequency antenna, and the smart card chip respectively; MCU power supply module; The transistor has its base electrically connected to the output terminal of the rectifier and voltage regulator module, its collector electrically connected to the MCU power supply module and the detection pin, and its emitter grounded.

4. The service control method based on an active smart card according to claim 3, characterized in that, The rectifier and voltage regulator module includes a first diode, a second diode, a third diode, a fourth diode, a Zener diode, a first capacitor, and a second capacitor. The cathode of the second diode is electrically connected to the anode of the first diode. The cathode of the fourth diode is electrically connected to the anode of the third diode. The cathode of the third diode is electrically connected to the cathode of the first diode. The anode of the fourth diode is grounded. The anode of the second diode is grounded. The cathode of the Zener diode is electrically connected to the cathode of the third diode. The anode of the Zener diode is grounded. The first terminal of the first capacitor is electrically connected to the cathode of the Zener diode. The second terminal of the first capacitor is grounded. The first terminal of the second capacitor is electrically connected to the first terminal of the first capacitor. The second terminal of the second capacitor is grounded.

5. The service control method based on an active smart card according to claim 1, characterized in that, The radio frequency antenna is an ISO14443 protocol radio frequency antenna.

6. The service control method based on an active smart card according to claim 1, characterized in that, The contact interface is an ISO7816 protocol interface.

7. The service control method based on an active smart card according to claim 1, characterized in that, The communication module is a Bluetooth module.

8. An active smart card, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, it implements the service control method based on an active smart card as described in any one of claims 1 to 7.

9. A computer-readable storage medium storing computer-executable instructions for performing the service control method based on an active smart card as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Equipment and a working mode switching method thereof

    CN109784433A

  • Three-in-one card reader circuit of multifunctional mobile business terminal partner

    CN203299836U

  • Active non-contact intelligent card

    CN203552291U