CN109408127B - Chip system loading method and chip card - Google Patents

Chip system loading method and chip card Download PDF

Info

Publication number
CN109408127B
CN109408127B CN201811332973.XA CN201811332973A CN109408127B CN 109408127 B CN109408127 B CN 109408127B CN 201811332973 A CN201811332973 A CN 201811332973A CN 109408127 B CN109408127 B CN 109408127B
Authority
CN
China
Prior art keywords
chip
communication
bluetooth
security
card
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.)
Active
Application number
CN201811332973.XA
Other languages
Chinese (zh)
Other versions
CN109408127A (en
Inventor
朱琳琳
杜平
崔云峰
刘正寅
潘彬
黄静丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Kedao Xinguo Intelligent Technology Co ltd
Original Assignee
Sichuan Kedao Xinguo Intelligent Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Sichuan Kedao Xinguo Intelligent Technology Co ltd filed Critical Sichuan Kedao Xinguo Intelligent Technology Co ltd
Priority to CN201811332973.XA priority Critical patent/CN109408127B/en
Publication of CN109408127A publication Critical patent/CN109408127A/en
Application granted granted Critical
Publication of CN109408127B publication Critical patent/CN109408127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application provides a chip system loading method and a chip card. And when the chip card is detected to be in a non-contact mode, the Bluetooth main control chip or the near field communication chip establishes working communication with the first terminal equipment, and receives chip system updating information sent by the first terminal equipment according to the selective response information, so that the chip system is updated based on the chip system updating information. Therefore, the application supports the loading and updating of the chip system of the security chip through a non-contact mode, has stronger applicability in an actual scene, solves the problem that in the prior art, a user often needs to return the chip card to a related card issuing mechanism for processing, and further enhances the user experience.

Description

Chip system loading method and chip card
Technical Field
The application relates to the field of chip cards, in particular to a chip system loading method and a chip card.
Background
The Operating system COS (chip Operating system) in the card is the core of the chip card, mainly controls the chip card to exchange data with the outside, and completes the processing of various commands in the card. A Secure Element (SE) in a chip card is generally provided in the form of a chip, and is equipped with a chip operating system COS to implement functions such as data Secure storage, encryption and decryption operations, and the like. In the prior art, after a chip card is selected, a corresponding machine tool is selected to load a COS according to the chip card, for example, COS of chip cards commonly used in the market are loaded in a contact manner by adopting the international standard ISO/IEC7816 protocol. Therefore, because the security chip generally only supports the loading of the COS through the ISO/IEC7816 contact protocol, but because of the problem of updating the channel management authority of the mobile terminal in which the chip card is installed, when the COS of the security chip needs to be updated or loaded, a user often needs to return the chip card to a related card issuing organization for processing, which causes a lot of inconvenience and reduces user experience.
Disclosure of Invention
In order to overcome the above-mentioned deficiencies in the prior art, the present application aims to provide a chip system loading method and a chip card, so as to solve or improve the above-mentioned problems.
In order to achieve the above purpose, the embodiments of the present application employ the following technical solutions:
in a first aspect, an embodiment of the present application provides a chip system loading method, which is applied to a chip card, where the chip card includes a bluetooth main control chip, a near field communication chip electrically connected to the bluetooth main control chip, and multiple security chips electrically connected to the bluetooth main control chip, and the method includes:
when each safety chip receives a chip system loading request, judging whether the chip system of the safety chip can be loaded at present;
if the chip system of the security chip cannot be loaded at present, detecting the current working mode of the chip card, wherein the working mode comprises a contact mode and a non-contact mode;
when the chip card is detected to be in a non-contact mode currently, working communication is established with first terminal equipment through the Bluetooth main control chip or the near field communication chip, so that the first terminal equipment sends chip system updating information to the near field communication chip or the Bluetooth main control chip;
the near field communication chip or the Bluetooth main control chip sends the received chip system updating information to the security chip;
the security chip updates the system-on-chip based on the system-on-chip update information.
Optionally, the step of judging whether the chip system of the security chip can be loaded currently when each security chip receives a chip system loading request includes:
each security chip detects whether a chip system identifier exists at present;
if the security chip exists, judging that the chip system of the security chip can be loaded currently;
if not, judging that the chip system of the security chip can not be loaded currently.
Optionally, after the step of determining whether the chip system of the security chip can be loaded currently when each security chip receives a chip system loading request, the method further includes:
and if the chip system capable of loading the security chip is judged to be currently available, entering the chip system and performing data interaction with an external terminal sending the chip system loading request.
Optionally, the chip card further includes a communication interaction contact electrically connected to the second terminal device, the communication interaction contact is further electrically connected to each secure chip, and after the step of detecting the current operating mode of the chip card, the method further includes:
when the chip card is detected to be in a contact mode at present, receiving a reset signal sent by the second terminal equipment, responding the reset signal, feeding back corresponding reset response information to the second terminal equipment, so that the second terminal equipment establishes working communication with the chip card through a communication interaction contact of the chip card according to the reset response information, and sends chip system updating information to the security chip through a preset communication protocol;
and the safety chip updates the chip system based on the chip system updating information.
Optionally, the step of detecting the current operating mode of the chip card includes:
detecting whether the Bluetooth master control chip is currently in Bluetooth communication with the first terminal equipment, whether the near-field communication chip is currently in a communication magnetic field of the first terminal equipment and/or whether the chip card is currently performing preset contact protocol operation;
if the chip card is detected to be carrying out the operation of the preset contact type protocol, judging that the chip card is currently in a contact type mode;
and if the Bluetooth operation between the Bluetooth main control chip and the first terminal equipment is detected currently and/or whether the near field communication chip is in the communication magnetic field of the first terminal equipment currently, judging that the chip card is in a non-contact mode currently.
Optionally, when it is detected that the chip card is currently in the non-contact mode, the step of establishing working communication with the first terminal device through the bluetooth master control chip or the near field communication chip includes:
sending a Bluetooth transmission channel establishment request to a terminal Bluetooth chip in the first terminal equipment through the Bluetooth main control chip so that the terminal Bluetooth chip establishes Bluetooth communication with the Bluetooth main control chip according to the Bluetooth transmission channel establishment request; or
And the security chip receives a selection response request sent by the first terminal equipment and responds to the selection response request to feed back corresponding selection response information to the first terminal equipment, so that the first terminal equipment establishes working communication with the near field communication chip of the chip card according to the selection response information.
Optionally, if the first terminal device includes a terminal bluetooth chip, after the step of establishing working communication with the first terminal device through the bluetooth main control chip or the near field communication chip when detecting that the chip card is currently in the non-contact mode, the method further includes:
and establishing communication connection with the terminal Bluetooth chip through the Bluetooth main control chip, and receiving chip system updating information sent by the first terminal equipment through the terminal Bluetooth chip.
Optionally, if the first terminal device includes a terminal NFC chip, after the step of establishing working communication with the first terminal device through the bluetooth master control chip or the near field communication chip when detecting that the chip card is currently in the non-contact mode, the method further includes:
and establishing communication connection with the terminal NFC chip through the near field communication chip, and receiving chip system update information sent by the first terminal equipment through the terminal NFC chip.
Optionally, after the step of updating, by the security chip, the system-on-chip based on the system-on-chip update information, the method further includes:
and after the updating of the chip system is detected to be finished, processing the received task processing command based on the updated chip system and feeding back a command processing result.
In a second aspect, an embodiment of the present application further provides a chip card, where the chip card includes a bluetooth main control chip, a near field communication chip electrically connected to the bluetooth main control chip, and a plurality of security chips electrically connected to the bluetooth main control chip;
each safety chip is used for judging whether the chip system of the safety chip can be loaded at present or not when a chip system loading request is received, and detecting the current working mode of the chip card if the chip system of the safety chip cannot be loaded at present, wherein the working mode comprises a contact mode and a non-contact mode;
each security chip is further used for establishing working communication with first terminal equipment through the Bluetooth master control chip or the near field communication chip when detecting that the chip card is currently in a non-contact mode, so that the first terminal equipment sends chip system updating information to the near field communication chip or the Bluetooth master control chip;
the near field communication chip or the Bluetooth main control chip is used for sending the received chip system updating information to the security chip;
the security chip is used for updating the chip system based on the chip system updating information.
Compared with the prior art, the method has the following beneficial effects:
the embodiment of the application provides a chip system loading method and a chip card. And when the chip card is detected to be in a non-contact mode, the Bluetooth main control chip or the near field communication chip establishes working communication with the first terminal equipment, and receives chip system updating information sent by the first terminal equipment according to the selective response information, so that the chip system is updated based on the chip system updating information. Therefore, the application supports the loading and updating of the chip system of the security chip through a non-contact mode, has stronger applicability in an actual scene, solves the problem of numerous inconveniences caused by the fact that a user often needs to return a chip card to a related card issuing mechanism for processing in the prior art, and further enhances the user experience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and it will be apparent to those skilled in the art that other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic block diagram of an application scenario of a chip system loading method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a chip system loading method according to an embodiment of the present disclosure;
fig. 3 is another schematic flow chart of a chip system loading method according to an embodiment of the present disclosure;
fig. 4 is another schematic flow chart of a chip system loading method according to an embodiment of the present application.
Icon: 100-a chip card; 110-bluetooth master control chip; 120-near field communication chip; 130-a security chip; 200-a first terminal device; 210-terminal bluetooth chip; 220-terminal NFC chip.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Referring to fig. 1, a schematic block diagram of an application scenario of a chip system loading method according to an embodiment of the present application is shown. The chip system loading method provided by the embodiment can be applied to install a chip card 100, where the chip card 100 includes a bluetooth main control chip 110, a near field communication chip 120 electrically connected to the bluetooth main control chip 110, and a plurality of security chips 130 electrically connected to the bluetooth main control chip 110.
In this embodiment, the chip card 100 can be in data communication with an external terminal device, such as the first terminal device 200 or the second terminal device shown in fig. 1. The first terminal device 200 may be a mobile terminal or a dedicated read-write device on which the chip card 100 is installed, and the mobile terminal may provide a hardware operating environment for the chip card 100. For example, the mobile terminal may be a smart phone, a tablet computer with a card insertion function, and the like. The second terminal device may be a tool for loading the chip card 100, by means of which the chip system COS of the respective security chip 130 in the chip card 100 can be loaded or updated.
In this embodiment, the bluetooth main control chip 110 may be a micro control Unit integrated with a bluetooth communication module, and the micro control Unit appropriately reduces the frequency and specification of a Central Processing Unit (CPU), and integrates peripheral interfaces such as a Memory, a counter (Timer), a USB, an a/D conversion, a UART, a PLC, a DMA, and even an LCD driving circuit on a single chip, thereby forming a chip-level computer and performing different combination control for different applications. The bluetooth communication module is used for realizing data interaction between the micro-processing unit and the terminal device 300 or an external payment terminal and the like.
In this embodiment, the near field communication chip 120 combines the near field communication technology and the mobile communication technology, so as to realize multiple functions of electronic payment, identity authentication, ticketing, data exchange, anti-counterfeiting, advertisement, and the like, and the near field communication chip 120 can exchange data through an active mode and a passive mode.
In this embodiment, each security chip 130 may be installed with various large-scale industry applications of corresponding application types, for example, an operator factory application, a life application (for example, a bus card application, a subway card application, and a social security card application), and a mobile payment application (for example, a payment treasure application, and a unionpay application), and thus, the security chip 130 may realize integration of multi-industry services, integrate multiple industry applications into the security chip 130, and enable a user to not carry multiple industry cards, thereby improving user experience, greatly facilitating life of people, and ensuring security of a payment environment.
The chip system cos (chip Operating system) in each secure chip 130 is the core of the chip card 100, and mainly controls the chip card 100 to exchange data with the outside world and complete the processing of various commands in the card. Each secure chip 130 is generally provided in the form of a chip, and is equipped with a chip system COS to implement functions such as data secure storage, encryption and decryption operations, and the like. In the prior art, after the chip card 100 is selected, a corresponding tool is selected according to the chip card 100 to load the COS, for example, the COS of the chip card 100 commonly used in the market is loaded in a contact manner by adopting the international standard ISO/IEC7816 protocol. Therefore, because the security chip 130 generally only supports the loading of the COS through the ISO/IEC7816 contact protocol, but due to the problem of updating the channel management authority of the mobile terminal in which the chip card 100 is installed, when the COS of the security chip 130 needs to be updated or loaded, a user often needs to return the chip card 100 to a related card issuing organization for processing, which causes a lot of inconvenience and reduces user experience.
It should be noted that the above prior art solutions have shortcomings, which are the results of practical and careful study by the inventor, and therefore, the discovery process of the above problems and the solutions proposed by the following embodiments of the present application for the above problems should be the contribution of the inventor to the present application in the process of the present application.
In view of the above problems, the inventor of the present application proposes the following technical solution, which supports the implementation of loading and updating the chip system of the security chip 130 through a non-contact mode, has stronger applicability in an actual scene, and solves the problem of inconvenience caused by the fact that a user often needs to return the chip card 100 to a related card issuing mechanism for processing in the prior art, thereby enhancing user experience.
Specifically, please refer to fig. 2, which is a flowchart illustrating a loading method of a chip system according to an embodiment of the present application, where the loading method of the chip system is executed by the chip card 100 shown in fig. 1. It should be noted that the loading method of the chip system provided in this embodiment is not limited by fig. 2 and the following specific sequence, and the detailed flow of the loading method of the chip system is as follows:
in step S110, when each secure chip 130 receives a chip system loading request, it is determined whether the chip system of the secure chip 130 can be loaded currently.
In this embodiment, each secure chip 130 may be loaded with a corresponding Bootloader program, and the Bootloader program may download and update the chip system of each secure chip 130 through the SPI interface. As an embodiment, when the chip card 100 is powered on, each secure chip 130 first executes the Bootloader program, and can detect whether a chip system identifier exists currently through the Bootloader program, and if so, determine that a chip system of the secure chip 130 can be loaded currently; if not, the system-on-chip of the security chip 130 cannot be loaded currently is determined.
Whether the chip system identifier exists can be used for representing whether the chip system COS of the security chip 130 can normally enter, if the chip system identifier exists, the chip system COS of the security chip 130 can be identified to normally enter, otherwise, the chip system COS cannot normally enter, and the chip system COS of the security chip 130 is not installed or needs to be updated.
Step S120, if it is determined that the chip system of the security chip 130 cannot be loaded currently, detecting a current working mode of the chip card 100.
In this embodiment, if it is determined that the chip system COS of the security chip 130 cannot be loaded currently, the chip system COS of the security chip 130 needs to be initialized, and in the initialization process, in this step, first, the current working mode of the chip card 100 needs to be detected, where the working mode includes a contact mode and a non-contact mode.
As an embodiment, the mode for detecting the current working mode of the chip card 100 can comprise the following steps:
detecting whether the bluetooth master control chip 110 is currently in bluetooth communication with the first terminal device 200, whether the near field communication chip 120 is currently in a communication magnetic field of the first terminal device 200 and/or whether the chip card 100 is currently performing a preset contact protocol operation, if detecting that the chip card 100 is currently performing the preset contact protocol operation, determining that the chip card 100 is currently in a contact mode, and if detecting that the bluetooth master control chip 110 is currently in bluetooth communication with the first terminal device 200 and/or whether the near field communication chip 120 is currently in the communication magnetic field of the first terminal device 200, determining that the chip card 100 is currently in a non-contact mode.
The detecting of whether the bluetooth master control chip 110 is currently in bluetooth communication with the first terminal device 200 is used to detect whether the chip card 100 is currently in bluetooth communication with the first terminal device 200, and if the bluetooth communication is present, it is determined that the chip card 100 is currently in a non-contact mode. Detecting whether the NFC chip 120 is currently located in the communication magnetic field of the first terminal device 200 is used to detect whether the chip card 100 has NFC communication with the first terminal device 200, and if so, determining that the chip card 100 is currently located in a contactless mode. Detecting whether the chip card 100 is performing a preset contact protocol operation is used for detecting whether the chip card 100 has a preset contact protocol communication, such as an ISO/IEC7816 protocol communication, in the second terminal device, and if so, determining that the chip card 100 is currently in a contact mode.
It can be seen from the above steps that a user can select not only a preset contact protocol to communicate the chip card 100 with a second terminal device (e.g., a tool) but also a non-contact manner to communicate with the first terminal device 200, for example, as shown in fig. 1, when a terminal bluetooth chip 210 exists in the first terminal device 200, the non-contact communication between the chip card 100 and the first terminal device 200 can be realized through a bluetooth connection manner, and when a terminal NFC chip 220 exists in the first terminal device 200, the non-contact communication between the chip card 100 and the first terminal device 200 can be realized through an NFC connection manner. Of course, if the terminal bluetooth chip 210 and the terminal NFC chip 220 are both present in the first terminal device 200, the user may select which connection mode by himself, which is not particularly limited herein.
Step S130, when detecting that the chip card 100 is currently in the non-contact mode, receiving a selection response request sent by the first terminal device 200, and feeding back corresponding selection response information to the first terminal device 200 in response to the selection response request.
In this embodiment, if it is detected that the chip card 100 is currently in the non-contact mode, for example, when the chip card 100 implements non-contact communication with the terminal bluetooth chip 210 of the first terminal device 200 through the bluetooth master chip 110, at this time, the chip card 100 may send a bluetooth transmission channel establishment request to the terminal bluetooth chip 210 in the first terminal device 200 through the bluetooth master chip 110, so that the terminal bluetooth chip 210 establishes bluetooth communication with the bluetooth master chip 110 according to the bluetooth transmission channel establishment request. Then, the chip system update information sent by the first terminal device 200 through the terminal bluetooth chip 210 is received through the bluetooth master chip 110.
For another example, when the NFC chip 120 and the terminal NFC chip 220 of the first terminal device 200 implement contactless communication, at this time, the first terminal device 200 may send a request for Answer To request To reset (rats) To the NFC chip 120 of the chip card 100 through the terminal NFC chip 220. Then, the nfc chip 120 of the chip card 100 may receive a selective response request rats (request for Answer To reset) sent by the first terminal device 200, and feed back corresponding selective response information (Answer To Select, ATS) To the first terminal device 200 in response To the selective response request. Then, the first terminal device 200 establishes working communication with the nfc chip 120 of the chip card 100 according to the response information of the selection response, and sends chip system update information to the nfc chip 120.
At this time, the chip card 100 may establish a communication connection with the terminal bluetooth chip 210 through the bluetooth master control chip 110, and receive chip system update information sent by the first terminal device 200 through the terminal bluetooth chip 210; or, a communication connection is established with the terminal NFC chip 220 through the near field communication chip 120, and chip system update information sent by the first terminal device 200 through the terminal NFC chip 220 is received.
The selection response information (ATS) may be a series of strings that respond after the chip card 100 is reset by the first terminal device 200 and the chip card 100 is selected, and the strings provide information on how To perform subsequent work communication with the chip card 100 for the first terminal device 200.
It should be noted that, when the chip card 100 is installed in a mobile terminal, if the mobile terminal has an NFC module, in actual implementation, a communication connection may be established with the terminal NFC chip 220 through the NFC module of the mobile terminal, and after receiving chip system update information sent by the terminal NFC chip 220, the chip system update information is sent to the security chip, so that the security chip 130 of the chip card 100 may preferentially acquire the chip system update information through the NFC module of the mobile terminal.
In step S140, the near field communication chip 120 or the bluetooth master control chip 110 sends the received system-on-chip update information to the security chip 130.
In step S150, the security chip 130 updates the system-on-chip based on the system-on-chip update information.
In this embodiment, after the chip card 100 sends the received chip system update information to the security chip 130 through the near field communication chip 120 or the bluetooth master control chip 110, the security chip 130 may update the chip system based on the chip system update information. Thus, the initialization of the chip system of the security chip 130 is completed, and the updated chip system can directly load and execute the subsequent functions, such as managing the industrial applications in the chip card 100 and completing the processing of various commands in the chip card 100.
Based on the above design, the present embodiment supports the loading and updating of the chip system of the security chip 130 in a non-contact mode, has stronger applicability in an actual scene, and solves the problem of inconvenience caused by the fact that a user often needs to return the chip card 100 to a related card issuing mechanism for processing in the prior art, thereby enhancing the user experience.
Further, referring to fig. 3, after the step S110, the method may further include the steps of:
step S115, if it is determined that the chip system of the security chip 130 can be loaded currently, entering the chip system and performing data interaction with the external terminal that sends the chip system loading request.
In this embodiment, if the chip system of the security chip 130 can be loaded normally, an initialization process is not required at this time, and the security chip directly enters the chip system and performs data interaction with the external terminal that sends the chip system loading request.
Further, referring to fig. 4, after the step S120, the method may further include the steps of:
step S125, when detecting that the chip card 100 is currently in the contact mode, receiving a reset signal sent by the second terminal device, and feeding back corresponding reset response information to the second terminal device in response to the reset signal.
In this embodiment, the chip card 100 may further include communication interaction contacts electrically connected To a second terminal device, so as To implement contact-type communication with the second terminal device through the communication interaction contacts, and the second terminal device may first send a Reset signal To the chip card 100, so that when the chip card 100 is detected To be currently in the contact mode, the chip card receives the Reset signal sent by the second terminal device, and feeds back corresponding Reset response information (Answer To Reset, ATR) To the second terminal device in response To the Reset signal. Then, the second terminal device establishes working communication with the chip card 100 through the communication interaction contact of the chip card 100 according to the reset response information, and sends chip system update information to the security chip 130 through a preset communication protocol.
Alternatively, the preset communication protocol may be an ISO/IEC7816 contact protocol, or other protocols, and is not particularly limited herein.
The reset response information may be a series of character strings that the chip card 100 responds after being reset by the second terminal device, and the characters may provide information on how to perform subsequent work communication with the chip card 100 for the second terminal device.
In step S126, the security chip 130 updates the system-on-chip based on the system-on-chip update information.
Through the above steps, the loading method of the chip system provided by this embodiment supports both loading and updating the chip system of the secure chip 130 in a contact manner and loading and updating the chip system of the secure chip 130 in a non-contact manner.
Further, on the basis, when the system-on-chip of the security chip 130 can be loaded normally, that is, after it is detected that the updating of the system-on-chip is finished, the received task processing command can be processed based on the updated system-on-chip and a command processing result can be fed back, so that a cycle of waiting for receiving the command, processing the command and replying the command is entered.
In summary, the embodiment of the present application provides a chip system loading method and a chip card. And when the chip card is detected to be in a non-contact mode, the Bluetooth main control chip or the near field communication chip establishes working communication with the first terminal equipment, and receives chip system updating information sent by the first terminal equipment according to the selective response information, so that the chip system is updated based on the chip system updating information. Therefore, the application supports the loading and updating of the chip system of the security chip through a non-contact mode, has stronger applicability in an actual scene, solves the problem that in the prior art, a user often needs to return the chip card to a related card issuing mechanism for processing, and further enhances the user experience.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
Alternatively, all or part may be implemented by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as an electronic device, server, data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (8)

1. A chip system loading method is applied to a chip card, the chip card comprises a Bluetooth main control chip, a near field communication chip electrically connected with the Bluetooth main control chip and a plurality of security chips electrically connected with the Bluetooth main control chip, the chip card further comprises a communication interaction contact electrically connected with a second terminal device, and the communication interaction contact is also electrically connected with each security chip, and the method comprises the following steps:
when each safety chip receives a chip system loading request, judging whether the chip system of the safety chip can be loaded at present;
if the chip system of the security chip cannot be loaded at present, detecting the current working mode of the chip card, wherein the working mode comprises a contact mode and a non-contact mode;
when the chip card is detected to be in a non-contact mode currently, working communication is established with first terminal equipment through the Bluetooth main control chip or the near field communication chip, so that the first terminal equipment sends chip system updating information to the near field communication chip or the Bluetooth main control chip;
the near field communication chip or the Bluetooth main control chip sends the received chip system updating information to the security chip;
the security chip updates the chip system based on the chip system update information;
when the chip card is detected to be in a contact mode currently, receiving a reset signal sent by second terminal equipment, responding to the reset signal and feeding back corresponding reset response information to the second terminal equipment, so that the second terminal equipment establishes working communication with the chip card through a communication interaction contact of the chip card according to the reset response information and sends chip system update information to the security chip through a preset communication protocol;
the security chip updates the chip system based on the chip system updating information;
when each safety chip receives a chip system loading request, judging whether the chip system of the safety chip can be loaded at present, wherein the step comprises the following steps:
each security chip detects whether a chip system identifier exists at present;
if the security chip exists, judging that the chip system of the security chip can be loaded currently;
if not, judging that the chip system of the security chip cannot be loaded currently.
2. The chipset system loading method according to claim 1, wherein after the step of determining whether the chipset system of the security chip can be loaded currently when the security chip receives the chipset system loading request, the method further comprises:
and if the chip system capable of loading the security chip is judged to be available, entering the chip system and performing data interaction with an external terminal sending the chip system loading request.
3. The method for loading a chip system according to claim 1, wherein the step of detecting the current operating mode of the chip card comprises:
detecting whether the Bluetooth master control chip is currently in Bluetooth communication with the first terminal equipment, whether the near-field communication chip is currently in a communication magnetic field of the first terminal equipment and/or whether the chip card is currently performing preset contact protocol operation;
if the chip card is detected to be carrying out the operation of the preset contact type protocol, judging that the chip card is currently in a contact type mode;
and if the Bluetooth operation between the Bluetooth main control chip and the first terminal equipment is detected currently and/or whether the near field communication chip is in the communication magnetic field of the first terminal equipment currently, judging that the chip card is in a non-contact mode currently.
4. The chip system loading method according to claim 1, wherein the step of establishing working communication with the first terminal device through the bluetooth master control chip or the near field communication chip when detecting that the chip card is currently in the non-contact mode comprises:
sending a Bluetooth transmission channel establishment request to a terminal Bluetooth chip in the first terminal equipment through the Bluetooth master control chip so that the terminal Bluetooth chip establishes Bluetooth communication with the Bluetooth master control chip according to the Bluetooth transmission channel establishment request; or
And the security chip receives a selection response request sent by the first terminal equipment and responds to the selection response request to feed back corresponding selection response information to the first terminal equipment, so that the first terminal equipment establishes working communication with the near field communication chip of the chip card according to the selection response information.
5. The chip system loading method according to claim 1, wherein if the first terminal device includes a terminal bluetooth chip, after the step of establishing working communication with the first terminal device through the bluetooth master control chip or the near field communication chip when detecting that the chip card is currently in the contactless mode, the method further comprises:
and establishing communication connection with the terminal Bluetooth chip through the Bluetooth main control chip, and receiving chip system updating information sent by the first terminal equipment through the terminal Bluetooth chip.
6. The chip system loading method according to claim 1, wherein if the first terminal device includes a terminal NFC chip, after the step of establishing working communication with the first terminal device through the bluetooth master control chip or the near field communication chip when detecting that the chip card is currently in the contactless mode, the method further comprises:
and establishing communication connection with the terminal NFC chip through the near field communication chip, and receiving chip system update information sent by the first terminal equipment through the terminal NFC chip.
7. The system-on-chip loading method according to claim 1, wherein after the step of updating the system-on-chip by the security chip based on the system-on-chip update information, the method further comprises:
and after the updating of the chip system is detected to be finished, processing the received task processing command based on the updated chip system and feeding back a command processing result.
8. The chip card is characterized by comprising a Bluetooth main control chip, a near field communication chip electrically connected with the Bluetooth main control chip and a plurality of security chips electrically connected with the Bluetooth main control chip, and further comprising a communication interaction contact electrically connected with second terminal equipment, wherein the communication interaction contact is also electrically connected with each security chip;
each safety chip is used for detecting whether a chip system identifier exists at present or not when a chip system loading request is received; if the security chip exists, judging that the chip system of the security chip can be loaded currently; if the chip system of the security chip cannot be loaded currently, detecting the current working mode of the chip card, wherein the working mode comprises a contact mode and a non-contact mode;
each security chip is further used for establishing working communication with first terminal equipment through the Bluetooth master control chip or the near field communication chip when detecting that the chip card is currently in a non-contact mode, so that the first terminal equipment sends chip system updating information to the near field communication chip or the Bluetooth master control chip;
the near field communication chip or the Bluetooth main control chip is used for sending the received chip system updating information to the security chip;
the security chip is used for updating the chip system based on the chip system updating information;
each security chip is further used for receiving a reset signal sent by second terminal equipment when the chip card is detected to be in a contact mode currently, responding the reset signal and feeding back corresponding reset response information to the second terminal equipment, so that the second terminal equipment establishes working communication with the chip card through a communication interaction contact of the chip card according to the reset response information and sends chip system update information to the security chip through a preset communication protocol;
and the security chip is used for updating the chip system based on the chip system updating information.
CN201811332973.XA 2018-11-09 2018-11-09 Chip system loading method and chip card Active CN109408127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811332973.XA CN109408127B (en) 2018-11-09 2018-11-09 Chip system loading method and chip card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811332973.XA CN109408127B (en) 2018-11-09 2018-11-09 Chip system loading method and chip card

Publications (2)

Publication Number Publication Date
CN109408127A CN109408127A (en) 2019-03-01
CN109408127B true CN109408127B (en) 2022-05-24

Family

ID=65472769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811332973.XA Active CN109408127B (en) 2018-11-09 2018-11-09 Chip system loading method and chip card

Country Status (1)

Country Link
CN (1) CN109408127B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR3104352A1 (en) * 2019-10-31 2021-06-11 Orange Electrical charging of an electronic card

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011013902A (en) * 2009-07-01 2011-01-20 Sony Corp Security chip, security card and encryption processing method
WO2011124078A1 (en) * 2010-04-06 2011-10-13 上海复旦微电子集团股份有限公司 Contactless communication device
EP2461267A1 (en) * 2010-12-03 2012-06-06 Gemalto SA System for communicating in a contact-less manner, and corresponding removable chip card, terminal and method
CN103067335A (en) * 2011-10-18 2013-04-24 中国移动通信集团公司 Method for realizing information interaction as non-contact mode, correlation equipment and system
CN108012268A (en) * 2017-12-08 2018-05-08 北京虎符信息技术有限公司 A kind of mobile phone terminal SIM card and the method for safe handling App, medium
CN207424840U (en) * 2017-11-30 2018-05-29 北京集创北方科技股份有限公司 Electronic equipment, display system and its safety chip

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8410583B2 (en) * 2007-09-04 2013-04-02 Nds Limited Security chip
CN101500224B (en) * 2008-01-31 2012-06-06 中国移动通信集团公司 Multi-application management server for telecommunication smart card, multi-application management method and system
CN102054151B (en) * 2009-11-09 2014-08-20 上海华虹集成电路有限责任公司 Method for quickly judging operating mode of dual interface smartcard
JP5959097B2 (en) * 2012-07-03 2016-08-02 ルネサスエレクトロニクス株式会社 Semiconductor device
CN103347105B (en) * 2013-06-19 2017-03-22 上海坤锐电子科技有限公司 Mobile phone radio-frequency SIM card with SWP function in compatible mode
CN105989397A (en) * 2014-09-22 2016-10-05 天地融科技股份有限公司 Simulation card
CN104408516B (en) * 2014-12-12 2018-07-06 恒宝股份有限公司 A kind of novel double-core piece smart card and its control method
CN204650566U (en) * 2015-06-02 2015-09-16 深圳市德卡科技股份有限公司 Bluetooth intelligent card
CN106650882B (en) * 2015-10-28 2019-08-09 北京握奇智能科技有限公司 A method of by judging that communication interface determines application model
CN106227503A (en) * 2016-07-29 2016-12-14 苏州国芯科技有限公司 Safety chip COS firmware update, service end, terminal and system
CN206575456U (en) * 2017-03-02 2017-10-20 广州先越宝仑电子科技有限公司 A kind of control circuit of active safety chip
CN207650857U (en) * 2017-11-13 2018-07-24 厦门盛华电子科技有限公司 It is a kind of to be blocked entirely using the NFC bluetooths of stacked package
CN207557999U (en) * 2017-11-13 2018-06-29 厦门盛华电子科技有限公司 A kind of NFC bluetooths for supporting multi-channel digital certification are blocked entirely
CN108089931A (en) * 2017-11-30 2018-05-29 大唐微电子技术有限公司 A kind of method and device of synchronization SE information, wearable payment devices
CN108196867A (en) * 2018-03-08 2018-06-22 深圳市文鼎创数据科技有限公司 Device for upgrading firmware, equipment and its firmware upgrade method of equipment
CN108763979A (en) * 2018-05-15 2018-11-06 苏州澄怀科技有限公司 A kind of system and method that card application is written to smart card by mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011013902A (en) * 2009-07-01 2011-01-20 Sony Corp Security chip, security card and encryption processing method
WO2011124078A1 (en) * 2010-04-06 2011-10-13 上海复旦微电子集团股份有限公司 Contactless communication device
EP2461267A1 (en) * 2010-12-03 2012-06-06 Gemalto SA System for communicating in a contact-less manner, and corresponding removable chip card, terminal and method
CN103067335A (en) * 2011-10-18 2013-04-24 中国移动通信集团公司 Method for realizing information interaction as non-contact mode, correlation equipment and system
CN207424840U (en) * 2017-11-30 2018-05-29 北京集创北方科技股份有限公司 Electronic equipment, display system and its safety chip
CN108012268A (en) * 2017-12-08 2018-05-08 北京虎符信息技术有限公司 A kind of mobile phone terminal SIM card and the method for safe handling App, medium

Also Published As

Publication number Publication date
CN109408127A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN103647587A (en) Method and system for unlocking mobile terminal, mobile terminal and wearable electronic device
TW201325117A (en) Systems and methods for providing NFC secure application support in battery on and battery off modes
EP3007066A1 (en) Method for using shared device in apparatus capable of operating two operating systems
CN105592403B (en) NFC-based communication device and method
KR20100016062A (en) Method for communicating and transmitting a message relating to a transaction for a contactless application, terminal, secured module and associated systems
CN107422838B (en) Wearable device, unlocking control system and unlocking control method
WO2017161794A1 (en) Nfc mobile payment method and system thereof
CN105556492A (en) Near field communication (NFC) data transfer
CN106650461A (en) Mobile terminal and access method of embedded type security module based on same
CN111581994A (en) Near Field Communication (NFC) communication method and device and electronic equipment
WO2010022642A1 (en) Enfc mobile terminal and electronic payment control method thereof
CN103544114B (en) Based on many M1 card control system and the control method thereof of single CPU card
CN105590202A (en) Method and device for carrying out payment by using mobile terminal
JP6408969B2 (en) Mobile device, method for facilitating transactions, computer program and product
CN101957921A (en) Display method, device and system of radio frequency identification application information
CN109408127B (en) Chip system loading method and chip card
CN103619053A (en) Method for using user identification cards and communication system
CN106067049A (en) A kind of Android client card reading method based on NFC technique
CN107945430B (en) Serial-port-based bidirectional concurrent communication method for intelligent POS machine
CN104125205A (en) Communication account login method, system and terminal
CN109076428B (en) Data processing method and related device
US20150281965A1 (en) Management server, data processing method, and program
CN109862553B (en) Terminal and communication method
US11861991B2 (en) Method of communication between two sub-systems constituting a modular payment terminal
CN106094207A (en) Virtual reality system and the right management method of virtual reality glasses

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant