CN101078992A - Intelligent card platform redevelopment method and system - Google Patents
Intelligent card platform redevelopment method and system Download PDFInfo
- Publication number
- CN101078992A CN101078992A CNA2007101184924A CN200710118492A CN101078992A CN 101078992 A CN101078992 A CN 101078992A CN A2007101184924 A CNA2007101184924 A CN A2007101184924A CN 200710118492 A CN200710118492 A CN 200710118492A CN 101078992 A CN101078992 A CN 101078992A
- Authority
- CN
- China
- Prior art keywords
- application code
- smart card
- file
- compiling
- operating system
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a redeveloping method of smart card flatform, which is characterized by the following: translating and editing executive system code; connecting; generating binary mode file; loading down to smart card; and providing down load order and down load position information of the application code; translating and editing the application code; connecting and generating the binary mode file; basing the down load order; loading down to the down load position of the smart card; registering the entry address information of the application code in the operating system. This invention also discloses a redeveloping system of the smart card flatform. This invention meets the needs of mutually non-public the code of the developing two parts.
Description
Technical field
The present invention relates to field of intelligent cards, particularly relate to a kind of redevelopment method and system of smart card platform.
Background technology
The popularization and application of smart card brings many facilities to daily life.For example, when people take the public transport automobile, only need on card reader, to brush mass transit card, save the inconvenience of preparing change in advance; When buying big ticket item, only need on the POS of businessman machine, to brush bank card, avoid carrying the inconvenience of wholesale debt; When entering the place that needs authenticating identity, only need on card reader, to brush ID (identity number) card, save the loaded down with trivial details of examination identity.But often a kind of smart card only has a certain function, and this just needs the user to carry many ID (identity number) card, to tackle different application.
Use for further facilitating people, need carry out opening again, multiple application function is integrated on a certain smart card the smart card platform.
Consult Fig. 1, be the redevelopment method process flow diagram of existing smart card platform, concrete steps are as described below.
Step S101, at the different application code of different application function exploitation.
As, at the subway application of swiping the card, exploitation meets the application code of subway service regeulations.
Step S102, embedded OS code and application code compiled to be connected together generate binary file.
Embedded OS with source code or static library form in the smart card is compiled connection with above-mentioned application code, the binary file that generates is downloaded in the chip of smart card.
In the development approach once more of above-mentioned smart card platform, embedded OS and application code are full disclosures.If the redevelopment work of smart card platform is finished by two sides cooperation, one side provides smart card hardware, reaches embedded OS, the opposing party is at application function Application and Development code, embedded OS and application code all are the core technology of the two sides concerned, need hold in close confidence, at this moment embedded OS and application code bring influence openly can for the security of the two sides concerned.Sino-foreign cooperation project particularly, many times the code that provides of the two sides concerned must guarantee undergroundly mutually, obviously, the development approach once more of existing smart card platform can't meet the demands.
Summary of the invention
Technical matters to be solved by this invention provides a kind of redevelopment method of smart card platform, and this method need not disclose embedded OS and application code on stream, satisfies the mutual covert requirement of code that the cooperative development both sides provide.
Another object of the present invention provides a kind of redevelopment system of smart card platform, and this system need not disclose embedded OS and application code on stream, satisfies the mutual covert requirement of code that the cooperative development both sides provide.
The present invention discloses a kind of redevelopment method of smart card platform, comprising: the operating system compiling is connected the generation binary file, download in the smart card, and the download instruction and the download location information of application code are provided; The application code compiling is connected the generation binary file, it is downloaded to the above-mentioned download location of smart card according to above-mentioned download instruction; Register the entry address information of described application code in described operating system.
Preferably, the entry address information of the described application code of registration in the register-file that described operating system is created.
Preferably, also comprise: the trigger condition information of registered application code module in described register-file.
Preferably, also comprise: the initialization information of registered application code module in described register-file.
Preferably, provide the download location information of application code to comprise: the stored position information of application code to be provided, and independently ram space of application code is provided.
Preferably, described operating system code is stored in the smart card with the ROM form.
The present invention also discloses a kind of redevelopment system of smart card platform, the first compiling linkage unit, second compiles linkage unit, reaches registering unit: the described first compiling linkage unit, be used for the operating system compiling is connected the generation binary file, download in the smart card, and transmit the download instruction and download location information to the second compiling linkage unit of application code; The described second compiling linkage unit is used for the application code compiling is connected the generation binary file, according to above-mentioned download instruction it is downloaded to the above-mentioned download location of smart card; Registering unit is used for registering in described operating system the entry address information of described application code.
Preferably, the entry address information of described registering unit described application code of registration in the register-file that described operating system is created.
Preferably, the trigger condition information of described registering unit registered application code module in described register-file.
Preferably, the initialization information of described registering unit registered application code module in described register-file.
Compared with prior art, the present invention has the following advantages:
Cooperation one of the present invention can connect operating system compiling and generates binary file, downloads in the smart card, and provides the download instruction of application code and download location to cooperation the opposing party; Cooperation the opposing party connects the generation binary file with the application code compiling, according to above-mentioned download instruction it is downloaded to the above-mentioned download location of smart card, register the entry address information of described application code in described operating system, finish exploitation once more the smart card platform.
The present invention realizes that operating system and application code separate compiling, download, in the cooperative development project, cooperation one side downloads to smart card with operating system earlier, only need offer the download instruction and the download location of cooperation the opposing party application code, by cooperation the opposing party application code is compiled connection again and generate binary file, download in the smart card.Connect the generation binary file with respect to of the prior art operating system is compiled with application code, download in the smart card, the present invention makes cooperative development underground on stream embedded OS of both sides and application code, satisfies the mutual covert requirement of code that the cooperative development both sides provide.
Description of drawings
Fig. 1 is the redevelopment method process flow diagram of existing smart card platform;
The redevelopment method process flow diagram of the smart card platform that Fig. 2 provides for first embodiment of the invention;
The redevelopment method process flow diagram of the smart card platform that Fig. 3 provides for second embodiment of the invention;
The redevelopment system schematic of the smart card platform that Fig. 4 provides for third embodiment of the invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Cooperation one of the present invention can connect operating system code compiling and generates binary file, downloads in the smart card, and provides the download instruction of application code and download location to cooperation the opposing party; Cooperation the opposing party connects the generation binary file with the application code compiling, according to above-mentioned download instruction it is downloaded to the above-mentioned download location of smart card, register the entry address information of described application code in described operating system, finish exploitation once more the smart card platform.
With reference to Fig. 2, the redevelopment method process flow diagram of the smart card platform that provides for first embodiment of the invention, concrete steps are as described below.
Step S201, operating system code compiling connected generate binary file, download in the smart card.
Earlier compiler is disposed accordingly, the compiling of being finished embedded OS by compiler automatically connects, and the binary file that generates is downloaded in the chip of smart card again.
When embedded OS connects in compiling, generate a symbol table file.Internally collaborative project can offer cooperation in development side with above-mentioned symbol table file, is used for partner and resolves the symbolic reference that exploitation is used, and resolving is finished automatically by compiler.Sino-foreign cooperation project does not provide symbol table file, guarantees that operating system is secret to exploitation partner.
Step S202, the download instruction that application code is provided and download location information are to cooperation the opposing party.
According to the distribution operating position of intelligent card chip hardware resource, embedded OS distributes storage space in threaded file, is the application code reserved storage space, reserves independently ram space for application code simultaneously.Embedded OS also provides download instruction for application code.
Step S203, application code compiling connected generate binary file, it is downloaded to download location on the smart card according to download instruction.
The cooperative development policy compiles application code separately the binary file that connects generation again to the different different application codes of application function exploitation, utilizes card reader and download instruction application code to be downloaded to the download location of intelligent card chip with form of scripts.
Step S204, in the entry address information of operating system registered application code.
Application code is that the form with application module exists in intelligent card chip, and the entry address information of each application module needs according to the rules that form is registered in the operating system, is convenient to each application module of operating system management.
The present invention realizes that operating system and application code separate compiling, download, in the cooperative development project, cooperation one side downloads to smart card with operating system earlier, only need offer the download instruction and the download location of cooperation the opposing party application code, by cooperation the opposing party application code is compiled connection again and generate binary file, download in the smart card.The present invention makes cooperative development underground on stream embedded OS of both sides and application code, satisfies the mutual covert requirement of code that the cooperative development both sides propose.
Now with integrated public transport on smart card swipe the card, subway is swiped the card, the gate inhibition swipes the card etc., and application function is an example, describes the redevelopment method of smart card platform of the present invention in detail.
With reference to Fig. 3, the redevelopment method process flow diagram of the smart card platform that provides for second embodiment of the invention, concrete steps are as described below.
Step S301, operating system code compiling connected generate binary file, download in the smart card.
Earlier compiler is disposed accordingly, the compiling of being finished embedded OS by compiler automatically connects, and the binary file that generates is downloaded in the chip of smart card again.
Step S302, the download instruction that application code is provided and download location information are to cooperation the opposing party.
According to the distribution operating position of intelligent card chip hardware resource, embedded OS to the distributing of storage space, is the application code reserved storage space in threaded file, reserve independently ram space for application code simultaneously.Embedded OS provides download instruction for application code.
Step S303, at the different application code of different application function exploitation.
Develop different application codes respectively at public transport function of swiping card, subway function of swiping card, gate inhibition's function of swiping card.
Step S304, the compiling of above-mentioned application code connected generate binary file, it is downloaded to download location on the smart card according to download instruction.
Cooperative development side compiles application code separately and connects the binary file that generates, and utilizes card reader and download instruction application code to be downloaded to the download location of intelligent card chip with form of scripts.
Step S305, in the register-file that described operating system is created the entry address information and the trigger condition information of registered application code.
Application code is that the form with application module exists in intelligent card chip, and the entry address information of each application module and trigger condition information form according to the rules are registered in the operating system.This register-file is linear fixed-length record file, the full detail of an application module of all corresponding record of every record wherein.The interpolation of application module, deletion all are to finish by the operation to this register-file.
Application module can select to use oneself independently data space, also can share the file system of embedded OS.Application module does not have oneself independently stack space, when using, uses the stack space of embedded OS.
When starting, need carry out some initialization operations as application module in advance, for example need some global variable initialize, then need be in the register-file of operating system the entry address information of register initial code, before carrying out application code, carry out this part setup code of its correspondence earlier.For saving the chip area of smart card, the form of operating system code with ROM can be stored in the intelligent card chip.
Redevelopment method based on above-mentioned smart card platform, the present invention also provides a kind of redevelopment system of smart card platform, this system need not disclose embedded OS and application code on stream, satisfies the mutual covert requirement of code that the cooperative development both sides propose.
Consult Fig. 4, the redevelopment system schematic of the smart card platform that provides for third embodiment of the invention comprises the first compiling linkage unit 41, the second compiling linkage unit 42, and registering unit 43.
The first compiling linkage unit 41 connects the generation binary file with the operating system code compiling, downloads in the smart card, and transmits the download instruction and download location information to the second compiling linkage unit 42 of application code.
The first compiling linkage unit 41 comprises compiler, and by compiler is disposed accordingly, the compiling of being finished embedded OS by compiler automatically connects, and the binary file that generates is downloaded in the chip of smart card again.
The second compiling linkage unit 42 connects the generation binary file with the application code compiling, according to above-mentioned download instruction it is downloaded to the above-mentioned download location of smart card.
Registering unit 43 is in the entry address information of operating system registered application code.
Application code is that the form with application module exists in intelligent card chip, registering unit 43 with the entry address information of each application module according to the rules form be registered in the operating system, be convenient to each application module of operating system management.
The entry address information of registering unit 43 registered application module in the register-file that operating system is created.As required, the trigger condition information and the initialization information of registering unit 43 registered application module in the register-file that operating system is created.Register-file is linear fixed-length record file, the full detail of an application module of all corresponding record of every record wherein.The interpolation of application module, deletion all are to finish by the operation to this register-file.
More than the redevelopment method and the system of a kind of smart card platform provided by the present invention is described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1, a kind of redevelopment method of smart card platform is characterized in that, comprising:
The operating system code compiling is connected the generation binary file, download in the smart card, and the download instruction and the download location information of application code are provided;
The application code compiling is connected the generation binary file, it is downloaded to the above-mentioned download location of smart card according to above-mentioned download instruction;
Register the entry address information of described application code in described operating system.
2, the method for claim 1 is characterized in that, the entry address information of the described application code of registration in the register-file that described operating system is created.
3, method as claimed in claim 2 is characterized in that, also comprises:
The trigger condition information of registered application code module in described register-file.
4, method as claimed in claim 2 is characterized in that, also comprises:
The initialization information of registered application code module in described register-file.
5, the method for claim 1 is characterized in that, provides the download location information of application code to comprise: the stored position information of application code is provided, and independently ram space of application code is provided.
6, the method for claim 1 is characterized in that, described operating system code is stored in the smart card with the ROM form.
7, a kind of redevelopment system of smart card platform is characterized in that, the first compiling linkage unit, second compiles linkage unit, reaches registering unit:
The described first compiling linkage unit is used for the operating system code compiling is connected the generation binary file, downloads in the smart card, and transmits the download instruction and download location information to the second compiling linkage unit of application code;
The described second compiling linkage unit is used for the application code compiling is connected the generation binary file, according to above-mentioned download instruction it is downloaded to the above-mentioned download location of smart card;
Registering unit is used for registering in described operating system the entry address information of described application code.
8, system as claimed in claim 7 is characterized in that, the entry address information of described registering unit described application code of registration in the register-file that described operating system is created.
9, system as claimed in claim 7 is characterized in that, the trigger condition information of described registering unit registered application code module in described register-file.
10, system as claimed in claim 7 is characterized in that, the initialization information of described registering unit registered application code module in described register-file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101184924A CN100481006C (en) | 2007-07-06 | 2007-07-06 | Intelligent card platform redevelopment method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101184924A CN100481006C (en) | 2007-07-06 | 2007-07-06 | Intelligent card platform redevelopment method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101078992A true CN101078992A (en) | 2007-11-28 |
CN100481006C CN100481006C (en) | 2009-04-22 |
Family
ID=38906478
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007101184924A Active CN100481006C (en) | 2007-07-06 | 2007-07-06 | Intelligent card platform redevelopment method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100481006C (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101984449A (en) * | 2010-11-30 | 2011-03-09 | 公安部第三研究所 | Smart card COS operating system |
WO2012072001A1 (en) * | 2010-11-30 | 2012-06-07 | 飞天诚信科技股份有限公司 | Safe method for card issuing, card issuing device and system |
CN101751258B (en) * | 2009-12-30 | 2013-06-26 | 大唐微电子技术有限公司 | Intelligent card and developing method, system and deployment method for intelligent card application |
CN104346298A (en) * | 2013-08-06 | 2015-02-11 | 北京数码视讯软件技术发展有限公司 | Device and method for data processing based on smart card and smart card |
CN108614696A (en) * | 2016-12-08 | 2018-10-02 | 腾讯科技(深圳)有限公司 | The method and device that a kind of method that application makes, static library generate |
CN108989737A (en) * | 2017-07-18 | 2018-12-11 | 北京视联动力国际信息技术有限公司 | A kind of data playing method, device and electronic equipment |
-
2007
- 2007-07-06 CN CNB2007101184924A patent/CN100481006C/en active Active
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101751258B (en) * | 2009-12-30 | 2013-06-26 | 大唐微电子技术有限公司 | Intelligent card and developing method, system and deployment method for intelligent card application |
CN101984449A (en) * | 2010-11-30 | 2011-03-09 | 公安部第三研究所 | Smart card COS operating system |
WO2012072001A1 (en) * | 2010-11-30 | 2012-06-07 | 飞天诚信科技股份有限公司 | Safe method for card issuing, card issuing device and system |
CN101984449B (en) * | 2010-11-30 | 2013-01-02 | 公安部第三研究所 | Smart card COS operating system |
CN104346298A (en) * | 2013-08-06 | 2015-02-11 | 北京数码视讯软件技术发展有限公司 | Device and method for data processing based on smart card and smart card |
CN104346298B (en) * | 2013-08-06 | 2018-12-25 | 北京数码视讯软件技术发展有限公司 | Data processing method, device and smart card based on smart card |
CN108614696A (en) * | 2016-12-08 | 2018-10-02 | 腾讯科技(深圳)有限公司 | The method and device that a kind of method that application makes, static library generate |
CN108614696B (en) * | 2016-12-08 | 2021-10-29 | 腾讯科技(深圳)有限公司 | Application making method, static library generation method and device |
CN108989737A (en) * | 2017-07-18 | 2018-12-11 | 北京视联动力国际信息技术有限公司 | A kind of data playing method, device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN100481006C (en) | 2009-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100476721C (en) | Methods and apparatus to provide a modular native method invocation system, and system thereof | |
CN106663019B (en) | Processing value types | |
CN101078992A (en) | Intelligent card platform redevelopment method and system | |
CN1311343C (en) | Method and system for improving performance of java virtual machine | |
CN101421711B (en) | Virtual execution system for resource-constrained devices | |
CN100594479C (en) | Methods and apparatus to optimize application program interfaces in a virtual machine environment | |
US20090307292A1 (en) | Dynamically changing a garbage collector in a managed runtime system | |
CN101755271A (en) | Method and apparatus for managing access privilege in cldc osgi environment | |
US8930957B2 (en) | System, method and program product for cost-aware selection of stored virtual machine images for subsequent use | |
EP3314422A1 (en) | Extending a virtual machine instruction set architecture | |
US9952884B1 (en) | Executing optimized local entry points and function call sites | |
WO2001025917A3 (en) | Environment service architectures for netcentric computing systems | |
US20180314504A1 (en) | Compiling Optimized Entry Points for Local-Use-Only Function Pointers | |
CN1834918A (en) | Call method between chip | |
US20180113723A1 (en) | Executing Optimized Local Entry Points | |
CN1821964A (en) | Method and apparatus for inlining native functions into compiled java code | |
US20100050174A1 (en) | Heap organization for a multitasking virtual machine | |
CN1367895A (en) | Migration of different source languages to executing medium | |
CN101833464A (en) | Method and device for sectionally loading application programs by mobile terminal | |
Wallentowitz et al. | Potential of webassembly for embedded systems | |
CN112328319A (en) | Satellite-borne APP dynamic loading method supporting RAM file system | |
CN1904824A (en) | Method and system of establishing culture sensitive control element for global application | |
CN102388363A (en) | Application of platform dependent routines in virtual machines by embedding native code in class files | |
CN102129385B (en) | Management method capable of dynamically expanding management function of virtual machine | |
CN103631645A (en) | Digital family middleware system based on digital medical treatment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20071128 Assignee: Beijing Datang Smart Card Co., Ltd. Assignor: Datang Microelectronics Technology Co., Ltd. Contract record no.: 2016110000008 Denomination of invention: Intelligent card platform redevelopment method and system Granted publication date: 20090422 License type: Common License Record date: 20160422 |
|
LICC | Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model |