CN104346298A - Device and method for data processing based on smart card and smart card - Google Patents

Device and method for data processing based on smart card and smart card Download PDF

Info

Publication number
CN104346298A
CN104346298A CN201310339964.4A CN201310339964A CN104346298A CN 104346298 A CN104346298 A CN 104346298A CN 201310339964 A CN201310339964 A CN 201310339964A CN 104346298 A CN104346298 A CN 104346298A
Authority
CN
China
Prior art keywords
data
memory
memory location
address
volatile
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
CN201310339964.4A
Other languages
Chinese (zh)
Other versions
CN104346298B (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.)
Sumavision Technologies Co Ltd
Original Assignee
Sumavision 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 Sumavision Technologies Co Ltd filed Critical Sumavision Technologies Co Ltd
Priority to CN201310339964.4A priority Critical patent/CN104346298B/en
Publication of CN104346298A publication Critical patent/CN104346298A/en
Application granted granted Critical
Publication of CN104346298B publication Critical patent/CN104346298B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a device and a method for data processing based on a smart card and the smart card. The method comprises the following steps: receiving a data processing request of a target application program; acquiring a memory position corresponding to the data processing request; conducting data processing on first volatile data in the memory position, wherein the memory position is positioned in one section of physical memory fixed in the smart card, and the first volatile data are data which are requested to process by the target application program. Through the method, the problem that the RAM (Random-Access Memory) physical space of the smart card is insufficient when being used by multiple applications in the prior art is solved, and the effect of sharing the RAM physical space by multiple applications is realized.

Description

Based on the data processing method of smart card, device and smart card
Technical field
The present invention relates to data processing field, in particular to a kind of data processing method based on smart card, device and smart card.
Background technology
Smart card is generally regarded as by hardware (HD, Hardware), operating system (OS, Operation System), application program (APP, Application) three part compositions, wherein, application program can comprise multiple, such as: application program 1, application program 2 ... application program n, as shown in Figure 1.Wherein, hardware is made up of central processor CPU, programmable read only memory EEPROM, random access memory ram, read only memory ROM.The code of OS and APP is placed in ROM, and the data of OS and APP are placed in EEPROM or RAM.Generally the data be placed in EEPROM are called Nonvolatile data (NVD, Nonvolatile Data), the data be placed in RAM are called volatile data (VD, Volatile Data).The use distribution general linear using method that adopt as shown in Figure 2 of volatile data on smart card of the prior art in internal memory, the first address of this RAM is RamStartAddress, tail address is RamEndAddress, in fig. 2 the data from system are denoted as system data, volatile data from the first application program is denoted as the first application data, volatile data from the second application program is denoted as the second application data ... volatile data from the n-th application program is denoted as the n-th application data.RAM using method shown in Fig. 2, the usage space ram_size_os of OS, APP1 to APPn be usage space ram_size_app1 respectively ..., ram_size_appn.Total ram space that takies is ram_size_total=ram_size_os+ (ram_size_app1+ ... + ram_size_appn), this summation increases along with the quantity increase of APP.
The RAM resource of smart card is very limited, and when APP is more, adopt the using method shown in Fig. 2, RAM resource is often not enough.
For the problem of the RAM physical space deficiency under many application environments for use of smart card in prior art, at present effective solution is not yet proposed.
Summary of the invention
For the problem of correlation technique smart card RAM physical space deficiency under many application environments for use, at present effective solution is not yet proposed, for this reason, fundamental purpose of the present invention is to provide a kind of data processing method based on smart card, device and smart card, to solve the problem.
To achieve these goals, according to an aspect of the present invention, provide a kind of data processing method based on smart card, the method comprises: the data processing request of receiving target application program; Obtain the memory location corresponding with data processing request; Data processing is carried out to the first volatile data in memory location, and wherein, memory location is arranged in one section of fixing physical memory of smart card, the data of institute asks process that the first volatile data is destination application.
Further, before data processing is carried out to the first volatile data in memory location, method also comprises: detect in smart card whether existence is the current application program of run mode; When existence is the current application program of run mode within a smart card, detect current application program whether consistent with destination application, when current application program and destination application inconsistent, detect current application program whether be positioned at logical channel identical on smart card with destination application; When current application program and destination application are positioned at different logical channels, the current data of backup current application program; When current application program and destination application are positioned at identical logical channel, remove the current data on memory location.
Further, memory location comprises the step that the first volatile data carries out data processing: when current application program and destination application are positioned at different logical channels, detect the state of destination application; When the state of destination application is pending state, from the Backup Data hanging up address reading destination application, by Backup Data and the first volatile data write memory location, wherein, hang up the fixed address that address is default this Backup Data of backup; When the state of destination application is for moving back state selection, the data of initialized target application program, by the first volatile data write memory location.
Further, the step backing up the current data of current application program comprises: the backup address obtaining current data; Be kept in backup address using current data as Backup Data, wherein, backup address is the fixed address in default storer.
Further, the step obtaining the memory location corresponding with data processing request comprises: obtain the property parameters corresponding with data processing request; The memory location corresponding with property parameters is obtained in the random access memory of smart card.
Further, data processing request comprises request to create, property parameters comprises: spatial content parameter, first volatile data comprises attribute head and data volume, wherein, the step obtaining the memory location corresponding with property parameters in the random access memory of smart card comprises: obtain the first total length, wherein, the first total length is the total length of the data volume of all volatile data that destination application has created; It is destination application memory allocated position in random access memory, wherein, the start address of memory location is the position offseting the first total length from the start address of physical memory, and the length of memory location is the value of spatial content parameter, and spatial content parameter is the length of the first volatile data.
Further, be destination application memory allocated position in random access memory before, method also comprises: in the programmable read only memory of smart card, find free cells, and using first Data Identification of the index data of free cells as the first volatile data; For attribute head distributes the first space in programmable read only memory, by the first start address write free cells in the first space, wherein, the first space comprises: identification field, data volume origing address field (OAF) and data volume length field; The value of the first program identification of current application program, spatial content parameter and the first total length is write identification field, data volume length field and data volume origing address field (OAF) respectively.
Further, data processing request comprises read requests, property parameters comprises: the first Data Identification, the first migration parameter relative to the start address of the data volume of the first volatile data, the first destination address parameter and read length, wherein, memory location comprises the step that the first volatile data carries out data processing: from the free cells corresponding with the first Data Identification, read the first start address; Obtain first space corresponding with the first start address; Whether the target program mark detecting destination application is consistent with the first program identification stored in the identification field in the first space; When target program mark is consistent with the first program identification, read data volume start address, to obtain the first volatile data, wherein, second start address of the first volatile data is the value sum of the start address of memory location, data volume start address and the first migration parameter, and the length of the first volatile data is for reading length; First volatile data is copied to the first storage space that the first destination address parameter is pointed to.
Further, data processing request comprises update request, property parameters comprises: the first migration parameter of the start address of the data volume of the first Data Identification, the first volatile data, the start address parameter of source data and renewal length, wherein, memory location comprises the step that the first volatile data carries out data processing: from the free cells corresponding with the first Data Identification, read the first start address; Obtain first space corresponding with the first start address; Whether the target program mark detecting destination application is consistent with the first program identification stored in the identification field in the first space; When target program mark is consistent with the first program identification, read data volume start address, to obtain the second storage space, wherein, the second storage space is the space that the value sum of the start address of memory location, data volume start address and the first migration parameter is pointed to; First volatile data is copied to the second storage space, and wherein, the start address of the first volatile data is address corresponding to start address parameter, and the length of the first volatile data is for upgrading length.
Further, be destination application memory allocated position in random access memory after, method also comprises: using the first total length and spatial content parameter sum as the second total length, and use the second total length to upgrade the first total length.
To achieve these goals, according to a further aspect in the invention, provide a kind of data processing equipment based on smart card, this device comprises: the first receiver module, for the data processing request of receiving target application program; First acquisition module, for obtaining the memory location corresponding with data processing request; First processing module, for carrying out data processing to the first volatile data on memory location, wherein, memory location is arranged in one section of fixing physical memory of smart card, the data of institute asks process that the first volatile data is destination application.
To achieve these goals, according to a further aspect in the invention, provide a kind of smart card, this smart card comprises: processor, for after the data processing request receiving destination application, obtains the memory location corresponding with data processing request, then on memory location, data processing is carried out to the first volatile data, wherein, memory location is arranged in one section of fixing physical memory of smart card, the data of institute asks process that the first volatile data is destination application.
Further, smart card also comprises: programmable read only memory, for preserving the attribute head of the program volatile data from application program; Random access memory, comprise first district's random access memory and second district's random access memory, wherein, first district's random access memory is for preserving the data volume of the system volatile data from system, and second district's random access memory is used for the data volume of save routine volatile data.
Further, programmable read only memory comprises: the first programmable read only memory, for preserving the attribute head of one or more program volatile data, the attribute head of each program volatile data takies a sub spaces, every sub spaces comprises: identification field, data volume origing address field (OAF) and data volume length field, wherein, identification field, for preserving the program identification of application program; Data volume origing address field (OAF), for preserving the address parameter of data volume in random access memory; Data volume length field, for the length data of the data volume of save routine volatile data; Second programmable read only memory, comprises one or more free cells, and each free cells is respectively used to the first start address of subspace shared by preservation attribute head; 3rd programmable read only memory, for preserving the total length of the data volume of the program volatile data that application program has created; 4th programmable read only memory, comprises multiple subregion, and each subregion is for preserving the Backup Data of an application program.
Pass through the present invention, after the first receiver module within a processor receives the data processing request of destination application, the memory location corresponding with data processing request is obtained by the first acquisition module, then the first processing module is used the first volatile data of destination application request process to be processed in this memory location, wherein, this memory location is arranged in one section of fixing physical memory of smart card, the first volatile data from any application APP all can be kept in this one section of fixing physical memory like this, thus all APP can be allowed to share one section of physics memory ram, thus reach the object of saving physics ram space, solve the problem of smart card RAM physical space deficiency under many application environments for use in prior art, achieve the effect of multiple Application share RAM physical space.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the structural representation of smart card in prior art;
Fig. 2 is that the volatile data of smart card in prior art is at RAM distribution schematic diagram;
Fig. 3 is the schematic diagram of the data processing equipment based on smart card according to the embodiment of the present invention;
Fig. 4 is the data processing distribution schematic diagram according to embodiment of the present invention OVD in RAM;
Fig. 5 is the data structure diagram according to embodiment of the present invention AVD;
Fig. 6 is the data processing distribution schematic diagram according to embodiment of the present invention AVD in RAM
Fig. 7 is the process flow diagram of the data processing method based on smart card according to the embodiment of the present invention;
Fig. 8 is the schematic diagram of the data processing according to RAM embodiment illustrated in fig. 7; And
Fig. 9 is the schematic diagram of the data processing of the RAM of another embodiment according to Fig. 7.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
Fig. 3 is the structural representation of the data processing equipment based on smart card according to the embodiment of the present invention.As shown in Figure 3, the first receiver module 10, for the data processing request of receiving target application program; First acquisition module 30, for obtaining the memory location corresponding with data processing request; First processing module 50, for carrying out data processing to the first volatile data on memory location, wherein, memory location is arranged in one section of fixing physical memory of smart card, the data of institute asks process that the first volatile data is destination application.Wherein, the process of data processing comprise data stored, read, revise, replace, initialization, the various data handling procedure such as erasing.
Adopt the present invention, after the first receiver module within a processor receives the data processing request of destination application, the memory location corresponding with data processing request is obtained by the first acquisition module, then the first processing module is used the first volatile data of destination application request process to be processed in this memory location, wherein, this memory location is arranged in one section of fixing physical memory of smart card, the first volatile data from any application APP all can be processed in this one section of fixing physical memory like this, thus all APP can be allowed to share one section of physics memory ram, thus reach the object of saving physics ram space, solve the problem of smart card RAM physical space deficiency under many application environments for use in prior art, achieve the effect of multiple Application share RAM physical space.
According to the abovementioned embodiments of the present invention, device can also comprise: first detection module, whether consistent with destination application for detecting current application program, second processing module, for when current application program and destination application inconsistent, remove the data on memory location, wherein, current application program is the application program that in memory location, current storage data are corresponding.
In the above embodiment of the present invention, the first acquisition module can comprise: the first sub-acquisition module, for obtaining the property parameters corresponding with data processing request; Second sub-acquisition module, for obtaining the memory location corresponding with property parameters in the random access memory of smart card.
According to the abovementioned embodiments of the present invention, device also comprises: the second detection module, and for detecting in smart card, whether existence is the current application program of run mode; 3rd detection module, for when existence is the current application program of run mode within a smart card, detect current application program whether consistent with destination application, 4th detection module, for when current application program and destination application inconsistent, detect current application program whether be positioned at logical channel identical on smart card with destination application; 3rd processing module, for when current application program and destination application are positioned at different logical channels, the current data of backup current application program; 4th processing module, for when current application program and destination application are positioned at identical logical channel, removes the current data on memory location.
In the above embodiment of the present invention, described first processing module can comprise: the first sub-detection module, for when current application program and destination application are positioned at different logical channels, detects the state of destination application; First sub-processing module, for when the state of destination application is pending state, from the Backup Data hanging up address reading destination application, by Backup Data and the first volatile data write memory location, wherein, the fixed address that address is default this Backup Data of backup is hung up; Second sub-processing module, for when the state of destination application is for moving back state selection, the data of initialized target application program, by the first volatile data write memory location.
According to the abovementioned embodiments of the present invention, the 3rd processing module can comprise: the 3rd sub-acquisition module, for obtaining the backup address of current data; 3rd sub-processing module, for being kept in backup address using current data as Backup Data, wherein, backup address is the fixed address in default storer.
Present invention also offers a kind of smart card, this smart card can comprise: processor, for after the data processing request receiving destination application, obtain the memory location corresponding with data processing request, then on memory location, data processing is carried out to the first volatile data, wherein, memory location is arranged in one section of fixing physical memory of smart card, the data of institute asks process that the first volatile data is destination application.
Adopt the present invention, after the first receiver module within a processor receives the data processing request of destination application, the memory location corresponding with data processing request is obtained by the first acquisition module, then the first processing module is used the first volatile data of destination application request process to be processed in this memory location, wherein, this memory location is arranged in one section of fixing physical memory of smart card, the first volatile data from any application APP all can be kept in this one section of fixing physical memory like this, thus all APP can be allowed to share one section of physics memory ram, thus reach the object of saving physics ram space, solve the problem of smart card RAM physical space deficiency under many application environments for use in prior art, achieve the effect of multiple Application share RAM physical space.
In the above embodiment of the present invention, smart card can also comprise: programmable read only memory, for preserving the attribute head of the program volatile data from application program; Random access memory, comprise first district's random access memory and second district's random access memory, wherein, first district's random access memory is for preserving the data volume of the system volatile data from system, and second district's random access memory is used for the data volume of save routine volatile data.
Particularly, programmable read only memory comprises: the first programmable read only memory, for preserving the attribute head of one or more program volatile data, the attribute head of each program volatile data takies a sub spaces, every sub spaces comprises: identification field, data volume origing address field (OAF) and data volume length field, wherein, identification field, for preserving the program identification of application program; Data volume origing address field (OAF), for preserving the address parameter of data volume in random access memory; Data volume length field, for preserving the length data of the data volume of save routine volatile data, is also the spatial content parameter in above-described embodiment; Second programmable read only memory, comprises one or more free cells, and each free cells is respectively used to the first start address of subspace shared by preservation attribute head; 3rd programmable read only memory, for preserving the total length of the data volume of the program volatile data that application program has created; 4th programmable read only memory, comprises multiple subregion, and each subregion is for preserving the Backup Data of an application program.
Particularly, can arrange application identities symbol (AID, ApplicationIdentifier) for each application program in system, the value of AID arranges from small to large from arabic numeral 0.When each invokes application of processor (APP), APP is chosen: the outer entity of card of smart card sends the selection instruction of selective gist program by AID, this selection instruction specifies AID, after the operating system module of processor receives this selection instruction, record AID, and this selection instruction is passed to APP corresponding to this AID, to reach the object of APP and the outer entity interaction of card.
In the above embodiment of the present invention, will the system volatile data of operating system be belonged to referred to as OVD(OS VD), will the program volatile data of APP be belonged to referred to as AVD(Application VD).
In the above embodiment of the present invention, random access memory can comprise: first district's random access memory and second district's random access memory, first district's random access memory is for preserving the data volume of the system volatile data from system, second district's random access memory is for preserving the data volume of the program volatile data from application program, second district's random access memory is the memory location in above-described embodiment, is also the physical memory of the fixing data volume for the treatment of the first volatile data from application program.Wherein, a moment RAM_APP only can process the volatile data AVD of the APP of current application program.
Particularly, ram space on smart card is divided into Liang Ge district random access memory, one of them RAM_OS is for storing the data from operating system module, another RAM_AP is for storing the data from APP, the address section of RAM_OS is the address section of RAM_OSStartAddress ~ RAM_OS EndAddress, RAM_AP is RAM_APP StartAddress ~ RAM_APPEndAddress.
Further, an identifier OVDID(OVD Identifier can also be distributed for each system volatile data OVD from operating system), this OVDID value is in the first address of data volume in RAM_OS of this OVD.Each OVD has a data volume (Body), the Body of OVD is in first district's random access memory of RAM_OS(RAM) in distribution as shown in Figure 4, in RAM, data volume from the system volatile data OVD of operating system: the first system data volume, second system data volume, m system data body is preserved successively from first district's first address (RAM_OS StartAddress), as shown in Figure 4, whole first district's random access memory can not take by the data volume from the system volatile data OVD of operating system, also namely can also available free region to the first tail address, district (RAM_OS EndAddress).As shown in Figure 6, in RAM, from the data volume first application data body of the program volatile data AVD of application A PPn, second application data body, m application data body is preserved successively from second district's first address (RAM_APP StartAddress), as shown in Figure 6, also clear area is there is between second district's first address and the second tail address, district, and in RAM_APP, only preserve the data of current application program, wherein, multiple data volumes that current application program has are kept in RAM_APP successively, and as shown in Figure 4 and Figure 6, region all available free in respective storage area.
Smart card also comprises: programmable read only memory EEPROM, and programmable read only memory EEPROM can be 4.
Wherein, i.e. the second programmable read only memory of first piece of EEPROM() deposit the Header of AVD successively.This EEPROM can be EEPROM_AVDHR in this application.
I.e. the first programmable read only memory of second piece of EEPROM() can regard that 4 bytes are the array of a unit as, the index of array will as AVDID, and that array m unit stores is AVDID is the first address of the Header of the AVD of m.This EEPROM can be EEPROM_AVDID in this application.
I.e. the 3rd programmable read only memory of 3rd piece of EEPROM() can to regard as with 4 bytes be the array of a unit, the AID of the index corresponding A PP of array, the space sum that all AVD had that each unit stores APP corresponding to AID have occupied in RAM_APP.This EEPROM can be EEPROM_AVDSIZE in this application.
I.e. the 4th programmable read only memory of 4th piece of EEPROM() there is CSTNum unit, be respectively the 1st, 2 ... CSTNum unit, the size of each unit is with the size of RAM_APP.And by the volatile data administration module maintenance unit sequence number i of smart card and the mapping relations of APP AID.Each unit is used for backing up or reduction maps all AVD of APP.Backup operation occurs in the APP being in run mode when changing, this block EEPROM can be called EEPROM_BACKUP, wherein, in this application maximum for the number of APP concurrent on smart card support number is denoted as ConcurrentSelectTotalNumer, is abbreviated as CSTNum.
Particularly, the program volatile data AVD setting identification symbol AVDID(AVD Identifier for from APP), the value of this AVDID is replaced from arabic numeral 0 and is increased.Each AVD all can comprise: attribute head (Header) and data volume (Body).Header is placed in EEPROM, in the EEPROM_AVDHR of i.e. above-described embodiment, Body is placed in RAM_APP, wherein, Header has data structure as shown in Figure 5, the Header of each AVD all can comprise three fields: identification field (Aid field), data volume length field (Body_Size field), data volume origing address field (OAF) (Body_Address, the i.e. address of data volume in RAM).Wherein, Aid field denotes the program identification AID of the APP that this AVD is subordinate to, and this field is 2 bytes; Store the size of the Body of AVD in Body_Size field, this field is 4 bytes; Have recorded the first address of Body in RAM_APP in Body_Address field, this field is 4 bytes.The space size that Header occupies is denoted as Header_Size, Header_Size=10 byte.
Smart card, by APDU instruction and the outer entity interaction of card, blocks outer entity and first selects some APP, then with the APP interactive information chosen.In actual use scenes, block outer entity usually choose an APP and and after this APP interactive information completes, again choose another one APP and interactive information, the APP that therefore in system, an existence anduniquess one is selected within a period of time.Because OS bears the selection of APP and the distribution of APDU instruction, the system volatile data belonging to OS must be maintained in RAM all the time, and in APP, only have the current program volatile data by the APP selected just to need to be maintained in RAM, therefore, in above-described embodiment of the application, processor is when getting the data processing request from application program, obtain the memory location corresponding with this data processing request, in this memory location, data processing is carried out to AVD, wherein, this memory location is a fixed position, AVD from any one APP all can be stored in this position RAM_APP.Thus all APP can be allowed to share one section of physics memory ram, thus reach the object of saving physics ram space, solve the problem of smart card RAM physical space deficiency under many application environments for use in prior art, achieve the effect of multiple Application share RAM physical space.
Particularly, support that the smart card operating system of many application generally supports multiple logical channel, the logical channel sum of smart card operating system support is denoted as ChannelTotalNum.Preferably, the number of logical channel can be 20, is designated Channel1 ~ channel20 respectively.
Block during outer entity sends to the first character of every bar instruction of smart card to save and all attached logical channel information, first operating system judge on current logic passage selected with or without APP, if there is APP selected, then this instruction passed to this APP process; If no, operating system directly returns error message to the outer entity of card.
In above-described embodiment of the application, APP can have three kinds of states: move back state selection, run mode, pending state.After smart card re-powers, all APP are in and move back state selection; Choose APP by sending selective gist instruction, before the interactive instruction receiving other, APP is in run mode; If on identity logic passage, front and back have selected APP1 and APP2 respectively, then APP1 becomes from run mode and moves back state selection, and APP2 becomes run mode from moving back state selection; If multiple logical channel have selected different application, such as, Channel1 and Channel2 have selected APP1 and APP2 respectively, if present instruction is just by APP1 process, then APP1 is in run mode, and APP2 is in pending state; In a certain moment, a unique APP is only had to be in run mode.Wherein, moving back state selection is that application program does not have selected state, and run mode is the selected state processing data of application program, and pending state is that the data of application program to be stored in logical channel and the current state not processing data.
According to the abovementioned embodiments of the present invention, the APP being only in run mode just can take the physical space (memory location as in above-described embodiment) of RAM, thus all APP can be allowed to share one section of physics memory ram, thus reach the object of saving physics ram space, solve the problem of smart card RAM physical space deficiency under many application environments for use in prior art, achieve the effect of multiple Application share RAM physical space.
Fig. 7 is the process flow diagram of the data processing method based on smart card according to the embodiment of the present invention.As shown in Figure 7, the method can comprise the steps:
Step S102, the data processing request of receiving target application program.
Step S104, obtains the memory location corresponding with data processing request.
Step S106, data processing is carried out to the first volatile data in memory location, and wherein, memory location is arranged in one section of fixing physical memory of smart card, the data of institute asks process that the first volatile data is destination application.
Adopt the present invention, after receiving the data processing request of destination application by the first receiver module shown in Fig. 3, the memory location corresponding with data processing request is obtained by the first acquisition module, then use the first processing module that the first volatile data of destination application request process is kept at this memory location, wherein, this memory location is arranged in one section of fixing physical memory of smart card, the first volatile data from any application APP all can be kept in this one section of fixing physical memory like this, thus all APP can be allowed to share one section of physics memory ram, thus reach the object of saving physics ram space, solve the problem of smart card RAM physical space deficiency under many application environments for use in prior art, achieve the effect of multiple Application share RAM physical space.
According to the abovementioned embodiments of the present invention, after the data processing request of receiving target application program, the state of destination application or will be moved back state selection and change to run mode by pending state.
In the above embodiment of the present invention, the step obtaining the memory location corresponding with data processing request can comprise: obtain the property parameters corresponding with data processing request; The memory location corresponding with property parameters is obtained in the random access memory of smart card.
Particularly, target logic channel information and AID is carried in the data processing request of destination application, wherein, AID is the unique identification of corresponding each application program, after the data processing request receiving destination application, from the AID of data processing request destination application, and the mapping relations set up between target logic channel information and AID, because target logic channel information and memory location have incidence relation, after receiving data processing request, corresponding memory location can be obtained according to data processing request, and the position of the target logic passage corresponding with memory location is obtained according to incidence relation, and the interactive instruction (i.e. data processing request) of carrying the process data of target logic channel information can pass to the APP with AID mark, then to should first volatile data of APP can at the enterprising row relax of target logic passage, thus reach APP and block the object that outer entity carries out data interaction.
In the above embodiment of the present invention, data processing request can comprise request to create, wherein, before data processing is carried out to the first volatile data in memory location, method can also comprise: detect current application program whether consistent with destination application, when current application program and destination application inconsistent, removing memory location on current data, wherein, current application program is the application program that in memory location, current storage data are corresponding.Preferably, when current application program and destination application inconsistent, current storage data can also be backed up.
Particularly, after data processing equipment receives request to create, whether the current application program detecting data that memory location stores corresponding is consistent with destination application, wherein, when consistent, and the current storage data on removing memory location.Particularly, the data removed on memory location can by directly wiping the data on memory location, data on memory location are all reset and realizes, also by the data on format memory location, the data on memory location all can be set to zero and realize.
Particularly, if remove the request of all AVD of eve selected APP, be then 0 by RAM_APP full scale clearance; If the request of all AVD of initialization current selection APP, then RAM_APP is all initialized as 0, to create the AVD of the application program of current selection, for follow-up data processing (as: reading or update process etc.).
Such as, when APPi and APPj successively initiates to create or read or upgrade AVD request to volatibility data management module, operating system module will when APPj be selected, volatibility data management module is initiated to the request of all AVD removing the selected APPi of eve, and the request of all AVD of APPj is selected in initiation initialization subsequently.
Particularly, what store in the memory location of the random access memory of previous moment smart card is volatile data (the i.e. current data of APPi, also current storage data can be referred to as), as shown in Figure 8, the value in second district's random access memory first address (RAM_APPStartAddress) is equal with the value of the first random access memory tail address, district (RAM_OS EndAddress), from the first address RAM_APP StartAddress of memory location RAM_APP, what preserve successively is first data volume of the application i of APPi, second data volume of application i ... the xth data volume of application i.
The destination application in application A PPj(and above-described embodiment is received at the operating system module of processor, this program is the APP of AID=j) data processing request time, namely when APPj is selected, detect that data that memory location stores are current datas of APPi, then volatibility data management module is initiated to the instruction of all AVD removing the selected APPi of eve, and the request of all AVD of APPj is selected in initiation initialization subsequently, the AVD of APPj is kept on memory location, as shown in Figure 8, namely from the first address RAM_APP StartAddress of memory location RAM_APP, what preserve successively is first data volume of the application j of APPj, second data volume of application j ... the xth data volume of application j.
As shown in Figure 8, adopt the above embodiment of the present invention, by random access memory is divided into Liang Ge district, district preserves the system volatile data from system wherein, the program volatile data from application program is preserved in another district, the first system data volume of the system volatile data from system that first district's random access memory in Fig. 8 is preserved, second system data volume, m system data body, from choosing application program i to change to when choosing application program j, the storage of the system volatile data of system does not change, the data of just second district's random access memory of change, and preserve in the inherent one section of fixing physical memory in district from the program volatile data of application program and preserve the first volatile data changes to the j of application program data from the data of application program i, the multiple application program of Systematical control, but do not take more internal memory, and can make in RAM, there is idle region.
More specifically, removed all AVD of the selected APPi of eve by instruction, then volatibility data management module is imported into the AID parameter i of APPi; By all AVD of instructions initialize APPj, then volatibility data management module is imported into the AID parameter j of APPj.
In the above embodiment of the present invention, before data processing is carried out to the first volatile data in memory location, method can also comprise: detect in smart card whether existence is the current application program of run mode; When existence is the current application program of run mode within a smart card, detect current application program whether consistent with destination application, when current application program and destination application inconsistent, detect current application program whether be positioned at logical channel identical on smart card with destination application; When current application program and destination application are positioned at different logical channels, the current data of backup current application program; When current application program and destination application are positioned at identical logical channel, remove the current data on memory location.
According to the abovementioned embodiments of the present invention, memory location can comprise the step that the first volatile data carries out data processing: when current application program and destination application are positioned at different logical channels, detect the state of destination application; When the state of destination application is pending state, from the Backup Data hanging up address reading destination application, by Backup Data and the first volatile data write memory location, wherein, hang up the fixed address that address is default this Backup Data of backup; When the state of destination application is for moving back state selection, the data of initialized target application program, by the first volatile data write memory location.
Particularly, the step backing up the current data of current application program can comprise: obtain the backup address corresponding with current data; Be kept in backup address using current data as Backup Data, wherein, backup address is the address in default read-only storage.Wherein, the backup address in above-described embodiment is all arranged in the 4th programmable read only memory with hang-up address.
Particularly, by the operating system module service logic channel number Channel of smart card and the AID of APP and the mapping relations of state can be chosen on this logical channel Channel, and the instruction (i.e. data processing request) that outer for card entity sends can be passed to the APP of AID mark by operating system module, if smart card has ChannelTotalNum logical channel, then operating system needs to safeguard ChannelTotalNum mapping relations.On smart cards during electricity, all Channel map with 0, represent this logical channel not to be applied selected, and all APP states are for moving back state selection.
Such as, operating system module is at the APP of destination application APPj(and AID=j, wherein, the AID of APP increases progressively from arabic numeral 0, j is natural number) selected time, if smart card does not have APP be in run mode, volatibility data management module is initiated to the request of all AVD of initialization APPj, and be run mode by the status modifier of APPj.If there is application program to be in run mode, and current application program is APPi is in run mode (i unequal to j), then detect current application program APPi and APPj and whether be arranged in identical logical channel, when current application program APPi and destination application APPj is arranged in different logical channels, volatibility data management module is initiated to the request of all current volatile data AVD of backup current application program APPi, and detect the current state of destination application, particularly, when destination application APPj is in pending state, volatibility data management module is initiated to the request of all AVD of restore target application A PPj, namely from the Backup Data hanging up address reading destination application, then according to data processing request, corresponding data interaction process is carried out to destination application, as, Backup Data and the first volatile data are write corresponding memory location, when destination application APPj be in move back state selection, volatibility data management module is initiated to the request of all AVD of initialized target application A PPj, and be pending state by the status modifier of current application program APPi, be run mode by the status modifier of destination application APPj.
When current application program APPi and destination application APPj is positioned at identity logic passage, initiate the application request of all AVD removing current application program APPi, the application request of concurrent all AVD of initialization destination application APPj, and the state of current application program APPi and destination application APPj is set to respectively moves back state selection and run mode respectively.When destination application APPj is in run mode, directly carry out data processing.If application request is backup or all AVD removing current APPi, then volatibility data management module is imported into the AID parameter i of current APPi; If application request is all AVD of reduction or initialization APPj, then volatibility data management module is imported into the AID parameter j of APPj.
In another embodiment of the present invention, as shown in Figure 9, 4th programmable read only memory comprises multiple district (the 1st backup space, 2nd backup space, CSTNum backup space), each district is respectively used to the first volatile data of a storage application program, similar with Fig. 8, random access memory is divided into Liang Ge district, district preserves the first volatile data from system wherein, the first volatile data from application program is preserved in another district, wherein, the first system data volume of the first volatile data from system that first district's random access memory (from the first random access memory tail address, random access memory first address to the first district of district) is preserved, second system data volume, m system data body, second district's random access memory (from the second random access memory tail address, random access memory first address to the second district of district) is kept at the data volume from application program.
As shown in Figure 9, when logical channel lm and logical channel ln successively choosing application i respectively and apply j (now, application i is current application program, application j is destination application), system can by the data volume of all volatile data of application i (being also current data) backup in the 1st backup space of the 4th programmable read only memory, and in second district's random access memory, preserve first data volume of application j, second data volume of application j, the y data volume of application j, in that case, the state of application i is revised as pending state by run mode, the state of application j is revised as run mode by moving back state selection.Logical channel 1p chooses application k time (now, application k is destination application, application j is current application program), the data volume of all volatile data of application j (is comprised first data volume of application j, second data volume of application j, the y data volume of application j) back up at the 2nd backup space, and by first data volume of application k, second data volume of application k, the z data volume of application k is kept on memory location, and the state of application j is revised as pending state by run mode, the state of application k is revised as run mode by moving back state selection.If now, user sends the data processing request of application program j (now by the outer entity of card, application k is current application program, application j is destination application), then by application k all volatile data data volume (comprise application k the first data volume, application k the second data volume ..., application k z data volume) backup at the 1st backup space, and by the last time back up application j all first volatile data data volume backup at the 2nd backup space.
Pass through the above embodiment of the present invention, by backing up the mode of RAM_APP to EEPROM, make all APP can whole spaces of RAM Shared _ APP, and the assignable RAM resource of single APP can be made to maximize, thus the maximum number of concurrent APP is not limited by RAM resource size.
According to the abovementioned embodiments of the present invention, data processing request can comprise request to create, property parameters can comprise: spatial content parameter, first volatile data comprises attribute head and data volume, wherein, the step obtaining the memory location corresponding with property parameters in the random access memory of smart card comprises: obtain the first total length, wherein, the first total length is the total length of the data volume of all volatile data that destination application has created; It is destination application memory allocated position in random access memory, wherein, the start address of memory location is the position offseting the first total length from the start address of physical memory, and the length of memory location is the value of spatial content parameter, and spatial content parameter is the length of the first volatile data.
Wherein, above-mentioned steps specifically obtains the memory location corresponding with property parameters in second district's random access memory, more specifically, it is destination application memory allocated position in second district's random access memory, wherein, the start address of memory location is the position offseting the first total length from the start address of second district's random access memory.
In the above embodiment of the present invention, be destination application memory allocated position in random access memory before, method can also comprise: in the programmable read only memory of smart card, find free cells, and using first Data Identification of the index data of free cells as the first volatile data; For attribute head distributes the first space in programmable read only memory, by the first start address write free cells in the first space, wherein, the first space comprises: identification field, data volume origing address field (OAF) and data volume length field; The value of the first program identification of current application program, spatial content parameter and the first total length is write identification field, data volume origing address field (OAF) and data volume length field respectively.
Particularly, in the second programmable read only memory of smart card, find free cells, and using first Data Identification of the index data of free cells as the first volatile data; For attribute head distributes the first space in the first programmable read only memory, first start address in the first space is write the free cells in the second programmable read only memory.
According to the abovementioned embodiments of the present invention, data processing request can comprise read requests, property parameters can comprise: the first Data Identification, the first migration parameter relative to the start address of the data volume of the first volatile data, the first destination address parameter and read length, wherein, memory location can comprise the step that the first volatile data carries out data processing: from the free cells corresponding with the first Data Identification, read the first start address; Obtain first space corresponding with the first start address; Whether the target program mark detecting destination application is consistent with the first program identification stored in the identification field in the first space (being also the program identification of current application program); When target program mark is consistent with the first program identification, read data volume start address, to obtain the first volatile data, wherein, second start address of the first volatile data is the value sum of the start address of memory location, data volume start address and the first migration parameter, and the length of the first volatile data is for reading length; First volatile data is copied to the first storage space that the first destination address parameter is pointed to.
Wherein, free cells corresponding from the second programmable read only memory reads the first start address, after obtaining first space corresponding with the first start address, and when destination application mark is consistent with the first program identification, also the data of the i.e. current storage in memory location are the data of destination application, read the first total length body start address.
In the above embodiment of the present invention, data processing request can comprise update request, property parameters can comprise: the first migration parameter of the start address of the data volume of the first Data Identification, the first volatile data, the start address parameter of source data and renewal length, wherein, memory location can comprise the step that the first volatile data carries out data processing: from the free cells corresponding with the first Data Identification, read the first start address; Obtain first space corresponding with the first start address; Whether the target program mark detecting destination application is consistent with the first program identification stored in the identification field in the first space; When target program mark is consistent with the first program identification, read data volume start address, to obtain the second storage space, wherein, the second storage space is the space that the value sum of the start address of memory location, data volume start address and the first migration parameter is pointed to; First volatile data is copied to the second storage space, and wherein, the start address of the first volatile data is address corresponding to start address parameter, and the length of the first volatile data is for upgrading length.
Wherein, in this embodiment, free cells that can be corresponding from the second programmable read only memory reads the first start address, after obtaining first space corresponding with the first start address, and when destination application mark is consistent with the first program identification, also the data of the i.e. current storage in memory location are the data of destination application, read the first total length body start address.
Particularly, be destination application memory allocated position in random access memory after, method can also comprise: using the first total length and spatial content parameter sum as the second total length, and use the second total length to upgrade the first total length.
Particularly, initiate to the volatile data administration module in processor the request creating, read, upgrade one's own AVD by application program, and safeguard one's own AVDID.If this data processing request is request to create, the property parameters applied volatibility data management module imports into comprises: spatial content parameter (namely creating the size parameter alloc_size in space); If read requests, the property parameters applied volatibility data management module imports into comprises: the first migration parameter offset of start address, the first destination address parameter d st_addr of the first volatile data of the first Data Identification AVDID of the first volatile data, the data volume of the first volatile data and reading length length; If update request, the property parameters applied volatibility data management module imports into can comprise: the first migration parameter offset of start address of the first Data Identification AVDID of the first volatile data, the data volume of source data, the start address parameter s rc_addr of the source data of the first volatile data and renewal length length.Wherein, applying the property parameters imported into volatile data administration module in above-described embodiment is all be carried in data processing request.
When the data processing request that application program is initiated be read requests or update request, need first to perform request to create, also namely need the program volatile data first creating this destination application in memory location.
Particularly, APP to volatibility data management module initiate create read or upgrade AVD request time, before this must by card outer entity and smart card choose this APP alternately.Such as, when APPi and APPj successively initiates to create or read or upgrade AVD request to volatibility data management module, operating system module can when APPj be selected, volatibility data management module is initiated to the request of all AVD removing the selected APPi of eve, also can initiate all AVD(of backup eve selected APPi and current storage data or current data to volatibility data management module) request, and initiate initialization subsequently and selected the request of all AVD of APPj.
More specifically, when the data processing request from application program is request to create, the data creation to the current application program (i.e. destination application) chosen can be realized by the following method: 1) regarding internal memory EEPROM_AVDID with nybble as is the array of unit, in this array, find free cells.If find free cells, record the index data index of this unit; 2) in internal memory EEPROM_AVDHR, distribute the length that size is Header_Size(attribute head) the first space for storing the Header of destination application, first start address (i.e. first address) in this first space is write the free cells of EEPROM_AVDID; From operating system module, obtain current selected APP(and destination application) AID, aid and alloc_size is write respectively identification field (Aid field) and the data volume length field (Body_Size field) of Header; 3) internal memory EEPROM_AVDSIZE is regarded as the array of nybble one unit, read the value of aid unit of corresponding destination application, be denoted as AVD_size_aid(i.e. the first total length); From the skew AVD_size_aid place of internal memory RAM_APP, allocated size is the space of alloc_size, the value upgrading aid unit in EEPROM_AVDSIZE internal memory is (AVD_size_aid+alloc_size, be the second total length after renewal), and by the Body_Address(of the value of the first total length write Header and data volume origing address field (OAF)); 4) using index as the first Data Identification AVDID, and return to operating system module.
When the data processing request from application program is read requests, the reading of the data to the current application program (i.e. destination application) chosen can be realized by the following method: 1) volatile data administration module reads the first address of Header from AVDID the unit of internal memory EEPROM_AVDID, if be NULL(0), exit, otherwise continue; 2) obtain the aid of current selected APP from operating system module, and the Aid field value of Header compares, if not identical, request stops, otherwise continues; 3) value of the first total length is equaled from its value of first address body_address(of the Body_Address field acquisition data volume of Header), be start address by the start address+offset of body_address+ memory location, size is the space that the data copy in the space of length is pointed to dst_addr.
When the data processing request from application program is update request, the renewal of the data to the current application program (i.e. destination application) chosen can be realized by the following method: 1) volatile data administration module reads the first address of Header from AVDID the unit of internal memory EEPROM_AVDID, if be NULL(0), exit, otherwise continue; 2) obtain the aid of current selected APP from operating system module, and the Aid field value of Header compares, if not identical, request stops, otherwise continues; 3) obtaining the first address body_address of data volume from the Body_Address field of Header, is start address by dst_addr, and size is that the spatial data of length is copied in the space that (body_address+offset) point to
In addition, the data processing request of operating system also can be initiated volatibility data management module by operating system module, wherein, comprises establishment, reads, upgrades the request of the system volatile data from system.If this request is request to create, operating system module can comprise spatial content parameter to the property parameters that system volatile data management module imports into, namely creates the size parameter alloc_size in space; If read requests, operating system module can comprise the property parameters that system volatile data management module imports into: the second migration parameter offset of start address, the second destination address parameter d st_addr of system volatile data and the system of the first system mark OVDID of system volatile data, the data volume of system volatile data read length length; If update request, operating system module imports property parameters into system volatile data management module and can comprise: the first migration parameter offset of start address, the start address parameter s rc_addr of source data and system update length length of the first system mark OVDID of system volatile data, the data volume of system volatile data.
Particularly, if be request to create from the data processing request of system, then in RAM_OS, open up the space of a block size alloc_size, and start address is returned as OVDID; If read requests, then according to the parameter OVDID imported into, offset, dst_addr, length, be that the data of length are in dst_addr using copying length from OVDID and offset sum as start address; If update request, from src_addr, using the data copy of length length to OVDID and offset sum as in the space of start address.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
From above description, can find out, present invention achieves following technique effect: adopt the present invention, after the data processing request receiving destination application, obtain the memory location corresponding with data processing request, then the first processing module is used to process the first volatile data of destination application request process in this memory location, wherein, this memory location is arranged in one section of fixing physical memory of smart card, the first volatile data being in the APP of run mode from any application all can be processed in this one section of fixing physical memory like this, thus all APP can be allowed to share one section of physics memory ram, thus reach the object of saving physics ram space, solve the problem of smart card RAM physical space deficiency under many application environments for use in prior art, achieve the effect of multiple Application share RAM physical space.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. based on a data processing method for smart card, it is characterized in that, comprising:
The data processing request of receiving target application program;
Obtain the memory location corresponding with described data processing request;
Data processing is carried out to the first volatile data in described memory location,
Wherein, described memory location is arranged in one section of fixing physical memory of smart card, the data of institute asks process that described first volatile data is described destination application.
2. method according to claim 1, is characterized in that, before data processing is carried out to the first volatile data in described memory location, described method also comprises:
Detect in described smart card whether existence is the current application program of run mode;
Existence is the described current application program of run mode in described smart card, detect described current application program whether consistent with described destination application,
When described current application program and described destination application inconsistent, detect described current application program and whether be positioned at logical channel identical on described smart card with described destination application;
When described current application program is positioned at different logical channels from described destination application, back up the current data of described current application program;
When described current application program is positioned at identical logical channel with described destination application, remove the described current data on described memory location.
3. method according to claim 2, is characterized in that, described memory location comprises the step that the first volatile data carries out data processing:
When described current application program is positioned at different logical channels from described destination application, detect the state of described destination application;
When the state of described destination application is pending state, the Backup Data of described destination application is read from hang-up address, described Backup Data and described first volatile data are write described memory location, wherein, described hang-up address is the fixed address of the default described Backup Data of backup;
When the state of described destination application is for moving back state selection, the data of destination application described in initialization, write described memory location by described first volatile data.
4. method according to claim 2, is characterized in that, the step backing up the current data of described current application program comprises:
Obtain the backup address of described current data;
Be kept in described backup address using described current data as Backup Data, wherein, described backup address is the fixed address in default storer.
5. method according to claim 1, is characterized in that, the step obtaining the memory location corresponding with described data processing request comprises:
Obtain the property parameters corresponding with described data processing request;
The described memory location corresponding with described property parameters is obtained in the random access memory of described smart card.
6. method according to claim 5, it is characterized in that, described data processing request comprises request to create, described property parameters comprises: spatial content parameter, described first volatile data comprises attribute head and data volume, wherein, the step obtaining the described memory location corresponding with described property parameters in the random access memory of described smart card comprises:
Obtain the first total length, wherein, described first total length is the total length of the data volume of all volatile data that described destination application has created;
Described memory location is distributed for described destination application in described random access memory,
Wherein, the start address of described memory location is the position of described first total length of start address skew from described physical memory, the length of described memory location is the value of described spatial content parameter, and described spatial content parameter is the length of described first volatile data.
7. method according to claim 6, is characterized in that, is that before described destination application distributes described memory location, described method also comprises in described random access memory:
Free cells is found in the programmable read only memory of described smart card, and using first Data Identification of the index data of described free cells as described first volatile data;
In programmable read only memory, distribute the first space for described attribute head, first start address in described first space is write described free cells, wherein, described first space comprises: identification field, data volume origing address field (OAF) and data volume length field;
The value of the first program identification of current application program, described spatial content parameter and described first total length is write described identification field, described data volume length field and described data volume origing address field (OAF) respectively.
8. method according to claim 7, it is characterized in that, described data processing request comprises read requests, described property parameters comprises: described first Data Identification, the first migration parameter relative to the start address of the data volume of described first volatile data, the first destination address parameter and read length, wherein, described memory location comprises the step that the first volatile data carries out data processing:
The first start address is read from the described free cells corresponding with described first Data Identification;
Obtain first space corresponding with described first start address;
Whether the target program mark detecting described destination application is consistent with described first program identification stored in the identification field in described first space;
When described target program mark is consistent with described first program identification, read data volume start address, to obtain described first volatile data,
Wherein, the second start address of described first volatile data is the value sum of the start address of described memory location, described data volume start address and described first migration parameter, and the length of described first volatile data is described reading length;
Described first volatile data is copied to the first storage space that described first destination address parameter is pointed to.
9. method according to claim 7, it is characterized in that, described data processing request comprises update request, described property parameters comprises: first migration parameter of start address of the data volume of described first Data Identification, described first volatile data, the start address parameter of source data and upgrade length, wherein, described memory location comprises the step that the first volatile data carries out data processing:
The first start address is read from the described free cells corresponding with described first Data Identification;
Obtain first space corresponding with described first start address;
Whether the target program mark detecting described destination application is consistent with described first program identification stored in the identification field in described first space;
When described target program mark is consistent with described first program identification, read data volume start address, to obtain the second storage space, wherein, described second storage space is the space of the value sum sensing of the start address of described memory location, described data volume start address and described first migration parameter;
Described first volatile data is copied to the second storage space, and wherein, the start address of described first volatile data is address corresponding to described start address parameter, and the length of described first volatile data is described renewal length.
10. according to the method in claim 7 to 9 described in any one, it is characterized in that, be that after described destination application distributes described memory location, described method also comprises in described random access memory:
Using described first total length and described spatial content parameter sum as the second total length, and described second total length is used to upgrade described first total length.
11. 1 kinds based on the data processing equipment of smart card, is characterized in that, comprising:
First receiver module, for the data processing request of receiving target application program;
First acquisition module, for obtaining the memory location corresponding with described data processing request;
First processing module, for carrying out data processing to the first volatile data on described memory location,
Wherein, described memory location is arranged in one section of fixing physical memory of smart card, the data of institute asks process that described first volatile data is described destination application.
12. 1 kinds of smart cards, is characterized in that, comprising:
Processor, for after the data processing request receiving destination application, obtains the memory location corresponding with described data processing request, then on described memory location, carries out data processing to the first volatile data,
Wherein, described memory location is arranged in one section of fixing physical memory of smart card, the data of institute asks process that described first volatile data is described destination application.
13. smart cards according to claim 12, is characterized in that, described smart card also comprises:
Programmable read only memory, for preserving the attribute head of the program volatile data from application program;
Random access memory, comprise first district's random access memory and second district's random access memory, wherein, first district's random access memory is for preserving the data volume of the system volatile data from system, and described second district's random access memory is for preserving the data volume of described program volatile data.
14. smart cards according to claim 13, is characterized in that, described programmable read only memory comprises:
First programmable read only memory, for preserving the attribute head of one or more program volatile data, the attribute head of each described program volatile data takies a sub spaces, and each described subspace comprises: identification field, data volume origing address field (OAF) and data volume length field, wherein
Described identification field, for preserving the program identification of described application program;
Described data volume origing address field (OAF), for preserving the address parameter of described data volume in described random access memory;
Described data volume length field, for preserving the length data of the data volume of described program volatile data;
Second programmable read only memory, comprises one or more free cells, and each described free cells is respectively used to the first start address of described subspace shared by the described attribute head of preservation one;
3rd programmable read only memory, for preserving the total length of the data volume of the program volatile data that described application program has created;
4th programmable read only memory, comprises multiple subregion, and each subregion is for preserving the Backup Data of a described application program.
CN201310339964.4A 2013-08-06 2013-08-06 Data processing method, device and smart card based on smart card Active CN104346298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310339964.4A CN104346298B (en) 2013-08-06 2013-08-06 Data processing method, device and smart card based on smart card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310339964.4A CN104346298B (en) 2013-08-06 2013-08-06 Data processing method, device and smart card based on smart card

Publications (2)

Publication Number Publication Date
CN104346298A true CN104346298A (en) 2015-02-11
CN104346298B CN104346298B (en) 2018-12-25

Family

ID=52501944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310339964.4A Active CN104346298B (en) 2013-08-06 2013-08-06 Data processing method, device and smart card based on smart card

Country Status (1)

Country Link
CN (1) CN104346298B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144409A (en) * 2018-07-11 2019-01-04 华为技术有限公司 Data processing method and device, storage medium, data system
CN110096693A (en) * 2018-01-29 2019-08-06 北京搜狗科技发展有限公司 A kind of data processing method, device and the device for data processing
CN111488123A (en) * 2020-04-07 2020-08-04 Tcl移动通信科技(宁波)有限公司 Storage space management method and device, storage medium and mobile terminal
CN113569208A (en) * 2021-07-27 2021-10-29 恒宝股份有限公司 Data management method, smart card and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1879092A (en) * 2003-11-12 2006-12-13 松下电器产业株式会社 Cache memory and control method thereof
CN1940858A (en) * 2005-09-26 2007-04-04 深圳市朗科科技有限公司 Multi-task realization of media player
CN101078992A (en) * 2007-07-06 2007-11-28 大唐微电子技术有限公司 Intelligent card platform redevelopment method and system
CN101344861A (en) * 2007-07-10 2009-01-14 凤凰微电子(中国)有限公司 Smart card internal memory management method
CN101650972A (en) * 2009-06-12 2010-02-17 东信和平智能卡股份有限公司 Method for updating data of nonvolatile memory of intelligent card
US20100122259A1 (en) * 2003-02-18 2010-05-13 Microsoft Corporation Multithreaded kernel for graphics processing unit
CN102799660A (en) * 2012-07-04 2012-11-28 北京中电华大电子设计有限责任公司 JAVA card object management method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100122259A1 (en) * 2003-02-18 2010-05-13 Microsoft Corporation Multithreaded kernel for graphics processing unit
CN1879092A (en) * 2003-11-12 2006-12-13 松下电器产业株式会社 Cache memory and control method thereof
CN1940858A (en) * 2005-09-26 2007-04-04 深圳市朗科科技有限公司 Multi-task realization of media player
CN101078992A (en) * 2007-07-06 2007-11-28 大唐微电子技术有限公司 Intelligent card platform redevelopment method and system
CN101344861A (en) * 2007-07-10 2009-01-14 凤凰微电子(中国)有限公司 Smart card internal memory management method
CN101650972A (en) * 2009-06-12 2010-02-17 东信和平智能卡股份有限公司 Method for updating data of nonvolatile memory of intelligent card
CN102799660A (en) * 2012-07-04 2012-11-28 北京中电华大电子设计有限责任公司 JAVA card object management method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096693A (en) * 2018-01-29 2019-08-06 北京搜狗科技发展有限公司 A kind of data processing method, device and the device for data processing
CN110096693B (en) * 2018-01-29 2024-05-28 北京搜狗科技发展有限公司 Data processing method and device for data processing
CN109144409A (en) * 2018-07-11 2019-01-04 华为技术有限公司 Data processing method and device, storage medium, data system
CN111488123A (en) * 2020-04-07 2020-08-04 Tcl移动通信科技(宁波)有限公司 Storage space management method and device, storage medium and mobile terminal
CN111488123B (en) * 2020-04-07 2022-11-04 Tcl移动通信科技(宁波)有限公司 Storage space management method and device, storage medium and mobile terminal
CN113569208A (en) * 2021-07-27 2021-10-29 恒宝股份有限公司 Data management method, smart card and computer readable storage medium

Also Published As

Publication number Publication date
CN104346298B (en) 2018-12-25

Similar Documents

Publication Publication Date Title
US10726518B2 (en) Capacity reservation for virtualized graphics processing
KR102193012B1 (en) Distributed processing system and method of operating the same
CN109376123B (en) Method for managing files, distributed storage system and management node
CN102255962B (en) Distributive storage method, device and system
US20170277556A1 (en) Distribution system, computer, and arrangement method for virtual machine
CN103324533B (en) distributed data processing method, device and system
CN104903872A (en) Systems, methods, and interfaces for adaptive persistence
CN109144406B (en) Metadata storage method, system and storage medium in distributed storage system
US10534714B2 (en) Allocating cache memory on a per data object basis
CN111209090B (en) Method and assembly for creating virtual machine in cloud platform and server
CN101661486A (en) Method and system for fragment sorting for hard disk of host comprising virtual computer
CN105677904B (en) Small documents storage method and device based on distributed file system
EP3432132B1 (en) Data storage method and device
CN106817388B (en) Method and device for acquiring data by virtual machine and host machine and system for accessing data
CN105224244B (en) A kind of method and apparatus of file storage
CN104346298A (en) Device and method for data processing based on smart card and smart card
US20190199794A1 (en) Efficient replication of changes to a byte-addressable persistent memory over a network
CN104572242A (en) Method and device for expanding disk space of virtual machine and virtual machine system
CN102165407A (en) Redundant array of independent disks-related operations
CN104272242A (en) Creating encrypted storage volumes
CN105373484A (en) Memory distribution, storage and management method in network communication chip
CN102541969B (en) File protection method and system based on file allocation table (FAT) file system, and memory
CN104461706B (en) A kind of method and multiprocessing device that shared global variable is shared
CN102413183A (en) Cloud intelligence switch and processing method and system thereof
US10592493B1 (en) Spot-instanced bulk data uploading

Legal Events

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