CN103268237A - Patching function extension method and device for mask smart card - Google Patents

Patching function extension method and device for mask smart card Download PDF

Info

Publication number
CN103268237A
CN103268237A CN201310173767XA CN201310173767A CN103268237A CN 103268237 A CN103268237 A CN 103268237A CN 201310173767X A CN201310173767X A CN 201310173767XA CN 201310173767 A CN201310173767 A CN 201310173767A CN 103268237 A CN103268237 A CN 103268237A
Authority
CN
China
Prior art keywords
smart card
mask
card
address
patch
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.)
Pending
Application number
CN201310173767XA
Other languages
Chinese (zh)
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.)
Eastcompeace Technology Co Ltd
Original Assignee
Eastcompeace Technology 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 Eastcompeace Technology Co Ltd filed Critical Eastcompeace Technology Co Ltd
Priority to CN201310173767XA priority Critical patent/CN103268237A/en
Publication of CN103268237A publication Critical patent/CN103268237A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a patching function extension method and device for a mask smart card. According to the scheme, a special control module is provided through the mask smart card, and the whole process is finished by hardware, so that losses of the card performance are greatly reduced; besides, data in the mask smart card can be restored, if only a single variable is required to be modified after masking is finished, the value of a global variable can not be modified through existing technologies, and only the whole function which calls the variable can be modified, therefore, the safety of the card is greatly reduced and the service life of the card is greatly shortened. By the aid of the patching function extension method and device, the single variable can be modified, so that the performance of the card is not affected by modification of defects of the mask smart card, and meanwhile, the production efficiency of the smart cards is improved.

Description

A kind of patch method for developing functions and device of mask smart card
Technical field
The present invention relates to technical field of intelligent card, in particular, relate to patch method for developing functions and the device of mask smart card.
Background technology
In the mask smart card the inside, generally adopt at erasable non-volatile memory EEPROM storage function call list and concrete patch function, this project file has a plurality of power functions.When smart card moved, the program among the ROM (read-only memory) Rom was directly called the power function of storing in himself by the function call table that is stored among the erasable non-volatile memory EEPROM; In the time will carrying out the patch reparation, program among the ROM (read-only memory) Rom is called the patch function that is stored among the erasable non-volatile memory EEPROM by the function call table that is stored among the erasable non-volatile memory EEPROM, reaches the purpose of revising or upgrading the mask smart card function.
In research and practice process to prior art, the present inventor finds that there is following problem in prior art:
1. prior art requires to deposit the function call table in erasable non-volatile memory EEPROM, the redirect of calling that is used for power function is pointed to, when smart card moves, each function in the function call table wants redirect once, have a strong impact on the performance of smart card, especially to the stricter volume mask of performance requirement fiscard field.
2. prior art need be deposited the function call table in erasable non-volatile memory EEPROM, can additionally take a part of erasable non-volatile memory EEPROM, increases mask smart card card vendor's cost virtually.
3. prior art can only be by finishing the modification of whole functional function, and the size of code of the power function of Xiu Gaiing is bigger if desired, and the final patch code amount that produces also can be bigger, is more fatal problem to the low capacity mask smart card.
Summary of the invention
In view of this, purpose of design of the present invention is, a kind of patch method for developing functions and device of mask smart card to improve the performance of mask smart card, reduce the cost of mask smart card, reduce the size of code that needs modification.
The embodiment of the invention is achieved in that
A kind of patch method for developing functions of mask smart card comprises:
Monitor first address of the current sensing of described mask smart card by first register;
Second address by second register monitoring patch file;
When described first address is identical with described second geology, triggers interruption and carry out described patch file;
After described patch file is complete, continue to carry out the file in the mask smart card.
A kind of device comprises:
First monitoring modular is for first address of monitoring the current sensing of described mask smart card by first register;
Second monitoring modular is used for second address by second register monitoring patch file;
Trigger interrupt module, be used for when described first address is identical with described second address, trigger interruption and carry out described patch file;
Return module, be used for file in the continuation execution mask smart card after described patch file is complete.
Compared with prior art, the technical scheme that provides of present embodiment has the following advantages and characteristics:
In scheme provided by the invention, can only carry out patch installing to function performance by software layer at the prior art mask smart card revises and upgrades, scheme provided by the invention, provide a special control module by mask smart card, because whole process has hardware to finish, reduced the loss of card performance greatly, and, can also repair the data in the mask smart card, if only want to revise single variable after mask is finished, cannot revise for the value of global variable with existing technology, can only make amendment to the whole function that variable is transferred to, can reduce security performance and the serviceable life of card so largely, the present invention can make amendment at single variable, so, the defective of revising the mask smart card existence just can not influence the performance of card, has also improved the production efficiency of smart card simultaneously.
Description of drawings
In order to be illustrated more clearly in the present invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the process flow diagram of the patch method for developing functions of a kind of mask smart card provided by the present invention;
Fig. 2 is a kind of device provided by the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The related content of mask smart card once was described earlier before introducing the solution of the present invention, understands with convenient.When making mask smart card, smart card manufacturer forms executable HEX file with the operating system file code, by semiconductor production manufacturer HEX file mask is formed in the ROM then.After mask finishes, smart card production firm is again to the manufacturing of namely finishing smart card after RAM, EEPROM write variable data and user's related data, but, the operating system file that mask is formed among the ROM can not be modified, in case mask begins, even the smart card manufacturer finds operating system file and exists defective to revise, consequently cause smart card to be scrapped in batches, this brings tremendous loss usually for smart card production firm.In addition, smart card production firm often needs the operating system file of smart card to be upgraded or processing such as function expansion according to different customer demands, in case smart card begins mask process, smart card production firm also can't realize system upgrade, and this defective brings very big inconvenience for the production of smart card production firm.
At present, function expansions such as the modification that realizes the mask smart card program, upgrading have been arranged at this phenomenon, mainly be that patch installing is repaired to function, mostly realization is all carried out correspondence at software layer by certain operations and is jumped to patch file and repair upgrading processing, can revise some defectives although it is so, but also have some shortcomings: one, reduced the performance of blocking largely in the operation of software layer, its two, can not repair immediately the mistake of card data.
The problem that mask smart card is made amendment, upgraded function performance at software layer at foregoing description, enforcement of the present invention mainly provides a kind of mask smart card function expansion new method, can realize under the situation minimum to the loss of card performance that the functions such as modification, upgrading of power function in the mask smart card and card data mistake are expanded.
The embodiment of the invention provides a kind of patch method for developing functions and device of mask smart card, to improve the performance of mask smart card, reduces the cost of mask smart card, reduces the size of code that needs modification.Because there are multiple mode in the patch method for developing functions of above-mentioned mask smart card and the specific implementation of device, are elaborated below by specific embodiment:
See also shown in Figure 1ly, shown in Figure 1 is a kind of patch method for developing functions of mask smart card, comprising:
S11, monitor first address of the current sensing of described mask smart card by first register;
S12, second address by second register monitoring patch file;
S13, when described first address is identical with described second geology, trigger to interrupt also carrying out described patch file;
S14, the file after described patch file is complete in the continuation execution mask smart card.
In the embodiment shown in fig. 1, can only carry out patch installing to function performance by software layer at the prior art mask smart card revises and upgrades, scheme provided by the invention, provide a special control module by mask smart card, because whole process has hardware to finish, reduced the loss of card performance greatly, and, can also repair the data in the mask smart card, if only want to revise single variable after mask is finished, cannot revise for the value of global variable with existing technology, can only make amendment to the whole function that variable is transferred to, can reduce security performance and the serviceable life of card so largely, the present invention can make amendment at single variable, so, the defective of revising the mask smart card existence just can not influence the performance of card, has also improved the production efficiency of smart card simultaneously.
In the embodiment shown in fig. 1, mask smart card comprises ROM (read-only memory), random access memory and erasable non-volatile memory, the project file of storage smart card in the ROM (read-only memory).By mask smart card being realized patch control control module, so-called patch control control module comprises code control module and Data Control module, and two groups of registers are arranged.Smart card is when operation, the address that patch control control module is pointed to by one group of register monitoring PC, the address that patch installing is wanted in another group register monitoring, compare by register, when two addresses are consistent, trigger code watch exception and interrupt, namely jump in the patch code and carry out, and do not carry out original function performance unit, when executing, patch gets back to interrupt address continuation execution.Because the patch function can be repaired or upgrades at corresponding power function, therefore smart card moves the patch function, namely realize the extension process such as modification, upgrading to former project file, thereby reduced the production cost of smart card production firm, improved the production efficiency of smart card.
See also shown in Figure 2ly, shown in Figure 2 is a kind of device, comprising: first monitoring modular 1 is used for monitoring by first register first address of the current sensing of described mask smart card; Second monitoring modular 2 is used for second address by second register monitoring patch file; Trigger interrupt module 3, be used for when described first address is identical with described second address, trigger interruption and carry out described patch file; Return module 4, be used for file in the continuation execution mask smart card after described patch file is complete.
Need to prove that Fig. 1 is the preferred embodiment that the present invention introduces to embodiment shown in Figure 2, those skilled in the art can design more embodiment on this basis fully, therefore do not give unnecessary details herein.
Multiple modification to these embodiment will be apparent concerning those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments herein.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the wideest scope consistent with principle disclosed herein and features of novelty.

Claims (2)

1. the patch method for developing functions of a mask smart card is characterized in that, comprising:
Monitor first address of the current sensing of described mask smart card by first register;
Second address by second register monitoring patch file;
When described first address is identical with described second geology, triggers interruption and carry out described patch file;
After described patch file is complete, continue to carry out the file in the mask smart card.
2. a device is characterized in that, comprising:
First monitoring modular is for first address of monitoring the current sensing of described mask smart card by first register;
Second monitoring modular is used for second address by second register monitoring patch file;
Trigger interrupt module, be used for when described first address is identical with described second address, trigger interruption and carry out described patch file;
Return module, be used for file in the continuation execution mask smart card after described patch file is complete.
CN201310173767XA 2013-05-10 2013-05-10 Patching function extension method and device for mask smart card Pending CN103268237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310173767XA CN103268237A (en) 2013-05-10 2013-05-10 Patching function extension method and device for mask smart card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310173767XA CN103268237A (en) 2013-05-10 2013-05-10 Patching function extension method and device for mask smart card

Publications (1)

Publication Number Publication Date
CN103268237A true CN103268237A (en) 2013-08-28

Family

ID=49011870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310173767XA Pending CN103268237A (en) 2013-05-10 2013-05-10 Patching function extension method and device for mask smart card

Country Status (1)

Country Link
CN (1) CN103268237A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677909A (en) * 2013-12-05 2014-03-26 北京大唐智能卡技术有限公司 Method and device for achieving mask card patch mechanism
CN113568637A (en) * 2021-07-14 2021-10-29 武汉天喻信息产业股份有限公司 Smart card system package updating management method and device
CN113568637B (en) * 2021-07-14 2024-05-03 武汉天喻信息产业股份有限公司 Method and device for updating and managing smart card system package

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0553733A2 (en) * 1992-01-24 1993-08-04 Sony Corporation Electronic apparatus and method for patching a fixed information
CN1373872A (en) * 1999-09-14 2002-10-09 高通股份有限公司 Method and apparats for modifying microinstructions in static memory device
CN1479309A (en) * 2002-07-04 2004-03-03 三星电子株式会社 Method and device for repairing shortage of memory
CN1826661A (en) * 2003-07-21 2006-08-30 因芬尼昂技术股份公司 Memory device and method of storing fail addresses of a memory cell
CN101196847A (en) * 2006-12-08 2008-06-11 深圳艾科创新微电子有限公司 Method for automatic maintenance of CPU program memory and hardware cell structure
CN102023843A (en) * 2010-11-24 2011-04-20 北京握奇数据系统有限公司 Function calling method and device as well as smart card

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0553733A2 (en) * 1992-01-24 1993-08-04 Sony Corporation Electronic apparatus and method for patching a fixed information
CN1373872A (en) * 1999-09-14 2002-10-09 高通股份有限公司 Method and apparats for modifying microinstructions in static memory device
CN1479309A (en) * 2002-07-04 2004-03-03 三星电子株式会社 Method and device for repairing shortage of memory
CN1826661A (en) * 2003-07-21 2006-08-30 因芬尼昂技术股份公司 Memory device and method of storing fail addresses of a memory cell
CN101196847A (en) * 2006-12-08 2008-06-11 深圳艾科创新微电子有限公司 Method for automatic maintenance of CPU program memory and hardware cell structure
CN102023843A (en) * 2010-11-24 2011-04-20 北京握奇数据系统有限公司 Function calling method and device as well as smart card

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677909A (en) * 2013-12-05 2014-03-26 北京大唐智能卡技术有限公司 Method and device for achieving mask card patch mechanism
CN113568637A (en) * 2021-07-14 2021-10-29 武汉天喻信息产业股份有限公司 Smart card system package updating management method and device
CN113568637B (en) * 2021-07-14 2024-05-03 武汉天喻信息产业股份有限公司 Method and device for updating and managing smart card system package

Similar Documents

Publication Publication Date Title
CN102063634B (en) Function expanding method of mask intelligent card and intelligent card
US7424570B2 (en) Method for patching ROM instructions in an electronic embedded system including at least a further memory portion
CN102236621B (en) Computer interface information configuration system and method
CN101533481B (en) Method for expanding function of mask smart card
CN101251813A (en) Device and method for mobile telephone system recovery
CN101004681A (en) Method for implementing long jumping dynamic patch in embedded system
CN1732443B (en) Method and apparatus for patching code and data residing on a memory
CN105512549A (en) Application program intercepting method and device
CN103500191A (en) Flow table configuration, query and table item deleting method and device
CN104461625A (en) Hot patch realization method and system
CN104965708B (en) A kind of EMS memory management process and device of application program operational process
CN102567097A (en) Method and terminal for downloading multiple tasks
CN100561384C (en) The increment type on-line downloading method of control system configuration
CN104657258A (en) Method and device for injecting Java bit codes into target process
CN102938817A (en) Storage mount achieving method and device under recovery mode of mobile phone
CN103077056B (en) Use the Bootlorder implementation method of a small amount of ROM resource
CN109947500A (en) A kind of program loading method, device, system, chip and storage medium
US20070294599A1 (en) Method for patching a read-only memory and a data processing system comprising a means of patching the read-only memory based on patch contexts
CN103019825A (en) Method and device for controlling applications
CN106502750B (en) OTA upgrade method and Bluetooth chip
CN102883309A (en) Method and device for machine-to-machine (M2M) communication
CN103632185A (en) Covering film intelligent card with extended functions
CN103268237A (en) Patching function extension method and device for mask smart card
CN106547606B (en) Storehouse self checking method and device
CN100375029C (en) Memory disposition methods and systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20130828

RJ01 Rejection of invention patent application after publication