The content of the invention
For defect present in prior art, it is an object of the invention to provide a kind of many applications realization of Mifare cards
Method and system and many AMSs, realize in a card multiple take common sectors Mifare applications and deposit with
Management.
To achieve the above object, the technical solution adopted by the present invention is as follows:
A kind of many application implementation methods of Mifare cards, comprise the following steps:
When in Mifare cards in the presence of being applied using afoul 2nd M1 with a M1 to be installed, creating a M1 should
, using the first virtual map sector of afoul first sector, M1 applications are installed to described first empty with the 2nd M1
Intend mapping sector;
The M1 applications are Mifare applications, and it refers to that two M1 application occupancy Mifare cards are identical that two M1 applications mutually conflict
Sector;The first virtual map sector is identical with the first sector strucre.
Further, many application implementation methods of a kind of Mifare cards as described above, before creating the first virtual map sector,
Also include:
Whether the free memory in Mifare cards is judged more than the space installed shared by M1 applications, if so,
The first virtual map sector is then created, if it is not, then pointing out insufficient space.
Further, many application implementation methods of a kind of Mifare cards as described above a, if M1 is using for first
When being applied using afoul M1 with the 2nd M1 of installation, also includes in Mifare cards:
The second virtual map sector of first sector is created, the data copy that the 2nd M1 is applied virtually is reflected to second
Penetrate in sector and back up.
Further, a kind of many application implementation methods of Mifare cards as described above, the method also includes:
The 3rd M1 application operatings request of user is received, whether judge that the 3rd M1 is applied is be currently at state of activation the
Four M1 are applied, if so, then responding the 3rd M1 application operatings request, if it is not, then deactivating the 4th M1 applications, and activate the 3rd
M1 is applied, response the 3rd M1 application operatings request;The operation requests include that application activating is operated or applies deletion action.
Further, many application implementation methods of a kind of Mifare cards as described above, when the 3rd M1 is using being to be installed on the
During the application of three virtual map sectors, the M1 of the activation the 3rd is applied to be included:
Data cover in 3rd virtual map sector is written to the second fan afoul with the 3rd virtual map sector
Qu Zhong, the 3rd M1 applications in the second sector of activation;Wherein, the data in the 3rd virtual map sector are fanned in the 3rd virtual map
Backup is remained with area.
System, including many application management modules are realized present invention also offers a kind of many applications of Mifare cards;It is described many
Application management module includes:
Virtual map sector creating unit, for when existing with a M1 to be installed using afoul in Mifare cards
When 2nd M1 is applied, create a M1 and apply the first virtual map sector that afoul first sector is applied with the 2nd M1;Institute
State the i.e. Mifare of M1 applications to apply, it refers to that two M1 applications take Mifare card identicals sector that two M1 applications mutually conflict;Institute
State the first virtual map sector identical with the first sector strucre;
Using installation unit, for M1 applications to be installed into the first virtual map sector.
Further, system is realized in a kind of many applications of Mifare cards as described above, and the virtual map sector creates single
Unit includes:
Free space judgment sub-unit, for before the first virtual map sector is created, judging can use in Mifare cards
Whether memory space is more than the space installed shared by M1 applications, if so, the first virtual map sector is then created, if it is not,
Then point out insufficient space.
Further, system is realized in a kind of many applications of Mifare cards as described above, if a M1 is using for first
When being applied using afoul M1 with the 2nd M1 of installation in Mifare cards, virtual map sector creating unit is additionally operable to
The second virtual map sector of first sector is created, in the data copy that the 2nd M1 is applied to the second virtual map sector
Backup.
Further, system is realized in a kind of many applications of Mifare cards as described above, and many application management modules are also wrapped
Include:
Application operating request reception unit, the 3rd M1 application operatings for receiving user are asked;
Operation requests processing unit, for judging whether the 3rd M1 applications are that the 4th M1 for being currently at state of activation is answered
With, if so, the 3rd M1 application operatings request is then responded, if it is not, the 4th M1 applications are then deactivated, and the 3rd M1 of activation should
With response the 3rd M1 application operatings request;The operation requests include that application activating is operated or applies deletion action.
Further, system is realized in a kind of many applications of Mifare cards as described above, when the 3rd M1 is using being to be installed on the
During the application of three virtual map sectors, the operation requests processing unit is additionally operable to when the 3rd M1 of activation is applied, empty by the 3rd
Intend the data cover in mapping sector to be written to afoul second sector in the 3rd virtual map sector, the 3rd M1 of activation should
With;Wherein, the data in the 3rd virtual map sector remain with backup in the 3rd virtual map sector.
Present invention also offers a kind of many AMSs of Mifare cards, including mobile terminal and Mifare cards, institute
State many applications of the Mifare cards including one of claim 6-10 described Mifare cards and realize system;The Mifare cards are also wrapped
Include for many application management interfaces with communication of mobile terminal, many application management modules are by many application management interfaces
User is asked by the M1 application operatings that mobile terminal sends.
The beneficial effects of the present invention are:Many application method and systems of Mifare cards that the present invention is provided and many
AMS, when the Mifare for solving installation occupancy common sector in same Mifare cards in the prior art is applied, institute
The collision problem of generation, realize multiple afoul Mifare applications in same Mifare cards and deposits, and improves Mifare
The utilization rate of card, and by many AMSs, user dynamically manages oneself Mifare applications after alloing hair fastener, carries
The experience of user is risen.
Specific embodiment
With reference to Figure of description, the present invention is described in further detail with specific embodiment.
Fig. 1 shows a kind of flow of many application implementation methods of the Mifare cards provided in the specific embodiment of the invention
Figure, as can be seen from Figure, the method mainly may comprise steps of:
Step S1:Judge to whether there is with a M1 to be installed using afoul 2nd M1 applications in Mifare cards,
If it is not, then M1 applications are installed in corresponding sector, if so, then entering step S2:
Step S2:Create a M1 and apply the first virtual map sector that afoul first sector is applied with the 2nd M1;
Step S3:First M1 applications are installed in the first virtual map sector.
It is that Mifare application programs are referred to as M1 applications by Mifare applications for convenience in present embodiment.Work as needs
When first M1 applications are installed in Mifare cards, first determine whether mutually to rush in the presence of being applied with a M1 to be installed in Mifare cards
Prominent the 2nd M1 applications, wherein, it refers to that two M1 applications need at least to take Mifare card identicals that two M1 applications mutually conflict
One sector, for example, two applications are required for taking the sector A of Mifare cards, or an application need occupancy A and the 3rd fan
Area B, another needs to take sector B and sector C, then all exists in the case of two kinds and mutually conflicts, the former is at afoul sector
Second sector, the latter is the 3rd sector.
Applied using afoul 2nd M1 with a M1 when existing, a M1 is created first and is applied and the 2nd M1 application phases
First virtual map sector of the first sector of conflict, is installed to the first virtual map sector by M1 applications afterwards,
Wherein, the first virtual map sector is identical with the first sector strucre.One is created i.e. in the free space of Mifare cards
Structure and the actual identical sector in the first sector, as the mapping sector of actual sector, it would be desirable to a M1 of installation
Using being installed in the mapping sector.Certainly, needed with the 2nd M1 applications while taking two or more if a M1 is applied
During sector, then needing correspondence to create two or more sectors is used to install M1 applications.
In one embodiment of the present of invention, many application implementation methods also include judging the M1 apply whether be
That is installed in Mifare cards first applies with the 2nd M1 using afoul M1, if it is, the method also includes creating institute
The step of stating the second virtual map sector of the first sector, in the data copy that the 2nd M1 is applied to the second virtual map sector
Backup.Structure of the second virtual map sector equally with the first sector is identical.
I.e. when in the presence of being applied using afoul 2nd M1 with a M1, if before M1 applications are installed,
In Mifare cards not other application afoul with the 2nd M1 when, in collection for installing first virtually reflecting for M1 applications
When penetrating sector, in addition it is also necessary to create the second virtual map sector of first sector, the data duplication for the 2nd M1 to be applied is standby
Part in the second virtual map sector.That is, a true sector there may be multiple and virtually be reflected with its structure identical
Sector is penetrated, if there is afoul M1 in Mifare cards and apply, then afoul each M1 applications are corresponding to have one
Individual virtual map sector, for backing up its application data.
In actual applications, before the first virtual map sector is created, also include:
Whether the free memory in Mifare cards is judged more than the space installed shared by M1 applications, if so,
The first virtual map sector is then created, if it is not, then pointing out insufficient space.
In one embodiment of the present of invention, methods described also includes:The 3rd M1 application operatings request of user is received, is judged
Whether the 3rd M1 applications are the 4th M1 applications for being currently at state of activation, if so, then respond the 3rd M1 application operatings please
Ask, if it is not, then deactivating the 4th M1 applications, and activate the 3rd M1 applications, response the 3rd M1 application operatings request;Wherein, it is described
Operation requests include but is not limited to application activating operation or apply deletion action.That is, when a certain M1 of activation is applied, needing
The M1 applications for being currently at state of activation are deactivated simultaneously, and the two operations will carry out transaction protection, it is ensured that its atomicity, i.e.,
It is carried out, otherwise do not perform, it is ensured that it is currently at the M1 application only one of which of state of activation.To M1 application activation or
The operation of deactivation is embodied as prior art.
In one embodiment of the invention, when the 3rd M1 is using for the application for being installed on the 3rd virtual map sector,
In the presence of when being applied using afoul other M1 with the 3rd M1 i.e. in Mifare cards, the M1 of the activation the 3rd is applied to be included:
Data cover in 3rd virtual map sector is written to the second fan afoul with the 3rd virtual map sector
Qu Zhong, activation the 3rd M1 applications;Wherein, the data in the 3rd virtual map sector remain with standby in the 3rd virtual map sector
Part.
That is, when there is afoul M1 in card and apply, it is necessary to activate certain during these afoul M1 are applied
During individual application, just the data of the application are written in actual real sector, then activate the application.Second sector is the 3rd
M1 applications and the real sector of the common Mifare cards for taking of other M1 applications conflicted with it.
It is corresponding with the method shown in Fig. 1, a kind of many application realities of Mifare cards are additionally provided in the embodiment of the present invention
Existing system, as shown in Fig. 2 the system includes many application management modules 100;Many application management modules 100 include virtually reflecting
Penetrate sector creating unit 110 and apply installation unit 120.
Virtual map sector creating unit 110, for mutually being rushed with M1 applications to be installed when existing in Mifare cards
When the 2nd prominent M1 is applied, create a M1 and fanned using the first virtual map of afoul first sector using with the 2nd M1
Area;The M1 applications are Mifare applications, and it refers to that two M1 applications take Mifare cards identical fan that two M1 applications mutually conflict
Area;The first virtual map sector is identical with the first sector strucre;
Using installation unit 120, for M1 applications to be installed into the first virtual map sector.
In one embodiment of the present of invention, virtual map sector creating unit 110 includes that free space judges that son is single
Unit 111.
Free space judgment sub-unit 111, for before the first virtual map sector is created, judge in Mifare cards can
With memory space whether more than the space installed shared by M1 applications, if so, the first virtual map sector is then created, if
It is no, then point out insufficient space.
In one embodiment of the present of invention, if it is installed in Mifare cards first and the 2nd M1 that a M1 is applied
When being applied using afoul M1, virtual map sector creating unit 110 is additionally operable to create the second of first sector
Virtual map sector, backs up in the data copy that the 2nd M1 is applied to the second virtual map sector.
In one embodiment of the present of invention, many application management modules 100 also include application operating request reception unit
130 and operation requests processing unit 140, as shown in Figure 3.
The application operating request reception unit 130, the 3rd M1 application operatings for receiving user are asked;
The operation requests processing unit 140, for judge the 3rd M1 applications whether be currently at state of activation the
Four M1 are applied, if so, then responding the 3rd M1 application operatings request, if it is not, then deactivating the 4th M1 applications, and activate the 3rd
M1 is applied, response the 3rd M1 application operatings request;The application operating request includes but is not limited to activation manipulation or application is deleted
Operation.
In one embodiment of the present of invention, when the 3rd M1 is using for the application for being installed on the 3rd virtual map sector, institute
Operation requests processing unit 140 is stated, is additionally operable to when the 3rd M1 of activation is applied, by the data cover in the 3rd virtual map sector
It is written to afoul second sector in the 3rd virtual map sector, the 3rd M1 of activation is applied;Wherein, the 3rd virtual map fan
Data in area remain with backup in the 3rd virtual map sector.
A kind of many AMSs of Mifare cards are additionally provided in the embodiment of the present invention, as shown in figure 4, including movement
Terminal 1 and Mifare cards 2, the Mifare cards include that system is realized in many applications of above-mentioned any Mifare cards;It is described
Mifare cards 2 also include many application management interfaces 200 for being communicated with mobile terminal 1, and many application management modules 100 pass through institute
State many application management interfaces 200 and receive the M1 application operatings request that user is sent by mobile terminal 1.
In actual applications, can be by installing many application APP, Yong Huke of corresponding Mifare cards in the terminal
With the management by the Menu realization of APP to being applied in Mifare cards, new M1 applications, the M1 of acquisition current card are such as installed and are answered
With information, activation or deletion M1 applications etc., management operation of the user to M1 is provided by Mifare card bottoms COS
Mifare many application management interfaces are realized.Management system provided by the present invention, even if making user also may be used after hair fastener
The M1 of oneself is managed with dynamic to apply, facilitate user oneself to safeguard that M1 is applied.
It should be noted that herein, it is real in 16 sectors in the Mifare cards that the first sector, the second sector refer to
Sector, the first virtual map sector, the second virtual map sector, the 3rd virtual map sector refer to being created in card space
With respective afoul real sector strucre identical region, and non-real sector.
Herein, such as first and second or the like relational terms be used merely to by an entity or operation with it is another
Individual entity or operation make a distinction, and not necessarily require or imply these entities or exist between operating any this actual
Relation or order.The first and second fingers in the first sector, the second sector is not real in Mifare cards as described above
The first sector and the second sector, and be only intended to represent two real fans that identical may be likely to different Mifare cards
Area.
Obviously, those skilled in the art can carry out various changes and modification without deviating from essence of the invention to the present invention
God and scope.So, if these modifications of the invention and modification belong to the scope of the claims in the present invention and its equivalent technology
Within, then the present invention is also intended to comprising these changes and modification.