CN106031239A - Routing method and terminal - Google Patents

Routing method and terminal Download PDF

Info

Publication number
CN106031239A
CN106031239A CN201480075794.6A CN201480075794A CN106031239A CN 106031239 A CN106031239 A CN 106031239A CN 201480075794 A CN201480075794 A CN 201480075794A CN 106031239 A CN106031239 A CN 106031239A
Authority
CN
China
Prior art keywords
terminal
data frame
target
state
nfcid2
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
CN201480075794.6A
Other languages
Chinese (zh)
Other versions
CN106031239B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN106031239A publication Critical patent/CN106031239A/en
Application granted granted Critical
Publication of CN106031239B publication Critical patent/CN106031239B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive loop type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a routing method and a terminal, which relate to the technical field of NFC, and enable an application in an SE in a deactivated state to be selected and used by a user so as to improve the user experience. The routing method provided in the embodiment of the present invention is applied to a terminal. The method comprises: acquiring a data frame and a current energy state of the terminal; determining an SE matching both the data frame and the current energy state of the terminal from an SE in a deactivated state to be used as a target SE; activating the target SE; and sending the data frame to the activated target SE.

Description

Routing method and terminal
A kind of method for routing and terminal
Technical field
The present invention relates to NFC (Near Field Communication, near-field communication)Technical field, more particularly to a kind of method for routing and terminal.Background technology
NFC is the wireless connection technology that a kind of utilization electromagnetic induction realizes electric room short haul connection.Terminal with NFC function(Hereinafter referred to as " NFC terminal ")In include one or more SE (Security Element, safe unit), to the application to be installed in NFC terminal(For example, mass transit card application, bank card application etc.)The performing environment of safety is provided.
DH (Device Host, master controller are also included in NFC terminals)With NFCC (NFC Controller, NFC controller).Existing NCI (NFC Controller Interface, NFC control interfaces)Provided in specification:The routing table that NFCC can be configured according to DH, completes the routing inquiry to the SE of state of activation.Specifically, after NFCC gets data frame, route target only can be found from the SE of state of activation, without finding route target from the SE of deactivation status.So, the application in the SE of deactivation status can be caused to be chosen and be used by user, so as to influence Consumer's Experience.The content of the invention
Embodiments of the invention provide a kind of method for routing and terminal, the application in the SE of deactivation status can be made to be chosen and be used by user, so as to improve Consumer's Experience.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
First aspect is there is provided a kind of method for routing, and applied to terminal, methods described includes:Obtain data frame and the current energy state of the terminal;
Determine the SE matched with the data frame and the current energy state of the terminal as target SE from the safe unit SE of deactivation status; Activate the target SE;
The data frame is sent to the target SE to activation.
With reference to the SE for determining to match with the data frame and the current energy state of the terminal in a first aspect, in the first possible implementation, in the safe unit SE from deactivation status as target SE, including:
When meeting at least one following condition, determine the SE matched with the data frame and the current energy state of the terminal as target SE from the safe unit SE of deactivation status;The condition includes:The current energy state of the terminal is low power consumpting state, and the SE matched with the data frame and the current energy state of the terminal is not included in the SE of state of activation.
With reference to the first possible implementation of first aspect, in second of possible implementation, when the current energy state of the terminal is low power consumpting state, methods described also includes:
Deactivate acquiescence SE;The acquiescence SE refers to SE pre-setting, being active when the current energy state of the terminal is low power consumpting state.
With reference to the first possible implementation of first aspect or first aspect, in the third possible implementation, before determining the SE matched with the data frame and the current energy state of the terminal as target SE in the safe unit SE from deactivation status, methods described also includes:
Determine not including the SE matched with the data frame and the current energy state of the terminal in the safe unit SE of state of activation according to the first routing mode;First routing mode includes:Application identifier AID routing modes, cut, discuss routing mode, technology routing mode;
The SE matched with the data frame and the current energy state of the terminal is determined in the safe unit SE from deactivation status as target SE, including:
Determine the route entry matched with the data frame and the current energy state of the terminal as target route entry from the route entry set of failure state;The road of the failure state By item gather in route entry point to SE be in deactivation status;
The SE that the target route entry is pointed to is used as target SE.
The first possible implementation with reference to first aspect, first aspect is any to the third possible implementation, in the 4th kind of possible implementation, before the target SE sent the data frame to activation, methods described also includes:
The state of the target route entry is revised as effective status by failure state;It is described that the data frame is sent into the target SE to activation, including:The target route entry of the data frame through effective status is sent into the target SE to activation.
The first possible implementation with reference to first aspect, first aspect is any to the 4th kind of possible implementation, in the 5th kind of possible implementation, the activation target SE, including:
When default switchover policy includes the mark of the target SE, the target SE is activated;The default switchover policy is used for the authority for indicating the activation/deactivation state that the terminal has switching SE, and the switchover policy can control the SE of switching mark comprising the terminal.
Second aspect there is provided a kind of terminal, including:
Acquiring unit, for obtaining data frame and the current energy state of the terminal;First determining unit, for the SE that determines to match with the data frame and the current energy state of the terminal from the safe unit SE of deactivation status as target SE;
Unit is activated, for activating the target SE;
Routing unit, for the data frame to be sent to the target SE to activation.With reference to second aspect, in the first possible implementation, first determining unit specifically for:When meeting at least one following condition, determine the SE matched with the data frame and the current energy state of the terminal as target SE from the safe unit SE of deactivation status;The condition includes:The current energy state of the terminal is low power consumpting state, is not included in the SE of state of activation current with the data frame and the terminal The SE that energy state is matched.
With reference to the first possible implementation of second aspect, in second of possible implementation, the terminal also includes:Unit is deactivated, for when the current energy state of the terminal is low power consumpting state, deactivating acquiescence SE;The acquiescence SE refers to SE pre-setting, being active when the current energy state of the terminal is low power consumpting state.
With reference to the first possible implementation of second aspect or second aspect, in the third possible implementation, the terminal also includes:The SE matched with the data frame and the current energy state of the terminal is not included in second determining unit, the safe unit SE for determining state of activation according to the first routing mode;First routing mode includes:Application identifier AID routing modes, ten do view routing mode, technology routing mode;
First determining unit specifically for:Determine the route entry matched with the data frame and the current energy state of the terminal as target route entry from the route entry set of failure state;The SE that route entry in the route entry set of the failure state is pointed to is in deactivation status;The SE that the target route entry is pointed to is used as target SE.
The first possible implementation with reference to second aspect, second aspect is any to the third possible implementation, and in the 4th kind of possible implementation, the terminal also includes:Unit is changed, for the state of the target route entry to be revised as into effective status by failure state;
The routing unit by the target route entry of the data frame through effective status specifically for sending the target SE to activation.
The first possible implementation with reference to second aspect, second aspect is any to the 4th kind of possible implementation, in the 5th kind of possible implementation,
The activation unit is specifically for when default switchover policy includes the mark of the target SE, activating the target SE;The default switchover policy is used for the authority for indicating the activation/deactivation state that the terminal has switching SE, and the switchover policy can control the SE of switching mark comprising the terminal. The third aspect there is provided a kind of terminal, including:Controller and at least one safe unit
SE ;Wherein, the controller, for obtaining data frame and the current energy state of the terminal;Determine the SE matched with the data frame and the current energy state of the terminal as target SE from the SE of deactivation status;Activate the target SE;The data frame is sent to the target SE to activation.
With reference to the third aspect, in the first possible implementation, the controller specifically for:When meeting at least one following condition, determine the SE matched with the data frame and the current energy state of the terminal as target SE from the safe unit SE of deactivation status;The condition includes:The current energy state of the terminal is low power consumpting state, and the SE matched with the data frame and the current energy state of the terminal is not included in the SE of state of activation.
With reference to the first possible implementation of the third aspect, in second of possible implementation, the controller is additionally operable to, and when the current energy state of the terminal is low power consumpting state, deactivates acquiescence SE;The acquiescence SE refers to SE pre-setting, being active when the current energy state of the terminal is low power consumpting state.
With reference to the first possible implementation of the third aspect or the third aspect, in the third possible implementation, the controller is additionally operable to, and determines not including the SE matched with the data frame and the current energy state of the terminal in the safe unit SE of state of activation according to the first routing mode;First routing mode includes:Application identifier AID routing modes, cut, discuss routing mode, technology routing mode;
The controller specifically for:Determine the route entry matched with the data frame and the current energy state of the terminal as target route entry from the route entry set of failure state;The SE that route entry in the route entry set of the failure state is pointed to is in deactivation status;The SE that the target route entry is pointed to is used as target SE.
The first possible implementation with reference to the third aspect, the third aspect is any to the third possible implementation, in the 4th kind of possible implementation, the controller is additionally operable to, and the state of the target route entry is revised as into effective status by failure state;It is described Implement body processed is used for, and the target route entry of the data frame through effective status is sent into the target SE to activation.
The first possible implementation with reference to the third aspect, the third aspect is any to the 4th kind of possible implementation, in the 5th kind of possible implementation, the controller is specifically for when default switchover policy includes the mark of the target SE, activating the target SE;The default switchover policy is used for the authority for indicating the activation/deactivation state that the terminal has switching SE, and the switchover policy can control the SE of switching mark comprising the terminal.
Any scheme that above-mentioned first aspect to the third aspect is provided, can determine that the SE that the energy state current with data frame and terminal is matched sends the data frame as target SE, and to target SE from the SE of deactivation status.So, when the application in the SE that the application that data frame is directed to is deactivation status, user can normally use the application, so as to improve Consumer's Experience.
Fourth aspect is there is provided a kind of method for routing, and applied to terminal, methods described includes:Obtain the first data frame and the current energy state of the terminal;
The energy state that includes in the near-field communication type of identifier NFCID2 route entries energy state current with the terminal is matched, and when in first data frame comprising the instruction for configuring NFCID2 information tables, obtain the NFCID2 information tables of the relation between the SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries;The NFCID2 information tables are used to make the terminal determine that the second data frame sends target SE extremely, second data frame refer to it is after first data frame, first do not include the instruction for configuring NFCID2 information tables data frame.
With reference to fourth aspect, in the first possible implementation, the NFCID2 information tables for obtaining the relation between the SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries, including:
Activate the SE of deactivation status;
The instruction of the configuration NFCID2 information tables is sent to the SE after activation; Receive the response message for including NFCID2 values that the SE is sent;
NFCID2 information tables are generated according to the response message.
There is provided a kind of terminal in terms of 5th, including:
First acquisition unit, for obtaining the first data frame and the current energy state of the terminal;
Second acquisition unit, the energy state current with the terminal for the energy state included in near-field communication type of identifier NFCID2 route entries is matched, and when in first data frame comprising the instruction for configuring NFCID2 information tables, obtain the NFCID2 information tables of the relation between the SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries;The NFCID2 information tables are used to make the terminal determine that the second data frame sends target SE extremely, second data frame refer to it is after first data frame, first do not include the instruction for configuring NFCID2 information tables data frame.
With reference to the 5th aspect, in the first possible implementation, the second acquisition unit specifically for:
Activate the SE of deactivation status;
The instruction of the configuration NFCID2 information tables is sent to the SE after activation;Receive the response message for including NFCID2 values that the SE is sent;
NFCID2 information tables are generated according to the response message.
There is provided a kind of terminal in terms of 6th, including:Controller and at least one safe unit SE, wherein,
The controller, for obtaining the first data frame and the current energy state of the terminal;The energy state that includes in the near-field communication type of identifier NFCID2 route entries energy state current with the terminal is matched, and when in first data frame comprising the instruction for configuring NFCID2 information tables, obtain the NFCID2 information tables of the relation between the SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries;The NFCID2 information tables are used to make the terminal determine that the second data frame sends target SE extremely, second data frame refer to it is after first data frame, first do not wrap The data frame of the instruction of the NFCID2 information tables containing configuration.
With reference to the 6th aspect, in the first possible implementation, the controller specifically for:
Activate the SE of deactivation status;
The instruction of the configuration NFCID2 information tables is sent to the SE after activation;Receive the response message for including NFCID2 values that the SE is sent;
NFCID2 information tables are generated according to the response message.
Any scheme that above-mentioned fourth aspect is provided to the 6th aspect, in NFCID2 information tables comprising support NFCID2 route entries deactivation status SE NFCID2 values corresponding with the SE between relation, so as to make terminal from this be in deactivation status SE in determine the second data frame send to target SE.So, when the application in the SE in deactivation status that bases on practicality that the second data frame is directed to, user can normally use the application, so as to improve Consumer's Experience.Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, the required accompanying drawing used in embodiment will be briefly described below, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is that a kind of schematic flow sheet Fig. 2 for method for routing that the embodiment of the present invention one is provided is that schematic flow sheet Fig. 4 that a kind of schematic flow sheet Fig. 3 for method for routing that the embodiment of the present invention two is provided is a kind of method for routing of the offer of the embodiment of the present invention 1 is that schematic flow sheet Fig. 6 that a kind of schematic flow sheet Fig. 5 for method for routing that the embodiment of the present invention 2 is provided is a kind of method for routing of the offer of the embodiment of the present invention 3 is that a kind of schematic flow sheet Fig. 7 for method for routing that the embodiment of the present invention 5 is provided is a kind of structural representation for terminal that the embodiment of the present invention three is provided;Fig. 8 is the structural representation for another terminal that the embodiment of the present invention three is provided; Fig. 9 is a kind of structural representation for terminal that the embodiment of the present invention four is provided;Figure 10 is a kind of structural representation for terminal that the embodiment of the present invention five is provided;Fig. 11 is a kind of structural representation for terminal that the embodiment of the present invention six is provided.Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
The terms " multiple ", refer to two or more.
Embodiment one
It is a kind of method for routing provided in an embodiment of the present invention, applied to terminal, methods described includes as shown in Fig. 1:
101 :Obtain data frame and the current energy state of the terminal.
Wherein, " terminal " refers to NFC terminals.One or more SE can be included in NFC terminals, SE state can be state of activation or deactivation status.SE herein can be equal to NFCEE (NFC Execution Environment, NFC performing environments).
Master controller DH and assistant controller can also be included in NFC terminal;DH is specifically as follows CPU (the Central Processing Unit, central processing unit of terminal), assistant controller can be NFCC.Usually, when terminal is in open state, DH being capable of normal work;DH can be NFCC configurations routing table, setting acquiescence SE etc..The executive agent of the present embodiment can be NFC terminal, be specifically as follows DH or assistant controller in NFC terminal.
Routing table can include polytype route entry, for example, AID (Application ID, application identifier)Route entry, NFCID2 (Near Field Communication Identifier 2, near-field communication identifier(Type)2) route entry, agreement route(Protocol-Based Routing) item, technology route (Technology-Based Routing) item etc..The route entry of any type may be included in current time, routing table, it is also possible to not comprising any The route entry of type;Specifically, can be comprising one/multiple AID route entries, and/or a NFCID2 route entry in current time, routing table, and/or one/multiple agreement route entries, and/or one/multiple technology route entries.Each AID route entries, agreement route entry or technology route entry are directed to a SE, and-individual SE can correspond to one/multiple same types or different types of route entry;NFCID2 route entries are not directed to any one SE.
The state of route entry can be effective status or failure state, and herein, the collection that the route entry of effective status is constituted is collectively referred to as the route entry set of effective status, and the collection that the route entry of failure state is constituted is collectively referred to as the route entry set of failure state.
The current energy state of terminal can include:Open state, shutdown have power supply(Switch off) state and shutdown non-transformer(Battery Off) state.
Terminal can obtain data frame and the current energy state of terminal using method of the prior art.Specifically, step 101 can include:Terminal receives RCLF (Remote Contactless Front, distal end contactless devices)The data frame of transmission.
102 :Determine the SE matched with the data frame and the current energy state of the terminal as target SE from the safe unit SE of deactivation status.
Wherein, terminal determines that the method for " SE matched with the data frame and the current energy state of the terminal " is relevant with routing mode, and specific implementation may be referred to following embodiments.Here " routing mode " can include but is not limited to any of in the following manner:AID routing modes, NFCID2 routing modes, agreement routing mode, technology routing mode.
Optionally, step 102 can include:When meeting at least one following condition, determine the SE matched with the data frame and the current energy state of the terminal as target SE from the safe unit SE of deactivation status;The condition includes:1) the current energy state of the terminal is low power consumpting state, 2) do not include the SE matched with the data frame and the current energy state of the terminal in the SE of state of activation.
Exemplary, when the current energy state of terminal is that shutdown has power supply status or shutdown non-powered state, it is believed that terminal is in low power consumpting state.If the DH that terminal is included pre-sets acquiescence SE, when the terminal is in low power consumpting state, acquiescence SE is in activation shape State, the state of the corresponding route entries of acquiescence SE is effective status, and other SE are in deactivation status, and the state of other route entries is failure state.
In above-mentioned optional mode, when the current energy state of the terminal is low power consumpting state, methods described can also include:Deactivate acquiescence SE;The acquiescence SE refers to SE pre-setting, being active when the current energy state of the terminal is low power consumpting state.Specifically:The activation/deactivation order for deactivating acquiescence SE is sent to acquiescence SE, to cause the state for giving tacit consent to SE to switch to deactivation status by state of activation.
Optionally, before step 102, methods described can also include:Determine not including the SE matched with the data frame and the current energy state of the terminal in the safe unit SE of state of activation according to the first routing mode;First routing mode includes:AID routing modes, agreement routing mode, technology routing mode.In this case, step 102 can include:Determine the route entry matched with the data frame and the current energy state of the terminal as target route entry from the route entry set of failure state;The SE that route entry in the route entry set of the failure state is pointed to is in deactivation status;The SE that the target route entry is pointed to is used as target SE.
103 :Activate the target SE.
Exemplary, step 103 can include:DH or assistant controller send the activation/deactivation order for activating target SE to target SE, to cause target SE state to switch to state of activation by deactivation status.
Optionally, before step 103, methods described can also include:When default switchover policy includes the mark of the target SE, the target SE is activated;The default switchover policy is used for the authority for indicating the activation/deactivation state that the terminal has switching SE, and the switchover policy can control the SE of switching mark comprising the terminal.
Exemplary, default switchover policy is generally located in DH, specifically, DH can set default switchover policy under the instruction of user, can also be by setting terminal that the SE of switching mark can be controlled to preset switchover policy automatically service condition of each application etc. terminal capabilities and user.When executive agent is assistant controller, before the target SE is activated, This method also with including:Assistant controller receives the handover decisions that DH is sent.In this case, default implementation strategy is used for the authority for indicating the activation/deactivation state that assistant controller has switching SE, switchover policy can control the SE of switching mark comprising assistant controller.Specifically, DH can assistant controller is initialized or assistant controller perform step 103 before any instant to assistant controller send default switchover policy.
104 :The data frame is sent to the target SE to activation.
Optionally, before step 104, methods described can also include:The state of the target route entry is revised as effective status by failure state;In this case, step 104 can include:The target route entry of the data frame through effective status is sent into the target SE to activation.
Method for routing provided in an embodiment of the present invention, terminal can determine that the SE that the energy state current with data frame and terminal is matched sends the data frame as target SE, and to target SE from the SE of deactivation status.So, when the application in the SE that the application that data frame is directed to is deactivation status, user can normally use the application, so as to improve Consumer's Experience.
Embodiment two
It is another method for routing provided in an embodiment of the present invention, applied to terminal, methods described includes as shown in Fig. 2:
201 :Obtain the first data frame and the current energy state of the terminal.
Wherein, the executive agent of the present embodiment can be NFC terminal, be specifically as follows DH or assistant controller in NFC terminals.It should be noted that the relevant explanation in the present embodiment may be referred to above-described embodiment one, the specific implementation of the present embodiment may be referred to following embodiments 2.
202 :The energy state that includes in the near-field communication type of identifier NFCID2 route entries energy state current with the terminal is matched, and when in first data frame comprising the instruction for configuring NFCID2 information tables, obtain the NFCID2 information tables of the relation between the SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries;The NFCID2 information tables are used to make the terminal determine that the second data frame sends target extremely SE, second data frame refers to data frame after first data frame, first instruction comprising configuration NFCID2 information tables.
Exemplary, terminal determines that the second data frame sends the concrete methods of realizing of target SE extremely according to NFCID2 information tables, may be referred in the prior art according to NFCID2 routing modes, no longer describes herein.
Specifically, step 202 can include:Activate the SE of deactivation status;The instruction of the configuration NFCID2 information tables is sent to the SE after activation;Receive the response message for including NFCID2 values that the SE is sent;NFCID2 information tables are generated according to the response message.
Optionally, step 202 can include:When meeting at least one following condition, the NFCID2 information tables of the relation between the SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries are obtained.The condition includes:The current energy state of the terminal is low power consumpting state, and the SE matched with the data frame and the current energy state of the terminal is not included in the SE of state of activation.
Exemplary, terminal determines that whether the method comprising the SE for supporting NFCID2 route entries may be referred to prior art in state of activation, no longer describes herein.
Method for routing provided in an embodiment of the present invention, the relation between SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries in the NFCID2 information tables that terminal is obtained, so that when terminal receives the second data frame, can be determined from this SE in deactivation status the second data frame send to target SE.So, when the application in the SE in deactivation status that bases on practicality that the second data frame is directed to, user can normally use the application, so as to improve Consumer's Experience.
In order to which specific examples below is explicitly described, illustrate first it is following some:
1st, the executive agent in specific embodiment is NFCC, and DH pre-sets acquiescence SE.
2nd, in the case of due to being in low power consumpting state in terminal, DH is not worked, NFCC work, and the advantage of the present invention can be more embodied in this case;Therefore following specific embodiments In by under low power consumpting state using the technology that provides of the present invention exemplified by illustrate.It should be noted that in this case, each route entry in the route entry set of effective status is the corresponding route entries of acquiescence SE that DH is pre-set.
Embodiment 1
In the present embodiment, NFCC determines whether to include the route entry matched with the NFCC data frames obtained in routing table according to AID routing modes.The executive agent of the present embodiment is NFCC.
As shown in figure 3, a kind of method for routing provided for the present embodiment, including:
301 :NFCC receives the data frame that RCLF is sent, and obtains the current energy state of NFC terminal.
Exemplary, NFCC can obtain the current energy state of NFC terminal in the either step before step 304.
302 :NFCC is it is determined that use ISO-DEP (International Standardization Organization-Data Exchange Protocol, International Organization for standardization-data exchange agreement)When including AID route entries in interface, and routing table, the data frame is parsed, analysis result is obtained.
303 :Judge whether include AID value in analysis result.
If so, illustrating that the data frame meets the condition of AID routing modes, then step 304 is performed;If it is not, illustrating that the data frame is unsatisfactory for performing the condition of AID routing modes, then terminate.
304 :Judge the AID route entries that the energy state current with the AID value and NFC terminal in analysis result is matched whether are included in the route entry set of effective status in routing table.
If it is not, the explanation needs AID route entries that the searching energy husband state current with the AID value and NFC terminal in analysis result is matched from the route entry set of failure state then perform step 305 as target route entry;If so, explanation can determine target SE with method of the prior art, and data are sent to target SE, then terminated.
When performing step 304, NFC terminals, which are likely to be at open state, shutdown, power supply status or shutdown non-powered state. 305 :Whether judge the current energy state of NFC terminal is low power consumpting state.
If so, then performing step 306;If it is not, then terminating.
306 :Judge the AID route entries that the energy state current with the AID value and NFC terminal in analysis result is matched whether are included in the route entry set of failure state in routing table.
If so, then performing step 307;If not, illustrate the AID route entries matched with the data frame are not present in routing table, target SE can be determined using method of the prior art (for example, according to route entry as defined in businessman target route entry is determined as target route entry or by other routing modes, and then determine target SE), and send data to target SE, then terminate.
Exemplary, AID route entries include:ID (IDentity, identity number for the SE that AID value, the AID route entries are pointed to), the energy state that is applicable of the AID route entries.When the AID value in analysis result is identical with the AID value included in an AID route entry, and the energy state that is applicable of the AID route entries it is identical with the energy state that NFC terminals are current when, the judged result in step 306 is " being ";Otherwise, the judged result in step 306 is " no ".
307 :It regard the AID route entries matched as target route entry;The SE that target route entry is pointed to is used as target SE.
308 :Instructed to the target SE activation/deactivations sent for activating target SE so that target SE state switches to state of activation by deactivation status, and the state of target route entry is revised as into effective status by failure state;Instructed to the acquiescence SE activation/deactivations sent for deactivating acquiescence SE so that acquiescence SE state switches to deactivation status by state of activation, the states of the corresponding route entries of SE will be given tacit consent to failure state is revised as by effective status.
When performing step 308, " acquiescence SE " is the SE in the route entry set of effective status.This method can also include:NFCC is that target SE powers, and stops powering for acquiescence SE.
309 :Through target route entry the data frame is sent to target SE.
Perform after step 309, then terminate.
Optionally, step 304-306 can be replaced with following steps: Step 1:Judge the AID route entries that the energy state current with the AID value and NFC terminal is matched whether are included in routing table.
If so, then performing step 2;If it is not, the AID route entries matched with the data frame are not present in explanation routing table, it is possible to use method of the prior art determines target SE, and sends data to target SE, then terminates.
Step 2:Whether judge the current energy state of NFC terminal is low power consumpting state.If so, then performing step 307;If it is not, then terminating.
Optionally, step 304-307 can be replaced with following steps:
Step:Whether judge in routing table comprising the AID route entries matched with the AID value and the current energy state of NFC terminals.
If so, then perform step 2 ';If it is not, the AID route entries matched with the data frame are not present in explanation routing table, it is possible to use method of the prior art determines target SE, and sends data to target SE, then terminates.
Step 2 ':It regard the AID route entries matched as target route entry;The SE that target route entry is pointed to is used as target SE.
Step 3 ':Whether judge target SE is acquiescence SE.
If it is not, the current energy state of explanation terminal is not low power consumpting state, then step 308 is performed;If so, the current energy state of explanation terminal is low power consumpting state, then step 309 is performed.
Method for routing provided in an embodiment of the present invention, when NFC terminal is in low power consumpting state, NFCC is during according to AID routing mode query routings, the AID route entries matched with data frame can be determined as target route entry from the route entry set of failure state, that is, NFCC can determine the SE matched with data frame as target SE from the SE of deactivation status.So, when the application that data frame is directed to is the application in the SE in deactivation status, user can normally use the application, so as to improve Consumer's Experience.
Embodiment 2
In the present embodiment, NFCC determines whether to include the route entry matched with the NFCC data frames obtained in routing table according to NFCID2 routing modes.The executive agent of the present embodiment is NFCC。
As shown in figure 4, a kind of method for routing provided for the present embodiment, including:
401 :NFCC receives the data frame that RCLF is sent, and obtains the current energy state of NFC terminal.
402 :It is determined that NFC terminals use T3 T RF (the Tag Radio Frequency of Type 3, the label wireless frequency of type 3)When the NFCID2 route entries that the energy state current with NFC terminal is matched are included in agreement, and routing table, the data frame is parsed, analysis result is obtained.
Exemplary, NFCID2 route entries include the energy state that the NFCID2 route entries are applicable.Usually, a NFCID2 route entry can be included in routing table, or not comprising NFCID2 route entries.When the energy state that the NFCID2 route entries included in routing table are applicable is identical with the energy state that NFC terminals are current, it is believed that the NFCID2 route entries matched in routing table comprising the energy state current with NFC terminal.
403 :Whether judge in analysis result comprising SENSF REQ (SENSE TECH F REQUEST, technology F detection frames)Instruction.
If so, explanation needs to configure NFCID2 information tables, then step 404 is performed;If it is not, it is that the data frame determines target SE that then explanation, which is needed according to mode of the prior art, then terminate.
Exemplary, SENSF-REQ instructions are a kind of specific implementations of " instruction of configuration NFCID2 information tables " described in above-described embodiment.
404 :SENSF-REQ instructions are sent to the SE of state of activation, to cause the SE for receiving SENSF REQ instructions to reply response message to NFCC.
Wherein, when a SE does not support NFCID2 route entries, the information of NFCID2 route entries is not supported in the response message that the SE is replied to NFCC comprising the SE;When a SE supports NFCID2 route entries, the corresponding NFCID2 values of the SE are included in the response message that the SE is replied to NFCC.
405 :Judge whether include NFCID2 values in each response message.
If so, explanation can configure NFCID2 information tables according to method of the prior art, Then terminate;If it is not, then performing step 406.
406 :Whether judge the current energy state of NFC terminal is low power consumpting state.
If so, then performing step 407;If it is not, then terminating.
407 :Instructed to the SE of the deactivation status activation/deactivations sent for activating the SE so that the state of the SE switches to state of activation by deactivation status.
408 :SE into step 407 sends SENSF-REQ instructions, to cause the SE for receiving SENSF-REQ instructions to reply response message to NFCC.
409:Judge whether include NFCID2 values in each response message.
If so, then performing step 410;If it is not, the SE in explanation NFC terminal does not support NFCID2 route entries, then terminate.
410 :Relation between the SE for supporting NFCID2 route entries NFCID2 values corresponding with the SE of each support NFCID2 route entries is constituted into NFCID2 information tables.
Perform after step 410, then terminate.
Exemplary, NFCID2 information tables are used to making NFCC to determine that the second data frame sends target SE extremely, the second data frame refer to " data frame " in step 401 afterwards, the data frame of first instruction comprising configuration NFCID2 information tables.It is possible to further be described as:When NFCC receives a data frame again, if being instructed in the data frame comprising SENSF REQ, NFCID2 information tables are configured for the data frame according to above-mentioned steps 404-410 method;If not including SENSF-REQ in the data frame to instruct, using the NFDID2 information tables determined in step 410 according to method of the prior art, determine that the data frame sends target SE extremely.
Method for routing provided in an embodiment of the present invention, when NFC terminal is in low power consumpting state, NFCC according to NFCID2 routing modes during NFCID2 information tables are determined, the relation between the SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries can be got, so that when assistant controller receives the second data frame, can be determined from this SE in deactivation status the second data frame send to target SE.So, when the application in the SE in deactivation status that bases on practicality that the second data frame is directed to When, user can normally use the application, so as to improve Consumer's Experience.
Embodiment 3
In the present embodiment, NFCC determines whether to include the route entry matched with the NFCC data frames obtained in routing table according to agreement routing mode.The executive agent of the present embodiment is NFCC.
As shown in figure 5, a kind of method for routing provided for the present embodiment, including:
501 :NFCC receives the data frame that RCLF is sent, and obtains the current energy state of NFC terminal.
502 :Obtain the protocol type of the currently used agreement of NFC terminal.
503 :Judge the agreement route entry that the energy state current with the protocol type and NFC terminal is matched whether is included in the route entry set of effective status in routing table.
If it is not, the explanation needs agreement route entry that the determination energy state current with the protocol type and NFC terminal is matched from the route entry set of failure state then performs step 504 as target route entry;If so, explanation can determine target SE with method of the prior art, and data are sent to target SE, then terminated.
Exemplary, agreement route entry includes:The energy state that ID, the agreement route entry for the SE that the protocol type for the agreement that the agreement route entry is applicable, the agreement route entry are pointed to are applicable.
504 :Whether judge the current energy state of NFC terminal is low power consumpting state.
If so, then performing step 505;If it is not, then terminating.
505 :Judge the agreement route entry that the energy state current with the protocol type and NFC terminal is matched whether is included in the route entry set of failure state in routing table.
If so, then performing step 506;If not, illustrate the agreement route entry matched with the data frame is not present in routing table, target SE can be determined using method of the prior art (for example, according to route entry as defined in businessman target route entry is determined as target route entry or by other routing modes, and then determine target SE), and send data to target SE, then terminate.
506 :It regard the agreement route entry matched as target route entry;The SE that target route entry is pointed to is used as target SE. 507-508 is identical with the step 308-309 in embodiment 1.
Optionally, step 503-505 can use the design of step 1-step 2 in above-described embodiment 1 to realize.It is, moreover, an optional that step 503-506 can use the design of step 1-step 2 in above-described embodiment 1 to realize.
Method for routing provided in an embodiment of the present invention, when NFC terminal is in low power consumpting state, NFCC is during according to agreement routing mode query routing, agreement route entry that the protocol type and the current energy state of NFC terminal of the agreement currently used with NFC terminal match can be determined as target route entry from the route entry set of failure state, that is, NFCC can determine SE that the current energy state of the protocol type and NFC terminal of the agreement currently used with NFC terminals matches as target SE from the SE of deactivation status.So, when the application that data frame is directed to is the application in the SE in deactivation status, user can normally use the application, so as to improve Consumer's Experience.
Embodiment 4
In the present embodiment, NFCC determines whether to include the target route entry matched with the NFCC data frames obtained in routing table according to technology routing mode.The executive agent of the present embodiment is NFCC.
The present embodiment and the difference of step embodiment 3 are:" protocol type of agreement " in embodiment 3 is " type of skill of technology " in the present embodiment;" protocol type " in embodiment 3 is " type of skill " in the present embodiment;" agreement route entry " in embodiment 3 is " technology route entry " in the present embodiment.
Method for routing provided in an embodiment of the present invention, when NFC terminal is in low power consumpting state, NFCC is during according to technology routing mode query routing, technology route entry that the type of skill of technology and the current energy state of NFC terminal that are used during with receiving data frame match can be determined as target route entry from the route entry set of failure state, that is, NFCC can determine SE that the type of skill of technology and the current energy state of NFC terminal that are used during with receiving data frame match as target SE from the SE of deactivation status.So, when the application that data frame is directed to is the application in the SE in deactivation status, user The application can be normally used, so as to improve Consumer's Experience.
Embodiment 5
In the present embodiment, NFCC carries out routing inquiry according to the priority orders of routing mode;Wherein, the priority orders of routing mode are from high to low:AID routing modes, NFCID2 routing modes, cut, discuss routing mode, technology routing mode.
As shown in fig. 6, a kind of method for routing provided for the present embodiment, including:
601 :NFCC receives the data frame that RCLF is sent, and obtains the current energy state of NFC terminal.
602 :Successively routing inquiry is carried out according to AID routing modes, NFCID2 routing modes, agreement routing mode, technology routing mode;Judge whether to find the target SE matched with the data frame and the current energy state of NFC terminals.
If it is not, then performing step 603;If so, then terminating.
Specifically:After routing inquiry is carried out according to the higher routing mode of priority,(For AID routing modes and agreement routing mode)If do not include the route entry matched with the data frame in routing table in the route entry set of effective status, or,(For NFCID2 routing modes)If in NFCID2 information tables during target SE corresponding not comprising the data frame, the relatively low routing mode of execution priority;When according to the minimum routing mode of priority(Technology routing mode) carry out routing inquiry after, do not find the target SE that the energy state current with the data frame and NFC terminal is matched, then perform step 603.The concrete methods of realizing inquired about according to the above-mentioned several routing modes enumerated may be referred to prior art.
603 :Whether judge the current energy state of NFC terminal is low power consumpting state.
If so, then performing step 604;If it is not, then terminating.
604 :Judge the route entry that the energy state current with the data frame and NFC terminal is matched whether is included in the route entry set of failure state in routing table.
If so, then performing step 605;If it is not, then terminating.
It should be noted that when performing step 603, when illustrating that NFCC carries out routing inquiry according to NFCID2 routing modes in step 602, configuration is not included in the data frame The instruction of NFCID2 information tables;Therefore, when performing step 604, NFCC can according to routing mode priority orders, judge successively in the route entry set of failure state in routing table whether AID route entries, agreement route entry, the technology route entry matched comprising the energy state current with the data frame and NFC terminal.Concrete implementation mode may be referred to the relevant portion of above-described embodiment 1,3,4.
605 :It regard the route entry matched as target route entry;The SE that target route entry is pointed to is used as target SE.
606-607 is identical with the step 308-309 in embodiment 1.
Optionally, step 602-604 can use the realization of the design of step 1-step 2 in above-described embodiment 1.It is, moreover, an optional that step 602-605 can use the design of step 1-step 2 in above-described embodiment 1 to realize.
Method for routing provided in an embodiment of the present invention, when NFC terminal is in low power consumpting state, NFCC is after according to routing mode query routing of the prior art, route entry that the energy state current with data frame and NFC terminal match can be determined as target route entry from the route entry set of failure state, that is, NFCC can determine the SE matched with the mono- current energy state of data frame and NFC as target SE from the SE of deactivation status.So, when the application that data frame is directed to is the application in the SE in deactivation status, user can normally use the application, so as to improve Consumer's Experience.
It should be noted that, described in embodiment 5 is, the minimum routing mode of NFCC priority in the priority orders according to routing mode is carried out after routing inquiry, when not finding the target SE that the energy state current with a data frame and NFC terminal is matched, judge successively whether comprising AID route entries, agreement route entry, the technology route entry matched with the data frame and the current energy state of NFC terminals in the route entry set of failure state in routing table, to determine target SE.
In addition, NFCC can also be after routing inquiry be carried out according to any or a variety of routing modes, in the case of not finding the target SE that the energy state current with a data frame and NFC terminal is matched, i.e., determine mesh according to corresponding step in above-described embodiment 1-4 Mark SE;For example, after routing inquiry is carried out according to AID routing modes, the target SE that the energy state current with a data frame and NFC terminal is matched is not found, then judge the AID route entries that the energy state current with the data frame and NFC terminal is matched whether are included in the route entry set of failure state in routing table, if it is not, then carrying out routing inquiry according to NFCID2 routing modes, agreement routing mode successively.
Embodiment three
As shown in fig. 7, being a kind of terminal 7 provided in an embodiment of the present invention, to perform the method for routing shown in Fig. 1, the terminal 7 includes:
Acquiring unit 71, for obtaining data frame and the current energy state of the terminal;First determining unit 72, for the SE that determines to match with the data frame and the current energy state of the terminal from the safe unit SE of deactivation status as target SE;Unit 73 is activated, for activating the target SE;
Routing unit 74, for the data frame to be sent to the target SE to activation.Optionally, first determining unit 71 specifically for:When meeting at least one following condition, determine the SE matched with the data frame and the current energy state of the terminal as target SE from the safe unit SE of deactivation status;The condition includes:The current energy state of the terminal is low power consumpting state, and the SE matched with the data frame and the current energy state of the terminal is not included in the SE of state of activation.
Optionally, as shown in figure 8, the terminal 7 also includes:
Unit 75 is deactivated, for when the current energy state of the terminal is low power consumpting state, deactivating acquiescence SE;The acquiescence SE refers to SE pre-setting, being active when the current energy state of the terminal is low power consumpting state.
Optionally, as shown in figure 8, the terminal 7 also includes:
The SE matched with the data frame and the current energy state of the terminal is not included in second determining unit 76, the safe unit SE for determining state of activation according to the first routing mode;First routing mode includes:Application identifier AID routing modes, agreement routing mode, technology routing mode; First determining unit 72 specifically for:Determine the route entry matched with the data frame and the current energy state of the terminal as target route entry from the route entry set of failure state;The SE that route entry in the route entry set of the failure state is pointed to is in deactivation status;The SE that the target route entry is pointed to is used as target SE.
Optionally, as shown in figure 8, the terminal 7 also includes:
Unit 77 is changed, for the state of the target route entry to be revised as into effective status by failure state;
Routing unit 74 by the target route entry of the data frame through effective status specifically for sending the target SE to activation.
Optionally, it is described when default switchover policy includes the mark of the target SE, activate the target SE;The default switchover policy is used for the authority for indicating the activation/deactivation state that the terminal has switching SE, and the switchover policy can control the SE of switching mark comprising the terminal.
Terminal provided in an embodiment of the present invention, can determine that the SE that the energy state current with data frame and terminal is matched sends the data frame as target SE, and to target SE from the SE of deactivation status.So, when the application in the SE that the application that a data frame is directed to is deactivation status, user can normally use the application, so as to improve Consumer's Experience.
Example IV
As shown in figure 9, be a kind of terminal 9 provided in an embodiment of the present invention, to perform the method for routing shown in Fig. 1, the terminal 9:Memory 91, controller 92 and at least one safe unit SE93;Wherein,
Memory 91 is used to store one group of code, and the code is used to control controller 92 to perform following action:Obtain data frame and the current energy state of the terminal;Determine the SE matched with the data frame and the current energy state of the terminal as target SE from the SE of deactivation status;Activate the target SE;The data frame is sent to the target SE to activation.Optionally, controller 92 can be DH or assistant controller(Such as NFCC).
Optionally, the controller 92 specifically for:When meeting at least one following condition, Determine the SE matched with the data frame and the current energy state of the terminal as target SE from the safe unit SE of deactivation status;The condition includes:The current energy state of the terminal is low power consumpting state, and the SE matched with the data frame and the current energy state of the terminal is not included in the SE of state of activation.
Optionally, the controller 92 is additionally operable to, and when the current energy state of the terminal is low power consumpting state, deactivates acquiescence SE;The acquiescence SE refers to SE pre-setting, being active when the current energy state of the terminal is low power consumpting state.
Optionally, the controller 92 is additionally operable to, and determines not including the SE matched with the data frame and the current energy state of the terminal in the safe unit SE of state of activation according to the first routing mode;First routing mode includes:Application identifier AID routing modes, agreement routing mode, technology routing mode;
The controller 92 specifically for:Determine the route entry matched with the data frame and the current energy state of the terminal as target route entry from the route entry set of failure state;The SE that route entry in the route entry set of the failure state is pointed to is in deactivation status;The SE that the target route entry is pointed to is used as target SE.
Optionally, the controller 92 is additionally operable to, and the state of the target route entry is revised as into effective status by failure state;
The controller 92 by the target route entry of the data frame through effective status specifically for sending the target SE to activation.
Optionally, the controller 92 is additionally operable to, and when default switchover policy includes the mark of the target SE, activates the target SE;The default switchover policy is used for the authority for indicating the activation/deactivation state that the terminal has switching SE, and the switchover policy can control the SE of switching mark comprising the terminal.
Terminal provided in an embodiment of the present invention, can determine that the SE that the energy state current with data frame and terminal is matched sends the data frame as target SE, and to target SE from the SE of deactivation status.So, when the application in the SE that the application that data frame is directed to is deactivation status, user can normally use the application, so as to improve Consumer's Experience. Embodiment five
It is a kind of terminal 10 provided in an embodiment of the present invention as shown in Figure 10, to perform the method for routing shown in Fig. 2, the terminal 10 includes:
First acquisition unit 10A, for obtaining the first data frame and the current energy state of the terminal;
Second acquisition unit 10B, the energy state current with the terminal for the energy state included in near-field communication type of identifier NFCID2 route entries is matched, and when in first data frame comprising the instruction for configuring NFCID2 information tables, obtain the NFCID2 information tables of the relation between the SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries;The NFCID2 information tables are used to making the terminal 10 to determine that the second data frame sends target SE extremely, second data frame refer to it is after first data frame, first do not include the instruction for configuring NFCID2 information tables data frame.
Optionally, the second acquisition unit 10B specifically for:
Activate the SE of deactivation status;
The instruction of the configuration NFCID2 information tables is sent to the SE after activation;Receive the response message for including NFCID2 values that the SE is sent;
NFCID2 information tables are generated according to the response message.
Terminal provided in an embodiment of the present invention, the relation between SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries in the NFCID2 information tables of acquisition, so that when terminal receives the second data frame, can be determined from this SE in deactivation status the second data frame send to target SE.So, when the application in the SE in deactivation status that bases on practicality that the second data frame is directed to, user can normally use the application, so as to improve Consumer's Experience.
Embodiment six
As shown in figure 11, it is a kind of terminal 11 provided in an embodiment of the present invention, including:Memory 11A, controller 11B and at least one safe unit SE11C;Wherein,
Memory 11A is used to store one group of code, and the code is used to control controller 11B to hold Row is following to be acted:Obtain the first data frame and the current energy state of the terminal;The energy state that includes in the near-field communication type of identifier NFCID2 route entries energy state current with the terminal is matched, and when in first data frame comprising the instruction for configuring NFCID2 information tables, obtain the NFCID2 information tables of the relation between the SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries;The NFCID2 information tables are used to making the terminal 11 to determine that the second data frame sends target SE extremely, second data frame refer to it is after first data frame, first do not include the instruction for configuring NFCID2 information tables data frame.Optionally, the B of controller 11 can be DH or assistant controller(Such as NFCC).
Optionally, the B of controller 11 specifically for:
Activate the SE of deactivation status;
The instruction of the configuration NFCID2 information tables is sent to the SE after activation;Receive the response message for including NFCID2 values that the SE is sent;
NFCID2 information tables are generated according to the response message.
Terminal provided in an embodiment of the present invention, the relation between SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries in the NFCID2 information tables of acquisition, so that when terminal receives the second data frame, can be determined from this SE in deactivation status the second data frame send to target SE.So, when the application in the SE in deactivation status that bases on practicality that the second data frame is directed to, user can normally use the application, so as to improve Consumer's Experience.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the specific work process of the system, apparatus, and unit of foregoing description may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be realized by another way.For example, device embodiment described above is only schematical, for example, the division of the unit, only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or group Part can combine or be desirably integrated into another system, or some features can be ignored, or not perform.Another, it, by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, can be electrical, machinery or other forms that shown or discussed coupling or direct-coupling or communication connection each other, which can be,.
The unit illustrated as separating component can be or may not be physically separate, the part shown as unit can be or may not be physical location, a place can be located at, or can also be distributed on multiple NEs.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each of the invention embodiment can be integrated in a processing unit or the independent physics of unit includes, can also two or more units it is integrated in a unit.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are to cause a computer equipment(Can be personal computer, server, or network equipment etc.)Perform the part steps of each embodiment methods described of the invention.And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM (Read-Only Memory, read-only storage), RAM (Random Access Memory, random access memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
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 within the art that:It can still modify to the technical scheme described in foregoing embodiments, or carry out equivalent substitution to which part technical characteristic;And these modifications or replacement, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (22)

  1. Claims
    1st, a kind of method for routing, it is characterised in that applied to terminal, methods described includes:Obtain data frame and the current energy state of the terminal;
    Determine the SE matched with the data frame and the current energy state of the terminal as target SE from the safe unit SE of deactivation status;
    Activate the target SE;
    The data frame is sent to the target SE to activation.
    2nd, the method according to claim 1, it is characterised in that the SE matched with the data frame and the current energy state of the terminal is determined in the safe unit SE from deactivation status as target SE, including:
    When meeting at least one following condition, determine the SE matched with the data frame and the current energy state of the terminal as target SE from the safe unit SE of deactivation status;The condition includes:The current energy state of the terminal is low power consumpting state, and the SE matched with the data frame and the current energy state of the terminal is not included in the SE of state of activation.
    3rd, the method according to claim 2, it is characterised in that when the current energy state of the terminal is low power consumpting state, methods described also includes:
    Deactivate acquiescence SE;The acquiescence SE refers to SE pre-setting, being active when the current energy state of the terminal is low power consumpting state.
    4th, the method according to claim 1 or 2, it is characterized in that, before determining the SE matched with the data frame and the current energy state of the terminal as target SE in the safe unit SE from deactivation status, methods described also includes:
    Determine not including the SE matched with the data frame and the current energy state of the terminal in the safe unit SE of state of activation according to the first routing mode;First routing mode includes:Application identifier AID routing modes, ten do view routing mode, technology routing mode;The SE matched with the data frame and the current energy state of the terminal is determined in the safe unit SE from deactivation status as target SE, including: The route entry matched with the data frame and the current energy state of the terminal is determined from the route entry set of failure state as target route entry, the SE that the route entry in the route entry set of the failure state is pointed to is in deactivation status;
    The SE that the target route entry is pointed to is used as target SE.
    5th, the method according to any one of claim 1-4, it is characterised in that before the target SE sent the data frame to activation, methods described also includes:The state of the target route entry is revised as effective status by failure state;
    It is described that the data frame is sent into the target SE to activation, including:
    The target route entry of the data frame through effective status is sent into the target SE to activation.
    6th, the method according to any one of claim 1-5, it is characterised in that the activation target SE, including:
    When default switchover policy includes the mark of the target SE, the target SE is activated;The default switchover policy is used for the authority for indicating the activation/deactivation state that the terminal has switching SE, and the switchover policy can control the SE of switching mark comprising the terminal.
    7th, a kind of method for routing, it is characterised in that applied to terminal, methods described includes:Obtain the first data frame and the current energy state of the terminal;
    The energy state that includes in the near-field communication type of identifier NFCID2 route entries energy state current with the terminal is matched, and when in first data frame comprising the instruction for configuring NFCID2 information tables, obtain the NFCID2 information tables of the relation between the SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries;The NFCID2 information tables are used to make the terminal determine that the second data frame sends target SE extremely, second data frame refer to it is after first data frame, first do not include the instruction for configuring NFCID2 information tables data frame.
    8th, the method according to claim 7, it is characterised in that the NFCID2 information tables of the relation between SE NFCID2 values corresponding with the SE of the acquisition comprising the deactivation status for supporting NFCID2 route entries, including: Activate the SE of deactivation status;
    The instruction of the configuration NFCID2 information tables is sent to the SE after activation;Receive the response message for including NFCID2 values that the SE is sent;
    NFCID2 information tables are generated according to the response message.
    9th, a kind of terminal, it is characterised in that including:
    Acquiring unit, for obtaining data frame and the current energy state of the terminal;First determining unit, for the SE that determines to match with the data frame and the current energy state of the terminal from the safe unit SE of deactivation status as target SE;
    Unit is activated, for activating the target SE;
    Routing unit, for the data frame to be sent to the target SE to activation.
    10th, terminal according to claim 9, it is characterised in that
    First determining unit specifically for:When meeting at least one following condition, determine the SE matched with the data frame and the current energy state of the terminal as target SE from the safe unit SE of deactivation status;The condition includes:The current energy state of the terminal is low power consumpting state, and the SE matched with the data frame and the current energy state of the terminal is not included in the SE of state of activation.
    11, the terminal according to claim 10, it is characterised in that the terminal also includes:Unit is deactivated, for when the current energy state of the terminal is low power consumpting state, deactivating acquiescence SE;The acquiescence SE refers to SE pre-setting, being active when the current energy state of the terminal is low power consumpting state.
    12nd, the terminal according to claim 9 or 10, it is characterised in that the terminal also includes:
    The SE matched with the data frame and the current energy state of the terminal is not included in second determining unit, the safe unit SE for determining state of activation according to the first routing mode;First routing mode includes:Application identifier AID routing modes, agreement routing mode, technology routing mode;
    First determining unit specifically for:From the route entry set of failure state determine with The route entry that the data frame and the current energy state of the terminal are matched is as target route entry;The SE that route entry in the route entry set of the failure state is pointed to is in deactivation status;The SE that the target route entry is pointed to is used as target SE.
    13rd, the terminal according to any one of claim 9- 12, it is characterised in that the terminal also includes:
    Unit is changed, for the state of the target route entry to be revised as into effective status by failure state;
    The routing unit by the target route entry of the data frame through effective status specifically for sending the target SE to activation.
    14th, the terminal according to any one of claim 9- 13, it is characterised in that the activation unit is specifically for when default switchover policy includes the mark of the target SE, activating the target SE;The default switchover policy is used for the authority for indicating the activation/deactivation state that the terminal has switching SE, and the switchover policy can control the SE of switching mark comprising the terminal.
    15th, a kind of terminal, it is characterised in that including:
    First acquisition unit, for obtaining the first data frame and the current energy state of the terminal;
    Second acquisition unit, the energy state current with the terminal for the energy state included in near-field communication type of identifier NFCID2 route entries is matched, and when in first data frame comprising the instruction for configuring NFCID2 information tables, obtain the NFCID2 information tables of the relation between the SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries;The NFCID2 information tables are used to make the terminal determine that the second data frame sends target SE extremely, second data frame refer to it is after first data frame, first do not include the instruction for configuring NFCID2 information tables data frame.
    16th, the terminal according to claim 15, it is characterised in that the second acquisition unit specifically for:
    Activate the SE of deactivation status; The instruction of the configuration NFCID2 information tables is sent to the SE after activation;Receive the response message for including NFCID2 values that the SE is sent;
    NFCID2 information tables are generated according to the response message.
    17th, a kind of terminal, it is characterised in that including:Controller and at least one safe unit SE;Wherein,
    The controller, for obtaining data frame and the current energy state of the terminal;Determine the SE matched with the data frame and the current energy state of the terminal as target SE from the SE of deactivation status;Activate the target SE;The data frame is sent to the target SE to activation.
    18th, terminal according to claim 17, it is characterised in that
    The controller specifically for:When meeting at least one following condition, determine the SE matched with the data frame and the current energy state of the terminal as target SE from the safe unit SE of deactivation status;The condition includes:The current energy state of the terminal is low power consumpting state, and the SE matched with the data frame and the current energy state of the terminal is not included in the SE of state of activation.
    19th, the terminal according to claim 18, it is characterised in that the controller is additionally operable to, when the current energy state of the terminal is low power consumpting state, deactivates acquiescence SE;The acquiescence SE refers to SE pre-setting, being active when the current energy state of the terminal is low power consumpting state.
    20th, the terminal according to claim 18 or 19, it is characterised in that
    The controller is additionally operable to, and determines not including the SE matched with the data frame and the current energy state of the terminal in the safe unit SE of state of activation according to the first routing mode;First routing mode includes:Application identifier AID routing modes, agreement routing mode, technology routing mode;
    The controller specifically for:Determine the route entry matched with the data frame and the current energy state of the terminal as target route entry from the route entry set of failure state;The SE that route entry in the route entry set of the failure state is pointed to is in deactivation status;Will The SE that the target route entry is pointed to is used as target SE.
    21st, the terminal according to claim any one of 18-20, it is characterised in that the controller is additionally operable to, effective status is revised as by the state of the target route entry by failure state;
    The controller by the target route entry of the data frame through effective status specifically for sending the target SE to activation.
    22nd, the terminal according to claim any one of 18-21, it is characterised in that the controller is specifically for when default switchover policy includes the mark of the target SE, activating the target SE;The default switchover policy is used for the authority for indicating the activation/deactivation state that the terminal has switching SE, and the switchover policy can control the SE of switching mark comprising the terminal.
    23rd, a kind of terminal, it is characterised in that including:Controller and at least one safe unit SE;Wherein,
    The controller, for obtaining the first data frame and the current energy state of the terminal;The energy state that includes in the near-field communication type of identifier NFCID2 route entries energy state current with the terminal is matched, and when in first data frame comprising the instruction for configuring NFCID2 information tables, obtain the NFCID2 information tables of the relation between the SE NFCID2 values corresponding with the SE comprising the deactivation status for supporting NFCID2 route entries;The NFCID2 information tables are used to make the terminal determine that the second data frame sends target SE extremely, second data frame refer to it is after first data frame, first do not include the instruction for configuring NFCID2 information tables data frame.
    24th, the terminal according to claim 23, it is characterised in that the controller specifically for:
    Activate the SE of deactivation status;
    The instruction of the configuration NFCID2 information tables is sent to the SE after activation;Receive the response message for including NFCID2 values that the SE is sent;
    NFCID2 information tables are generated according to the response message.
CN201480075794.6A 2014-07-30 2014-07-30 A kind of method for routing and terminal Active CN106031239B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/083349 WO2016015258A1 (en) 2014-07-30 2014-07-30 Routing method and terminal

Publications (2)

Publication Number Publication Date
CN106031239A true CN106031239A (en) 2016-10-12
CN106031239B CN106031239B (en) 2019-10-22

Family

ID=55216619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480075794.6A Active CN106031239B (en) 2014-07-30 2014-07-30 A kind of method for routing and terminal

Country Status (2)

Country Link
CN (1) CN106031239B (en)
WO (1) WO2016015258A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102100121A (en) * 2008-07-20 2011-06-15 三星电子株式会社 Method and system for managing multiple applications in near field communication
CN103414497A (en) * 2012-03-21 2013-11-27 英飞凌科技股份有限公司 Methods and appliances for forwarding communication between electronic appliances
CN103843020A (en) * 2011-09-18 2014-06-04 谷歌公司 One-click offline buying
CN103942898A (en) * 2013-01-22 2014-07-23 华为终端有限公司 Method, mobile terminal and POS machine for realizing security element selection in near field communication

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102012102381A1 (en) * 2012-03-21 2013-09-26 Infineon Technologies Ag Control method with targeted muting for communication between electronic devices, and corresponding devices
KR101895220B1 (en) * 2012-05-08 2018-09-07 삼성전자주식회사 Apparatus and method for selecting a secure element in a near field communication device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102100121A (en) * 2008-07-20 2011-06-15 三星电子株式会社 Method and system for managing multiple applications in near field communication
CN103843020A (en) * 2011-09-18 2014-06-04 谷歌公司 One-click offline buying
CN103414497A (en) * 2012-03-21 2013-11-27 英飞凌科技股份有限公司 Methods and appliances for forwarding communication between electronic appliances
CN103942898A (en) * 2013-01-22 2014-07-23 华为终端有限公司 Method, mobile terminal and POS machine for realizing security element selection in near field communication

Also Published As

Publication number Publication date
WO2016015258A1 (en) 2016-02-04
CN106031239B (en) 2019-10-22

Similar Documents

Publication Publication Date Title
CN103518401B (en) Method for switching network and equipment
EP2793528B1 (en) Method for transmitting data between terminals and terminal
EP2930857B1 (en) Method for realizing selection of security unit in near field communication and mobile terminal therefor
CN102281594B (en) Message forwarding method, wireless access point (AP) and message forwarding system
CN102862487B (en) Battery control system of car
CN102143045B (en) Method, device and system for processing service message in wireless local area network
RU2011153965A (en) ENHANCED COMMISSIONING OF WIRELESS NETWORK SYSTEMS
CN104410436A (en) Method and system for managing multiple applications in near field communication
CN104883674A (en) Profile relating management method and apparatus
JP2013179582A5 (en)
CN105577721A (en) Remote terminal control method and system thereof
CN103326749B (en) A kind of control method of NFC radio frequency communication, Apparatus and system
CN106302730A (en) The localization method of anti-loss device and system
CN105636161A (en) Wireless network access method and device, communication terminal and wireless network access point
CN106101989A (en) A kind of method selecting safe unit and mobile terminal
WO2013120335A1 (en) Cabinet asset management method and device and cabinet system
CN105550868A (en) Mobile payment method and apparatus
CN113596884B (en) Device state monitoring method, device state monitoring apparatus, and readable storage medium
CN104581721A (en) Dual-card structure-based mobile service data processing method and system, and mobile terminal
CN109392059A (en) Selection method, configuration method, terminal device and the network side equipment of network
CN105517012A (en) Method for wireless network device to connect to access point and wireless network device
CN106031239A (en) Routing method and terminal
CN105101059A (en) Method and device for configuring application terminal
CN104468133B (en) POE control method, power supply unit and system
EP3293886B1 (en) Radio frequency finding method, chip and device

Legal Events

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