CN106599724A - Method and system for having access to sector data of smart card - Google Patents

Method and system for having access to sector data of smart card Download PDF

Info

Publication number
CN106599724A
CN106599724A CN201611188148.8A CN201611188148A CN106599724A CN 106599724 A CN106599724 A CN 106599724A CN 201611188148 A CN201611188148 A CN 201611188148A CN 106599724 A CN106599724 A CN 106599724A
Authority
CN
China
Prior art keywords
data
sector
smart card
key
modification
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
CN201611188148.8A
Other languages
Chinese (zh)
Other versions
CN106599724B (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.)
Beijing Watchdata Co ltd
Beijing WatchSmart Technologies Co Ltd
Original Assignee
Beijing WatchSmart Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing WatchSmart Technologies Co Ltd filed Critical Beijing WatchSmart Technologies Co Ltd
Priority to CN201611188148.8A priority Critical patent/CN106599724B/en
Publication of CN106599724A publication Critical patent/CN106599724A/en
Application granted granted Critical
Publication of CN106599724B publication Critical patent/CN106599724B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a system for having access to sector data of a smart card, a first device and a second device. The method comprises the steps that when a modification request for first sector data of the smart card of terminal equipment is received, a first modification interface is displayed; the modification request is triggered after a user obtains a modification permission for the first sector data; new first sector data input by the user is received and updated into a predetermined cache file, wherein the cache file pre-stores backup data of the first sector data; a data modification command is sent to the second device so that the second device can update the updated data in the cache file into a first sector, wherein the second device is a card processing device for the smart card of the terminal equipment. It shows that by the application of the scheme, the user can have access to the data in an M1 sector (namely the first sector) of the smart card of the terminal equipment in a contact mode in the terminal equipment, and therefore the demand of the user for contact access in the using process of an M1 application on the terminal equipment is met.

Description

A kind of method and system for accessing smart card sector data
Technical field
The invention belongs to technical field of intelligent card, more particularly to a kind of method and system for accessing smart card sector data.
Background technology
Mifare is one of trade mark that grace intelligence Pu quasiconductor (NXP Semiconductors) possesses, along with more than 5,000,000,000 Sheet smart card and IC (Integrated Circuit, integrated circuit) block and more than the sale of 5,000 ten thousand card reader, Mifare The choice of technology of global most of contact type intelligent cards is become, and has been the most successful platform in automatic charging field.
At present, Mifare application, such as M1 (Mifare one) application be mainly used in mass transit card, access card, campus card, On polytype card such as mess card, the application is by between the above-mentioned all kinds of cards of contactless protocol realization and card reader equipment Data interaction, such as carries out mass transit card/mess card by card reader equipment and supplements with money, or bankcard consumption etc..
With the popularization of NFC (Near Field Communication, near-field communication) mobile phone and extensively making for M1 applications With, on mobile phone using M1 application also day by day rise, such as by mobile phone SIM (Subscriber Identity Module, Client identification module) a M1 sectors are opened up on card (mass transit card data OR gate taboo is such as carried out for the related data storage of M1 applications Storage of card data etc.), the M1 applications on mobile phone are realized on this basis, in view of the contactless feature of M1 applications, existing skill When art is applied using M1 on mobile phone, again by M1 sectors and the card reader equipment of contactless protocol realization SIM cards of mobile phones Between data interaction, with traditional approach carried out using the physics such as mass transit card, access card card M1 application compared with, carry out M1 in mobile phone It is using multiple physics cards need not be carried, easy to use.
At present, for M1 applications are used on mobile phone, user can not be fanned to its SIM cards of mobile phones M1 using the way of contact The data in area conduct interviews, the mass transit card remaining sum that for example can not be checked on mobile phone/change in M1 sectors, it is impossible to repair on mobile phone Change gate inhibition's card number in its SIM M1 sectors etc., but need checking/repairing for M1 sector datas to be carried out in relevant departments/place Change etc. and to access operation, check/change if desired for remaining sum is carried out by cordless in public transport recharge point, in company correlation gate inhibition Administrative office carries out gate inhibition's card number modification etc., it is impossible to meets user and accesses SIM M1 sector datas by the way of contact on mobile phone Demand.
The content of the invention
In view of this, it is an object of the invention to provide a kind of method and system for accessing smart card sector data, it is intended to Realization accesses the data in its smart card M1 sectors with the way of contact in the terminal units such as mobile phone.
For this purpose, the present invention is disclosed directly below technical scheme:
A kind of method for accessing smart card sector data, is applied to first device, and the first device is with smart card Terminal unit equipment end processing meanss, methods described includes:
When the modification for receiving the first sector data to the smart card is asked, show that one changes interface;It is described to repair Change the request for asking to be triggered after the data modification authority for obtaining first sector by user;
The first new sector data that receive user is input on the modification interface, and by the first new sector number According to being updated in predetermined cache file;Wherein, the backup of first sector data is previously stored with the cache file Data;
Data modification instruction is sent to second device, so that second device is by the number of the cache file after the renewal According to being updated to first sector;The second device is the card end processing meanss of the terminal unit smart card.
Said method, it is preferred that also include:
When the checking request of the first sector data to the smart card is received, a data are sent to second device and obtained Instruction fetch;The data acquisition is instructed for indicating to obtain the first sector data of the smart card;
The first sector data of the smart card of the second device feedback is received, and shows first sector number According to.
Said method, it is preferred that the smart card is client identification module SIM, and first sector is the M1 of SIM Sector.
Said method, it is preferred that the cache file is stored in other on the smart card except first sector In memory area.
A kind of method for accessing smart card sector data, is applied to second device, and the second device is with smart card Terminal unit card end processing meanss, methods described includes:
When the data modification for receiving first device is instructed, the authority of the first sector of the operation smart card is obtained; Wherein, the first device is the equipment end processing meanss of the terminal unit, and the data modification is instructed for indicating foundation The data of predetermined cache file are modified to the data of first sector, are previously stored with described in the cache file The Backup Data of the first sector data, and when the second device receives the data modification and instructs, the cache file In Backup Data occur change;
Obtain the data in the cache file;
The data of the cache file for obtaining are updated to into the first sector of the smart card, to realize modification described the The data of one sector.
Said method, it is preferred that also include:
When the data acquisition for receiving first device is instructed, the authority of the first sector of the operation smart card is obtained; Wherein, the data acquisition is instructed for indicating to obtain the data of first sector;
The data of the first sector of the smart card are obtained, and by the data feedback for obtaining to the first device, so that Obtain first device to show the data of first sector.
Said method, it is preferred that the acquisition operates the authority of the first sector of the smart card, including:
The first key and the second key that acquisition is prestored, first key and second key are stored in advance in In other memory areas on the smart card except first sector;
Using first key and second key, the operation for calculating the first sector of the operation smart card is secret Key;
The operation key is compared with benchmark key set in advance, and when comparison result is consistent for both, Obtain the authority of operation first sector;The benchmark key is stored in advance in first sector.
A kind of first device, the first device are the equipment end processing meanss of the terminal unit with smart card, described First device includes:
First display unit, during for asking in the modification for receiving the first sector data to the smart card, shows One modification interface;The request that the modification request is triggered after the data modification authority for obtaining first sector by user;
First receiving unit, for the first new sector data that receive user is input on the modification interface, and will The first new sector data is updated in predetermined cache file;Wherein, it is previously stored with the cache file described The Backup Data of the first sector data;
First transmitting element, for sending data modification instruction to second device, so that described in second device general more The data of the cache file after new are updated to first sector;The second device is the card end of the terminal unit smart card Processing meanss.
Above-mentioned first device, it is preferred that also include:
Second transmitting element, for receiving when the checking request of the first sector data to the smart card, to Two devices send data acquisition instruction;The data acquisition is instructed for indicating to obtain the first sector number of the smart card According to;
Second display unit, for receiving the first sector data of the smart card of the second device feedback, and shows Show first sector data.
A kind of second device, the second device are the card end processing meanss of the terminal unit with smart card, described Two devices include:
First purview certification unit, during for instructing in the data modification for receiving first device, obtains the operation intelligence The authority of the first sector that can block;Wherein, the first device is the equipment end processing meanss of the terminal unit, the data Modification instruction is modified to the data of first sector according to the data of predetermined cache file for instruction, the caching The Backup Data of first sector data is previously stored with file, and the data modification is received in the second device During instruction, there is change in the Backup Data in the cache file;
Acquiring unit, for obtaining the data in the cache file;
Updating block, for the data of the cache file for obtaining to be updated to the first sector of the smart card, with Realize the data of modification first sector.
Above-mentioned second device, it is preferred that also include:
Second purview certification unit, during for instructing in the data acquisition for receiving first device, obtains the operation intelligence The authority of the first sector that can block;Wherein, the data acquisition is instructed for indicating to obtain the data of first sector Take;
Feedback unit, for obtaining the data of the first sector of the smart card, and by the data feedback for obtaining to described First device, so that first device is shown to the data of first sector.
Above-mentioned second device, it is preferred that the first purview certification unit and the second purview certification unit, further For:
The first key and the second key that acquisition is prestored, first key and second key are stored in advance in In other memory areas on the smart card except first sector;Using first key and second key, Calculate the operation key of the first sector of the operation smart card;The operation key is carried out with benchmark key set in advance Compare, and when comparison result is consistent for both, obtain the authority of operation first sector;The benchmark key is prestored In first sector.
A kind of system for accessing smart card sector data, including first device as above, and as above the Two devices.
From above scheme, a kind of method for accessing smart card sector data disclosed by the invention, including:When receiving When asking to the modification of the first sector data of terminal unit smart card, show that one changes interface;The modification request exists for user The request triggered after the data modification authority for obtaining first sector;Receive user be input on modification interface new the One sector data, and be updated in predetermined cache file, the first sector data is previously stored with the cache file Backup Data;Data modification instruction is sent to second device, so that second device is by the cache file after the renewal Data are updated to first sector, card end processing meanss of the second device for terminal unit smart card.As can be seen here, exist During using application scheme, may be implemented in terminal unit with the way of contact to access in its smart card M1 sectors (the first sector) Data, contact requirements for access when further meeting user M1 being applied used in the terminal units such as its mobile phone.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can be with basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is the method flow of the access smart card sector data for being applied to equipment end that the embodiment of the present invention one is provided Figure;
Fig. 2 is the method flow of the access smart card sector data for being applied to smart card end that the embodiment of the present invention one is provided Figure;
Fig. 3 is the method flow of the access smart card sector data for being applied to equipment end that the embodiment of the present invention two is provided Figure;
Fig. 4 is the method flow of the access smart card sector data for being applied to smart card end that the embodiment of the present invention two is provided Figure;
Fig. 5 is the structural representation of the system of the access smart card sector data that the embodiment of the present invention three is provided;
Fig. 6-Fig. 7 is the structural representation of the first device that the embodiment of the present invention three is provided;
Fig. 8-Fig. 9 is the structural representation of the second device that the embodiment of the present invention three is provided.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Embodiment one
The embodiment of the present invention one discloses a kind of method of the access smart card sector data for being applied to first device, institute first The equipment end processing meanss that first device is the terminal unit with smart card are stated, i.e. the method is applied to the equipment of terminal unit End, by taking the terminal units such as mobile phone as an example, the smart card can be the SIM of mobile phone, and the first device can be mounted to Mobile phone A PP (Application, application program) on mobile phone, the method stream of the access smart card sector data with reference to shown in Fig. 1 Cheng Tu, methods described may comprise steps of:
Step 101, when receive the first sector data to the smart card modification ask when, show one change boundary Face;The request that the modification request is triggered after the data modification authority for obtaining first sector by user.
In one embodiment of the present invention, the terminal unit can be specifically NFC mobile phone, the intelligent fixture body Can be SWP SIMs, the first device can realize in the form of mobile phone A PP that first sector is the SIM M1 sectors, for depositing the related data of the M1 such as mass transit card, access card, campus card or the mess card of terminal use applications, Jin Ershi The use of M1 applications is supported now on the terminal unit such as mobile phone, for example, supports that user carries out public transport in a non contact fashion by mobile phone Swipe the card, gate inhibition swipes the card etc..SIM M1 sector datas are accessed by the way of contact on mobile phone in order to further meet user Demand, applicant proposed the scheme of the embodiment of the present invention.
Based on the demand of practical application, the data of first sector, i.e., the data of described M1 sectors have can not be random The characteristic of change, therefore, when user need to change the data of the first sector of smart card of its terminal unit, need to obtain corresponding first Modification authority, such as, it is assumed that user need change its mass transit card remaining sum realize that mass transit card is supplemented with money, then user need first to public transport Card is supplemented the account of department's offer with money and is transferred accounts, and the mass transit card department of supplementing with money can be opened to user on the basis of user completes to transfer accounts The authority of modification the first sector data of terminal unit is put, and the amount upper limit is supplemented with money (in general, for the modification authority setting one The upper limit is specially the transfer amounts of user), and the higher limit is embodied in into the first device of subscriber terminal equipment (such as mobile phone APP in), so as to after user possesses the authority, can pass through to operate the first device of its terminal unit to realize to terminal unit the The data of one sector are modified.
Specifically, user can perform corresponding trigger action by first device in its terminal unit, trigger described the One device recalls modification function, specifically, by clicking on modification button such as in mobile phone A PP, triggers mobile phone A PP and recalls modification Interface, for for first new sector data of user input etc..
The first new sector data that step 102, receive user are input on the modification interface, and by described new the One sector data is updated in predetermined cache file;Wherein, first sector number is previously stored with the cache file According to Backup Data.
In this step, the first new sector that the first device receive user of terminal unit is input on the modification interface Data, and the data of user input are updated in the cache file for creating on terminal unit smart card in advance, realize to slow The data deposited in file are modified.The Backup Data of the first sector data is previously stored with the cache file, to support to use Data of the family by the modification storage file, realization are modified, are updated to the data of first sector indirectly.
Wherein, the cache file is especially stored in other memory blocks except first sector of terminal unit smart card In domain, by taking mobile phone as an example, i.e., the cache file is stored in the non-M1 sector zone of SIM cards of mobile phones.
With reference to table 1 below and table 2, wherein, table 1, table 2 schematically illustrate two that the cache file is included respectively The file structure of individual sub- cache file 6F51,6F52,6F51,6F52 are respectively used to the first sector of terminal unit smart card not Backed up with the data of part.
Table 1
Table 2
Step 103, data modification instruction is sent to second device, so that second device is by the caching after the renewal The data of file are updated to first sector;The second device is the card end processing meanss of the terminal unit smart card.
When data input of the first device by receive user, and the data based on user input to cache file in it is standby Number continues the card end processing meanss to the smart card according to after modifying/updating, i.e., described second device sends a data Modification instruction, to notify that the data in second device cache file update in time, need to be by updated data in cache file First sector of synchronized update to smart card, so as to realize that the first sector data to terminal unit smart card is modified.
Next, the present embodiment continues to provide a kind of method of the access smart card sector data for being applied to second device, Card end processing meanss of the second device for terminal unit smart card, i.e. methods described are applied to the smart card of terminal unit End, still by taking mobile phone as an example, the second device can be specifically built-in microprocessor in SIM cards of mobile phones, described to apply respectively In first device (such as equipment end APP), the method phase of the access smart card sector data of second device (such as card end microprocessor) Mutually correspondence, by coordinating the method for performing Fig. 1, Fig. 2 at equipment end, smart card end, completes to carry out its intelligence on the terminal device The access process of the first sector data can be blocked.
With reference to Fig. 2, the method for the access smart card sector data for being applied to second device of the present embodiment can specifically be wrapped Include following steps:
Step 201, when the data modification for receiving first device is instructed, obtain the first sector of the operation smart card Authority;Wherein, the first device is the equipment end processing meanss of the terminal unit, and the data modification is instructed for referring to Show, prestore in the cache file There is the Backup Data of first sector data, and when the second device receives the data modification and instructs, it is described slow Deposit the Backup Data in file and change occurs.
Specifically, card end processing meanss, i.e., described second device, can when the data modification for receiving first device is instructed Know that the data in cache file such as above-mentioned cache file 6F51,6F52 there occurs change, accordingly it is desirable to according in cache file Content renewal/modification that the data of the first sector of smart card are synchronized.
This kind of situation card, in this step, second device is described to obtain operation first by performing a purview certification process The authority of the first sector of smart card, the purview certification process include:The first key and the second key that acquisition is prestored, institute State the first key and second key is stored in advance in other memory areas on the smart card except first sector It is interior;Using first key and second key, the operation key of the first sector of the operation smart card is calculated;By institute State operation key to compare with benchmark key set in advance, and when comparison result is consistent for both, obtain operation described The authority of the first sector;The benchmark key is stored in advance in first sector.
Wherein, first key can be specifically the first group key KeyA, second key can be specifically second Group key KeyB.
The embodiment of the present invention is obtaining operation smart card first sector based on purview certification by carrying out purview certification in advance Operating right after, then the data of the first sector of smart card are operated, smart card can be avoided to be dropped or stealing etc. feelings Under condition, directly the first sector data of smart card is operated by other people, such as, it is to avoid access SIM using similar by other people The form of card general data directly accesses data of SIM M1 sectors etc., and then ensure that the safety of the data in the first sector Property.
Step 202, the data obtained in the cache file.
Step 203, the first sector that the data of the cache file for obtaining are updated to the smart card, to realize repairing Change the data of first sector.
After the operating right for obtaining operation first sector, second device reads the data in the cache file, And the data content of reading is updated to first sector of smart card, so as to complete the data to the first sector of smart card Modification.
In practical application, by distributing for user in advance or the first device (such as mobile phone A PP) can be applied for by user Login account, and the mode bound by the smart card numbers (such as cell-phone number) of the login account of user and its terminal unit, To lift the safety of the first sector data of terminal unit smart card, subsequent user is only capable of using and is mutually bound with smart card numbers Login account, the data of the first sector of terminal unit smart card could be conducted interviews.
From above scheme, a kind of method for accessing smart card sector data disclosed by the invention, including:When receiving When asking to the modification of the first sector data of terminal unit smart card, show that one changes interface;The modification request exists for user The request triggered after the data modification authority for obtaining first sector;Receive user be input on modification interface new the One sector data, and be updated in predetermined cache file, the first sector data is previously stored with the cache file Backup Data;Data modification instruction is sent to second device, so that second device is by the cache file after the renewal Data are updated to first sector, card end processing meanss of the second device for terminal unit smart card.As can be seen here, exist During using application scheme, may be implemented in terminal unit using the way of contact to access its smart card M1 sectors (as the first fan Area) in data, contact requirements for access when further meeting user M1 being applied used in the terminal units such as its mobile phone.
Embodiment two
The embodiment of the present invention two continues the side of the access smart card sector data for being applied to first device to embodiment one Method is supplemented, and with reference to Fig. 3, methods described can also include:
Step 104, when receiving when the checking request of the first sector data to the smart card, send to second device One data acquisition is instructed;The data acquisition is instructed for indicating to obtain the first sector data of the smart card;
Step 105, the first sector data for receiving the smart card that the second device is fed back, and show described first Sector data.
When user has when the checking demand of the first sector data to terminal unit smart card, for example, need to check therein Mass transit card remaining sum etc., can perform corresponding trigger action by the first device in its terminal unit, trigger the first device The look facility of the first sector data is recalled, button is checked by click such as in mobile phone A PP, triggered mobile phone A PP and perform M1 Data acquisition flow process, and finally show the data of SIM M1 sectors etc..
Specifically, when user is sent to the first sector number to the first device of terminal unit by performing the trigger action According to check request after, second device from first device to intelligent card end send a data acquisition instruction, to indicate the second dress Put data are read from the first sector of smart card.
Afterwards, first device receives the data in the first sector of second device feedback, and which is shown, for Family is checked.
Accordingly, with reference to Fig. 4, the method for the access smart card sector data for being applied to second device can be with Including:
Step 204, when the data acquisition for receiving first device is instructed, obtain the first sector of the operation smart card Authority;Wherein, the data acquisition is instructed for indicating to obtain the data of first sector.
Card end processing meanss, i.e., described second device pass through first when the data acquisition for receiving first device is instructed Perform a purview certification process to obtain the authority of the first sector for operating the smart card, the purview certification process and embodiment The purview certification process provided in one is identical, specifically refers to the description with regard to purview certification part in embodiment one, herein, no Repeated again.
Step 205, the data of the first sector of the acquisition smart card, and by the data feedback for obtaining to the described first dress Put, so that first device is shown to the data of first sector.
After the authority by performing the first sector that authority verification process obtains the operation smart card, second device Data of the first sector of reading terminal equipment smart card, and by the data feedback for reading to first device, to be embodied as the One device shows that the data of first sector provide support.
Embodiment three
The present embodiment three discloses a kind of system for accessing smart card sector data, the access smart card fan with reference to shown in Fig. 5 The structural representation of the system of area's data, the system include first device 51 and second device 52.
Wherein, the equipment end processing meanss of the first device specially terminal unit with smart card, show with reference to Fig. 6 The structural representation of the first device for going out, the first device include:First display unit 61, for receiving to the intelligence When the modification of the first sector data of card is asked, show that one changes interface;The modification request is obtaining described first for user The request triggered after the data modification authority of sector;First receiving unit 62, for receive user at the modification interface The first new sector data of input, and the first new sector data is updated in predetermined cache file;Wherein, institute The Backup Data of first sector data is previously stored with stating cache file;First transmitting element 63, for the second dress Transmission one data modification instruction is put, so that the data of the cache file after the renewal are updated to described first by second device Sector;The second device is the card end processing meanss of the terminal unit smart card.
In an embodiment of the embodiment of the present invention, with reference to Fig. 7, the first device can also include:Second sends Unit 64, for receiving when the checking request of the first sector data to the smart card, sends one to second device and counts Instruct according to obtaining;The data acquisition is instructed for indicating to obtain the first sector data of the smart card;Second display unit 65, for receiving the first sector data of the smart card of the second device feedback, and show first sector data.
The second device is the card end processing meanss of the terminal unit with smart card, the second dress with reference to shown in Fig. 8 The structural representation put, the second device include:First purview certification unit 81, for receiving the data of first device During modification instruction, the authority of the first sector of the operation smart card is obtained;Wherein, the first device is the terminal unit Equipment end processing meanss, the data modification instruct for indicate according to predetermined cache file data to described first fan The data in area are modified, and the Backup Data of first sector data is previously stored with the cache file, and described When second device receives the data modification instruction, there is change in the data of the cache file;Acquiring unit 82, for obtaining Take the data in the cache file;Updating block 83, for the data of the cache file for obtaining are updated to the intelligence The first sector that can block, to realize changing the data of first sector.
In an embodiment of the embodiment of the present invention, with reference to Fig. 9, the second device can also include:Second authority Authentication ' unit 84, during for instructing in the data acquisition for receiving first device, obtains the first sector of the operation smart card Authority;Wherein, the data acquisition is instructed for indicating to obtain the data of first sector;Feedback unit 85, For obtaining the data of the first sector of the smart card, and by the data feedback for obtaining to the first device, so that the One device is shown to the data of first sector.
In an embodiment of the embodiment of the present invention, the first purview certification unit and the second purview certification list Unit, is further used for:The first key set in advance and the second key are obtained, first key and second key are advance It is stored in other memory areas on the smart card except first sector;Using first key and described second Key, calculates the operation key of the first sector of the operation smart card;Will be the operation key secret with benchmark set in advance Key is compared, and when comparison result is consistent for both, obtains the authority of operation first sector;The benchmark key is pre- It is first stored in first sector.
Herein, it should be noted that first device in the system of access smart card sector data that is related to of the present embodiment, the The description of two devices, the description with the method for being applied to first device above, the method for being applied to second device be it is similar, and Describe with the beneficial effect of method, for the skill that the system that the present invention accesses smart card sector data is not disclosed in the present embodiment Art details, refer to the explanation of the inventive method embodiment, and the present embodiment does not remake to this and repeats.
In sum, present invention achieves data in terminal units such as mobile phones with the way of contact to its smart card M1 sectors Conduct interviews, for example, public transport remaining sum checked on mobile phone/change in its SIM M1 sectors etc. further meets user and exists The demand of its intelligent card M1 sector datas is accessed on the terminal units such as mobile phone by the way of contact, user is improved and is set in terminal The standby convenience for carrying out M1 applications.
Also, it should be noted that each embodiment in this specification is described by the way of progressive, each embodiment What is stressed is all the difference with other embodiment, and between each embodiment, identical similar part is mutually referring to i.e. Can.
For convenience of description, various modules are divided into function when describing system above or device or unit is described respectively. Certainly, the function of each unit can be realized in same or multiple softwares and/or hardware when the application is implemented.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can By software plus required general hardware platform mode realizing.Based on such understanding, the technical scheme essence of the application On part that in other words prior art is contributed can be embodied in the form of software product, the computer software product Can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., use so that a computer equipment including some instructions (can be personal computer, server, or network equipment etc.) performs some of each embodiment of the application or embodiment Method described in part.
Finally, in addition it is also necessary to explanation, herein, the relational terms of such as first, second, third and fourth or the like It is used merely to an entity or operation are made a distinction with another entity or operation, and not necessarily requires or imply these There is any this actual relation or order between entity or operation.And, term " including ", "comprising" or which is any Other variants are intended to including for nonexcludability, so that a series of process, method, article or equipment including key elements Not only include those key elements, but also including other key elements being not expressly set out, or also include for this process, side The intrinsic key element of method, article or equipment.In the absence of more restrictions, limited by sentence "including a ..." Key element, it is not excluded that also there is other identical element in the process including the key element, method, article or equipment.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (13)

1. a kind of method for accessing smart card sector data, it is characterised in that be applied to first device, the first device is tool There are the equipment end processing meanss of the terminal unit of smart card, methods described includes:
When the modification for receiving the first sector data to the smart card is asked, show that one changes interface;The modification please Ask the request triggered after the data modification authority for obtaining first sector by user;
The first new sector data that receive user is input on the modification interface, and by the first new sector data more In new extremely predetermined cache file;Wherein, the Backup Data of first sector data is previously stored with the cache file;
To second device send a data modification instruction so that second device by the data of the cache file after the renewal more New extremely first sector;The second device is the card end processing meanss of the terminal unit smart card.
2. method according to claim 1, it is characterised in that also include:
When the checking request of the first sector data to the smart card is received, a data acquisition is sent to second device and referred to Order;The data acquisition is instructed for indicating to obtain the first sector data of the smart card;
The first sector data of the smart card of the second device feedback is received, and shows first sector data.
3. method according to claim 1 and 2, it is characterised in that the smart card is client identification module SIM, institute State the M1 sectors that the first sector is SIM.
4. method according to claim 1 and 2, it is characterised in that the cache file is stored in institute on the smart card State in other memory areas except the first sector.
5. a kind of method for accessing smart card sector data, it is characterised in that be applied to second device, the second device is tool There are the card end processing meanss of the terminal unit of smart card, methods described includes:
When the data modification for receiving first device is instructed, the authority of the first sector of the operation smart card is obtained;Wherein, The first device is the equipment end processing meanss of the terminal unit, and the data modification is instructed for indicating according to predetermined The data of cache file are modified to the data of first sector, and first fan is previously stored with the cache file The Backup Data of area's data, and when the second device receives the data modification and instructs, it is standby in the cache file There is change in number evidence;
Obtain the data in the cache file;
The data of the cache file for obtaining are updated to into the first sector of the smart card, to realize modification first fan The data in area.
6. method according to claim 5, it is characterised in that also include:
When the data acquisition for receiving first device is instructed, the authority of the first sector of the operation smart card is obtained;Wherein, The data acquisition is instructed for indicating to obtain the data of first sector;
The data of the first sector of the smart card are obtained, and by the data feedback for obtaining to the first device, so that the One device is shown to the data of first sector.
7. the method according to claim 5 or 6, it is characterised in that the acquisition operates the first sector of the smart card Authority, including:
The first key and the second key that acquisition is prestored, first key and second key are stored in advance in described In other memory areas on smart card except first sector;
Using first key and second key, the operation key of the first sector of the operation smart card is calculated;
The operation key is compared with benchmark key set in advance, and when comparison result is consistent for both, is obtained Operate the authority of first sector;The benchmark key is stored in advance in first sector.
8. a kind of first device, it is characterised in that the first device is that the equipment end of the terminal unit with smart card is processed Device, the first device include:
First display unit, during for asking in the modification for receiving the first sector data to the smart card, shows that one repaiies Change interface;The request that the modification request is triggered after the data modification authority for obtaining first sector by user;
First receiving unit, for the first new sector data that receive user is input on the modification interface, and will be described The first new sector data is updated in predetermined cache file;Wherein, described first is previously stored with the cache file The Backup Data of sector data;
First transmitting element, for sending data modification instruction to second device, so that second device is by after the renewal The data of cache file be updated to first sector;The second device is that the card end of the terminal unit smart card is processed Device.
9. first device according to claim 8, it is characterised in that also include:
Second transmitting element, for receiving when the checking request of the first sector data to the smart card, to the second dress Put transmission one data acquisition instruction;The data acquisition is instructed for indicating to obtain the first sector data of the smart card;
Second display unit, for receiving the first sector data of the smart card of the second device feedback, and shows institute State the first sector data.
10. a kind of second device, it is characterised in that the second device is that the card end of the terminal unit with smart card processes dress Put, the second device includes:
First purview certification unit, during for instructing in the data modification for receiving first device, obtains the operation smart card The first sector authority;Wherein, the first device is the equipment end processing meanss of the terminal unit, the data modification Instruct for indicating to modify the data of first sector according to the data of predetermined cache file, the cache file In be previously stored with the Backup Data of first sector data, and receive the data modification instruction in the second device When, there is change in the Backup Data in the cache file;
Acquiring unit, for obtaining the data in the cache file;
Updating block, for the data of the cache file for obtaining to be updated to the first sector of the smart card, to realize Change the data of first sector.
11. second devices according to right goblin requires 10, it is characterised in that also include:
Second purview certification unit, during for instructing in the data acquisition for receiving first device, obtains the operation smart card The first sector authority;Wherein, the data acquisition is instructed for indicating to obtain the data of first sector;
Feedback unit, for obtaining the data of the first sector of the smart card, and by the data feedback for obtaining to described first Device, so that first device is shown to the data of first sector.
12. second devices according to claim 11, it is characterised in that the first purview certification unit and described second Purview certification unit, is further used for:
The first key and the second key that acquisition is prestored, first key and second key are stored in advance in described In other memory areas on smart card except first sector;Using first key and second key, calculate Operate the operation key of the first sector of the smart card;The operation key is compared with benchmark key set in advance It is right, and when comparison result is consistent for both, obtain the authority of operation first sector;The benchmark key is stored in advance in In first sector.
13. a kind of systems for accessing smart card sector data, it is characterised in that include as described in any one of claim 8-9 First device, and the second device as described in any one of claim 10-12.
CN201611188148.8A 2016-12-20 2016-12-20 Method and system for accessing sector data of smart card Expired - Fee Related CN106599724B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611188148.8A CN106599724B (en) 2016-12-20 2016-12-20 Method and system for accessing sector data of smart card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611188148.8A CN106599724B (en) 2016-12-20 2016-12-20 Method and system for accessing sector data of smart card

Publications (2)

Publication Number Publication Date
CN106599724A true CN106599724A (en) 2017-04-26
CN106599724B CN106599724B (en) 2020-08-21

Family

ID=58602058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611188148.8A Expired - Fee Related CN106599724B (en) 2016-12-20 2016-12-20 Method and system for accessing sector data of smart card

Country Status (1)

Country Link
CN (1) CN106599724B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113469677A (en) * 2021-06-11 2021-10-01 深圳市雪球科技有限公司 Secure read-write method and device for DESFire card data
CN115988464A (en) * 2022-07-29 2023-04-18 荣耀终端有限公司 Method for copying intelligent card

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533178A (en) * 2013-10-28 2014-01-22 陕西高新实业有限公司 NFC (near field communication) mobile phone system
CN103871160A (en) * 2012-12-13 2014-06-18 中国电信股份有限公司 Recharging method and system for E-wallet in RFID (Radio Frequency Identification Device)-UIM (User Identifier Module) card
CN204759476U (en) * 2015-06-29 2015-11-11 廊坊新奥燃气设备有限公司 Card is encrypted to two interfaces logic with NFC function
CN105260885A (en) * 2015-10-09 2016-01-20 上海中核维思仪器仪表有限公司 Internet of things mobile phone APP self-service prepayment and cloud management system
CN106203127A (en) * 2015-04-30 2016-12-07 中国电信股份有限公司 A kind of method realizing the reading of M1 application data general-purposeization and Mobile phone card

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103871160A (en) * 2012-12-13 2014-06-18 中国电信股份有限公司 Recharging method and system for E-wallet in RFID (Radio Frequency Identification Device)-UIM (User Identifier Module) card
CN103533178A (en) * 2013-10-28 2014-01-22 陕西高新实业有限公司 NFC (near field communication) mobile phone system
CN106203127A (en) * 2015-04-30 2016-12-07 中国电信股份有限公司 A kind of method realizing the reading of M1 application data general-purposeization and Mobile phone card
CN204759476U (en) * 2015-06-29 2015-11-11 廊坊新奥燃气设备有限公司 Card is encrypted to two interfaces logic with NFC function
CN105260885A (en) * 2015-10-09 2016-01-20 上海中核维思仪器仪表有限公司 Internet of things mobile phone APP self-service prepayment and cloud management system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113469677A (en) * 2021-06-11 2021-10-01 深圳市雪球科技有限公司 Secure read-write method and device for DESFire card data
CN113469677B (en) * 2021-06-11 2024-04-19 深圳市雪球科技有限公司 DESFire card data safety read-write method and device
CN115988464A (en) * 2022-07-29 2023-04-18 荣耀终端有限公司 Method for copying intelligent card
CN115988464B (en) * 2022-07-29 2023-10-20 荣耀终端有限公司 Method for copying smart card

Also Published As

Publication number Publication date
CN106599724B (en) 2020-08-21

Similar Documents

Publication Publication Date Title
EP3438812B1 (en) System and method for providing secure data communication permissions to trusted applications on a portable communication device
CN102402820B (en) Electronic transaction method and terminal equipment
CN101095162B (en) System and method for a secure transaction module
CN101154281B (en) Method and mobile device for migrating finance data in smart card
EP2860681A1 (en) Mobile terminal and method and system for inquiring information of intelligent card
US20150095224A1 (en) Customised Interaction With Computer Equipment
CN106327175A (en) Mobile payment application architecture
EP2128830A1 (en) A method and an electronic device for transferring application data from a source electronic device to a destination electronic device
CN102932333A (en) Safety equipment with mobile payment function, system and method
DE112014000702T5 (en) Devices and methods for secure element transactions and asset management
CN104602224A (en) Over-the-air card activating method based on SWP-SIM card of NFC mobile phone
JP2014532917A (en) Systems, methods, and computer program products for interfacing with multiple service provider trusted service managers and safety elements
CN101729502A (en) Method and system for distributing key
CN103699997B (en) A kind of method, apparatus and electronic equipment of locking mobile payment service
CN105850155A (en) System and method for managing application data of contactless card applications
GB2517155A (en) Local evaluation of computer equipment
CN101841416A (en) Method, device and system for realizing mobile phone bank
CN105931037A (en) Electronic cash transfer method, device and system
US20040050932A1 (en) Information processing terminal or control method therefor
US20010027435A1 (en) Electronic-money settlement method and information processing apparatus therefor
CN101807424A (en) Multifunctional U disk and U disk system
CN106599724A (en) Method and system for having access to sector data of smart card
CN102945334A (en) Safety equipment with virtual on-chip operating system, safety device with virtual on-chip operating system, systems and methods
CN102999839A (en) Cloud platform and virtual SE (security element) based electronic currency security payment system and cloud platform and virtual SE based electronic currency security payment method
CN110100411A (en) Cryptographic system management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Wang Lujia

Inventor after: Wang Youjun

Inventor before: Wang Lujia

CB03 Change of inventor or designer information
TA01 Transfer of patent application right

Effective date of registration: 20171128

Address after: 100102 Beijing city Chaoyang District Wangjing Lize Park No. 101 West eight floor International Building Qiming

Applicant after: BEIJING WATCHSMART TECHNOLOGIES Co.,Ltd.

Applicant after: BEIJING WATCHDATA Co.,Ltd.

Address before: 100102 Beijing city Chaoyang District Wangjing Lize Park No. 101 West eight floor International Building Qiming

Applicant before: BEIJING WATCHSMART TECHNOLOGIES Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200821

Termination date: 20211220

CF01 Termination of patent right due to non-payment of annual fee