CN106031239B - A kind of method for routing and terminal - Google Patents
A kind of method for routing and terminal Download PDFInfo
- Publication number
- CN106031239B CN106031239B CN201480075794.6A CN201480075794A CN106031239B CN 106031239 B CN106031239 B CN 106031239B CN 201480075794 A CN201480075794 A CN 201480075794A CN 106031239 B CN106031239 B CN 106031239B
- Authority
- CN
- China
- Prior art keywords
- terminal
- target
- data frame
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 230000009849 deactivation Effects 0.000 claims abstract description 100
- 230000004913 activation Effects 0.000 claims abstract description 74
- 238000005516 engineering process Methods 0.000 claims description 27
- 230000004044 response Effects 0.000 claims description 22
- 238000004891 communication Methods 0.000 claims description 13
- 230000003213 activating effect Effects 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 11
- 238000013461 design Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000003825 pressing Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 206010048669 Terminal state Diseases 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000005674 electromagnetic induction Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 239000003607 modifier Substances 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of method for routing and terminals, are related to NFC technique field, the application in the SE of deactivation status can be made to be chosen and be used by user, to improve user experience.A kind of method for routing provided in an embodiment of the present invention is applied to terminal, this method comprises: obtaining data frame and the current energy state of the terminal;The determining energy state matched SE current with the data frame and the terminal is as target SE from the SE of deactivation status;Activate the target SE;The data frame is sent to the target SE after activation.
Description
Technical field
The present invention relates to NFC (Near Field Communication, near-field communication) technical fields, more particularly to one kind
Method for routing and terminal.
Background technique
NFC is a kind of wireless connection technology that electric room short haul connection is realized using electromagnetic induction.With NFC function
Include one or more SE (Security Element, safe unit) in the terminal (hereinafter referred to as " NFC terminal ") of energy, uses
Think that the application (for example, bus card application, bank card application etc.) installed in NFC terminal provides the performing environment of safety.
Also comprising DH (Device Host, master controller) and NFCC (NFC Controller, NFC control in NFC terminal
Device).Provide in existing NCI (NFC Controller Interface, NFC control interface) specification: NFCC can be according to DH
The routing table configured completes the routing inquiry to the SE of state of activation.Specifically, after NFCC gets data frame, only meeting
Route target is found from the SE of state of activation, without finding route target from the SE of deactivation status.In this way, will lead to
Application in the SE of deactivation status cannot be chosen and be used by user, to influence user experience.
Summary of the invention
It is of the invention that a kind of method for routing and terminal are provided, the application in the SE of deactivation status can be made to be chosen by user
With use, to improve user experience.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, providing a kind of method for routing, it is applied to terminal, which comprises
Obtain data frame and the current energy state of the terminal;
Determine that the energy state current with the data frame and the terminal is equal from the safe unit SE of deactivation status
Matched SE is as target SE;
Activate the target SE;
The data frame is sent to the target SE after activation.
With reference to first aspect, in the first possible implementation, in the safe unit SE from deactivation status
The determining energy state matched SE current with the data frame and the terminal is as target SE, comprising:
When meeting at least one following condition, from the safe unit SE of deactivation status it is determining with the data frame and
The matched SE of the current energy state of the terminal is as target SE;The condition includes: the current energy shape of the terminal
State is low power consumpting state, does not include the energy state current with the data frame and the terminal in the SE of state of activation and matches
SE.
The possible implementation of with reference to first aspect the first, in the second possible implementation, at the end
Hold current energy state be low power consumpting state when, the method also includes:
Deactivate default SE;The default SE refer to it is pre-set, the current energy state of the terminal be low function
The SE being active when consumption state.
With reference to first aspect or the first possible implementation of first aspect, in the third possible implementation
In, determine that the energy state current with the data frame and the terminal is equal in the safe unit SE from deactivation status
Before matched SE is as target SE, the method also includes:
It determines in the safe unit SE of state of activation and does not include and the data frame and the end according to the first routing mode
Hold the matched SE of current energy state;First routing mode includes: application identifier AID routing mode, agreement road
By mode, technology routing mode;
The determining energy shape current with the data frame and the terminal in the safe unit SE from deactivation status
The matched SE of state is as target SE, comprising:
Determination is current with the data frame and the terminal from the route entry set of failure state energy state equal
The route entry matched is as target route entry;The SE that route entry in the route entry set of the failure state is directed toward, which is in, to be deactivated
State;
The SE that the target route entry is directed toward is as target SE.
With reference to first aspect, the possible implementation of the first of first aspect is any to the third possible implementation
Kind, in the fourth possible implementation, before the target SE that the data frame is sent to after activating, institute
State method further include:
The state of the target route entry is revised as effective status by failure state;
It is described that the data frame is sent to the target SE after activation, comprising:
By the target SE of the data frame after the target route entry of effective status is sent to activation.
With reference to first aspect, the possible implementation of the first of first aspect is any to the 4th kind of possible implementation
Kind, in a fifth possible implementation, the activation target SE, comprising:
When default switchover policy includes the mark of the target SE, the target SE is activated;The default switchover policy
Being used to indicate the terminal has the permission of activation/deactivation state of switching SE, and the switchover policy includes the terminal energy
The mark of the SE of enough control switchings.
Second aspect provides a kind of terminal, comprising:
Acquiring unit, for obtaining data frame and the current energy state of the terminal;
First determination unit, for determining and the data frame and the terminal from the safe unit SE of deactivation status
The matched SE of current energy state is as target SE;
Unit is activated, for activating the target SE;
Routing unit, for the data frame to be sent to the target SE after activation.
In conjunction with second aspect, in the first possible implementation, first determination unit is specifically used for: working as satisfaction
It is determining current with the data frame and the terminal from the safe unit SE of deactivation status when at least one following condition
The matched SE of energy state is as target SE;The condition includes: that the current energy state of the terminal is low power consumpting state,
The energy state matched SE current with the data frame and the terminal is not included in the SE of state of activation.
In conjunction with the first possible implementation of second aspect, in the second possible implementation, the terminal
Further include: unit is deactivated, for deactivating default SE when the current energy state of the terminal is low power consumpting state;Institute
State default SE refer to it is pre-set, be active when the terminal current energy state is low power consumpting state
SE。
In conjunction with the possible implementation of the first of second aspect or second aspect, in the third possible implementation
In, the terminal further include: the second determination unit, in the safe unit SE for determining state of activation according to the first routing mode
Not comprising the energy state matched SE current with the data frame and the terminal;First routing mode includes: to answer
With identifier AID routing mode, agreement routing mode, technology routing mode;
First determination unit is specifically used for: determining and the data frame and institute from the route entry set of failure state
The matched route entry of the current energy state of terminal is stated as target route entry;In the route entry set of the failure state
The SE that route entry is directed toward is in deactivation status;The SE that the target route entry is directed toward is as target SE.
The first possible implementation in conjunction with second aspect, second aspect is any to the third possible implementation
Kind, in the fourth possible implementation, the terminal further include: modification unit, for by the shape of the target route entry
State is revised as effective status by failure state;
The routing unit is specifically used for, and the data frame is sent to activation through the target route entry of effective status
The target SE afterwards.
The first possible implementation in conjunction with second aspect, second aspect is any to the 4th kind of possible implementation
Kind, in a fifth possible implementation,
The activation unit is specifically used for, and when default switchover policy includes the mark of the target SE, activates the mesh
Mark SE;The default switchover policy is used to indicate the permission that the terminal has the activation/deactivation state of switching SE, described to cut
The mark of SE of switching can be controlled comprising the terminal by changing strategy.
The third aspect provides a kind of terminal, comprising: controller and at least one safe unit SE;Wherein, the control
Device, for obtaining data frame and the current energy state of the terminal;The determining and data frame from the SE of deactivation status
With the matched SE of the current energy state of the terminal as target SE;Activate the target SE;The data frame is sent
The target SE after to activation.
In conjunction with the third aspect, in the first possible implementation, the controller is specifically used for: when meet it is following extremely
When a few condition, the determining energy shape current with the data frame and the terminal from the safe unit SE of deactivation status
The matched SE of state is as target SE;The condition includes: that the current energy state of the terminal is low power consumpting state, activates shape
The energy state matched SE current with the data frame and the terminal is not included in the SE of state.
In conjunction with the first possible implementation of the third aspect, in the second possible implementation, the control
Device is also used to, and when the current energy state of the terminal is low power consumpting state, deactivates default SE;The default SE refers to pre-
SE being first arranged, being active when the current energy state of the terminal is low power consumpting state.
In conjunction with the possible implementation of the first of the third aspect or the third aspect, in the third possible implementation
In, the controller is also used to, and is determined in the safe unit SE of state of activation and is not included and the number according to the first routing mode
According to the matched SE of the current energy state of frame and the terminal;First routing mode includes: application identifier AID routing
Mode, agreement routing mode, technology routing mode;
The controller is specifically used for: determining and the data frame and the terminal from the route entry set of failure state
The matched route entry of current energy state is as target route entry;Route entry in the route entry set of the failure state
The SE of direction is in deactivation status;The SE that the target route entry is directed toward is as target SE.
The first possible implementation in conjunction with the third aspect, the third aspect is any to the third possible implementation
Kind, in the fourth possible implementation, the controller is also used to, by the state of the target route entry by failure state
It is revised as effective status;The implement body processed is used for, and the data frame is sent to through the target route entry of effective status
The target SE after activation.
The first possible implementation in conjunction with the third aspect, the third aspect is any to the 4th kind of possible implementation
Kind, in a fifth possible implementation, the controller is specifically used for, and includes the target SE's in default switchover policy
When mark, the target SE is activated;The default switchover policy is used to indicate the activation/deactivation that the terminal has switching SE
The permission of state, the switchover policy include the mark that the terminal can control the SE of switching.
Any scheme that above-mentioned first aspect to the third aspect provides can determine and number from the SE of deactivation status
The data frame is sent as target SE, and to target SE according to the matched SE of the current energy state of frame and terminal.In this way, when number
According to the application that frame is directed to be in the SE of deactivation status in application, user can the normal use application, to improve user
Experience.
Fourth aspect provides a kind of method for routing, is applied to terminal, which comprises
Obtain the first data frame and the current energy state of the terminal;
In the energy state and the current energy shape of the terminal that near-field communication type of identifier NFCID2 route entry includes
State matching, and include when configuring the instruction of NFCID2 information table, to obtain comprising supporting NFCID2 to route in first data frame
The NFCID2 information table of relationship between the SE NFCID2 value corresponding with the SE of the deactivation status of item;The NFCID2 letter
The target SE that breath table is used to that the terminal to be made to determine that the second data frame is sent to, second data frame refer to first data
Data frame after frame, first instruction not comprising configuration NFCID2 information table.
It is in the first possible implementation, described to obtain comprising supporting NFCID2 route entry in conjunction with fourth aspect
The NFCID2 information table of relationship between the SE of deactivation status NFCID2 value corresponding with the SE, comprising:
Activate the SE of deactivation status;
The instruction of the configuration NFCID2 information table is sent to the SE after activation;
Receive the response message comprising NFCID2 value that the SE is sent;
NFCID2 information table is generated according to the response message.
5th aspect, provides a kind of terminal, comprising:
First acquisition unit, for obtaining the first data frame and the current energy state of the terminal;
Second acquisition unit, energy state for including in near-field communication type of identifier NFCID2 route entry with it is described
The current energy state matching of terminal, and include when configuring the instruction of NFCID2 information table, to obtain packet in first data frame
The NFCID2 letter of relationship between SE NFCID2 value corresponding with the SE containing the deactivation status for supporting NFCID2 route entry
Cease table;The target SE that the NFCID2 information table is used to that the terminal to be made to determine that the second data frame is sent to, second data
Frame refers to that after first data frame, first comprising not configuring the data frame of the instruction of NFCID2 information table.
In conjunction with the 5th aspect, in the first possible implementation, the second acquisition unit is specifically used for:
Activate the SE of deactivation status;
The instruction of the configuration NFCID2 information table is sent to the SE after activation;
Receive the response message comprising NFCID2 value that the SE is sent;
NFCID2 information table is generated according to the response message.
6th aspect, provides a kind of terminal, comprising: 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;It is identified in near-field communication
The energy state that symbol type NFCID2 route entry the includes energy state current with the terminal matches, and first data frame
In comprising configuration NFCID2 information table instruction when, obtain comprising support NFCID2 route entry deactivation status SE with it is described
The NFCID2 information table of relationship between the corresponding NFCID2 value of SE;The NFCID2 information table is for making the terminal determine the
The target SE that two data frames are sent to, second data frame refer to it is after first data frame, first not comprising
Configure the data frame of the instruction of NFCID2 information table.
In conjunction with the 6th aspect, in the first possible implementation, the controller is specifically used for:
Activate the SE of deactivation status;
The instruction of the configuration NFCID2 information table is sent to the SE after activation;
Receive the response message comprising NFCID2 value that the SE is sent;
NFCID2 information table is generated according to the response message.
Any scheme that above-mentioned fourth aspect is provided to the 6th aspect, comprising supporting NFCID2 in NFCID2 information table
Relationship between the SE of the deactivation status of route entry NFCID2 value corresponding with the SE is gone so as to be in terminal from this
The target SE that the second data frame is sent to is determined in the SE of state of activation.In this way, working as the place that bases on practicality that the second data frame is directed to
It is in the SE of deactivation status in application, user can the normal use application, to improve user experience.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability
For the those of ordinary skill of domain, without any creative labor, it can also be obtained according to these attached drawings others
Attached drawing.
Fig. 1 is a kind of flow diagram for method for routing that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of method for routing provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow diagram for method for routing that the embodiment of the present invention 1 provides;
Fig. 4 is a kind of flow diagram for method for routing that the embodiment of the present invention 2 provides;
Fig. 5 is a kind of flow diagram for method for routing that the embodiment of the present invention 3 provides;
Fig. 6 is a kind of flow diagram for method for routing that the embodiment of the present invention 5 provides;
Fig. 7 is a kind of structural schematic diagram for terminal that the embodiment of the present invention three provides;
Fig. 8 is the structural schematic diagram for another terminal that the embodiment of the present invention three provides;
Fig. 9 is a kind of structural schematic diagram for terminal that the embodiment of the present invention four provides;
Figure 10 is a kind of structural schematic diagram for terminal that the embodiment of the present invention five provides;
Figure 11 is a kind of structural schematic diagram for terminal that the embodiment of the present invention six provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The terms " multiple ", refer to two or more.
Embodiment one
As shown in Figure 1, being a kind of method for routing provided in an embodiment of the present invention, it is applied to terminal, which comprises
101: obtaining data frame and the current energy state of the terminal.
Wherein, " terminal " refers to NFC terminal.It may include one or more SE in NFC terminal, the state of SE can be
State of activation or deactivation status.SE herein can be equal to NFCEE (NFC Execution Environment,
NFC performing environment).
It can also include master controller DH and assistant controller in NFC terminal;DH is specifically as follows the CPU (Central of terminal
Processing Unit, central processing unit), assistant controller can be NFCC.Generally, when terminal is in open state, DH
It can work normally;DH can configure routing table, setting default SE etc. for NFCC.The executing subject of the present embodiment can be NFC
Terminal, the DH or assistant controller being specifically as follows in NFC terminal.
Routing table may include a plurality of types of route entries, for example, AID (Application ID, application identifier) road
It is routed by item, NFCID2 (Near Field Communication Identifier 2, near-field communication identifier (type) 2)
Item, agreement routing (Protocol-Based Routing) item, technology routing (Technology-Based Routing) item etc..
Current time may include the route entry of any type in routing table, it is also possible to the route entry not comprising any type;Tool
Body, current time may include one/multiple AID route entries and/or a NFCID2 route entry in routing table, and/or
One/multiple agreement route entries and/or one/multiple technology route entries.Each AID route entry, agreement route entry or technology
Route entry is directed to a SE, and a SE can correspond to one/multiple same types or different types of route entry;NFCID2
Route entry is not directed to any one SE.
The state of route entry can be that effective status or failure state are herein constituted the route entry of effective status
Collection be collectively referred to as the route entry set of effective status, the collection that the route entry of failure state is constituted is collectively referred to as to the routing of failure state
Item set.
The current energy state of terminal may include: open state, shutting down has power supply (Switch off) state and shutdown
Non-transformer (Battery Off) state.
Terminal can use method in the prior art and obtain data frame and the current energy state of terminal.Specifically, step
Rapid 101 may include: that terminal receives the data that RCLF (Remote Contactless Front, distal end contactless devices) are sent
Frame.
102: the determining energy shape current with the data frame and the terminal from the safe unit SE of deactivation status
The matched SE of state is as target SE.
Wherein, terminal determine " the matched SE of current energy state with the data frame and the terminal " method with
Routing mode is related, and specific implementation can refer to following embodiments.Here " routing mode " can include but is not limited to
Any one of the following manners: AID routing mode, NFCID2 routing mode, agreement routing mode, technology routing mode.
Optionally, step 102 may include: when meeting at least one following condition, from the safety list of deactivation status
The determining energy state matched SE current with the data frame and the terminal is as target SE in first SE;The condition packet
Include: 1) the current energy state of the terminal is low power consumpting state, 2) do not include in the SE of state of activation with the data frame and
The matched SE of the current energy state of the terminal.
Illustratively, when the current energy state of terminal is that shutdown has power supply status or shutdown non-powered state, recognize
Low power consumpting state is in for terminal.If the DH that terminal includes pre-sets default SE, when which is in low power consumpting state,
Default SE is active, and the state of the corresponding route entry of default SE is effective status, other SE are in deactivation status,
The state of his route entry is failure state.
In above-mentioned optional mode, when the current energy state of the terminal is low power consumpting state, the method is also
It may include: to deactivate default SE;The default SE refer to it is pre-set, the current energy state of the terminal be low function
The SE being active when consumption state.It is specific: the activation/deactivation life for being used to deactivate default SE is sent to default SE
It enables, so that the state of default SE is switched to deactivation status by state of activation.
Optionally, before step 102, the method can also include: to determine state of activation according to the first routing mode
Safe unit SE in do not include the energy state matched SE current with the data frame and the terminal;The first via
It include: AID routing mode, agreement routing mode, technology routing mode by mode.In this case, step 102 may include: from
The determining energy state matched route entry current with the data frame and the terminal in the route entry set of failure state
As target route entry;The SE that route entry in the route entry set of the failure state is directed toward is in deactivation status;By institute
The SE of target route entry direction is stated as target SE.
103: activating the target SE.
Illustratively, step 103 may include: that DH or assistant controller are sent to target SE for activating swashing for target SE
Work/deactivation command, so that the state of target SE is switched to state of activation by deactivation status.
Optionally, before step 103, it includes the target SE that the method, which can also include: in default switchover policy,
Mark when, activate the target SE;The default switchover policy be used to indicate the terminal have switching SE activation/deactivate
The permission of state living, the switchover policy include the mark that the terminal can control the SE of switching.
Illustratively, default switchover policy is generally located in DH, specifically, DH can be arranged in advance under the instruction of user
It, can also be by the way that terminal capabilities and user, to service condition of each application etc., setting terminal can be controlled automatically if switchover policy
The mark of the SE of switching presets switchover policy.When executing subject is assistant controller, before activating the target SE, this method
Also with include: assistant controller receive DH send handover decisions.In this case, default implementation strategy is used to indicate assistant controller tool
There is the permission of the activation/deactivation state of switching SE, switchover policy includes the mark that assistant controller can control the SE of switching.Tool
Body, DH can initialization is carried out to assistant controller or assistant controller execute step 103 before any moment to auxiliary control
Device processed sends default switchover policy.
104: the data frame is sent to the target SE after activation.
Optionally, before step 104, the method can also include: the state by the target route entry by failing
Status modifier is effective status;In this case, step 104 may include: the target by the data frame through effective status
Route entry is sent to the target SE after activation.
Method for routing provided in an embodiment of the present invention, terminal can determine and data frame and end from the SE of deactivation status
The matched SE of current energy state is held to send the data frame as target SE, and to target SE.In this way, when data frame is directed to
Application be in the SE of deactivation status in application, user can the normal use application, to improve user experience.
Embodiment two
As shown in Fig. 2, being applied to terminal for another method for routing provided in an embodiment of the present invention, which comprises
201: obtaining the first data frame and the current energy state of the terminal.
Wherein, the executing subject of the present embodiment can be NFC terminal, DH or the auxiliary control system being specifically as follows in NFC terminal
Device.It should be noted that the relevant explanation in the present embodiment can refer to above-described embodiment one, the specific implementation side of the present embodiment
Formula can refer to following embodiments 2.
202: in the energy state and the current energy of the terminal that near-field communication type of identifier NFCID2 route entry includes
The matching of amount state, and include when configuring the instruction of NFCID2 information table, to obtain comprising supporting NFCID2 in first data frame
The NFCID2 information table of relationship between the SE of the deactivation status of route entry NFCID2 value corresponding with the SE;It is described
The target SE that NFCID2 information table is used to that the terminal to be made to determine that the second data frame is sent to, second data frame refer to described
Data frame after first data frame, first instruction not comprising configuration NFCID2 information table.
Illustratively, terminal determines the specific implementation side of target SE that the second data frame is sent to according to NFCID2 information table
Method can no longer describe herein with reference in the prior art according to NFCID2 routing mode.
Specifically, step 202 may include: to activate the SE of deactivation status;Match to described in the SE transmission after activation
Set the instruction of NFCID2 information table;Receive the response message comprising NFCID2 value that the SE is sent;According to the response message
Generate NFCID2 information table.
Optionally, step 202 may include: and obtain when meeting at least one following condition comprising supporting the road NFCID2
By the NFCID2 information table of the relationship between the SE of the deactivation status of item NFCID2 value corresponding with the SE.The condition packet
Include: the current energy state of the terminal is low power consumpting state, is not included in the SE of state of activation and the data frame and described
The matched SE of the current energy state of terminal.
Illustratively, terminal determines whether the method comprising supporting the SE of NFCID2 route entry can refer in state of activation
The prior art no longer describes herein.
Method for routing provided in an embodiment of the present invention, terminal obtain NFCID2 information table in comprising support NFCID2 routing
Relationship between the SE NFCID2 value corresponding with the SE of the deactivation status of item, so that terminal receives the second data frame
When, the target SE that the second data frame is sent to can be determined from this SE in deactivation status.In this way, when the second data frame
For the SE in deactivation status that bases on practicality in application, user can the normal use application, to improve use
Family experience.
In order to following specific embodiments are explicitly described, illustrate the following first:
1, the executing subject in specific embodiment is NFCC, and DH pre-sets default SE.
2, since in the case where terminal is in low power consumpting state, DH does not work, NFCC work in this case more can body
Reveal advantage of the invention;Therefore in following specific embodiments for using technology provided by the invention under low power consumpting state
It is illustrated.It should be noted that in this case, each route entry in the route entry set of effective status is that DH is pre-set
Default the corresponding route entry of SE.
Embodiment 1
In the present embodiment, NFCC determines in routing table whether include the data frame obtained with NFCC according to AID routing mode
Matched route entry.The executing subject of the present embodiment is NFCC.
As shown in figure 3, being a kind of method for routing provided in this embodiment, comprising:
301:NFCC receives the data frame that RCLF is sent, and obtains the current energy state of NFC terminal.
Illustratively, NFCC can obtain the current energy state of NFC terminal in the either step before step 304.
302:NFCC uses ISO-DEP (International Standardization Organization- determining
Data Exchange Protocol, International Organization for standardization-data exchange agreement) interface, and routed in routing table comprising AID
Xiang Shi parses the data frame, obtains parsing result.
303: whether judging in parsing result comprising AID value.
If so, illustrating that the data frame meets the condition of AID routing mode, 304 are thened follow the steps;If it is not, illustrating the data
Frame is unsatisfactory for executing the condition of AID routing mode, then terminates.
304: judge in the route entry set of effective status in routing table whether comprising in parsing result AID value and
The matched AID route entry of the current energy state of NFC terminal.
If it is not, illustrating to need from searching in the route entry set of failure state and the AID value and NFC terminal in parsing result
The matched AID route entry of current energy state thens follow the steps 305 as target route entry;If so, explanation can be with now
There is the method in technology to determine target SE, and send data to target SE, then terminates.
When executing step 304, NFC terminal is likely to be at open state, shutdown has power supply status or shutdown non-transformer shape
State.
305: judging whether the current energy state of NFC terminal is low power consumpting state.
If so, thening follow the steps 306;If it is not, then terminating.
306: judge in the route entry set of failure state in routing table whether comprising in parsing result AID value and
The matched AID route entry of the current energy state of NFC terminal.
If so, thening follow the steps 307;If it is not, illustrate in routing table there is no with the matched AID route entry of the data frame,
Can use method in the prior art determine target SE (for example, according to route entry as defined in businessman as target route entry or
Person determines target route entry by other routing modes, and then determines target SE), and send data to target SE, then terminate.
Illustratively, AID route entry include: AID value, the AID route entry be directed toward SE ID (IDentity, identity mark
Know number), the energy state that is applicable in of the AID route entry.When including in the AID value and an AID route entry in parsing result
AID value it is identical, and when the energy state that is applicable in of the AID route entry is identical as the current energy state of NFC terminal, step
Judging result in 306 is "Yes";Otherwise, the judging result in step 306 is "No".
307: using the matched AID route entry of institute as target route entry;The SE that target route entry is directed toward is as target SE.
308: sending to target SE for activating the activation/deactivation of target SE to instruct, so that the state of target SE
State of activation is switched to by deactivation status, the state of target route entry is revised as effective status by failure state;To default
SE sends the activation/deactivation instruction for being used to deactivate default SE, so that the state of default SE is switched to by state of activation
The state for defaulting the corresponding route entry of SE is revised as failure state by effective status by state of activation.
When executing step 308, " default SE " is the SE in the route entry set of effective status.This method can also include:
NFCC is target SE power supply, is stopped as default SE power supply.
309: sending the data frame to target SE through target route entry.
After executing step 309, then terminate.
Optionally, step 304-306 can be replaced with following steps:
Step 1: judge in routing table whether include and the matched AID of the current energy state of the AID value and NFC terminal
Route entry.
If so, thening follow the steps 2;If it is not, illustrate in routing table there is no with the matched AID route entry of the data frame, can
To determine target SE using method in the prior art, and data are sent to target SE, then terminated.
Step 2: judging whether the current energy state of NFC terminal is low power consumpting state.
If so, thening follow the steps 307;If it is not, then terminating.
Optionally, step 304-307 can be replaced with following steps:
Step 1 ': judge whether matched comprising the energy state current with the AID value and NFC terminal in routing table
AID route entry.
If so, thening follow the steps 2 ';If it is not, illustrate in routing table there is no with the matched AID route entry of the data frame, can
To determine target SE using method in the prior art, and data are sent to target SE, then terminated.
Step 2 ': using the matched AID route entry of institute as target route entry;The SE that target route entry is directed toward is as target
SE。
Step 3 ': judge whether target SE is default SE.
If it is not, illustrating that the current energy state of terminal is not low power consumpting state, 308 are thened follow the steps;If so, illustrating terminal
Current energy state is low power consumpting state, thens follow the steps 309.
Method for routing provided in an embodiment of the present invention, when NFC terminal is in low power consumpting state, NFCC is according to the road AID
During by mode query routing, it can determine from the route entry set of failure state and be routed with the matched AID of data frame
Item is used as target route entry, that is to say, that NFCC can be determined and the matched SE conduct of data frame from the SE of deactivation status
Target SE.In this way, when the application that data frame is directed to is in the SE in deactivation status in application, user being capable of normal use
The application, so as to improve user experience.
Embodiment 2
In the present embodiment, NFCC determines in routing table whether include the data obtained with NFCC according to NFCID2 routing mode
The matched route entry of frame.The executing subject of the present embodiment is NFCC.
As shown in figure 4, being a kind of method for routing provided in this embodiment, comprising:
401:NFCC receives the data frame that RCLF is sent, and obtains the current energy state of NFC terminal.
402: determining that T3T RF (3 Tag Radio Frequency of Type, 3 label of type is used in NFC terminal
Wireless frequency) agreement, and in routing table when NFCID2 route entry matched comprising energy state current with NFC terminal, parsing
The data frame, obtains parsing result.
Illustratively, NFCID2 route entry includes the energy state that the NFCID2 route entry is applicable in.Generally, routing table
In may include a NFCID2 route entry, or do not include NFCID2 route entry.When the NFCID2 routing for including in routing table
When the energy state that item is applicable in is identical as the current energy state of NFC terminal, it is believed that comprising current with NFC terminal in routing table
The matched NFCID2 route entry of energy state.
403: whether judging in parsing result comprising SENSF_REQ (SENSE TECH F REQUEST, technology F detect frame)
Instruction.
If so, explanation needs to configure NFCID2 information table, 404 are thened follow the steps;If it is not, then illustrating to need according to existing skill
Mode in art is that the data frame determines target SE, then terminates.
Illustratively, SENSF_REQ instruction is " instruction of configuration NFCID2 information table " described in above-described embodiment
A kind of specific implementation.
404: to the SE of state of activation send SENSF_REQ instruction so that receive SENSF_REQ instruction SE to
NFCC replys response message.
Wherein, when a SE does not support NFCID2 route entry, in the response message which replys to NFCC not comprising the SE
Support the information of NFCID2 route entry;When a SE supports NFCID2 route entry, wrapped in the response message which replys to NFCC
Containing the corresponding NFCID2 value of the SE.
405: whether judging in each response message comprising NFCID2 value.
If so, explanation can configure NFCID2 information table according to method in the prior art, then terminate;If it is not, then executing
Step 406.
406: judging whether the current energy state of NFC terminal is low power consumpting state.
If so, thening follow the steps 407;If it is not, then terminating.
407: sending to the SE of deactivation status for activating the activation/deactivation of the SE to instruct, so that the state of the SE
State of activation is switched to by deactivation status.
408: in step 407 SE send SENSF_REQ instruction so that receive SENSF_REQ instruction SE to
NFCC replys response message.
409: whether judging in each response message comprising NFCID2 value.
If so, thening follow the steps 410;If it is not, illustrating that the SE in NFC terminal does not support NFCID2 route entry, then terminate.
410: by support NFCID2 route entry SE NFCID2 value corresponding with each support SE of NFCID2 route entry it
Between relationship constitute NFCID2 information table.
After executing step 410, then terminate.
Illustratively, the target SE that NFCID2 information table is used to that NFCC to be made to determine that the second data frame is sent to, the second data
Frame refers to data frame after " data frame " in step 401, first instruction not comprising configuration NFCID2 information table.Into
One step, it can be described as: when NFCC receives a data frame again, if being instructed in the data frame comprising SENSF_REQ, pressing
Method according to above-mentioned steps 404-410 is that the data frame configures NFCID2 information table;If not including SENSF_REQ in the data frame
Instruction then determines that the data frame is sent to according to method in the prior art using the NFDID2 information table determined in step 410
Target SE.
Method for routing provided in an embodiment of the present invention, when NFC terminal is in low power consumpting state, NFCC is according to NFCID2
During routing mode determines NFCID2 information table, the available deactivation status arrived comprising supporting NFCID2 route entry
Relationship between SE NFCID2 value corresponding with the SE, so that when assistant controller receives the second data frame, it can be from this
The target SE that the second data frame is sent to is determined in SE in deactivation status.In this way, working as the application that the second data frame is directed to
Be in this SE in deactivation status in application, user can the normal use application, to improve user experience.
Embodiment 3
In the present embodiment, NFCC determines in routing table whether include the data frame obtained with NFCC according to agreement routing mode
Matched route entry.The executing subject of the present embodiment is NFCC.
As shown in figure 5, being a kind of method for routing provided in this embodiment, comprising:
501:NFCC receives the data frame that RCLF is sent, and obtains the current energy state of NFC terminal.
502: obtaining the protocol type of the currently used agreement of NFC terminal.
503: whether judging in the route entry set of effective status in routing table comprising working as with the protocol type and NFC terminal
The matched agreement route entry of preceding energy state.
If it is not, illustrating to need from the route entry set of failure state determining current with the protocol type and NFC terminal
The matched agreement route entry of energy state thens follow the steps 504 as target route entry;If so, explanation can use existing skill
Method in art determines target SE, and sends data to target SE, then terminates.
Illustratively, agreement route entry includes: the protocol type for the agreement that the agreement route entry is applicable in, agreement routing
The energy state that ID, the agreement route entry for the SE that item is directed toward are applicable in.
504: judging whether the current energy state of NFC terminal is low power consumpting state.
If so, thening follow the steps 505;If it is not, then terminating.
505: whether judging in the route entry set of failure state in routing table comprising working as with the protocol type and NFC terminal
The matched agreement route entry of preceding energy state.
If so, thening follow the steps 506;If it is not, illustrate in routing table there is no with the matched agreement route entry of the data frame,
Can use method in the prior art determine target SE (for example, according to route entry as defined in businessman as target route entry or
Person determines target route entry by other routing modes, and then determines target SE), and send data to target SE, then terminate.
506: using the matched agreement route entry of institute as target route entry;The SE that target route entry is directed toward is as target
SE。
507-508 is identical as the step 308-309 in embodiment 1.
Optionally, step 503-505 can be realized with the design of the step 1- step 2 in above-described embodiment 1.In addition optional
, step 503-506 can be realized with the design of the step 1- step 2 in above-described embodiment 1.
Method for routing provided in an embodiment of the present invention, when NFC terminal is in low power consumpting state, NFCC is according to agreement road
During by mode query routing, it can be determined from the route entry set of failure state and the currently used association of NFC terminal
The matched agreement route entry of the current energy state of the protocol type and NFC terminal of view is as target route entry, that is to say, that
NFCC can determine that the protocol type of the agreement currently used with NFC terminal and NFC terminal are current from the SE of deactivation status
The matched SE of energy state as target SE.In this way, when the application that data frame is directed to is in the SE in deactivation status
In application, user can the normal use application, so as to improve user experience.
Embodiment 4
In the present embodiment, NFCC determines in routing table whether include the data obtained with NFCC according to technology routing mode
The matched target route entry of frame.The executing subject 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 in the present embodiment
In be " type of skill of technology ";" protocol type " in embodiment 3 is " type of skill " in the present embodiment;In embodiment 3
" agreement route entry " in the present embodiment be " technology route entry ".
Method for routing provided in an embodiment of the present invention, when NFC terminal is in low power consumpting state, NFCC is according to technology road
During by mode query routing, it can be determined from the route entry set of failure state and the skill that uses when receiving data frame
The matched technology route entry of the current energy state of the type of skill and NFC terminal of art is as target route entry, that is to say, that
NFCC can determine current with the type of skill of technology and NFC terminal that use when receiving data frame from the SE of deactivation status
The matched SE of energy state as target SE.In this way, when the application that data frame is directed to is in the SE in deactivation status
In application, user can the normal use application, so as to improve user experience.
Embodiment 5
In the present embodiment, NFCC carries out routing inquiry according to the priority orders of routing mode;Wherein, routing mode is excellent
First grade sequence is from high to low are as follows: AID routing mode, NFCID2 routing mode, agreement routing mode, technology routing mode.
As shown in fig. 6, being a kind of method for routing provided in this embodiment, comprising:
601:NFCC receives the data frame that RCLF is sent, and obtains the current energy state of NFC terminal.
602: successively being carried out according to AID routing mode, NFCID2 routing mode, agreement routing mode, technology routing mode
Routing inquiry;Judge whether to find and the matched target SE of the current energy state of the data frame and NFC terminal.
If it is not, thening follow the steps 603;If so, terminating.
It is specific: after carrying out routing inquiry according to the higher routing mode of priority, (for AID routing mode and
Agreement routing mode) if in routing table in the route entry set of effective status do not include with the matched route entry of the data frame, or
Person, (being directed to NFCID2 routing mode) execute excellent if in NFCID2 information table when target SE corresponding not comprising the data frame
The first lower routing mode of grade;After carrying out routing inquiry according to the minimum routing mode of priority (technology routing mode),
Do not find with the matched target SE of the current energy state of the data frame and NFC terminal, then follow the steps 603.According to upper
The prior art can be referred to by stating the concrete methods of realizing that several routing modes enumerated are inquired.
603: judging whether the current energy state of NFC terminal is low power consumpting state.
If so, thening follow the steps 604;If it is not, then terminating.
604: whether judging in the route entry set of failure state in routing table comprising current with the data frame and NFC terminal
The matched route entry of energy state.
If so, thening follow the steps 605;If it is not, then terminating.
It should be noted that when executing step 603, illustrate in step 602 NFCC according to NFCID2 routing mode into
When row routing inquiry, the instruction of configuration NFCID2 information table is not included in the data frame;Therefore, when executing step 604, NFCC
According to the priority orders of routing mode, can successively judge in the route entry set of failure state in routing table whether comprising with
The data frame and the current matched AID route entry of energy state of NFC terminal, agreement route entry, technology route entry.Specifically
Implementation can refer to the relevant portion of above-described embodiment 1,3,4.
605: using the matched route entry of institute as target route entry;The SE that target route entry is directed toward is as target SE.
606-607 is identical as the step 308-309 in embodiment 1.
Optionally, step 602-604 can use the realization of the design of the step 1- step 2 in above-described embodiment 1.In addition may be used
Choosing, step 602-605 can be realized with the design of the step 1- step 2 in above-described embodiment 1.
Method for routing provided in an embodiment of the present invention, when NFC terminal is in low power consumpting state, NFCC is according to existing skill
After routing mode query routing in art, it can be determined from the route entry set of failure state and data frame and NFC terminal
The matched route entry of current energy state is as target route entry, that is to say, that NFCC can be from the SE of deactivation status
Middle determination and data frame and the matched SE of the mono- current energy state of NFC are as target SE.In this way, when what data frame was directed to answers
With for it is in the SE of deactivation status in application, user can the normal use application, so as to improve user experience.
It should be noted that being NFCC priority in the priority orders according to routing mode described in embodiment 5
After minimum routing mode carries out routing inquiry, the energy state current with a data frame and NFC terminal equal is not found
When the target SE matched, whether successively judge in the route entry set of failure state in routing table comprising whole with the data frame and NFC
The matched AID route entry of current energy state, agreement route entry, technology route entry are held, to determine target SE.
In addition to this, NFCC can not also have after carrying out routing inquiry according to any or a variety of routing modes
In the case where finding with the matched target SE of the current energy state of a data frame and NFC terminal, i.e., according to above-described embodiment
Corresponding step determines target SE in 1-4;For example, not found and one after carrying out routing inquiry according to AID routing mode
Data frame and the current matched target SE of energy state of NFC terminal, then judge the routing item collection of failure state in routing table
In conjunction whether comprising with the matched AID route entry of the current energy state of the data frame and NFC terminal, if it is not, then successively pressing
Routing inquiry is carried out according to NFCID2 routing mode, agreement routing mode.
Embodiment three
As shown in fig. 7, be a kind of terminal 7 provided in an embodiment of the present invention, it, should to execute method for routing shown in FIG. 1
Terminal 7 includes:
Acquiring unit 71, for obtaining data frame and the current energy state of the terminal;
First determination unit 72, for determining and the data frame and the end from the safe unit SE of deactivation status
Hold the matched SE of current energy state 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 after activation.
Optionally, first determination unit 71 is specifically used for: when meeting at least one following condition, from deactivation shape
The determining energy state matched SE current with the data frame and the terminal is as target SE in the safe unit SE of state;
The condition includes: that the current energy state of the terminal is low power consumpting state, is not included and the number in the SE of state of activation
According to the matched SE of the current energy state of frame and the terminal.
Optionally, as shown in figure 8, the terminal 7 further include:
Unit 75 is deactivated, for deactivating default SE when the current energy state of the terminal is low power consumpting state;
The default SE refer to it is pre-set, be active when the current energy state of the terminal is low power consumpting state
SE。
Optionally, as shown in figure 8, the terminal 7 further include:
Second determination unit 76, do not include in the safe unit SE for determining state of activation according to the first routing mode with
The data frame and the current matched SE of energy state of the terminal;First routing mode includes: application identifier
AID routing mode, agreement routing mode, technology routing mode;
First determination unit 72 is specifically used for: from the route entry set of failure state it is determining with the data frame and
The matched route entry of the current energy state of the terminal is as target route entry;In the route entry set of the failure state
Route entry be directed toward SE be in deactivation status;The SE that the target route entry is directed toward is as target SE.
Optionally, as shown in figure 8, the terminal 7 further include:
Unit 77 is modified, for the state of the target route entry to be revised as effective status by failure state;
Routing unit 74 is specifically used for, by the data frame after the target route entry of effective status is sent to activation
The target SE.
Optionally, described when default switchover policy includes the mark of the target SE, activate the target SE;It is described pre-
If switchover policy is used to indicate the permission that the terminal has the activation/deactivation state of switching SE, the switchover policy includes
The terminal can control the mark of the SE of switching.
Terminal provided in an embodiment of the present invention can determine current with data frame and terminal from the SE of deactivation status
The matched SE of energy state sends the data frame as target SE, and to target SE.In this way, working as the application that a data frame is directed to
For it is in the SE of deactivation status in application, user can the normal use application, to improve user experience.
Example IV
As shown in figure 9, be a kind of terminal 9 provided in an embodiment of the present invention, it, should to execute method for routing shown in FIG. 1
Terminal 9: memory 91, controller 92 and at least one safe unit SE93;Wherein,
Memory 91 executes following movement for controlling controller 92 for storing one group of code, the code: obtaining data
Frame and the current energy state of the terminal;It is determining current with the data frame and the terminal from the SE of deactivation status
The matched SE of energy state is as target SE;Activate the target SE;The data frame is sent to the mesh after activation
Mark SE.Optionally, controller 92 can be DH or assistant controller (such as NFCC).
Optionally, the controller 92 is specifically used for: when meeting at least one following condition, from the peace of deactivation status
The determining energy state matched SE current with the data frame and the terminal is as target SE in full cell S E;The item
Part includes: that the current energy state of the terminal is low power consumpting state, do not include in the SE of state of activation with the data frame and
The matched SE of the current energy state of the terminal.
Optionally, the controller 92 is also used to, and when the current energy state of the terminal is low power consumpting state, is deactivated
Default SE living;The default SE refer to it is pre-set, the current energy state of the terminal be low power consumpting state when be in
The SE of state of activation.
Optionally, the controller 92 is also used to, and is determined in the safe unit SE of state of activation according to the first routing mode
Not comprising the energy state matched SE current with the data frame and the terminal;First routing mode includes: to answer
With identifier AID routing mode, agreement routing mode, technology routing mode;
The controller 92 is specifically used for: determining and the data frame and the end from the route entry set of failure state
Hold the matched route entry of current energy state as target route entry;Routing in the route entry set of the failure state
The SE that item is directed toward is in deactivation status;The SE that the target route entry is directed toward is as target SE.
Optionally, the controller 92 is also used to, and the state of the target route entry is revised as effectively by failure state
State;
The controller 92 is specifically used for, and the data frame is sent to activation through the target route entry of effective status
The target SE afterwards.
Optionally, the controller 92 is also used to, and when default switchover policy includes the mark of the target SE, activates institute
State target SE;The default switchover policy is used to indicate the permission that the terminal has the activation/deactivation state of switching SE, institute
Stating switchover policy includes the mark that the terminal can control the SE of switching.
Terminal provided in an embodiment of the present invention can determine current with data frame and terminal from the SE of deactivation status
The matched SE of energy state sends the data frame as target SE, and to target SE.In this way, when the application that data frame is directed to is
It is in the SE of deactivation status in application, user can the normal use application, to improve user experience.
Embodiment five
It as shown in Figure 10, is a kind of terminal 10 provided in an embodiment of the present invention, to execute 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, energy state for including in near-field communication type of identifier NFCID2 route entry with
The current energy state matching of the terminal, and include when configuring the instruction of NFCID2 information table, to obtain in first data frame
Take the relationship between the SE NFCID2 value corresponding with the SE of the deactivation status comprising support NFCID2 route entry
NFCID2 information table;The target SE that the NFCID2 information table is used to that the terminal 10 to be made to determine that the second data frame is sent to, institute
It states the second data frame and refers to that after first data frame, first comprising not configuring the number of the instruction of NFCID2 information table
According to frame.
Optionally, the second acquisition unit 10B is specifically used for:
Activate the SE of deactivation status;
The instruction of the configuration NFCID2 information table is sent to the SE after activation;
Receive the response message comprising NFCID2 value that the SE is sent;
NFCID2 information table is generated according to the response message.
Terminal provided in an embodiment of the present invention, comprising supporting deactivating for NFCID2 route entry in the NFCID2 information table of acquisition
Relationship between the SE NFCID2 value corresponding with the SE of state living, so that when terminal receives the second data frame, it can
The target SE that the second data frame is sent to is determined from this SE in deactivation status.In this way, be directed to when the second data frame
Base on practicality it is in the SE in deactivation status in application, user can the normal use application, to improve user experience.
Embodiment six
As shown in figure 11, be a kind of terminal 11 provided in an embodiment of the present invention, comprising: memory 11A, controller 11B and
At least one safe unit SE11C;Wherein,
Memory 11A executes following movement for controlling controller 11B for storing one group of code, the code: obtaining the
One data frame and the current energy state of the terminal;In the energy shape that near-field communication type of identifier NFCID2 route entry includes
The state energy state current with the terminal matches, and the instruction comprising configuration NFCID2 information table in first data frame
When, obtain the relationship between the SE NFCID2 value corresponding with the SE of the deactivation status comprising support NFCID2 route entry
NFCID2 information table;The target SE that the NFCID2 information table is used to that the terminal 11 to be made to determine that the second data frame is sent to, institute
It states the second data frame and refers to that after first data frame, first comprising not configuring the number of the instruction of NFCID2 information table
According to frame.Optionally, controller 11B can be DH or assistant controller (such as NFCC).
Optionally, the controller 11B is specifically used for:
Activate the SE of deactivation status;
The instruction of the configuration NFCID2 information table is sent to the SE after activation;
Receive the response message comprising NFCID2 value that the SE is sent;
NFCID2 information table is generated according to the response message.
Terminal provided in an embodiment of the present invention, comprising supporting deactivating for NFCID2 route entry in the NFCID2 information table of acquisition
Relationship between the SE NFCID2 value corresponding with the SE of state living, so that when terminal receives the second data frame, it can
The target SE that the second data frame is sent to is determined from this SE in deactivation status.In this way, be directed to when the second data frame
Base on practicality it is in the SE in deactivation status in application, user can the normal use application, to improve user experience.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that the independent physics of each unit includes, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the portion of each embodiment the method for the present invention
Step by step.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, ROM (Read-Only Memory, read-only memory), RAM
Various Jie that can store program code such as (Random Access Memory, random access memory), magnetic or disk
Matter.
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
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.
Claims (14)
1. a kind of method for routing, which is characterized in that be applied to terminal, which comprises
Obtain data frame and the current energy state of the terminal;
Determine that the energy state current with the data frame and the terminal is matched from the safe unit SE of deactivation status
SE as target SE;
Activate the target SE;
The data frame is sent to the target SE after activation;
When the current energy state of the terminal is low power consumpting state, the method also includes:
Deactivate default SE;The default SE refer to it is pre-set, the current energy state of the terminal be low-power consumption shape
The SE being active when state.
2. the method according to claim 1, wherein in the safe unit SE from deactivation status determine with
The data frame and the current matched SE of energy state of the terminal are as target SE, comprising:
When meeting at least one following condition, determined and the data frame and described from the safe unit SE of deactivation status
The matched SE of the current energy state of terminal is as target SE;The condition includes: that the current energy state of the terminal is
It is matched not include the energy state current with the data frame and the terminal in the SE of state of activation for low power consumpting state
SE。
3. method according to claim 1 or 2, which is characterized in that in the safe unit SE from deactivation status
Before the determining matched SE of energy state current with the data frame and the terminal is as target SE, the method is also wrapped
It includes:
It determines not including in the safe unit SE of state of activation according to the first routing mode and work as with the data frame and the terminal
The matched SE of preceding energy state;First routing mode includes: application identifier AID routing mode, agreement routing side
Formula, technology routing mode;
Determine that the energy state current with the data frame and the terminal is equal in the safe unit SE from deactivation status
Matched SE is as target SE, comprising:
Determine that the energy state current with the data frame and the terminal is matched from the route entry set of failure state
For route entry as target route entry, the SE that the route entry in the route entry set of the failure state is directed toward, which is in, deactivates shape
State;
The SE that the target route entry is directed toward is as target SE.
4. method according to claim 1 or 2, which is characterized in that it is described the data frame is sent to activation after
Before the target SE, the method also includes:
The state of target route entry is revised as effective status by failure state;
It is described that the data frame is sent to the target SE after activation, comprising:
By the target SE of the data frame after the target route entry of effective status is sent to activation.
5. method according to claim 1 or 2, which is characterized in that the activation target SE, comprising:
When default switchover policy includes the mark of the target SE, the target SE is activated;The default switchover policy is used for
Indicate that the terminal has the permission of activation/deactivation state of switching SE, the switchover policy includes that the terminal can be controlled
Make the mark of the SE of switching.
6. a kind of method for routing, which is characterized in that be applied to terminal, which comprises
Obtain the first data frame and the current energy state of the terminal;
In the energy state and the current energy state of the terminal that near-field communication type of identifier NFCID2 route entry includes
Match, and includes when configuring the instruction of NFCID2 information table, to obtain comprising supporting NFCID2 route entry in first data frame
The NFCID2 information table of relationship between the SE of deactivation status NFCID2 value corresponding with the SE;The NFCID2 information table
Target SE for making the terminal determine that the second data frame is sent to, second data frame refer to first data frame it
Afterwards, first not comprising configure NFCID2 information table instruction data frame.
7. according to the method described in claim 6, it is characterized in that, the deactivation obtained comprising supporting NFCID2 route entry
The NFCID2 information table of relationship between the SE of state NFCID2 value corresponding with the SE, comprising:
Activate the SE of deactivation status;
The instruction of the configuration NFCID2 information table is sent to the SE after activation;
Receive the response message comprising NFCID2 value that the SE is sent;
NFCID2 information table is generated according to the response message.
8. a kind of terminal characterized by comprising
Acquiring unit, for obtaining data frame and the current energy state of the terminal;
First determination unit, for determining current with the data frame and the terminal from the safe unit SE of deactivation status
The matched SE of energy state as target SE;
Unit is activated, for activating the target SE;
Routing unit, for the data frame to be sent to the target SE after activation;
Unit is deactivated, for deactivating default SE when the current energy state of the terminal is low power consumpting state;It is described silent
Recognize SE and refers to SE that is pre-set, being active when the current energy state of the terminal is low power consumpting state.
9. terminal according to claim 8, which is characterized in that
First determination unit is specifically used for: when meeting at least one following condition, from the safe unit of deactivation status
The determining energy state matched SE current with the data frame and the terminal is as target SE in SE;The condition packet
Include: the current energy state of the terminal is low power consumpting state, is not included in the SE of state of activation and the data frame and described
The matched SE of the current energy state of terminal.
10. terminal according to claim 8 or claim 9, which is characterized in that the terminal further include:
Second determination unit, does not include in the safe unit SE for determining state of activation according to the first routing mode and the number
According to the matched SE of the current energy state of frame and the terminal;First routing mode includes: application identifier AID routing
Mode, agreement routing mode, technology routing mode;
First determination unit is specifically used for: determining and the data frame and the end from the route entry set of failure state
Hold the matched route entry of current energy state as target route entry;Routing in the route entry set of the failure state
The SE that item is directed toward is in deactivation status;The SE that the target route entry is directed toward is as target SE.
11. terminal according to claim 8 or claim 9, which is characterized in that the terminal further include:
Unit is modified, for the state of target route entry to be revised as effective status by failure state;
The routing unit is specifically used for, by the data frame after the target route entry of effective status is sent to activation
The target SE.
12. terminal according to claim 8 or claim 9, which is characterized in that
The activation unit is specifically used for, and when default switchover policy includes the mark of the target SE, activates the target SE;
The default switchover policy is used to indicate the permission that the terminal has the activation/deactivation state of switching SE, the switching plan
The mark of the SE of switching can be slightly controlled comprising the terminal.
13. a kind of terminal characterized by comprising
First acquisition unit, for obtaining the first data frame and the current energy state of the terminal;
Second acquisition unit, energy state and the terminal for including in near-field communication type of identifier NFCID2 route entry
Current energy state matching, and include when configuring the instruction of NFCID2 information table, to obtain comprising branch in first data frame
Hold the NFCID2 information table of the relationship between the SE NFCID2 value corresponding with the SE of the deactivation status of NFCID2 route entry;
The target SE that the NFCID2 information table is used to that the terminal to be made to determine that the second data frame is sent to, second data frame refer to
Data frame after first data frame, first instruction not comprising configuration NFCID2 information table.
14. terminal according to claim 13, which is characterized in that the second acquisition unit is specifically used for:
Activate the SE of deactivation status;
The instruction of the configuration NFCID2 information table is sent to the SE after activation;
Receive the response message comprising NFCID2 value that the SE is sent;
NFCID2 information table is generated according to the response message.
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 CN106031239A (en) | 2016-10-12 |
CN106031239B true 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)
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)
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 |
-
2014
- 2014-07-30 WO PCT/CN2014/083349 patent/WO2016015258A1/en active Application Filing
- 2014-07-30 CN CN201480075794.6A patent/CN106031239B/en active Active
Patent Citations (4)
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 |
CN106031239A (en) | 2016-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105637498B (en) | Management method, eUICC, SM platform and the system of eUICC | |
CN106664112B (en) | Data-updating method, device and universal embedded integrated circuit card | |
US9563792B2 (en) | Remote control of powering of electrical appliances | |
WO2006020125A3 (en) | System and method for adaptively controlling a network of distributed devices | |
CN103650567B (en) | Method for configuration node | |
CN102862487B (en) | Battery control system of car | |
CN103716906A (en) | Apparatus and method for controling power in a short-range communication device | |
CN104066135B (en) | A kind of connection switching method and related device based on near-field communication | |
CN108665897A (en) | A kind of electric control method, device, storage medium and server | |
CN107606687A (en) | The apparatus control method and Related product of Internet of Things web area | |
CN107529125B (en) | Bluetooth device communication method and communication device | |
CN105960817B (en) | Communication equipment and the method for configuration of communications device, storage medium | |
CN109392059A (en) | Selection method, configuration method, terminal device and the network side equipment of network | |
CN106031239B (en) | A kind of method for routing and terminal | |
KR102131863B1 (en) | Method of performing transition of operation mode for a routing processor | |
CN107836085B (en) | The method for configuring route and device of non-contact application | |
CN204929346U (en) | A network device and wireless light control system for wireless light control | |
CN104796973B (en) | Radio reception device control method and radio reception device | |
CN106921733A (en) | Method for pushing, device and electronic equipment that cluster is notified | |
JP5500332B2 (en) | IC chip, information processing apparatus, software module control method, information processing system and method, and program | |
CN105978970A (en) | Control mode selection method and device | |
JP2003511971A (en) | Low power wireless network | |
CN108551453A (en) | Status information of equipment adapting method and device | |
EP2277363B1 (en) | Electric stun device | |
CN105783178B (en) | A kind of control method of air-conditioning Centralized Controller |
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 |