CN102033828A - Method and system for accessing external card - Google Patents

Method and system for accessing external card Download PDF

Info

Publication number
CN102033828A
CN102033828A CN2010105595763A CN201010559576A CN102033828A CN 102033828 A CN102033828 A CN 102033828A CN 2010105595763 A CN2010105595763 A CN 2010105595763A CN 201010559576 A CN201010559576 A CN 201010559576A CN 102033828 A CN102033828 A CN 102033828A
Authority
CN
China
Prior art keywords
card
add
nfc
spi
application processor
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.)
Granted
Application number
CN2010105595763A
Other languages
Chinese (zh)
Other versions
CN102033828B (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.)
Binzhou Jiahe Animal Husbandry Development Co., Ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010559576.3A priority Critical patent/CN102033828B/en
Publication of CN102033828A publication Critical patent/CN102033828A/en
Priority to PCT/CN2011/078592 priority patent/WO2012068910A1/en
Application granted granted Critical
Publication of CN102033828B publication Critical patent/CN102033828B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4291Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a clocked protocol
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/38Universal adapter
    • G06F2213/3804Memory card connected to a computer port directly or by means of a reader/writer

Abstract

The invention discloses a method and a system for accessing an external card. The method comprises the following steps that: a terminal is connected with the external card by a series peripheral interface (SPI); and an application processor of the terminal accesses the external card through the SPI interface. By using the method and the system, the problem of time delay caused by using a base belt (BB) to access the external is solved, and the speed of accessing the external card by the application processor is improved.

Description

The access method of add-on card and system
Technical field
The present invention relates to the communications field, in particular to a kind of access method and system of add-on card.
Background technology
Along with the third generation arrival in (3rd Generation abbreviates 3G as) epoch, more and more be subjected to each side based on the business of add-on card and pay attention to, terminal is also more and more higher for the requirement of add-on card.Except legacy user's identification module card (Subscriber IdentityModule, abbreviate SIM as) telecommunications functions and safe digital (Secure Digital, being called for short SD) outside the card memory function, add-on card also is widely used as security module, as in the E-Payment field.Growing add-on card business need add-on card must have transfer rate at a high speed and general operation interface and shared with storage space.
One all comprises many application processors present terminal, and for example, the smart mobile phone that has comprises baseband chip (base belt abbreviates BB as) and application processor.Even if single chip solution also has service application processors such as multimedia processor.The terminal here can be a portable terminal, also can be other various opertaing devices that are connected and control add-on card with add-on card, as have the add-on card slot notebook computer, have the palm PC (Personal Digital Assistant abbreviates PDA as) of add-on card slot etc.
Usually, add-on card is by the BB control of terminal, and application processor is visited add-on card if desired, must pass through BB.This, the application processor visit is by BB, then, BB is by ISO7816 interface accessing SIM, again data is transferred to the mode of application processor by internal interface (as I2C), passed through the one or many data forwarding and stored, efficient is lower, and has latency issue.In addition, because the communication interface of historical reasons add-on card is followed different agreements.Even if same business can not shared resource because of the difference of add-on card.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of access method and system of add-on card, to address the above problem at least.
According to an aspect of the present invention, provide a kind of access method of add-on card, this method comprises: terminal uses Serial Peripheral Interface SPI interface to be connected with add-on card; The application processor of described terminal is by the described add-on card of described SPI interface accessing.
Preferably, said method also comprises: the baseband chip BB of described terminal is by described SPI interface and/or the described add-on card of ISO7816 interface accessing.
Preferably, said method also comprises: the spi bus control device of described terminal carries out the switching of the spi bus between described BB and the described application processor, and when carrying out described switching, carry out the switching of input clock, wherein, described spi bus control device is connected with described application processor with described BB, is used to realize sharing of described spi bus.
Preferably, said method also comprises: according to the type of the business on the described add-on card, determine that described BB and/or described application processor visit the mode of described add-on card, wherein, described mode comprise following one of at least: whether allow that described BB or described application processor are visited described business, described BB visits the interface that described business adopts.
Preferably, according to the type of the business on the described add-on card determine described BB and/or described application processor visit the mode of described add-on card comprise following one of at least: described BB is by the telecommunication service on the described add-on card of described ISO7816 interface accessing; Described application processor is by the storage service on the described add-on card of described SPI interface accessing; Described BB is by the storage service on the described add-on card of described SPI interface accessing; Described application processor is by the intended service on the described add-on card of described SPI interface accessing, and do not allow described BB to visit described intended service.
Preferably, described application processor comprises by the described add-on card of described SPI interface accessing: analog front-end chip NFC CLF uses by the near-field communication NFC of the described add-on card of described SPI interface accessing.
Preferably, described NFC CLF comprises by the described add-on card of described SPI interface accessing: the NFC business that described NFC CLF uses by the described NFC of described SPI interface accessing, wherein, described NFC business does not allow the BB visit in the described terminal.
Preferably, described NFC CLF is by the display application of the described NFC application of described SPI interface accessing; And/or, the display application that the BB in the described terminal uses by described SPI interface and/or the described NFC of ISO7816 interface accessing.
Preferably, travel through all add-on card, in a plurality of add-on card, exist under the situation of legal NFC application, to exist the add-on card of legal NFC application to user prompt, and after receiving user-selected add-on card, the NFC that described NFC CLF visits on the described user-selected add-on card uses.
Preferably, said method also comprises: described BB and/or described application processor are operated in master mode, and described add-on card is operated in from the control pattern; Select input pin to come from the add-on card of a plurality of connections, to select the add-on card of transmission data by triggering sheet.
According to a further aspect in the invention, also provide a kind of access system of add-on card, comprised terminal and add-on card, described terminal uses the SPI interface to be connected with described add-on card; Described terminal comprises application processor, and wherein, described application processor is by the described add-on card of described SPI interface accessing.
Preferably, described terminal also comprises BB, and wherein, described BB is by described SPI interface and/or the described add-on card of ISO7816 interface accessing.
Preferably, described terminal also comprises described NFC CLF, and wherein said NFC CLF uses by the NFC of the described add-on card of described SPI interface accessing.
By the present invention, adopt terminal to use Serial Peripheral Interface SPI interface to be connected with add-on card; The application processor of terminal is by SPI interface accessing add-on card.Solved in the prior art application processor and need visit the delay problem that add-on card causes, improved the speed of application processor visit add-on card by BB.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is a synoptic diagram of realizing the SIM card visit according to the SPI interface of the embodiment of the invention;
Fig. 2 is the process flow diagram according to the access method of the add-on card of the embodiment of the invention;
Fig. 3 is the synoptic diagram according to the access system of the add-on card of the embodiment of the invention;
Fig. 4 is according to the terminal of the support spi bus controller of the embodiment of the invention and the synoptic diagram of add-on card;
Fig. 5 is according to embodiments of the invention spi bus controller function block diagram;
Fig. 6 is the synoptic diagram according to different business in the application processor of the embodiment of the invention and the BB visit add-on card;
Fig. 7 is the synoptic diagram that passes through SPI interface accessing add-on card according to the preferred application processor of the embodiment of the invention;
Fig. 8 is the synoptic diagram according to the NFC terminal of prior art;
Fig. 9 is the synoptic diagram according to the NFC terminal of the embodiment of the invention;
Figure 10 is the synoptic diagram that the many add-on card according to the embodiment of the invention are connected with the NFC terminal;
Figure 11 is the synoptic diagram according to the NFC terminal traffic control of the embodiment of the invention;
Figure 12 is the synoptic diagram that the many add-on card according to the embodiment of the invention link to each other with the NFC terminal;
Figure 13 uses the process flow diagram that switches during according to many add-on card of the embodiment of the invention.
Embodiment
Hereinafter will describe the present invention with reference to the accompanying drawings and in conjunction with the embodiments in detail.Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
In following examples, the method of passing through SPI interface accessing SIM card of having used patent 201010176222.0 to propose, below in conjunction with Fig. 1 this patent is carried out simple explanation, the other guide that relates in this patent can be with reference to this patent, do not repeat them here, Fig. 1 is a synoptic diagram of realizing the SIM card visit according to the SPI interface of the embodiment of the invention, as shown in Figure 1, this SPI interface passes through C4, C8, the C6 contact, and realize multiplexing CLK contact, by SPI interface accessing SIM card, can substitute present ISO7816 interface and USB interface fully on function, original ISO7816 interface is for realizing that compatibility function keeps.But, in this patent 201010176222.0, application processor visit add-on card also will be passed through BB chip serial access add-on card, therefore, also exists application processor in the prior art need visit the problem of the time delay that add-on card causes by BB in this patent.
Fig. 2 is the process flow diagram according to the access method of the add-on card of the embodiment of the invention, and as shown in Figure 2, this flow process comprises the steps:
Step S202, terminal uses Serial Peripheral Interface SPI interface to be connected with add-on card;
Step S204, the application processor of terminal is by this SPI interface accessing add-on card.
By above-mentioned steps, make application processor pass through the SPI interface and directly visit add-on card, compare by the mode that BB visits add-on card with application processor of the prior art, reduced the time delay of visit, improved efficient.
Preferably, the BB of terminal also can pass through SPI interface and/or ISO7816 interface accessing add-on card, wherein, keeps the ISO7816 interface accessing and can play compatible effect.
Preferably, when implementing, when BB and application processor all can be by SPI to external when sticking into row access, can increase the spi bus control device and realize the sharing of spi bus of BB and application processor, and this spi bus control device (for example, can pass through control signal) carries out the switching of the spi bus between BB and the application processor, when switching, carry out the switching of input clock.
Preferably, for safety, can be according to the type of the business on the add-on card, determine the mode of BB and/or application processor visit add-on card, wherein, the mode of visit add-on card can comprise following one of at least: the interface that whether allows BB or application processor access service, BB access service to be adopted.
For example, BB can can can still not allow BB to visit this intended service by the intended service on the SPI interface accessing add-on card by the storage service on the SPI interface accessing add-on card, application processor by the storage service on the SPI interface accessing add-on card, BB by telecommunication service, the application processor that ISO7816 visits on the add-on card.
Preferably, add-on card can have a plurality of, and at this moment, BB and/or application processor are operated in master mode, and add-on card is operated in from the control pattern, can select input pin to come to select the add-on card of transmission data from the add-on card of a plurality of connections by triggering sheet.
A kind of access system of add-on card also is provided in the present embodiment, has comprised terminal and add-on card, terminal uses the SPI interface to be connected with add-on card, and this terminal comprises application processor, and wherein, application processor is by SPI interface accessing add-on card.
Fig. 3 is the synoptic diagram according to the access system of the add-on card of the embodiment of the invention, and as shown in Figure 3, terminal also comprises BB, and wherein, BB is by SPI interface and/or ISO7816 interface accessing add-on card.
Is that example describes below in conjunction with preferred embodiment with SIM card, SD card.
In this preferred embodiment, application processor and BB are parallel passes through the SPI interface and directly visits data in the add-on card, promptly application processor to the visit of add-on card without BB.Like this can the reduced data transfer process, promptly can just can finish the visit of data by direct visit SPI interface, reduce the data stream between BB and application processor, and then reduced time delay.
Because the add-on card contact is limited, will take the contact if the SPI of application processor directly received on the add-on card.Therefore adopted the multiplexing mode of spi bus in the present embodiment.In addition, when implementing, application processor may adhere to different chips separately with BB and adopt different clock frequency sources, therefore will guarantee to guarantee clock synchronization in the SPI handoff procedure.
In the present embodiment, realize sharing of spi bus by increasing the spi bus control device.The spi bus control device is application processor or the BB spi bus control function assembly to add-on card.Preferably, under the situation that has adopted the spi bus multiplex mode, can increase control signal to finish the functions such as SPI switching between application processor and BB.Below this being installed preferred ingredient describes.
This device can comprise logic switch and clock control system part, wherein, logic switch is mainly finished SPI signal multiplexing and control, for example, application processor or BB available intercommunication interface simultaneously finish service negotiation, and the spi bus of finishing between BB and the application processor by control signal switches.Clock control system control is used for carrying out the switching of input clock when finishing BB and application processor SPI switching.Preferably, consistent at the clock that carries out can keeping when input clock switches BB and application processor as far as possible avoided causing add-on card (for example, the SIM) interruption of original ISO7816 interface communication because of switching.
The external interface of spi bus control device comprises at least: parts such as SPI input group, SPI output, control signal.Wherein SPI input group comprises SPI outputs such as BB or application processor; The spi bus that control signal is finished between BB and the application processor switches; SPI output links to each other with add-on card, as add-on card SPI input signal.BB communicates by letter with SIM card by the SPI interface, simultaneously compatible ISO7816 interface.Application processor is then by SPI interface accessing add-on card.BB and application processor are finished switching of SPI interface and control by the intercommunication interface.
Preferably, BB and application processor SPI can be operated in master mode, and add-on card such as SIM, SD card can be operated under control model.Under the situation that connects a plurality of add-on card, terminal selects input pin to come the add-on card of selective reception data by the sheet that triggers slave unit, realizes that the SPI between a plurality of add-on card shares.
By the foregoing description, not only can compatible original ISO7816 interface, be standard interface because of SPI simultaneously, can shield the physical difference of add-on card, accomplish the add-on card resource sharing, for example, the add-on card storage resources between multiprocessor is shared.
All can directly visit under the situation of add-on card at BB and application processor, might have the problem of safety and access efficiency, at this moment, can carry out business control according to the class of business of add-on card in the present embodiment, to address these problems.Be explained below.
SIM card can comprise at least: telecommunication service, storage service, particular service (as mobile payment service) etc.; And the SD card can comprise: storage service, particular service (as mobile payment service) etc.
Fig. 6 is according to the synoptic diagram of different business in the application processor of the embodiment of the invention and the BB visit add-on card, as shown in Figure 6, can carry out business control according to the type of service of add-on card.That is, according to the difference of business, terminal can be different for the access mode of add-on card.For example, BB can pass through the telecommunication service of ISO7816 interface accessing SIM card; Application processor and BB can be by the storage services on SPI interface accessing SIM or the SD card, to realize resource sharing; Having the particular service application processor can be by the particular service on the SPI interface accessing add-on card, and still, this particular service does not allow the BB visit because of reasons such as safety and/or efficient.
Below that application processor and BB is the parallel SPI interface accessing add-on card of passing through is made as a whole system and is described.This system is divided into terminal and add-on card two parts, and wherein, terminal is divided into BB and application processor two parts, and application processor can be for a plurality of.BB can communicate by the intercommunication interface with application processor.Add-on card in the present embodiment can comprise SIM card, SD card, can certainly be other card.Be explained below.
BB communicates by letter with SIM card by the SPI interface, simultaneously compatible ISO7816 interface.Application processor is then by SPI interface accessing add-on card.BB and application processor are finished switching of SPI interface and control by the intercommunication interface.BB and application processor SPI are operated in master mode, and add-on card such as SIM, SD card are operated under control model.Terminal selects input pin to come the add-on card of selective reception data by the sheet that triggers slave unit, realizes that the SPI between a plurality of add-on card shares.Application processor passes through SPI interface accessing SIM card, by C4, and C8, realize C6 contact and multiplexing CLK contact.It can substitute present ISO7816 interface and USB interface fully on function, original 7816 interfaces keep for realizing compatibility function.Specifically, do not repeat them here referring to patent 201010176222.0.
There is following advantage in system in the present embodiment: the application processor in the terminal is by spi bus controller access add-on card data, and without BB, just can finish the visit of data like this by SPI interface accessing, improved transfer efficiency.Interface before BB and add-on card have kept certainly, also can pass through the SPI interface communication between BB and the add-on card to realize compatibility (for example, the ISO7816 interface).
In said system, can use bus controller to realize that spi bus is multiplexing, Fig. 4 is that as shown in Figure 4, terminal has the spi bus controller according to the terminal of the support spi bus controller of the embodiment of the invention and the synoptic diagram of add-on card.The spi bus controller is application processor or the BB spi bus control function assembly to add-on card.Wherein the spi bus controller is finished the multiplexing of spi bus and control.
Fig. 5 is according to embodiments of the invention spi bus controller function block diagram, below in conjunction with Fig. 5 bus controller is described, as shown in Figure 5, the spi bus controller is application processor or the BB spi bus control function assembly to add-on card, and this device comprises parts such as logic switch and clock control system.Wherein, logic switch is mainly finished BB and application processor SPI control and multiplexing.Application processor or BB are as master mode, and add-on card such as SIM, SD card are operated under control model.Application processor or BB available intercommunication interface simultaneously finish service negotiation, and the spi bus of finishing between BB and the application processor by control signal switches.When clock control system is mainly finished BB and application processor SPI switching, the switching of input clock.What guarantee simultaneously that the clock of BB and application processor tries one's best is consistent, and avoids causing because of switching the interruption of the original ISO7816 interface communication of SIM.This device external interface comprises: parts such as SPI input group, SPI output, control signal.Wherein SPI input group comprises SPI outputs such as BB or application processor; The spi bus that control signal is finished between BB and the application processor switches; SPI output links to each other with add-on card, as add-on card SPI input signal.
Fig. 7 is the synoptic diagram that passes through SPI interface accessing add-on card according to the preferred application processor of the embodiment of the invention, below in conjunction with Fig. 7 the another one preferred embodiment is described.
In this preferred embodiment, end side comprises BB, application processor, spi bus controller three parts.Wherein, the spi bus controller is finished the multiplexing of spi bus and control.BB and application processor can communicate by intercommunication interface I2C interface.BB and add-on card can be by the interfaces (for example, ISO7816 interface) before keeping.Also can pass through the SPI interface communication between BB and the add-on card, its SPI interface is also controlled by the spi bus controller.Application processor wherein, can pass through C4 to the visit of SPI interface by SPI interface accessing SIM card, C8, and realize C6 contact and multiplexing CLK contact.
Application processor and BB are as master mode, and add-on card such as SIM, SD card are operated under control model, and available intercommunication interface is finished service negotiation simultaneously, and the spi bus of finishing between BB and the application processor by control signal switches.For example, 2 SIM card and 2 SD are linked on the portable terminal SPI interface, at this moment, terminal selects input pin to come the add-on card of selective reception data by the sheet that triggers slave unit, does not have selected add-on card will can not participate in the SPI transmission.Realization to SIM and SD card SPI describes below.
SIM card provides four contacts.Except C4, C8 also needs two contacts outward, adopts clock CLK (C3) as clock line in this preferred embodiment.SWP (C6) is as the chip selection signal line.The SD card is operated under the SPI pattern, and datain (P2), dataout (P7), CLK (P5), CS (P1) import (MOSO), serial clock (SCK) with serial output (MOSI), the serial of SP bus I controller respectively, and chip selection signal (CS) links to each other.
SPI mainly uses 4 signals: main frame output/slave input (MOSI), the output of main frame input/main frame (MISO), serial SCLK or SCK and peripheral hardware chip (CS).Some has the chip of SPI interface special use to select, and is called slave and selects (SS).Each SPI system is by a master control system and a plurality ofly form from the control system.Master control system provides the clock signal of SPI.
In this preferred embodiment, the spi bus control device is finished spi bus control.This device comprises logic switch and clock control system two parts.Logic switch is mainly finished BB and application processor SPI control and multiplexing.Application processor or BB are as master mode, and add-on card such as SIM, SD card are operated under control model.Application processor or BB available intercommunication interface simultaneously finish service negotiation, and the spi bus of finishing between BB and the application processor by control signal switches.When clock control system is mainly finished BB and application processor SPI switching, the switching of input clock.What guarantee simultaneously that the clock of BB and application processor tries one's best is consistent, and avoids causing because of switching the interruption of the original ISO7816 interface communication of SIM.Wherein, clock signal SCLK also will be through the clock control system control of spi bus controller by behind the logic switch of spi bus controller.
Spi bus control device external interface comprises: part such as 2 SPI input groups, 4 SPI output, control signal.Wherein SPI input group comprises SPI outputs such as BB and application processor; The spi bus that control signal is finished between BB and the application processor switches; SPI output links to each other as add-on card SPI input signal with add-on card.
By this preferred embodiment, increased a spi bus controller, can shield the hardware differences of add-on card by the SPI interface, the interface of application processor visit add-on card is provided.Both can raise the efficiency, can realize resource and professional sharing again.
Because the foregoing description has taken C6 contact in the SIM card, so originally, needed to use the function of C6 contact not realize, for example, near-field communication (Near Field Communication, abbreviate NFC as) terminal, following embodiment has related to processing mode in this case, in order better to describe, at first NFC is introduced.
The NFC terminal is meant the terminal with NFC function, comprises parts such as analog front-end chip (NFC CLF), NFC antenna and safety chip.Wherein safety chip can adopt the internal security chip, also can adopt the add-on card mode.In the present embodiment, add-on card is meant the various cards that link to each other with terminal by external mode, comprises SIM card, SD card etc.Adopt SIM card as safety chip as NFC, NFC uses and is placed in the SIM card, and C6 keeps for NFC in the contact.NFC CLF is integrated on the terminal mainboard.Radio frequency front end chip is by interface and terminal communications such as UART/I2C, by NFC application communication in wire protocol (Single WireProtocol abbreviates SWP as) agreement and the SIM card is simply arranged.Wherein SIM card C6 carries as SWP the contact.
The NFC terminal to add-on card one by terminal BB chip controls.Fig. 8 is the synoptic diagram according to the NFC terminal of prior art, and as shown in Figure 8, the NFC terminal is advanced with SIM card to carry out safe related service by SWP, finishes professional the demonstration by the ISO7816 interface.But SWP has taken the C6 contact of SIM card, makes SIM card can't carry out the new business expansion.And business is presented at the technical STK/SCWS/ client mode etc. that can comprise, because of the ISO7816 interface is limit, professional explicit user is experienced relatively poor.And the NFC terminal can face a plurality of add-on card application scenarioss, but in the prior art, the add-on card communication interface is followed different agreement.Therefore, even if be similarly the NFC safety chip, also can not shared resource because of add-on card difference, share as NFC CLF or NFC antenna.
In the above-described embodiments, by C4, C8, has realized by SPI interface accessing add-on card C6 contact and multiplexing CLK contact.But, taken the C6 contact of keeping for NFC to use.In following examples, adopt analog front-end chip NFCCLF to use this problem that solves by the near-field communication NFC of SPI interface accessing add-on card.
Certainly, the kind difference of the business in the add-on card can be selected different access modes according to different classs of business, and SIM card can comprise telecommunication service, storage service, NFC application etc. at least; The SD card can be divided into storage service, NFC application etc.NFC uses and comprises NFC business and display application at least.The NFC business refers to finish specific NFC function to be used, as the transaction application of swiping the card in the mobile payment.Display application is meant at the terminal display capabilities, and the value-added service of using based on NFC is provided, as the transaction record demonstration etc.Consider that the requirement of NFC service security is very high,, may have potential safety hazard if BB can the free access add-on card by SPI.Therefore, in the present embodiment, can control according to the add-on card Classification of Businesses.
Figure 11 is that add-on card service control system shown in Figure 11 can guarantee NFC terminal data safety and transfer efficiency according to the synoptic diagram of the NFC terminal traffic control of the embodiment of the invention.Describe below in conjunction with Figure 11.NFC CLF can be by the NFC business of SPI interface accessing NFC application, and still, this NFC business does not allow the BB visit in the terminal., for the display application in the NFC application, NFC CLF and BB all can conduct interviews by the SPI interface.For example, BB is by ISO7816 visit SIM telecommunication service, to guarantee telecommunication service importance and compatibility; Again for example, in order to guarantee the NFC service security, the NFC business can only because of the safety and efficiency reason does not allow the BB visit, have been avoided the professional potential safety hazard that exists because of BB visit NFC by NFC CLF by the SPI interface accessing.Display application can realize by technology such as SCWS/STK/ clients.Display application will show and mutual the requirement passes to terminal, call related resource and finish demonstration that NFC uses and mutual.Fig. 9 is the synoptic diagram according to the NFC terminal of the embodiment of the invention, and as shown in Figure 9, NFC CLF and BB can carry out with display application alternately.For example, STK visits by ISO7816; The SCWS/ client is to the high SPI interactive interfacing that adopts of demanding terminal.
By the foregoing description, NFC CLF directly visits add-on card by the SPI high-speed interface, and without SWP interface (C6 contact).Finish communication by high speed SPI interface, improve transfer efficiency.Because of SPI is a standard interface, can shield the physical difference of add-on card, accomplish various resource sharings.
Preferably, BB can also link to each other with SIM card by ISO7816 (can certainly pass through this interface accessing display application), NFC CLF may adhere to obstructed chip separately and adopt different clock frequency sources with BB, therefore when NFC CLF visits add-on card by SPI, needs to guarantee clock synchronization.Increased clock control system in the present embodiment and addressed this problem, input clock synchro control when NFC CLF control add-on card is mainly finished in clock control system control, such processing also can be avoided the interruption of the original ISO7816 interface communication of SIM card.
Figure 10 is the synoptic diagram that the many add-on card according to the embodiment of the invention are connected with the NFC terminal, as shown in figure 10, by a cover NFC CLF and a NFC antenna, can realize the operation to a plurality of add-on card.The NFC terminal as from the control system, is chosen a plurality of add-on card respectively as master control system by chip selection signal.By the SPI interface, can realize the high speed data transfer of two cards/many cards like this.
As shown in figure 10, this system is divided into NFC terminal and add-on card two parts, and the NFC terminal can be divided into parts such as BB, NFC CLF and NFC antenna again, and BB and NFC CLF can communicate by the intercommunication interface.NFC CLF and add-on card are directly by the SPI interface communication.Can communicate by the interface (as the ISO7816 interface) before keeping between BB and the add-on card.The NFC terminal is by SPI interface accessing SIM card.
Preferably, the NFC terminal can also increase clock control system, input clock synchro control when clock control system is mainly finished NFC CLF visit add-on card, thus avoid the interruption of the original ISO7816 interface communication of SIM.
Figure 12 is the many add-on card and the synoptic diagram that the NFC terminal links to each other according to the embodiment of the invention, describes below in conjunction with Figure 12.
As shown in figure 12, the NFC terminal is selected a plurality of add-on card collaborative works of total line traffic control by the SPI sheet.Like this, can realize the NFC terminal of communicating by letter with many add-on card by a cover NFC chip and NFC antenna, simultaneously, a plurality of add-on card can be used to satisfy the user and use the NFC application of how tame operator or the NFC demands of applications of same operator different external connection card simultaneously.
The NFC terminal is directly visited the data of add-on card by the SPI high-speed interface, and without the SWP interface.By C4, C8, realize C6 contact and multiplexing CLK contact.The NFC terminal is as master mode, and add-on card such as SIM, SD card are operated in from control model.A plurality of SIM card or SD are linked on the terminal SPI interface, and at this moment terminal selects input pin to come the add-on card of selective reception data by the sheet that triggers slave unit, does not have selected add-on card will can not participate in the SPI transmission.
Preferably, as master control system, as from the control system, select (SS) signal to choose many external datas card a plurality of add-on card the NFC terminal, like this, can realize the high speed data transfer of two cards/many cards by the SPI interface by slave.
Preferably, the NFC terminal increases clock control system, and the input clock synchro control avoided causing the interruption of the original ISO7816 interface communication of SIM when clock control system was mainly finished NFC CLF visit add-on card.
Figure 13 uses the process flow diagram that switches during according to many add-on card of the embodiment of the invention, describes below in conjunction with Figure 13.
The NFC accepting terminal comprises terminals such as POS machine, reader, gate.And, in the NFC terminal of many add-on card,, can realize the operation of swiping the card to a plurality of add-on card by a NFC CLF and NFC antenna are set, realize using and cut automatically, as shown in figure 13, this flow process comprises the steps:
Step S1302, the NFC terminal with many add-on card communicates processing near accepting terminal between the NFC antenna of accepting terminal and terminal.Here, the application program supported in the different operators add-on card may be different, and the communication mode that the accepting terminal of NFC is supported may be also can be therefore and different.
Step S1304, NFC CLF select to use on the add-on card alternately by the spi bus of chip selection signal control add-on card, select to have the valid application add-on card.
Step S1306 judges whether the add-on card of current support in the terminal has valid application.Concrete, though terminal has a plurality of add-on card, only select for use the NFC CLF in an add-on card (default setting) and the terminal to connect by chip selection signal, when receiving the communicating requirement of outside accepting terminal, determine at first whether current add-on card has valid application.If judged result is for being, execution in step S1308 then, otherwise, then carry out S1310.
Step S1308, the valid application on the record add-on card comprises a plurality of application on the same add-on card.
Step S1310 judges whether to have in addition other add-on card of valid application.Judged result is for being, execution in step S1314 then, otherwise, then carry out S1304.Under the situation that no user is intervened, carry out searching of next add-on card, all add-on card in having searched terminal with valid application.
Step S1312, all add-on card judge whether to exist a plurality of add-on card with valid application after using and attempting finishing.If execution in step S1314 then, otherwise execution in step S1320.
Step S1314 provides user selection interface, selects the add-on card of communicating by letter by the user.
Step S1316 judges whether the user selects is the application of the add-on card of the current NFC of being switched to CLF.If execution in step S1314 then, otherwise, execution in step S1318.
Step S1318 selects corresponding add-on card SPI by the sheet choosing.
Step S1320, the transaction of swiping the card is finished and is swiped the card.
In the above-described embodiments, by a NFC CLF and antenna are set in terminal, can realize the operation of swiping the card to a plurality of add-on card, implementation structure is simple, and cost is lower.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, carry out by calculation element thereby they can be stored in the memory storage, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (13)

1. the access method of an add-on card is characterized in that, comprising:
Terminal uses Serial Peripheral Interface SPI interface to be connected with add-on card;
The application processor of described terminal is by the described add-on card of described SPI interface accessing.
2. method according to claim 1 is characterized in that, also comprises:
The baseband chip BB of described terminal is by described SPI interface and/or the described add-on card of ISO7816 interface accessing.
3. method according to claim 2 is characterized in that, also comprises:
The spi bus control device of described terminal carries out the switching of the spi bus between described BB and the described application processor, and when carrying out described switching, carry out the switching of input clock, wherein, described spi bus control device is connected with described application processor with described BB, is used to realize sharing of described spi bus.
4. method according to claim 2 is characterized in that, also comprises:
Type according to the business on the described add-on card, determine that described BB and/or described application processor visit the mode of described add-on card, wherein, described mode comprise following one of at least: whether allow that described BB or described application processor are visited described business, described BB visits the interface that described business adopts.
5. method according to claim 4 is characterized in that, according to the type of the business on the described add-on card determine described BB and/or described application processor visit the mode of described add-on card comprise following one of at least:
Described BB is by the telecommunication service on the described add-on card of described ISO7816 interface accessing;
Described application processor is by the storage service on the described add-on card of described SPI interface accessing;
Described BB is by the storage service on the described add-on card of described SPI interface accessing;
Described application processor is by the intended service on the described add-on card of described SPI interface accessing, and do not allow described BB to visit described intended service.
6. method according to claim 1 is characterized in that, described application processor comprises by the described add-on card of described SPI interface accessing:
Analog front-end chip NFC CLF uses by the near-field communication NFC of the described add-on card of described SPI interface accessing.
7. method according to claim 6 is characterized in that, described NFC CLF comprises by the described add-on card of described SPI interface accessing:
The NFC business that described NFC CLF uses by the described NFC of described SPI interface accessing, wherein, described NFC business does not allow the BB visit in the described terminal.
8. method according to claim 6 is characterized in that,
The display application that described NFC CLF uses by the described NFC of described SPI interface accessing; And/or,
The display application that BB in the described terminal uses by described SPI interface and/or the described NFC of ISO7816 interface accessing.
9. according to each described method in the claim 6 to 8, it is characterized in that, travel through all add-on card, in a plurality of add-on card, exist under the situation of legal NFC application, to exist the add-on card of legal NFC application to user prompt, and after receiving user-selected add-on card, the NFC that described NFC CLF visits on the described user-selected add-on card uses.
10. according to each described method in the claim 2 to 8, it is characterized in that, also comprise:
Described BB and/or described application processor are operated in master mode, and described add-on card is operated in from the control pattern;
Select input pin to come from the add-on card of a plurality of connections, to select the add-on card of transmission data by triggering sheet.
11. the access system of an add-on card comprises terminal and add-on card, it is characterized in that,
Described terminal uses the SPI interface to be connected with described add-on card;
Described terminal comprises application processor, and wherein, described application processor is by the described add-on card of described SPI interface accessing.
12. system according to claim 11 is characterized in that,
Described terminal also comprises BB, and wherein, described BB is by described SPI interface and/or the described add-on card of ISO7816 interface accessing.
13. system according to claim 11 is characterized in that,
Described terminal also comprises described NFC CLF, and wherein said NFC CLF uses by the NFC of the described add-on card of described SPI interface accessing.
CN201010559576.3A 2010-11-24 2010-11-24 Method and system for accessing external card Active CN102033828B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010559576.3A CN102033828B (en) 2010-11-24 2010-11-24 Method and system for accessing external card
PCT/CN2011/078592 WO2012068910A1 (en) 2010-11-24 2011-08-18 External card access method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010559576.3A CN102033828B (en) 2010-11-24 2010-11-24 Method and system for accessing external card

Publications (2)

Publication Number Publication Date
CN102033828A true CN102033828A (en) 2011-04-27
CN102033828B CN102033828B (en) 2015-06-03

Family

ID=43886749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010559576.3A Active CN102033828B (en) 2010-11-24 2010-11-24 Method and system for accessing external card

Country Status (2)

Country Link
CN (1) CN102033828B (en)
WO (1) WO2012068910A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202119A (en) * 2011-05-30 2011-09-28 惠州Tcl移动通信有限公司 Cellphone
CN102368878A (en) * 2011-09-19 2012-03-07 中兴通讯股份有限公司 Multimode terminal as well as SIM (subscriber identity module) card information transmission system and method
CN102625288A (en) * 2011-12-29 2012-08-01 中兴通讯股份有限公司 Multiprocessor terminal and over-the-air (OTA) downloading method for same
CN104955049A (en) * 2015-06-29 2015-09-30 南京熊猫电子股份有限公司 Modular circuit and method for realizing secondary encryption through mini UICC (universal integrated circuit card)
CN106201446A (en) * 2015-04-30 2016-12-07 小米科技有限责任公司 Realize the method and device of the miscellaneous function of electronic equipment
CN107592405A (en) * 2016-07-07 2018-01-16 中兴通讯股份有限公司 The processing method and mobile terminal of a kind of antenna tuning parameters
CN109862553A (en) * 2017-11-30 2019-06-07 华为技术有限公司 Terminal and communication means

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1477473A (en) * 2002-08-20 2004-02-25 技嘉科技股份有限公司 Method for switching control source of computer display device and computer host board using said method
US20040266480A1 (en) * 2003-06-27 2004-12-30 Hjelt Kari Tapani System and method for implementing sensor functionality in mobile devices
CN1619518A (en) * 2004-11-30 2005-05-25 北京中星微电子有限公司 Half duplex series communication bus external device interface
CN1764912A (en) * 2003-03-28 2006-04-26 英特尔公司 Method and apparatus for detecting memory device interface
CN101499049A (en) * 2008-02-01 2009-08-05 希姆通信息技术(上海)有限公司 Method for data transfer between memory cards of hand-held electronic equipment
CN101751364A (en) * 2010-01-25 2010-06-23 成都优博创技术有限公司 Firmware ISP writer and writing method for SPI bus interface
CN101820460A (en) * 2010-03-29 2010-09-01 上海华勤通讯技术有限公司 Module for realizing SPI interface

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201608771U (en) * 2009-06-26 2010-10-13 北京昆腾微电子有限公司 CMMB conditional access module
CN201571088U (en) * 2009-12-11 2010-09-01 龙旗科技(上海)有限公司 Novel camera mobile phone

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1477473A (en) * 2002-08-20 2004-02-25 技嘉科技股份有限公司 Method for switching control source of computer display device and computer host board using said method
CN1764912A (en) * 2003-03-28 2006-04-26 英特尔公司 Method and apparatus for detecting memory device interface
US20040266480A1 (en) * 2003-06-27 2004-12-30 Hjelt Kari Tapani System and method for implementing sensor functionality in mobile devices
CN1619518A (en) * 2004-11-30 2005-05-25 北京中星微电子有限公司 Half duplex series communication bus external device interface
CN101499049A (en) * 2008-02-01 2009-08-05 希姆通信息技术(上海)有限公司 Method for data transfer between memory cards of hand-held electronic equipment
CN101751364A (en) * 2010-01-25 2010-06-23 成都优博创技术有限公司 Firmware ISP writer and writing method for SPI bus interface
CN101820460A (en) * 2010-03-29 2010-09-01 上海华勤通讯技术有限公司 Module for realizing SPI interface

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202119A (en) * 2011-05-30 2011-09-28 惠州Tcl移动通信有限公司 Cellphone
CN102368878A (en) * 2011-09-19 2012-03-07 中兴通讯股份有限公司 Multimode terminal as well as SIM (subscriber identity module) card information transmission system and method
WO2012151902A1 (en) * 2011-09-19 2012-11-15 中兴通讯股份有限公司 Multi-mode terminal and sim card information transmitting system and method
CN102625288A (en) * 2011-12-29 2012-08-01 中兴通讯股份有限公司 Multiprocessor terminal and over-the-air (OTA) downloading method for same
CN102625288B (en) * 2011-12-29 2019-06-11 中兴通讯股份有限公司 The method and multiprocessor terminal of multiprocessor terminal air downloading
CN106201446A (en) * 2015-04-30 2016-12-07 小米科技有限责任公司 Realize the method and device of the miscellaneous function of electronic equipment
CN104955049A (en) * 2015-06-29 2015-09-30 南京熊猫电子股份有限公司 Modular circuit and method for realizing secondary encryption through mini UICC (universal integrated circuit card)
CN107592405A (en) * 2016-07-07 2018-01-16 中兴通讯股份有限公司 The processing method and mobile terminal of a kind of antenna tuning parameters
CN107592405B (en) * 2016-07-07 2020-12-29 中兴通讯股份有限公司 Antenna tuning parameter processing method and mobile terminal
CN109862553A (en) * 2017-11-30 2019-06-07 华为技术有限公司 Terminal and communication means
US11487910B2 (en) 2017-11-30 2022-11-01 Huawei Technologies Co., Ltd. Terminal and communication method

Also Published As

Publication number Publication date
CN102033828B (en) 2015-06-03
WO2012068910A1 (en) 2012-05-31

Similar Documents

Publication Publication Date Title
JP4891253B2 (en) Shared IC card and wireless transceiver module for mobile communication equipment
CN102033828B (en) Method and system for accessing external card
US8412099B2 (en) Method and device for managing application data in an NFC system in response to contactless data sending or receiving
CN101473336B (en) Method of dynamically allocating contacts of a subscriber chip card in a mobile terminal, and corresponding subscriber chip card and mobile terminal
CN102325210A (en) Universal mobile payment terminal compatible with multiple operators and implementation method thereof
CN104239829B (en) Near field communication means and method
JP2002518959A (en) Communication method and communication device
CN105263140A (en) System and method for realizing remote authentication of subscriber identity module (SIM) card
CN102368878A (en) Multimode terminal as well as SIM (subscriber identity module) card information transmission system and method
CN101772215A (en) Mobile terminal capable of supporting near field communication and near field communication method thereof
CN101025782A (en) Method and apparatus for contactless interface on ICC supporting high speed interface
CN211127902U (en) Electronic device and cellular phone
CN111741161A (en) Electronic system
CN101860440A (en) Wireless internet module and data synchronism method and data card using same
GB2434661A (en) Portable communication device with smart card functionality
CN101957921A (en) Display method, device and system of radio frequency identification application information
CN103024943A (en) Multi-mode terminal and method for implementing multi-mode and multi-standby
CN101330690B (en) Mobile terminal and method for implementing user recognition module non-contact application
CN102802211B (en) Techniques for augmented functionality by sharing wireless resources
WO2024036887A1 (en) Sim card communication circuit, related device, and control method
KR100832881B1 (en) Apparatus for realizing dynamic ui associated with usim card and usim card and mobileterminal thereof
CN101848559A (en) Realization system for information transmission and smart card
CN211509119U (en) Electronic device and cellular phone
CN109586755B (en) Communication device, communication storage device, switching method and terminal equipment
CN205847259U (en) A kind of bluetooth equipment and Bluetooth system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201231

Address after: 251800 No. 079, Lehu Road, Yanghu Township, Yangxin County, Binzhou City, Shandong Province

Patentee after: Binzhou Jiahe Animal Husbandry Development Co., Ltd

Address before: 518057 No. 55 South Science and technology road, Shenzhen, Guangdong, Nanshan District

Patentee before: ZTE Corp.

TR01 Transfer of patent right