CN106411745A - Method and device for modifying contactless frontend chip routing table - Google Patents

Method and device for modifying contactless frontend chip routing table Download PDF

Info

Publication number
CN106411745A
CN106411745A CN201510456758.0A CN201510456758A CN106411745A CN 106411745 A CN106411745 A CN 106411745A CN 201510456758 A CN201510456758 A CN 201510456758A CN 106411745 A CN106411745 A CN 106411745A
Authority
CN
China
Prior art keywords
aid
route
routing
routing iinformation
default
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
CN201510456758.0A
Other languages
Chinese (zh)
Other versions
CN106411745B (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201510456758.0A priority Critical patent/CN106411745B/en
Publication of CN106411745A publication Critical patent/CN106411745A/en
Application granted granted Critical
Publication of CN106411745B publication Critical patent/CN106411745B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery

Abstract

The invention discloses a method for modifying a contactless frontend (CLF) chip routing table. The CLF chip routing table includes a default routing area and an application identifier (AID) routing area. The default routing area includes default AID routing information, and the AID routing area comprises non-default AID routing information. The method comprises the steps of determining whether the CLF chip routing table is in a first state, the first state being used for characterizing that the number of AID routing entries of the AID routing area of the CLF chip routing table is greater than or equal to a preset value; and when the determining result characterizes that the CLF chip routing table is in the first state, modifying the default AID routing information and the non-default AID routing information so that the CLF chip routing table can be in the second state which is used for characterizing that the number of AID routing entries of the AID routing area is less than the preset value. The invention also discloses a device for modifying the CLF chip routing table.

Description

The amending method of contactless front-end chip routing table and device
Technical field
The present invention relates to short-range communication (NFC, Near Field Communication) technology, especially relate to And a kind of amending method of contactless front end (CLF, Contactless Frontend) chip routing table and dress Put.
Background technology
The operating system (OS, Operating System) of ARIXTRA (Android) 4.4 version has increased base newly Snap gauge in main frame intends (HCE, Host-based Card Emulation) function, and HCE function makes terminal Can there is no safety element (SE, Secure Element) (client identification module (SIM, Subscriber Identity Module) card, built-in security chip) in the case of, realize the card simulated operation in mobile payment. Therefore, after Android 4.4 version, the NFC terminal of Android OS has two card simulated environments, I.e. HCE and SIM.
When carrying out contactless communication, the CLF chip of terminal needs the instruction identifying external card reader to be intended for Which card simulated environment, be currently to control route to realize by way of routing table.
But, because the space of the routing table in CLF chip is very limited amount of, it is unfavorable for business development Demand, significantly limit the number of user's downloading card application.
Content of the invention
For solving existing technical problem, the embodiment of the present invention provides a kind of repairing of CLF chip routing table Change method and device.
For reaching above-mentioned purpose, the technical scheme of the embodiment of the present invention is realized in:
Embodiments provide a kind of amending method of CLF chip routing table, described CLF chip road Included by table:Default route region and application identities (AID, Application IDentifier) Routing Area, Described default route region includes giving tacit consent to AID routing iinformation;Described AID Routing Area includes:Non-default AID routing iinformation;Methods described includes:
Judge whether described CLF chip routing table is in first state;Described first state is used for characterizing described The number of the AID route entry of AID Routing Area is more than or equal to preset value;
When judged result characterizes described CLF chip routing table and is in first state, change described acquiescence AID Routing iinformation and non-default AID routing iinformation, so that described CLF chip routing table is in the second state; The number that described second state is used for characterizing the AID route entry of described AID Routing Area is less than preset value.
In such scheme, change described acquiescence AID routing iinformation and non-default AID routing iinformation, so that institute State CLF chip routing table and be in the second state, including:
The route changed in described acquiescence AID routing iinformation is oriented in described non-default AID routing iinformation respectively The corresponding route of AID is pointed to;
Described non-default AID routing iinformation is removed from described AID Routing Area, and will be unmodified front described Route in acquiescence AID routing iinformation is pointed to corresponding all AID routing iinformations and is stored to described AID road By region.
In such scheme, described judge whether described CLF chip routing table is in first state before, described Method also includes:
Monitoring OS routing table, obtains the AID information that different routes are pointed to;
Pointed to according to the route in the acquiescence AID routing iinformation obtaining, distinguish corresponding acquiescence AID route letter It route the AID information of sensing in breath and correspond to the AID routeing sensing in non-default AID routing iinformation Information;
Correspondingly, according to AID information and the correspondence routeing sensing in the corresponding acquiescence AID routing iinformation distinguished Route the AID information of sensing in non-default AID routing iinformation, change described acquiescence AID routing iinformation and Non-default AID routing iinformation.
In such scheme, methods described also includes:
By short-range communication control unit interface (NCI, NFC Controller Interface), obtain described silent Recognize AID routing iinformation.
In such scheme, when distinguishing AID information, methods described also includes:
Pointed to according to the route in the acquiescence AID routing iinformation obtaining, distinguish corresponding acquiescence AID route letter It route the AID quantity of sensing in breath and correspond to the AID routeing sensing in non-default AID routing iinformation Quantity;
Correspondingly, described judge whether described CLF chip routing table is in first state, be:
According to the AID quantity routeing sensing in corresponding non-default AID routing iinformation, judge described CLF core Whether piece routing table is in first state.
The embodiment of the present invention additionally provides a kind of modification device of CLF chip routing table, described CLF chip Routing table includes:Default route region and AID Routing Area, described default route region includes giving tacit consent to AID Routing iinformation;Described AID Routing Area includes:Non-default AID routing iinformation;Described device includes:Sentence Disconnected unit and modification unit;Wherein,
Described judging unit, for judging whether described CLF chip routing table is in first state;Described The number that one state is used for characterizing the AID route entry of described AID Routing Area is more than or equal to preset value;
Described modification unit, for when judged result characterize described CLF chip routing table be in first state when, Change described acquiescence AID routing iinformation and non-default AID routing iinformation, so that described CLF chip route Table is in the second state;Described second state is used for characterizing the AID route entry of described AID Routing Area Number is less than preset value.
In such scheme, described modification unit includes:First modified module and the second modified module;Wherein,
Described first modified module, for change the route in described acquiescence AID routing iinformation be oriented to described In non-default AID routing iinformation, corresponding route of each AID is pointed to;
Described second modified module, for by described non-default AID routing iinformation from described AID Routing Area Remove, and the route in unmodified front described acquiescence AID routing iinformation is pointed to corresponding all AID routes Information Store is to described AID Routing Area.
In such scheme, described device also includes:Monitoring unit and discrimination unit;Wherein,
Described monitoring unit, for monitor operating system OS routing table, obtains the AID that different routes are pointed to Information;
Described discrimination unit, for being pointed to according to the route in the acquiescence AID routing iinformation obtaining, distinguishes It route the AID information of sensing and corresponding non-default AID route letter in corresponding acquiescence AID routing iinformation It route the AID information of sensing in breath;
Correspondingly, described modification unit, refers to for routeing in the corresponding acquiescence AID routing iinformation according to differentiation To AID information and corresponding non-default AID routing iinformation in route the AID information of sensing, modification is described Acquiescence AID routing iinformation and non-default AID routing iinformation.
In such scheme, described monitoring unit, it is additionally operable to by NCI, obtain described acquiescence AID route letter Breath.
In such scheme, described discrimination unit, when being additionally operable to AID information, according to the acquiescence AID road obtaining Pointed to by the route in information, distinguish route in corresponding acquiescence AID routing iinformation sensing AID quantity, And correspond to the AID quantity routeing sensing in non-default AID routing iinformation;
Correspondingly, described judging unit, specifically for:It route according in corresponding non-default AID routing iinformation The AID quantity pointed to, judges whether described CLF chip routing table is in first state.
The amending method of CLF chip routing table provided in an embodiment of the present invention and device, judge CLF chip Whether routing table is in first state;Described first state is used for characterizing described CLF chip routing table AID The number of the AID route entry of Routing Area is more than or equal to preset value;When judged result characterizes described CLF When chip routing table is in first state, AID routing iinformation and non-default AID routing iinformation are given tacit consent in modification, So that described CLF chip routing table is in the second state;Described second state is used for characterizing described AID road Preset value is less than by the number of the AID route entry in region, so, by modification acquiescence AID routing iinformation And non-default AID routing iinformation, make described CLF chip routing table be in the mode of the second state, permissible Solve the problems, such as CLF routing table insufficient space so that storable AID route entry in CLF routing table Increase so that user can download more card applications, meet business development demand.Improve Consumer's Experience.
Brief description
In accompanying drawing (it is not necessarily drawn to scale), similar reference can be in different views Described in similar part.The similar reference numerals with different letter suffix can represent the difference of similar component Example.Accompanying drawing generally shows each embodiment discussed herein by way of example and not limitation.
Fig. 1 is CLF router-table structure schematic diagram in correlation technique;
Fig. 2 be in correlation technique external card reader and Android terminal interact schematic diagram;
Fig. 3 is the amending method schematic flow sheet of the embodiment of the present invention one CLF chip routing table;
Fig. 4 is the method flow schematic diagram that the embodiment of the present invention two changes CLF chip routing table;
Fig. 5 is the first CLF router-table structure schematic diagram of the embodiment of the present invention two;
Fig. 6 is the embodiment of the present invention two second CLF router-table structure schematic diagram;
Fig. 7 is the third CLF router-table structure schematic diagram of the embodiment of the present invention two;
Fig. 8 is the 4th kind of CLF router-table structure schematic diagram of the embodiment of the present invention 2;
The modification apparatus structure schematic diagram of Fig. 9 embodiment of the present invention three CLF chip routing table.
Specific embodiment
Below in conjunction with the accompanying drawings and embodiment is described in further detail to the present invention again.
Before the description embodiment of the present invention, first learn about NFC terminal be how with external card reader (reader) (NFC reader) is communicated.
Two routing tables are had in NFC terminal:Routing table (hereinafter referred to as Android in Android OS Routing table) and CLF chip in routing table (hereinafter referred to as CLF routing table).Android route Table stores all of routing iinformation;And CLF routing table storage default route and non-default AID route, such as Shown in Fig. 1.
Android routing table is produced by during Android installation kit (apk) program registration, needs sound during registration The storage location (HOST, OFFHOST) of this application bright, AID and application type (Payment, Other). CLF routing table is according to synchronization rules, is formed by the decentralization of Android routing table.Wherein, synchronization rules For:Only store non-silent AID and recognize route, payment (Payment) class of activation, all of other (other) The AID routing iinformation of class application.
As shown in Fig. 2 when carrying out contactless communication, after receiving the instruction of NFC reader, NFC is eventually According to the routing table of itself, carry out decision instruction is the CLF chip (NFC controller (controller)) at end Be sent to which card simulated environment.
But, there is certain defect in above-mentioned route test:The space of CLF routing table is limited, at present It is 160Bytes mostly, therefore CLF routing table at most can only store 9 AID routing rules.Concrete calculation Method is:(160 6 (default route))/16=9.6.This is very unfavorable for business development, greatly Limit user's downloading card application number.And, allow the probability of CLF chip dilatation less at present, Time cycle is longer.
Based on this, in various embodiments of the present invention:Judge whether CLF chip routing table is in the first shape State;Described first state is used for characterizing the AID route bar of described CLF chip routing table AID Routing Area Purpose number is more than or equal to preset value;It is in first state when judged result characterizes described CLF chip routing table When, AID routing iinformation and non-default AID routing iinformation are given tacit consent in modification, so that described CLF chip route Table is in the second state;Described second state is used for characterizing the AID route entry of described AID Routing Area Number is less than preset value.
Embodiment one
The amending method of the present embodiment CLF chip routing table, as shown in figure 3, the method comprises the following steps:
Step 301:Judge whether described CLF chip routing table is in first state;
Here, described first state is used for characterizing the AID of AID Routing Area in described CLF chip routing table The number of route entry is more than or equal to preset value.
Described CLF chip routing table refers to:Routing table in CLF chip.
As shown in figure 1, described CLF chip routing table includes:Default route region and AID Routing Area, Described default route region includes giving tacit consent to AID routing iinformation;Also include simultaneously:It is related to the acquiescence of file type Route (Default ISO-DEP route) information and the default route (Default being related to the type of skill Technology route) information;Described AID Routing Area includes:Non-default AID routing iinformation.
Described acquiescence AID routing iinformation can include:Route is pointed to;Correspondingly, described non-default AID road Can be included by information:AID information and corresponding route are pointed to.
Wherein, described route points to the storage location referring to corresponding application, typically have main frame (HOST) and Two kinds of storage locations of non-host (OFFHOST).
During practical application, before executing this step, the method can also include:
Monitoring OS routing table, obtains the AID information that different routes are pointed to;
Pointed to according to the route in the acquiescence AID routing iinformation obtaining, distinguish corresponding acquiescence AID route letter It route the AID information of sensing in breath and correspond to the AID routeing sensing in non-default AID routing iinformation Information.
Wherein, described OS routing table refers to:Routing table in OS, typically, described CLF chip route AID routing iinformation in table, is according under synchronization rules by the AID routing iinformation in described OS routing table Square one-tenth.It is assumed that OS is Android for giving an example, then the synchronization rules according to google definition: Point to the AID information meeting of different applications from route in acquiescence AID routing iinformation in CLF chip routing table It is stored in the AID Routing Area in CLF chip routing table, with acquiescence AID road in CLF chip routing table AID in CLF chip routing table is not stored in by the AID information that route in information points to identical application Routing Area.
Described preset value can be arranged according to the capacity of described CLF chip.It is assumed that institute for giving an example The capacity stating CLF chip can only store 9 AID routing rules, can only store 9 non-default AID Routing iinformation, at this point it is possible to select close to 9 value as preset value, described preset value such as can be set For 7 or 8.
In one embodiment, the method can also include:
By NCI, obtain described acquiescence AID routing iinformation.
Wherein, NCI is the standard interface that NFC protocol standard specifies.
When distinguishing AID information, methods described also includes:
Pointed to according to the route in the acquiescence AID routing iinformation obtaining, distinguish corresponding acquiescence AID route letter It route the AID quantity of sensing in breath and correspond to the AID routeing sensing in non-default AID routing iinformation Quantity;
Correspondingly, described judge whether described CLF chip routing table is in first state, be:
According to the AID quantity routeing sensing in corresponding non-default AID routing iinformation, judge described CLF core Whether piece routing table is in first state.
When judged result characterizes described CLF chip routing table and is in first state, described CLF core is described The AID route entry of AID Routing Area described in piece routing table is relatively more, needs to described CLF chip Routing table is modified.
When the judged result described CLF chip routing table of sign is not at first state, described CLF core is described The AID route entry of AID Routing Area described in piece routing table fewer or moderate it is not necessary to described CLF chip routing table is modified.
Step 302:When judged result characterizes described CLF chip routing table and is in first state, change institute State acquiescence AID routing iinformation and non-default AID routing iinformation, so that described CLF chip routing table is in Second state.
Here, due to the AID routing iinformation in described CLF chip routing table, it is by described OS routing table In AID routing iinformation formed below according to synchronization rules;And, the road in described AID routing iinformation Referred to the storage location of corresponding application by sensing, and typically only have two kinds of HOST and OFFHOST and deposit Storage space is put, meanwhile, based on the synchronization rules of google definition, so the route in acquiescence AID routing iinformation Point to is not HOST it is simply that OFFHOST;In addition, storing to HOST and storing to OFFHOST Card application quantity be relatively contrary, when store to HOST card application number many when, then store Number to the card application of OFFHOST will be fewer, and HOST hardly blocks the individual of application Number and all very many situation of number of the card application storing to OFFHOST.
Based on this, being implemented as of this step:
The route changed in described acquiescence AID routing iinformation is oriented in described non-default AID routing iinformation respectively The corresponding route of AID is pointed to;
Described non-default AID routing iinformation is removed from described AID Routing Area, and will be unmodified front described Route in acquiescence AID routing iinformation is pointed to corresponding all AID routing iinformations and is stored to described AID road By region.
Described second state is used for characterizing the number of the AID route entry of described AID Routing Area less than default Value.
When having distinguished the AID information routeing sensing in corresponding acquiescence AID routing iinformation and correspondence is non-silent Recognize when routeing the AID information of sensing in AID routing iinformation, correspondingly, according to the corresponding acquiescence AID distinguishing It route the AID information of sensing in routing iinformation and correspond to the AID routeing sensing in non-default AID routing iinformation Information, changes described acquiescence AID routing iinformation and non-default AID routing iinformation.
More specifically, pointing to according to the route in the acquiescence AID routing iinformation obtaining, change described acquiescence Route in AID routing iinformation is oriented to the corresponding route of each AID in described non-default AID routing iinformation and refers to To;And according to routeing the AID information of sensing in the corresponding acquiescence AID routing iinformation distinguished, before unmodified Route in described acquiescence AID routing iinformation is pointed to corresponding all AID routing iinformations and is stored to described AID Routing Area.
The amending method of CLF chip routing table provided in an embodiment of the present invention, judges CLF chip routing table Whether it is in first state;Described first state is used for characterizing described CLF chip routing table AID Route Area The number of the AID route entry in domain is more than or equal to preset value;When judged result characterizes described CLF chip road When being in first state by table, AID routing iinformation and non-default AID routing iinformation are given tacit consent in modification, so that institute State CLF chip routing table and be in the second state;Described second state is used for characterizing described AID Routing Area The number of AID route entry be less than preset value, so, by modification acquiescence AID routing iinformation and non-silent Recognize AID routing iinformation, make described CLF chip routing table be in the mode of the second state, CLF can be solved The problem of routing table insufficient space so that in CLF routing table storable AID route entry increase, make Obtain user and can download more card applications, meet business development demand.Improve Consumer's Experience.
In addition, the route changed in described acquiescence AID routing iinformation is oriented to described non-default AID route letter In breath, corresponding route of each AID is pointed to;By described non-default AID routing iinformation from described AID Route Area Domain removes, and the route in unmodified front described acquiescence AID routing iinformation is pointed to corresponding all AID roads By information Store to described AID Routing Area.Because general card applies corresponding storage location to only have HOST Or OFFHOST, therefore, each card application can be explicitly indicated that out using this amended storage mode Storage location so that in CLF routing table storable AID route entry increase, so that user More card applications can be downloaded, meet business development demand.Improve Consumer's Experience.
Embodiment two
How the present embodiment, on the basis of embodiment one, so that OS is as Android as a example, describes in detail AID routing iinformation in modification CLF chip routing table.
In the present embodiment, CLF chip routing table includes:Default route region and AID Routing Area, institute State default route region to include giving tacit consent to AID routing iinformation;Also include simultaneously:It is related to the acquiescence road of file type By (Default ISO-DEP route) information and default route (the Default technology that is related to the type of skill Route) information;Described AID Routing Area includes:Non-default AID routing iinformation.
Wherein, acquiescence AID routing iinformation includes:Route is pointed to;Non-default AID routing iinformation includes: AID information and corresponding route are pointed to.
The method that the present embodiment changes CLF chip routing table, as shown in figure 4, comprise the following steps:
Step 401:Real-time monitoring Android routing table;
Here, in the terminal, newly-increased Android monitoring program, by Android monitoring program real-time monitoring Android routing table.
The content of monitoring includes:It is registered to the AID information of the application of HOST and quantity, be registered to The AID information of the application of OFFHOST and quantity.
Wherein, it is registered to HOST to refer to:Application memory is to HOST;Correspondingly, it is registered to OFFHOST Refer to:Application memory is to OFFHOST.
Step 402:Android monitoring program passes through NCI, reads and gives tacit consent to AID in CLF chip routing table Route in routing iinformation is pointed to;
Here, the synchronization rules according to google definition:With acquiescence AID route in CLF chip routing table In information, the AID information of the different applications of route sensing can be stored in CLF chip routing table Zhong AID road Point to the AID of identical application by route in acquiescence AID routing iinformation in region, with CLF chip routing table Information is not stored in the AID Routing Area in CLF chip routing table.
Assume that the route in acquiescence AID routing iinformation is oriented to HCE, i.e. HOST.Wherein, Google OS after regulation Android 4.4 version should observe this rule, and that is, the route in AID routing iinformation is pointed to For HCE.
Step 403:Judge whether the number of the AID route entry of AID Routing Area has reached in storage Limit value, if it is, execution step 404, otherwise, execution step 405;
Here, the corresponding AID route entry of each application, so according to being registered to of detecting The quantity of the application of OFFHOST, you can whether judge the number of AID route entry of AID Routing Area Reach storage cap value.
When the number of the AID route entry of AID Routing Area has reached storage cap value, illustrate that needs are right AID routing iinformation in CLF routing table is modified.AID route entry when AID Routing Area When number is also not up to storage cap value, illustrate that the AID routing iinformation in CLF routing table does not need to change.
Step 404:ID routing iinformation is modified;
Specifically, pointed to according to the route in the acquiescence AID routing iinformation reading, modification acquiescence AID route Route in information is oriented to OFFHOST;
By non-default AID routing iinformation, (route is oriented to AID information and the correspondence of the application of OFFHOST Route point to) remove from described AID Routing Area, and route is oriented to HOST (storing to HOST) Application AID information Store to AID Routing Area, thus formed comprising AID information and corresponding route The new non-default AID routing iinformation pointing to.
Step 405:ID routing iinformation is not modified.
For step 401~405, for giving an example, at the beginning, 5 HCE applications of user installation, Now, Android monitoring program monitors to be registered to the AID information of 5 applications of HOST.Correspondingly, The CLF chip routing table being formed is as shown in Figure 5.In CLF chip routing table, default route region is deposited 3 default routes comprising to give tacit consent to AID route are stored up, AID Routing Area does not have any non-default AID road By information, that is, AID Routing Area is sky.
Hereafter, user installs 5 SIM applications again, and now, Android monitoring program monitors to be registered to The AID information of 5 applications of HOST, also monitors to be registered to 5 applications of OFFHOST simultaneously AID information;Correspondingly, the CLF routing table of formation is as shown in Figure 6.In CLF chip routing table, Default route region stores 3 default routes comprising to give tacit consent to AID route, and AID Routing Area stores Article 5, the non-default AID routing iinformation (AID information and corresponding route are pointed to) of AID route.
Then, user installs 2 SIM applications again, and now, Android monitoring program monitors to be registered to The AID information of 5 applications of HOST, also monitors to be registered to 7 applications of OFFHOST simultaneously AID information;Correspondingly, the CLF routing table of formation is as shown in Figure 7.In CLF chip routing table, Default route region stores 3 default routes comprising to give tacit consent to AID route, and AID Routing Area stores Article 7, the non-default AID routing iinformation (AID information and corresponding route are pointed to) of AID route.
Android monitoring program finds that the number (7) of the AID route entry of AID Routing Area has reached To storage cap value, so the route in modification acquiescence AID routing iinformation is oriented to OFFHOST;Meanwhile, By the non-default AID routing iinformation (AID information and corresponding route are pointed to) of 7 AID routes from described AID Routing Area removes, and 5 AID routing iinformations that route is oriented to HOST store to AID Routing Area, thus form CLF routing table as shown in Figure 8.
From the above description, it will be seen that Android monitoring program real-time monitoring Android routing table, when When finding that the number of the AID route entry of AID Routing Area has reached storage cap value, Android supervises The route that ranging sequence can be changed in the acquiescence AID routing iinformation in CLF chip routing table is pointed to, and is up to The non-default AID routing iinformation of storage cap value removes the AID Routing Area of CLF routing table, and by number Measure less storing and store AID Routing Area to the AID corresponding AID routing iinformation of HOST, from And achieve on the premise of not to CLF chip dilatation, solve CLF chip routing table insufficient space Problem, so that user can download more card applications, meets business development demand.Improve user Experience.
And, the scheme of the embodiment of the present invention, participates in without user, does not affect Consumer's Experience.
Embodiment three
Method for realizing the embodiment of the present invention, the present embodiment provides a kind of modification dress of CLF chip routing table Put, as shown in figure 9, this device includes:Judging unit 91 and modification unit 92;Wherein,
Described judging unit 91, for judging whether described CLF chip routing table is in first state;Described First state be used for characterizing the AID route entry of AID Routing Area in described CLF chip routing table Number is more than or equal to preset value;
Described modification unit 92, for being in first state when judged result characterizes described CLF chip routing table When, change described acquiescence AID routing iinformation and non-default AID routing iinformation, so that described CLF chip Routing table is in the second state;Described second state is used for characterizing the AID route bar of described AID Routing Area Purpose number is less than preset value.
Wherein, described CLF chip routing table refers to:Routing table in CLF chip.
As shown in figure 1, described CLF chip routing table includes:Default route region and AID Routing Area, Described default route region includes giving tacit consent to AID routing iinformation;Also include simultaneously:It is related to the acquiescence of file type Route (Default ISO-DEP route) information and the default route (Default being related to the type of skill Technology route) information;Described AID Routing Area includes:Non-default AID routing iinformation.
Described acquiescence AID routing iinformation can include:Route is pointed to;Correspondingly, described non-default AID road Can be included by information:AID information and corresponding route are pointed to.
Wherein, described route points to the storage location referring to corresponding application, typically has HOST and OFFHOST Two kinds of storage locations.
During practical application, this device can also include:Monitoring unit and discrimination unit;Wherein,
Described monitoring unit, for monitor operating system OS routing table, obtains the AID that different routes are pointed to Information;
Described discrimination unit, for being pointed to according to the route in the acquiescence AID routing iinformation obtaining, distinguishes It route the AID information of sensing and corresponding non-default AID route letter in corresponding acquiescence AID routing iinformation It route the AID information of sensing in breath.
Wherein, described OS routing table refers to:Routing table in OS, typically, described CLF chip route AID routing iinformation in table, is according under synchronization rules by the AID routing iinformation in described OS routing table Square one-tenth.It is assumed that OS is Android for giving an example, then the synchronization rules according to google definition: Point to the AID information meeting of different applications from route in acquiescence AID routing iinformation in CLF chip routing table It is stored in the AID Routing Area in CLF chip routing table, with acquiescence AID road in CLF chip routing table AID in CLF chip routing table is not stored in by the AID information that route in information points to identical application Routing Area.
Described preset value can be arranged according to the capacity of described CLF chip.It is assumed that institute for giving an example The capacity stating CLF chip can only store 9 AID routing rules, can only store 9 non-default AID Routing iinformation, at this point it is possible to select close to 9 value as preset value, described preset value such as can be set For 7 or 8.
In one embodiment, described monitoring unit, is additionally operable to by NCI, obtains described acquiescence AID route Information.
Wherein, NCI is the standard interface that NFC protocol standard specifies.
Described discrimination unit, when being additionally operable to AID information, according to the road in the acquiescence AID routing iinformation obtaining By pointing to, distinguish the AID quantity routeing sensing in corresponding acquiescence AID routing iinformation and correspondence is non-silent Recognize the AID quantity routeing sensing in AID routing iinformation;
Correspondingly, described judging unit 91, specifically for:According to corresponding non-default AID routing iinformation Road By the AID quantity pointed to, judge whether described CLF chip routing table is in first state.
When judged result characterizes described CLF chip routing table and is in first state, described CLF core is described The AID route entry of AID Routing Area described in piece routing table is relatively more, needs to described CLF chip Routing table is modified.
When the judged result described CLF chip routing table of sign is not at first state, described CLF core is described The AID route entry of AID Routing Area described in piece routing table fewer or moderate it is not necessary to described CLF chip routing table is modified.
Due to the AID routing iinformation in described CLF chip routing table, it is by described OS routing table AID routing iinformation is formed below according to synchronization rules;And, the route in described AID routing iinformation refers to To the storage location referring to corresponding application, and typically only have two kinds of storage positions of HOST and OFFHOST Put, meanwhile, based on the synchronization rules of google definition, so the route in acquiescence AID routing iinformation is pointed to It is not HOST it is simply that OFFHOST;In addition, storing to HOST and storing to the card of OFFHOST Application quantity be relatively contrary, when store to HOST card application number many when, then store to The number of the card application of OFFHOST will be fewer, the number of the card application of HOST hardly And all very many situation of number of the card application storing to OFFHOST.
Based on this, described modification unit 92 can include:First modified module and the second modified module;Wherein,
Described first modified module, for change the route in described acquiescence AID routing iinformation be oriented to described In non-default AID routing iinformation, corresponding route of each AID is pointed to;
Described second modified module, for by described non-default AID routing iinformation from described AID Routing Area Remove, and the route in unmodified front described acquiescence AID routing iinformation is pointed to corresponding all AID routes Information Store is to described AID Routing Area.
When described discrimination unit distinguished route in corresponding acquiescence AID routing iinformation sensing AID information, And when corresponding to the AID information routeing sensing in non-default AID routing iinformation, correspondingly, described amendment Unit 92 route the AID information of sensing and corresponding non-default according in the corresponding acquiescence AID routing iinformation distinguished It route the AID information of sensing in AID routing iinformation, change described acquiescence AID routing iinformation and non-default AID routing iinformation.
More specifically, described first modified module points to according to the route in the acquiescence AID routing iinformation obtaining, The route changed in described acquiescence AID routing iinformation is oriented to each AID in described non-default AID routing iinformation Corresponding route is pointed to;Described second modified module route according in the corresponding acquiescence AID routing iinformation distinguished The AID information pointed to, the route in unmodified front described acquiescence AID routing iinformation is pointed to corresponding all AID routing iinformation stores to described AID Routing Area.
During practical application, described judging unit 91, modification unit 92, monitoring unit, discrimination unit, first Modified module, the second modified module can be by the central processing units in the modification device of CLF chip routing table (CPU, Central Processing Unit), microprocessor (MCU, Micro Control Unit), numeral Signal processor (DSP, Digital Signal Processor) or programmable logic array (FPGA, Field - Programmable Gate Array) realize.
The modification device of CLF chip routing table provided in an embodiment of the present invention, described judging unit 91 judges Whether CLF chip routing table is in first state;Described first state is used for characterizing described CLF chip route The number of the AID route entry of Table A ID Routing Area is more than or equal to preset value;Described in characterizing when judged result When CLF chip routing table is in first state, described modification unit 92 modification acquiescence AID routing iinformation and Non-default AID routing iinformation, so that described CLF chip routing table is in the second state;Described second shape The number that state is used for characterizing the AID route entry of described AID Routing Area is less than preset value, so, passes through Modification acquiescence AID routing iinformation and non-default AID routing iinformation, make described CLF chip routing table be in The mode of the second state, can solve the problems, such as CLF routing table insufficient space so that in CLF routing table Storable AID route entry increases so that user can download more card applications, meets business development need Ask.Improve Consumer's Experience.
In addition, described first modified module change described acquiescence AID routing iinformation in route be oriented to described in In non-default AID routing iinformation, corresponding route of each AID is pointed to;Described second modified module will be described non-silent Recognize AID routing iinformation to remove from described AID Routing Area, and unmodified front described acquiescence AID is route Route in information is pointed to corresponding all AID routing iinformations and is stored to described AID Routing Area.Due to one As card apply corresponding storage location only have HOST or OFFHOST, therefore, using this amended Storage mode can explicitly indicate that out the storage location of each card application so that storable in CLF routing table AID route entry increases, so that user can download more card applications, meets business development demand. Improve Consumer's Experience.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can using hardware embodiment, software implementation or combine software and The form of the embodiment of hardware aspect.And, the present invention can adopt and wherein include calculating one or more Computer-usable storage medium (including but not limited to disk memory and the optical storage of machine usable program code Device etc.) the upper computer program implemented form.
The present invention is with reference to method according to embodiments of the present invention, equipment (system) and computer program Flow chart and/or block diagram describing.It should be understood that can be by computer program instructions flowchart and/or side Each flow process in block diagram and/or the knot of the flow process in square frame and flow chart and/or block diagram and/or square frame Close.Can provide these computer program instructions to general purpose computer, special-purpose computer, Embedded Processor or The processor of other programmable data processing device with produce a machine so that by computer or other can The instruction of the computing device of programming data processing equipment produces for realizing in one flow process or multiple of flow chart The device of the function of specifying in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device So that being stored in this computer-readable memory in the computer-readable memory working in a specific way Instruction produces the manufacture including command device, and this command device is realized in one flow process of flow chart or multiple stream The function of specifying in journey and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Obtain and series of operation steps is executed on computer or other programmable devices to produce computer implemented place Reason, thus the instruction of execution is provided for realizing in flow chart one on computer or other programmable devices The step of the function of specifying in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
The above, only presently preferred embodiments of the present invention, it is not intended to limit the protection model of the present invention Enclose.

Claims (10)

1. a kind of amending method of contactless front end CLF chip routing table is it is characterised in that described CLF Chip routing table includes:Default route region and application identities AID Routing Area, described default route region Including acquiescence AID routing iinformation;Described AID Routing Area includes:Non-default AID routing iinformation;Institute The method of stating includes:
Judge whether described CLF chip routing table is in first state;Described first state is used for characterizing described The number of the AID route entry of AID Routing Area is more than or equal to preset value;
When judged result characterizes described CLF chip routing table and is in first state, change described acquiescence AID Routing iinformation and non-default AID routing iinformation, so that described CLF chip routing table is in the second state; The number that described second state is used for characterizing the AID route entry of described AID Routing Area is less than preset value.
2. method according to claim 1 is it is characterised in that modification described acquiescence AID route is believed Breath and non-default AID routing iinformation, so that described CLF chip routing table is in the second state, including:
The route changed in described acquiescence AID routing iinformation is oriented in described non-default AID routing iinformation respectively The corresponding route of AID is pointed to;
Described non-default AID routing iinformation is removed from described AID Routing Area, and will be unmodified front described Route in acquiescence AID routing iinformation is pointed to corresponding all AID routing iinformations and is stored to described AID road By region.
3. method according to claim 1 and 2 is it is characterised in that described judgement described CLF core Before whether piece routing table is in first state, methods described also includes:
Monitor operating system OS routing table, obtains the AID information that different routes are pointed to;
Pointed to according to the route in the acquiescence AID routing iinformation obtaining, distinguish corresponding acquiescence AID route letter It route the AID information of sensing in breath and correspond to the AID routeing sensing in non-default AID routing iinformation Information;
Correspondingly, according to AID information and the correspondence routeing sensing in the corresponding acquiescence AID routing iinformation distinguished Route the AID information of sensing in non-default AID routing iinformation, change described acquiescence AID routing iinformation and Non-default AID routing iinformation.
4. method according to claim 3 is it is characterised in that methods described also includes:
By short-range communication control unit interface NCI, obtain described acquiescence AID routing iinformation.
5. method according to claim 3 it is characterised in that distinguish AID information when, described side Method also includes:
Pointed to according to the route in the acquiescence AID routing iinformation obtaining, distinguish corresponding acquiescence AID route letter It route the AID quantity of sensing in breath and correspond to the AID routeing sensing in non-default AID routing iinformation Quantity;
Correspondingly, described judge whether described CLF chip routing table is in first state, be:
According to the AID quantity routeing sensing in corresponding non-default AID routing iinformation, judge described CLF core Whether piece routing table is in first state.
6. a kind of modification device of CLF chip routing table is it is characterised in that described CLF chip routing table Including:Default route region and AID Routing Area, described default route region includes giving tacit consent to AID route letter Breath;Described AID Routing Area includes:Non-default AID routing iinformation;Described device includes:Judging unit And modification unit;Wherein,
Described judging unit, for judging whether described CLF chip routing table is in first state;Described The number that one state is used for characterizing the AID route entry of described AID Routing Area is more than or equal to preset value;
Described modification unit, for when judged result characterize described CLF chip routing table be in first state when, Change described acquiescence AID routing iinformation and non-default AID routing iinformation, so that described CLF chip route Table is in the second state;Described second state is used for characterizing the AID route entry of described AID Routing Area Number is less than preset value.
7. device according to claim 6 is it is characterised in that described modification unit includes:First repaiies Change module and the second modified module;Wherein,
Described first modified module, for change the route in described acquiescence AID routing iinformation be oriented to described In non-default AID routing iinformation, corresponding route of each AID is pointed to;
Described second modified module, for by described non-default AID routing iinformation from described AID Routing Area Remove, and the route in unmodified front described acquiescence AID routing iinformation is pointed to corresponding all AID routes Information Store is to described AID Routing Area.
8. the device according to claim 6 or 7 is it is characterised in that described device also includes:Monitor Unit and discrimination unit;Wherein,
Described monitoring unit, for monitor operating system OS routing table, obtains the AID that different routes are pointed to Information;
Described discrimination unit, for being pointed to according to the route in the acquiescence AID routing iinformation obtaining, distinguishes It route the AID information of sensing and corresponding non-default AID route letter in corresponding acquiescence AID routing iinformation It route the AID information of sensing in breath;
Correspondingly, described modification unit, refers to for routeing in the corresponding acquiescence AID routing iinformation according to differentiation To AID information and corresponding non-default AID routing iinformation in route the AID information of sensing, modification is described Acquiescence AID routing iinformation and non-default AID routing iinformation.
9. device according to claim 8, it is characterised in that described monitoring unit, is additionally operable to pass through NCI, obtains described acquiescence AID routing iinformation.
10. device according to claim 8, it is characterised in that described discrimination unit, is additionally operable to AID During information, pointed to according to the route in the acquiescence AID routing iinformation obtaining, distinguish corresponding acquiescence AID road Pointed to by route in the AID quantity routeing sensing in information and corresponding non-default AID routing iinformation AID quantity;
Correspondingly, described judging unit, specifically for:It route according in corresponding non-default AID routing iinformation The AID quantity pointed to, judges whether described CLF chip routing table is in first state.
CN201510456758.0A 2015-07-29 2015-07-29 Method and device for modifying non-contact front-end chip routing table Active CN106411745B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510456758.0A CN106411745B (en) 2015-07-29 2015-07-29 Method and device for modifying non-contact front-end chip routing table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510456758.0A CN106411745B (en) 2015-07-29 2015-07-29 Method and device for modifying non-contact front-end chip routing table

Publications (2)

Publication Number Publication Date
CN106411745A true CN106411745A (en) 2017-02-15
CN106411745B CN106411745B (en) 2020-01-14

Family

ID=58008629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510456758.0A Active CN106411745B (en) 2015-07-29 2015-07-29 Method and device for modifying non-contact front-end chip routing table

Country Status (1)

Country Link
CN (1) CN106411745B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108551426A (en) * 2018-03-03 2018-09-18 惠州Tcl移动通信有限公司 route registration processing method, mobile terminal and computer readable storage medium
CN110191054A (en) * 2019-05-06 2019-08-30 Oppo广东移动通信有限公司 Route processing method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103222291A (en) * 2010-11-17 2013-07-24 捷讯研究有限公司 Application routing configuration for NFC controller supporting multiple NFC execution environments NFCEE
CN104137576A (en) * 2012-02-28 2014-11-05 高通股份有限公司 Methods and apparatuses for reducing the nonvolatile memory used to support application identifier routing in an nfc controller
US20150033289A1 (en) * 2013-07-24 2015-01-29 Cellco Partnership D/B/A Verizon Wireless Adaptive and context based nfc access control filtering
CN104580159A (en) * 2014-12-12 2015-04-29 西安酷派软件科技有限公司 Method and device for event notice as well as terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103222291A (en) * 2010-11-17 2013-07-24 捷讯研究有限公司 Application routing configuration for NFC controller supporting multiple NFC execution environments NFCEE
CN104137576A (en) * 2012-02-28 2014-11-05 高通股份有限公司 Methods and apparatuses for reducing the nonvolatile memory used to support application identifier routing in an nfc controller
US20150033289A1 (en) * 2013-07-24 2015-01-29 Cellco Partnership D/B/A Verizon Wireless Adaptive and context based nfc access control filtering
CN104580159A (en) * 2014-12-12 2015-04-29 西安酷派软件科技有限公司 Method and device for event notice as well as terminal device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹懿军,王颖,洪一帆,张雪颖: ""基于普通UIM卡的HCE应用解决方案"", 《计算机光盘软件与应用》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108551426A (en) * 2018-03-03 2018-09-18 惠州Tcl移动通信有限公司 route registration processing method, mobile terminal and computer readable storage medium
CN108551426B (en) * 2018-03-03 2021-03-02 惠州Tcl移动通信有限公司 Route registration processing method, mobile terminal and computer readable storage medium
CN110191054A (en) * 2019-05-06 2019-08-30 Oppo广东移动通信有限公司 Route processing method and device, storage medium and electronic equipment
CN110191054B (en) * 2019-05-06 2021-07-13 Oppo广东移动通信有限公司 Route processing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN106411745B (en) 2020-01-14

Similar Documents

Publication Publication Date Title
US10542102B2 (en) Server device
CN107729083B (en) Method for loading driver and embedded device
CN104866542B (en) A kind of POI data verification method and device
CN104954353B (en) The method of calibration and device of APK file bag
CN104915224B (en) A kind of processing method and processing device of affiliate application
CN104216998B (en) A kind of method, apparatus and terminal device for recommending application program
CN109726067B (en) Process monitoring method and client device
CN106407768B (en) A kind of determination of device-fingerprint, the method and apparatus that target device is identified
CN103902729A (en) Method and device for recommending application program
US20200309558A1 (en) Augmented reality guidance interface
CN106779677A (en) A kind of method of payment and its device, electronic equipment and payment system
CN107896249B (en) Cross-network area data access method, device, equipment and storage medium
WO2020019485A1 (en) Simulator identification method, identification device, and computer readable medium
CN108241561A (en) A kind of generation method, server and the storage medium of terminal detection model
CN104657634A (en) Method and device for identifying pirate application
CN106851779A (en) A kind of method and mobile terminal for recognizing access point and focus
CN107729750A (en) With reference to configuration information and the Android simulator detection method and device of ardware feature
CN109688183A (en) Group control device recognition methods, device, equipment and computer readable storage medium
CN106411745A (en) Method and device for modifying contactless frontend chip routing table
CN106407118B (en) A kind of method and device of test user terminal
CN106777036A (en) A kind of data rendering method and data render system
US9978056B2 (en) Smart card having multiple payment instruments
CN110011964B (en) Webpage environment detection method and device
CN105162799A (en) Method for checking whether client is legal mobile terminal or not and server
CN105160247B (en) A method of identification browser is held as a hostage

Legal Events

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