CN106529942B - The access method and terminal of a kind of nfc card - Google Patents

The access method and terminal of a kind of nfc card Download PDF

Info

Publication number
CN106529942B
CN106529942B CN201510571069.4A CN201510571069A CN106529942B CN 106529942 B CN106529942 B CN 106529942B CN 201510571069 A CN201510571069 A CN 201510571069A CN 106529942 B CN106529942 B CN 106529942B
Authority
CN
China
Prior art keywords
terminal
nfc
card
smart card
service processing
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
CN201510571069.4A
Other languages
Chinese (zh)
Other versions
CN106529942A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201510571069.4A priority Critical patent/CN106529942B/en
Publication of CN106529942A publication Critical patent/CN106529942A/en
Application granted granted Critical
Publication of CN106529942B publication Critical patent/CN106529942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/352Contactless payments by cards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/357Cards having a plurality of specified features
    • G06Q20/3576Multiple memory zones on card
    • G06Q20/35765Access rights to memory zones
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • G06Q20/367Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes
    • G06Q20/3674Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes involving authentication

Abstract

The problem of embodiment of the present invention provides a kind of access method and terminal of nfc card, is related to the communications field, and nfc card cannot be accessed by being capable of third party's wallet client end application of solution NFC terminal by no means.Its method is:In terminal intelligent card service initialization procedures, the process identification (PID) of the currently running process of ccf layer is obtained;It is determined in currently running process with the presence or absence of one had permission in the smart card service processing process of close range wireless communication NFC terminal of operation or the smart card service processing process of non-NFC terminal according to process identification (PID);If so, the logical channel of smart card service processing process and nfc card is opened when terminal is equipped with nfc card so that third party's wallet client end in terminal can access nfc card by logical channel.The present invention implements to realize that card slot free switching supports OMAP I for multi-card terminal.

Description

The access method and terminal of a kind of nfc card
Technical field
The present invention relates to the communications field more particularly to the access methods and terminal of a kind of nfc card.
Background technology
Close range wireless communication (Near Field Communication, NFC) is a kind of non contact angle measurement and interconnection Technology, can be in mobile equipment, consumer electronics product, personal computer (personal computer, PC) and smart control Wireless near field communication is carried out between tool.NFC provides a kind of simple, touch solution, and consumer can be allowed simple It intuitively exchanges information, access content and service.Nfc card can be understood as safety chip (Secure Element, SE) is pre- The SIM card in client identification module (Subscriber Identity Module, SIM) is put, NFC terminal is to include NFC The terminal of module, the NFC module support above-mentioned NFC function, if NFC terminal opens NFC function, may be such that in NFC terminal It applies and communicates with nfc card, such as third party's wallet client end in the mobile phone with NFC module in third party's wallet client end It swipes the card using public transport, subway is completed with nfc card with the small amount payments such as supermarket food and drink etc..Wherein, which should With the Intellective Management Software for open platform more is applied to be managed the safety chip resource of nfc card and application.
The purpose of open type moving application programming interface (Open Mobile API, OMAPI) is provides a kind of permission Using the safety chip SE in the standard access mobile phone by OAMPI.Wherein, OMAPI standards by a set of operating system software Interface and a set of hardware interface composition for defining common application peripheral hardware.In the above process, NFC terminal is by the suitable of OMAPI Obtain NFC module with exploitation, just so that NFC terminal in third party's wallet client end be able to access that nfc card and in nfc card Using communicating, still, for the non-NFC terminal for not including NFC module, developed without the adaptation of OMAPI, the The application of tripartite's wallet client end can not access nfc card in the terminal not comprising NFC module.
Invention content
The embodiment of the present invention provides a kind of access method and terminal of nfc card, is capable of third party's money of solution NFC terminal by no means Packet client application cannot access the problem of nfc card.
In a first aspect, providing a kind of access method of nfc card, applied to terminal, the terminal has been pre-saved in the presence of visit Ask the process identification (PID) of the process of permission, the method includes:
In terminal intelligent card service initialization procedures, the process identification (PID) of the currently running process of ccf layer is obtained;
The terminal determines to whether there is in the currently running process according to the process identification (PID) has permission operation In the smart card service processing process of close range wireless communication NFC terminal or the smart card service processing process of non-NFC terminal One;
If so, the smart card service processing process and the nfc card are opened when the terminal is equipped with nfc card Logical channel so that third party's wallet client end in the terminal is applied accesses the nfc card by the logical channel.
With reference to first aspect, it is described according to the process identification (PID) in the first mode in the cards of first aspect It determines in the currently running process with the presence or absence of the smart card service for the close range wireless communication NFC terminal for having permission operation One in the smart card service processing process for the treatment of progress or non-NFC terminal includes:
It determines with the presence or absence of the process identification (PID) for the process for having access rights in the process identification (PID), it is described to have access rights The process identification (PID) of process is the shared user right title in the expandable mark language XML file of the smart card service Value, the value of the shared user right title are used to characterize access rights or described of the NFC terminal with smart card service Non- NFC terminal is used for the access rights of smart card service;
If so, determine there is the smart card service center for the NFC terminal for having permission operation in the currently running process One in the smart card service processing process of reason process or non-NFC terminal.
The first mode in the cards with reference to first aspect or first aspect, in second of mode in the cards In, before the terminal opens the logical channel, the method further includes:
The terminal obtains more card configuration attribute values of this terminal, and more card configuration attribute values are used to characterize the terminal For multi-card terminal or single card terminal.
Second of mode in the cards with reference to first aspect, it is described in institute in the third mode in the cards It states and the logical channel of the smart card service processing process and the nfc card is opened when terminal is equipped with nfc card includes:
If the terminal is the multi-card terminal, each SIM pairs of client identification module according to present in the terminal The card slot value answered, the logic for opening the smart card service processing process and the nfc card when SIM is nfc card successively are led to Road;
If the present terminal is the single card terminal, smart card service when opening the SIM as the nfc card Treatment progress and the logical channel of the nfc card.
The third mode in the cards with reference to first aspect, in the 4th kind of mode in the cards, the terminal In third party's wallet client end apply and included by the logical channel access nfc card:
When the terminal receives the first operational order for starting third party's wallet client end application, acquisition is used for Indicate the instruction information list of the nfc card;
If third party's wallet client end application needs to access any nfc card, and the list includes at least two institutes Instruction information is stated, then the terminal receives user and the second operational order for accessing the first nfc card, and root are chosen from the list The communication connection between first nfc card and third party's wallet client end application is established according to second operational order.
Second aspect provides a kind of terminal, including:
The terminal pre-saves the process identification (PID) of the process there are access rights, including:
Acquiring unit, in terminal intelligent card service initialization procedures, obtaining the currently running process of ccf layer Process identification (PID);
Determination unit has permission fortune for determining to whether there is in the currently running process according to the process identification (PID) The smart card service processing process of capable close range wireless communication NFC terminal or the smart card service processing process of non-NFC terminal In one;
Processing unit, for if so, opening the smart card service processing process when the terminal is equipped with nfc card With the logical channel of the nfc card so that third party's wallet client end in the terminal is applied to be visited by the logical channel Ask the nfc card.
With reference to second aspect, in the first mode in the cards of second aspect, the determination unit is specifically used for:
It determines with the presence or absence of the process identification (PID) for the process for having access rights in the process identification (PID), it is described to have access rights The process identification (PID) of process is the shared user right title in the expandable mark language XML file of the smart card service Value, the value of the shared user right title are used to characterize access rights or described of the NFC terminal with smart card service Non- NFC terminal is used for the access rights of smart card service;
If so, determine there is the smart card service center for the NFC terminal for having permission operation in the currently running process One in the smart card service processing process of reason process or non-NFC terminal.
With reference to the first of second aspect or second aspect mode in the cards, second in second aspect may be real In existing mode, the acquiring unit is additionally operable to obtain more card configuration attribute values of this terminal, and more card configuration attribute values are used It is multi-card terminal or single card terminal in characterizing the terminal.
With reference to second of mode in the cards of second aspect, in the third mode in the cards of second aspect In, the processing unit is specifically used for:
If the terminal is the multi-card terminal, according to the corresponding cards of client identification module SIM each in the terminal Slot value opens the logical channel of the smart card service processing process and the nfc card when SIM is nfc card successively;
If the present terminal is the single card terminal, smart card service when opening the SIM as the nfc card Treatment progress and the logical channel of the nfc card.
With reference to the third mode in the cards of second aspect, in the 4th kind of mode in the cards, the acquisition Unit, specifically for when receiving the first operational order for starting third party's wallet client end application, obtaining to refer to Show the instruction information list of the nfc card;
It further includes:Receiving unit, if needing to access any nfc card, and institute for third party's wallet client end application It states list and includes at least two instruction information, then receive user chooses the first nfc card of access from the list second Operational order;
The processing unit, specifically for establishing first nfc card and the third according to second operational order Communication connection between square wallet client end application.
The embodiment of the present invention provides a kind of access method and terminal of nfc card, and terminal has pre-saved that there are access rights Process process identification (PID), in terminal intelligent card service initialization procedures, obtain ccf layer currently running process into Journey identifies;It is determined in currently running process with the presence or absence of the close range wireless communication NFC for having permission operation according to process identification (PID) One in the smart card service processing process of terminal or the smart card service processing process of non-NFC terminal;If so, in terminal The logical channel of smart card service processing process and nfc card is opened when nfc card is installed so that third party's wallet visitor in terminal Family end is applied accesses nfc card by logical channel.So, when in the process identification (PID) of the process of the operation of the ccf layer of terminal During process identification (PID) including the smart card service processing process for being used to identify non-NFC terminal, for non-NFC terminal, characterization The non-NFC terminal also supports OMAPI, i.e., also has permission operation smart card service, open intelligence when terminal is equipped with nfc card in this way The logical channel of energy card service processing process and nfc card so that third party's wallet client end in terminal is applied to be led to by logic Road communicates with nfc card, and the permission of nfc card is accessed equivalent to increase non-NFC terminal, can solution by no means NFC terminal the The problem of application of tripartite's wallet client end cannot access nfc card.
Description of the drawings
It in order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the present invention Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow diagram of the access method of nfc card provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the access method of a kind of nfc card that further embodiment of this invention provides;
Fig. 3 is a kind of structure diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
The problem of NFC terminal cannot access nfc card by no means for solution in the embodiment of the present invention, is implemented performing the present invention Example method and step before, can first to the bottom of the nfc card of non-NFC terminal definition, to frame (framework) layer definition and Smart card service (Smartcard Service) original extensible markup language (Extensible Markup Language, Xml) file is added or changes, and completes to realize non-NFC terminal the development process for supporting OMAPI.
A) addition bottom definition, that is, define and add an application identities (application identifier, AID) and be The shared user right of 1039 smart card service, naturally it is also possible to which, for other values, the application does not limit.Such as Android For the non-NFC terminal of system, bottom definition can be:In android_filesystem_config.h:
#define AID_SMARTCARD 1039
“smcard”,AID_SMARTCARD
B) framework layers of definition are added, that is, the process identification (PID) for defining the smart card service processing process of non-NFC terminal is " android.uid.smcard ", and " android.uid.smcard " is added to SMARTCARD_UID groups, wherein, SMARTCARD_UID groups may include the process identification (PID) of a variety of smart card services.
C) the original xml document of smart card service is changed
Here the smart card that xml document refers to services corresponding topology file, is related to servicing relevant prison with the smart card Listen event, using registration etc..For NFC terminal, the shared user right title in the xml document in NFC module (SharedUserld) value is android.uid.nfc, i.e., currently processed process includes the process of android.uid.nfc During mark, which, which has permission, runs the smart card service.The xml document of its smart card service can be:
Package=" org.simalliance.openmobileapil.service "
SharedUserld=" android.uid.nfc "
The xml document of NFC terminal is considered as original xml document, since non-NFC terminal does not have NFC module, also without corresponding NFC processes, it will smart card service is caused to be unable to operate normally, therefore, overlay mechanism can be passed through and change original xml File, so that the shared user right that the AID that non-NFC terminal can also share above-mentioned addition is 1039 is so as to run smart card The process of service.Wherein, overlay mechanism allows in software package (Package) is not changed in the case of installation kit, to make by oneself Resource file in adopted framework and package realizes the customization of resource.Modified xml document can be:
Package=" org.simalliance.openmobileapil.service "
SharedUserld=" android.uid.smcard "
In this way, when non-NFC terminal is switched on operation smart card service, the process of the smart card service processing process of non-NFC Mark is due to for " android.uid.smcard " so that smart card service can share " android.uid.smcard " power Limit, therefore, but also non-NFC terminal supports OMAPI, in order to which the logic that nfc card is opened when nonterminal is equipped with nfc card is led to Road so that third party's wallet client end application in non-NFC terminal is able to access that nfc card.
The exploitation that non-NFC terminal supports OMAPI can be mounted on non-NFC terminal in the form of chip in the above process On.
After above-mentioned development process is completed, for any one terminal, the embodiment of the present invention provides a kind of access side of nfc card Method, applied to terminal, terminal pre-saves the process identification (PID) of the process there are access rights, as shown in Figure 1, including:
101st, in terminal intelligent card service initialization procedures, the process mark of the currently running process of ccf layer is obtained Know.
When starting up of terminal, the intelligence in the module of smart card service or the NFC module of NFC terminal in non-NFC terminal Card service will carry out initialization operation, framework layer may due to it is other service also run so as to there are it is multiple into Journey, each process include its corresponding process identification (PID).
102nd, terminal determines currently running process with the presence or absence of the near radio for having permission operation according to process identification (PID) One in the smart card service processing process of communication NFC terminal or the smart card service processing process of non-NFC terminal.
Terminal can be according to the process identification (PID) from framework layers of acquisition, and determining to whether there is in the process identification (PID) has visit Ask the process identification (PID) of the process of permission, which is the extensible markup language of smart card service Say the value of the shared user right title in XML file, share user right title value (android.uid.nfc or Android.uid.smcard) have for characterizing NFC terminal for the system access right of smart card service or non-NFC terminal The system access right of smart card service, if so, determining that currently running process includes the NFC terminal for having permission operation One in the smart card service processing process of smart card service processing process or non-NFC terminal, i.e., when the smart card of NFC terminal Process of the process identification (PID) of service processing process for the smart card service processing process of android.uid.nfc or non-NFC terminals When being identified as android.uid.smcard, just have permission and continue to run with smart card service.
103rd, if so, terminal opens the logic of smart card service processing process and nfc card when terminal is equipped with nfc card Channel so that third party's wallet client end in terminal is applied accesses nfc card by logical channel.
It is being determined the need for opening patrolling for smart card service processing process and nfc card according to the process identification (PID) of process in this way In the case of collecting channel, it can prevent other malicious applications from the logical channel of nfc card arbitrarily being called to send malicious data to NFC Card.
The embodiment of the present invention provides a kind of access method and terminal of nfc card, and terminal has pre-saved that there are access rights Process process identification (PID), in terminal intelligent card service initialization procedures, obtain ccf layer currently running process into Journey identifies;It is determined in currently running process with the presence or absence of the close range wireless communication NFC for having permission operation according to process identification (PID) One in the smart card service processing process of terminal or the smart card service processing process of non-NFC terminal;If so, in terminal The logical channel of smart card service processing process and nfc card is opened when nfc card is installed so that third party's wallet visitor in terminal Family end is applied accesses nfc card by logical channel.So, when in the process identification (PID) of the process of the operation of the ccf layer of terminal During process identification (PID) including the smart card service processing process for being used to identify non-NFC terminal, for non-NFC terminal, characterization The non-NFC terminal also supports OMAPI, i.e., also has permission operation smart card service, open intelligence when terminal is equipped with nfc card in this way The logical channel of energy card service processing process and nfc card so that third party's wallet client end in terminal is applied to be led to by logic Road communicates with nfc card, and the permission of nfc card is accessed equivalent to increase non-NFC terminal, can solution by no means NFC terminal the The problem of application of tripartite's wallet client end cannot access nfc card.
At present, all specified wherein nfc card 1 in the wallet client end of the NFC projects of operator supports OMAPI, to access NFC Card 1, such as carry out mass transit card information inquiry, supplement with money, and another nfc card 2 in the terminal can not support OMAPI, in this way meeting A part of consumer is caused to want to realize that the demand of NFC will be not being met by nfc card 2.
Therefore, further, no matter for NFC terminal or non-NFC terminal, when it all supports OMAPI, the present invention Embodiment also provides a kind of method, in the presence of can having multiple nfc cards on multiple card slots of terminal, can allow the multiple of terminal Nfc card can support OMAPI so that third-party application can also access nfc card 2, as shown in Fig. 2, including:
201st, in terminal intelligent card service initialization procedures, more card configuration attribute values of this terminal are obtained, more card configurations Property value is multi-card terminal or single card terminal for characterizing terminal.
After starting up of terminal, in terminal intelligent card service initialization procedures, the more cards configuration that can first obtain this terminal belongs to Property value (such as define and represented with variable mIsMultiSimEnable), more card configuration attribute values are for characterizing terminal as more cards eventually End or single card terminal.Such as when mobile phone is multi-card terminal, which can be double-card dual-standby (dual sim dual Standby, dsds) mobile phone, represent that the mobile phone may be inserted into two mobile phone cards, and can be standby simultaneously, but wherein one card Another card cannot throw phone into when conversing;It can also be double card bilateral (dual sim dual active, dsda) hand Machine indicates the mobile phone of two mobile phone cards, and when wherein one card is being conversed, another card can also throw phone into, but be in Off-line state can be prompted conversing;Can also be that three cards three treat (triple sim triple standby, tsts) hand Machine represents that mobile phone may be inserted into three mobile phone cards, and can be standby simultaneously, wherein when a cartoon is talked about, other two card nothings Method throws phone into, can prompt temporarily to be not turned on.I.e. when mobile phone for double-card dual-standby, double card bilateral or three card three when, can be true Terminal is determined for multi-card terminal, and the value of variable mIsMultiSimEnable is ture;When terminal is single card terminal, variable The value of mIsMultiSimEnable is false.;
It after more card configuration attributes that terminal is determined, then determines whether this terminal can run smart card service, is The no logical channel that open nfc card can specifically realize by step 202-205, realization method and above-mentioned steps 101- 103 realization method is similar, and details are not described herein again.
202nd, terminal obtains the process identification (PID) of the currently running process of ccf layer.
203rd, terminal according to process identification (PID) determine in currently running process with the presence or absence of have permission operation closely without One in the smart card service processing process of line communication NFC terminal or the smart card service processing process of non-NFC terminal.
The 204th, if so, if terminal is multi-card terminal, the corresponding card slot values of each SIM according to present in terminal are successively Open the logical channel of smart card service processing process and the nfc card when SIM is nfc card.
If smart card service can continue to run with, then, can be according to more card configuration attributes if there is multiple nfc cards in terminal Value opens the logical channel of multiple nfc card successively, to support OMAPI, so that third-party application can access multiple NFC Card, specifically can be as follows:
If the value of mIsMultiSimEnable is ture, the application program for opening logical channel can be called OpenIccLogicalChannel, successively according to the card slot value (mUiccSolt) of SIM present in terminal, to the card slot value pair The SIM transmissions answered are used to open the information of the logical channel of nfc card, lead to open logic according to the information when SIM is nfc card Road.
Of course without requirement of information is sent when illustratively, for being not inserted into SIM in card slot, therefore, for there are the cards of SIM Slot can call the application program for opening logical channel according to the size of card slot value (mUiccSolt) (openIccLogicalChannel) the card SIM on card slot sends information successively, which may include card slot value and for beating Open the application identities aid of logical channel.
Since the whole world that subscriber card access control follows global platform tissue (Global Platform) trusted frame is put down Platform access control (Global Platform Access Control, GPAC) mechanism, for terminal, needs to support two kinds Obtain access control rule:Support access control application memory mode (Access Rule Application Master, ARA_ M) and document storage mode (Access Rule Files, ARF), when terminal needs to open the logical channel of card, can first choose Mode ARA_M based on application transmits the first aid to SIM, when SIM is nfc card, can determine the nfc card according to the first aid It is applied with the presence or absence of ARA_M, if the access control rule that return is applied based on ARA_M in the presence of if, if it does not exist, then can taste The ARF in a manner of being stored based on file is tried, the 2nd aid is transmitted to SIM, when SIM is nfc card, can be determined according to the 2nd aid Whether the nfc card supports the access control rule that file stores, if so, the access control rule based on ARF is returned to, so as to the Tripartite's wallet client end end is applied accesses nfc card according to the rule.Usually, if SIM be nfc card, can support with ARA_M modes or ARF modes open logical channel, therefore, when NFC supports a kind of in both modes, can return to opening Successfully response and control are regular for logical channel.So in the case of SIM does not support NFC, SIM can return to opening logical channel The response of failure.
In this way, for example for the mobile phone that double-card dual-standby, double card bilateral or three cards three are treated, when SIM is nfc card, Multiple NFC can be achieved and all open logical channel, all support OMAPI, third-party application can communicate with multiple nfc cards.
If the 205, present terminal is single card terminal, smart card service processing process and the NFC when opening SIM as nfc card The logical channel of card.
If the value of mIsMultiSimEnable is false, illustrate that terminal for single card terminal, then can call opening logic The application program openIccLogicalChannel of channel simultaneously sends information using default value Soltld to SIM, is wrapped in the information It includes default value Soltld and opens the application identities aid of logical channel, mode can be similar in step 205, to work as SIM opens logical channel when being nfc card.
Therefore, the embodiment of the present invention is by when terminal is multi-card terminal, if having at least two cards for nfc card, all may be used To open logical channel, to support OMAPI so that it is convenient to which third-party application can access nfc card 1, nfc card 1 can also be accessed Nfc card 2 in addition, such as user is allowd to carry out the payment of NFC wallets or the progress NFC wallet branch of nfc card 2 by nfc card 1 It pays.
Although the above process can open the logical channel of nfc card 2, to support OMAPI, user is carrying out NFC's During demand, third-party application can only also specify the NFC demands of one of nfc card realization user, therefore, further, this After the logical channel of multiple nfc cards in all opening a terminal, this method can also include inventive embodiments:
206th, when terminal receives the first operational order for starting third-party application, the finger for being used to indicate nfc card is obtained Show information list, third-party application is applies open platform to nfc card safety chip resource and using the intelligence being managed more Management software.
Illustratively, when the NFC mobile phone or non-NFC mobile phone third-party application of supporting OMAPI, such as NFC wallet clients end When receiving the first operational order of use triggering so as to start operation, the NFC for obtaining and having already turned on logical channel can be detected The instruction information list of card can for example show mobile subscriber number (the Mobile Directory of nfc card 1 in mobile phone Number, MDN) and nfc card 2 MDN, for selection by the user a certain nfc card communicate with third-party application, finger here certainly Show that information is not limited to MDN, or other information, the application do not limit.
If the 207, third-party application needs to access any nfc card, and list includes at least two instruction information, then terminal connects It receives user and the second operational order for accessing the first nfc card is chosen from list, and the first nfc card is established according to the second operational order Communication connection between third-party application.
After above-mentioned list is obtained, need to access a certain nfc card, and list includes at least two fingers in third-party application In the case of showing information, for example, need carry out mass transit card inquiry into balance need access nfc card 1 when, then can select in the list The instruction information of nfc card 1 is selected, i.e. mobile phone can receive the second operational order for accessing nfc card 1, and third-party application is just to nfc card 1 sends order, and nfc card 1 is established with third-party application when receiving order and communicated to connect;When needing to carry out wallet payment, The instruction information of nfc card 2 can be chosen from the list, i.e. mobile phone can receive another operational order for accessing nfc card 2, the Tripartite's application is just sent to nfc card 2 orders, and nfc card 2 is established with third-party application when receiving order and communicated to connect.In this way, User can access nfc card 1 or nfc card 2 with free switching.
Therefore, the embodiment of the present invention can also pass through the list for the instruction information for obtaining nfc card so that user is according to the row Table free switching accesses nfc card 1 or nfc card 2.
The embodiment of the present invention also provides a kind of terminal 03, and terminal pre-saves the process mark of the process there are access rights Know, as shown in figure 3, including:
Acquiring unit 301, in terminal intelligent card service initialization procedures, obtain ccf layer it is currently running into The process identification (PID) of journey;
Determination unit 302 has permission operation for determining to whether there is in currently running process according to process identification (PID) In the smart card service processing process of close range wireless communication NFC terminal or the smart card service processing process of non-NFC terminal One;
Processing unit 303, for if so, terminal opens smart card service processing process when terminal is equipped with nfc card With the logical channel of nfc card so that third party's wallet client end in terminal is applied accesses nfc card by logical channel.
Optionally, determination unit 302 can be specifically used for:
It determines with the presence or absence of the process identification (PID) for the process for having access rights in the process identification (PID), it is described to have access rights The process identification (PID) of process is the shared user right title in the expandable mark language XML file of the smart card service Value, the value of the shared user right title be used to characterizing system access right of the NFC terminal with smart card service or The non-NFC terminal is used for the system access right of smart card service;
If so, determine there is the smart card service center for the NFC terminal for having permission operation in the currently running process One in the smart card service processing process of reason process or non-NFC terminal.
Optionally, acquiring unit 301, are additionally operable to obtain more card configuration attribute values of this terminal, and more card configuration attribute values are used It is multi-card terminal or single card terminal in characterizing terminal;
Processing unit 303 can be specifically used for:
If terminal is multi-card terminal, opened successively according to the corresponding card slot values of client identification module SIM each in terminal The logical channel of smart card service processing process and nfc card when SIM is nfc card;
If present terminal is single card terminal, smart card service processing process and the nfc card when opening SIM as nfc card Logical channel.
Optionally, acquiring unit 301, specifically for receiving the first operation for starting the application of third party's wallet client end During instruction, the instruction information list for being used to indicate nfc card is obtained, third party's wallet client end is applied to apply open platform pair more The Intellective Management Software that nfc card safety chip resource and application are managed;
It further includes:Receiving unit 304, if needing to access any nfc card, and list for the application of third party's wallet client end Including at least two instruction information, then receive user and the second operational order for accessing the first nfc card is chosen from list;
Processing unit 303 applies it for establishing the first nfc card according to the second operational order with third party's wallet client end Between communication connection.
The embodiment of the present invention provides a kind of terminal, and terminal pre-saves the process identification (PID) of the process there are access rights, In terminal intelligent card service initialization procedures, the process identification (PID) of the currently running process of ccf layer is obtained;According to process mark Know and determine in currently running process with the presence or absence of the smart card service center for the close range wireless communication NFC terminal for having permission operation One in the smart card service processing process of reason process or non-NFC terminal;If so, it is opened when terminal is equipped with nfc card The logical channel of smart card service processing process and nfc card so that third party's wallet client end application in terminal passes through logic Channel access nfc card.So, when the process identification (PID) of the process of the operation of the ccf layer of terminal include it is non-for identifying During the process identification (PID) of the smart card service processing process of NFC terminal, for non-NFC terminal, characterize the non-NFC terminal and also prop up Hold OMAPI, i.e., also have permission operation smart card service, in this way when terminal is equipped with nfc card open smart card service processing into The logical channel of journey and nfc card so that third party's wallet client end in terminal is applied to be led to by logical channel and nfc card Letter, equivalent to increase non-NFC terminal access nfc card permission, can solution by no means NFC terminal third party's wallet client end should The problem of with nfc card cannot be accessed.
In several embodiments provided herein, it should be understood that disclosed terminal and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of division of logic function can have other dividing mode in actual implementation, such as multiple units or component can be tied It closes or is desirably integrated into another system or some features can be ignored or does not perform.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or unit Letter connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That the independent physics of each unit includes, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in one and computer-readable deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, is used including some instructions so that a computer Equipment (can be personal computer, server or the network equipment etc.) performs the portion of each embodiment the method for the present invention Step by step.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc. are various to store The medium of program code.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:It still may be used To modify to the technical solution recorded in foregoing embodiments or carry out equivalent replacement to which part technical characteristic; And these modification or replace, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of access method of nfc card, which is characterized in that applied to terminal, the terminal has pre-saved that there are access rights The process identification (PID) of the process of limit, the method includes:
In terminal intelligent card service initialization procedures, the process identification (PID) of the currently running process of ccf layer is obtained;
The terminal is determined in the currently running process according to the process identification (PID) with the presence or absence of the low coverage for having permission operation Smart card service processing process from wireless telecommunications NFC terminal or have permission operation non-NFC terminal smart card service processing One in process;
If so, the logic of the smart card service processing process and the nfc card is opened when the terminal is equipped with nfc card Channel so that third party's wallet client end in the terminal is applied accesses the nfc card by the logical channel.
2. according to the method described in claim 1, it is characterized in that, described determine the current operation according to the process identification (PID) Process in the presence or absence of have permission operation close range wireless communication NFC terminal smart card service processing process or non-NFC One in the smart card service processing process of terminal includes:
It determines in the process identification (PID) with the presence or absence of the process identification (PID) for the process for having access rights, the process for having access rights Process identification (PID) for the smart card service expandable mark language XML file in shared user right title value, institute The value for stating shared user right title is used to characterize access rights or the non-NFC of the NFC terminal with smart card service Terminal is used for the access rights of smart card service;
If so, determine the currently running process in exist have permission operation NFC terminal smart card service processing into One in the smart card service processing process of journey or non-NFC terminal.
3. method according to claim 1 or 2, which is characterized in that before the terminal opens the logical channel, institute The method of stating further includes:
The terminal obtains more card configuration attribute values of this terminal, and more card configuration attribute values are more for characterizing the terminal Card terminal or single card terminal.
4. according to the method described in claim 3, it is characterized in that, it is described when the terminal is equipped with nfc card open described in Smart card service processing process and the logical channel of the nfc card include:
If the terminal is the multi-card terminal, each client identification module SIM according to present in the terminal is corresponding Card slot value opens the logical channel of the smart card service processing process and the nfc card when SIM is nfc card successively;
If the present terminal is the single card terminal, smart card service processing when opening the SIM as the nfc card The logical channel of process and the nfc card.
5. according to the method described in claim 4, it is characterized in that, third party's wallet client end application in the terminal passes through The logical channel accesses the nfc card and includes:
When the terminal receives the first operational order for starting third party's wallet client end application, acquisition is used to indicate The instruction information list of the nfc card;
If third party's wallet client end application needs to access any nfc card, and the list includes at least two fingers Show information, then the terminal receives user and the second operational order for accessing the first nfc card is chosen from the list, and according to institute State the second operational order establish first nfc card and third party's wallet client end application between communication connection.
6. a kind of terminal, which is characterized in that the terminal pre-saves the process identification (PID) of the process there are access rights, packet It includes:
Acquiring unit, in terminal intelligent card service initialization procedures, obtain the currently running process of ccf layer into Journey identifies;
Determination unit has permission operation for determining to whether there is in the currently running process according to the process identification (PID) The smart card service processing process of close range wireless communication NFC terminal or have permission operation non-NFC terminal smart card service One in treatment progress;
Processing unit, for if so, opening the smart card service processing process and institute when the terminal is equipped with nfc card State the logical channel of nfc card so that third party's wallet client end in the terminal is applied accesses institute by the logical channel State nfc card.
7. terminal according to claim 6, which is characterized in that the determination unit is specifically used for:
It determines in the process identification (PID) with the presence or absence of the process identification (PID) for the process for having access rights, the process for having access rights Process identification (PID) for the smart card service expandable mark language XML file in shared user right title value, institute The value for stating shared user right title is used to characterize access rights or the non-NFC of the NFC terminal with smart card service Terminal is used for the access rights of smart card service;
If so, determine the currently running process in exist have permission operation NFC terminal smart card service processing into One in the smart card service processing process of journey or non-NFC terminal.
8. the terminal described according to claim 6 or 7, which is characterized in that the acquiring unit is additionally operable to obtain the more of this terminal Card configuration attribute value, more card configuration attribute values are multi-card terminal or single card terminal for characterizing the terminal.
9. terminal according to claim 8, which is characterized in that the processing unit is specifically used for:
If the terminal is the multi-card terminal, according to the corresponding card slot values of client identification module SIM each in the terminal The logical channel of the smart card service processing process and the nfc card when SIM is nfc card is opened successively;
If the present terminal is the single card terminal, smart card service processing when opening the SIM as the nfc card The logical channel of process and the nfc card.
10. terminal according to claim 9, which is characterized in that the acquiring unit, specifically for receiving startup institute When stating the first operational order of third party's wallet client end application, the instruction information list for being used to indicate the nfc card is obtained;
It further includes:Receiving unit, if needing to access any nfc card, and the row for third party's wallet client end application Table includes at least two instruction information, then receives user and the second operation for accessing the first nfc card is chosen from the list Instruction;
The processing unit, specifically for establishing first nfc card and third party's money according to second operational order Communication connection between packet client application.
CN201510571069.4A 2015-09-09 2015-09-09 The access method and terminal of a kind of nfc card Active CN106529942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510571069.4A CN106529942B (en) 2015-09-09 2015-09-09 The access method and terminal of a kind of nfc card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510571069.4A CN106529942B (en) 2015-09-09 2015-09-09 The access method and terminal of a kind of nfc card

Publications (2)

Publication Number Publication Date
CN106529942A CN106529942A (en) 2017-03-22
CN106529942B true CN106529942B (en) 2018-07-03

Family

ID=58345671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510571069.4A Active CN106529942B (en) 2015-09-09 2015-09-09 The access method and terminal of a kind of nfc card

Country Status (1)

Country Link
CN (1) CN106529942B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201573B (en) * 2016-06-23 2019-07-30 青岛海信移动通信技术股份有限公司 A kind of method and terminal for realizing OMAPI function
CN107491706B (en) * 2017-08-16 2020-11-13 惠州Tcl移动通信有限公司 NFC pressure testing method and system based on mobile terminal and storage device
CN113950036B (en) * 2021-10-15 2023-06-09 中国联合网络通信集团有限公司 NFC capability synchronization method, UICC, terminal, equipment and medium
CN114330396B (en) * 2021-12-31 2023-10-13 福建新大陆支付技术有限公司 External password keyboard and identity card information interaction method based on Android platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938659A (en) * 2012-10-19 2013-02-20 深圳桑菲消费通信有限公司 NFC (Near Field Communication) external member and realization method thereof
CN103345603A (en) * 2011-12-28 2013-10-09 北京奇虎科技有限公司 Webpage browsing method and device based on sandbox technology
CN103378880A (en) * 2012-04-11 2013-10-30 阿里巴巴集团控股有限公司 Service terminal, NFC equipment and near field communication method
CN104253840A (en) * 2013-06-28 2014-12-31 中国银联股份有限公司 Device for implementing communication among varieties of security carriers and communication method thereof
CN104954358A (en) * 2014-03-28 2015-09-30 恩智浦有限公司 NFC-based authorization of access to data from a third party device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014517379A (en) * 2011-04-28 2014-07-17 ソニーエリクソンモバイルコミュニケーションズ, エービー Payment processing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345603A (en) * 2011-12-28 2013-10-09 北京奇虎科技有限公司 Webpage browsing method and device based on sandbox technology
CN103378880A (en) * 2012-04-11 2013-10-30 阿里巴巴集团控股有限公司 Service terminal, NFC equipment and near field communication method
CN102938659A (en) * 2012-10-19 2013-02-20 深圳桑菲消费通信有限公司 NFC (Near Field Communication) external member and realization method thereof
CN104253840A (en) * 2013-06-28 2014-12-31 中国银联股份有限公司 Device for implementing communication among varieties of security carriers and communication method thereof
CN104954358A (en) * 2014-03-28 2015-09-30 恩智浦有限公司 NFC-based authorization of access to data from a third party device

Also Published As

Publication number Publication date
CN106529942A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
JP6035443B2 (en) Storage medium
US20200112851A1 (en) Apparatuses, methods and systems for implementing a system-on-chip with integrated reprogrammable cellular network connectivity
US10397276B2 (en) Secure element management method and terminal
EP3439342B1 (en) Method for changing mno in embedded sim on basis of special privilege, and embedded sim and recording medium therefor
CN106529942B (en) The access method and terminal of a kind of nfc card
US20100275269A1 (en) Procedure for the preparation and performing of a post issuance process on a secure element
US11051160B2 (en) Apparatuses, methods and systems for implementing a system-on-chip with integrated reprogrammable cellular network connectivity
EP1817890B1 (en) Method, system and microcontroller card for communicating application services from a microcontroller card to a terminal
WO2016075622A1 (en) Communication with plurality of cellular networks using cellular modem and virtual subscriber identity modules stored in software-based embedded universal integrated circuit card (euicc)
KR102045662B1 (en) System and method for managing logical channels for accessing several virtual profiles within a secure element
CN108810835A (en) Correlating method, device, terminal and the storage medium of No.1 multiple terminals
JP2000165472A (en) Ic card for remote application access consisting of combination of communication system and terminal and remote application access method by ic card
CN105590203A (en) Intelligent router and payment method implemented based on same
CN105871851A (en) SaaS-based identity authentication method
WO2017076258A1 (en) Smart card and application downloading method thereof
CN110753943B (en) Method, system, computer program and recording medium for mobile payment roaming
CN103702333B (en) The method and software telecom intelligent card of telecom intelligent card function are realized in user terminal
CN117241258A (en) Method, system and electronic equipment for virtualizing SIM card based on SE environment
CN110062440A (en) WLAN connection control method, electronic equipment and storage medium
CN106685889A (en) Service realization method and device based on user identity

Legal Events

Date Code Title Description
C06 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