CN106127092B - A kind of smart card and its working method of COS systems application stripping - Google Patents

A kind of smart card and its working method of COS systems application stripping Download PDF

Info

Publication number
CN106127092B
CN106127092B CN201610432049.3A CN201610432049A CN106127092B CN 106127092 B CN106127092 B CN 106127092B CN 201610432049 A CN201610432049 A CN 201610432049A CN 106127092 B CN106127092 B CN 106127092B
Authority
CN
China
Prior art keywords
application
cos
systems
function
application program
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.)
Active
Application number
CN201610432049.3A
Other languages
Chinese (zh)
Other versions
CN106127092A (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.)
CHENGDU SANLINGJIA MICROELECTRONIC Co Ltd
Original Assignee
CHENGDU SANLINGJIA MICROELECTRONIC 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 CHENGDU SANLINGJIA MICROELECTRONIC Co Ltd filed Critical CHENGDU SANLINGJIA MICROELECTRONIC Co Ltd
Priority to CN201610432049.3A priority Critical patent/CN106127092B/en
Publication of CN106127092A publication Critical patent/CN106127092A/en
Application granted granted Critical
Publication of CN106127092B publication Critical patent/CN106127092B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10297Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/077Constructional details, e.g. mounting of circuits in the carrier
    • G06K19/07701Constructional details, e.g. mounting of circuits in the carrier the record carrier comprising an interface suitable for human interaction

Abstract

The present invention provides the smart cards and its working method of a kind of application stripping of COS systems.The smart card includes chip, COS systems, shared variable library, customized application module.Application management module closely related with user's customized demand in traditional COS systems is divided into application interface and customized application two parts by the present invention, application interface belongs to COS systems, by chip production, quotient develops, and for customized application independently of COS systems, user can self-developing according to demand.The COS systems designed according to the present invention include only application interface independently of application function, and facing multiple users not only increase safety, and can reduce exploitation and test job amount, reduce development difficulty, improve development efficiency;Download online, the update for supporting application, update convenient for the application function in smart card later stage, can reduce maintenance cost.

Description

A kind of smart card and its working method of COS systems application stripping
Technical field
The present invention relates to embedded SOC(System On Chip)What field more particularly to a kind of application of COS systems were removed Smart card and its working method.
Background technology
Smart card is by hardware resource(Chip)It is formed with Chip Operating System COS.
Chip is mainly by CPU processor, storage unit(Including random access memory, electricity erasable memorizer), peripheral circuit Composition.
COS systems are the cores of smart card, are embedded in the chip, managing chip hardware resource, the safe place for executing data Reason and access, and pass through the monitoring software system of peripheral interface and communicating with external device.
Traditional smart card COS system structures generally include main system control module, hardware resource management module, telecommunication management Several parts such as module, safety management module, file system management module and application management module, as shown in Figure 1.System master Module is the core of COS, is directly facing hardware resource, is uniformly coordinated each module operating;Safety management module is to transimission and storage Data be encrypted, permission differentiate, it is ensured that the safety of smart card;File system management module management is stored with document form Data are responsible for completing to operations such as lookup, the read-writes of file, and are managed to memory space;Application management module is to outside The various instructions being sent into are judged, parsed and are handled, and dispatch internal resource to complete the corresponding of user's customized application function Operation.
The considerations of for smart card low-power consumption, cost needs, should save occupancy memory resource as possible, COS systems Code, system configuration and file system are then stored in electricity erasable memorizer because needing power down to preserve, and needed for COS system operations Global, static variable and stacked data because variable and processing speed height is then stored in random access memory, the operation of COS system programs from Electricity erasable memorizer reads instruction and read-only data, reads and writes data from random access memory, as shown in Figure 2.
Traditional smart card COS systems are developed for certain chip and customized application, usually complete by chip production quotient At exploitation, because only that they just really understand the technical detail of chip bottom.There are more users, every user with a chip Application scenarios it is different, it is meant that need multiple COS system softwares that could meet multi-user's demand per money chip.Chip production quotient It needs to customize dedicated COS systems for every user, since chip production quotient developer is general lack of specific application scene Technological reserve, development difficulty increases, time span is long, and each COS systems that customize are required for largely testing, and greatly reduce in this way The efficiency of exploitation, and traditional COS systems do not support that application function is independently updated, later maintenance cost increases.
Invention content
To solve the above problems, the present invention provides a kind of smart card of COS systems application stripping, the smart card includes Chip, COS systems, shared variable library, customized application module;
The chip is made of CPU, memory module, peripheral circuit.Memory module is divided into code storage unit and variable is deposited Storage unit, the code storage unit are divided into COS system codes area, system configuration code area, application code area;The variable is deposited Storage unit is divided into shared variable area, COS system global variables area, application system global variable district, shared stack area.
The COS systems include main system control module, hardware resource management module, communication management module, safety management mould Block, application interface module;The COS systems are used to control smart card and are exchanged with extraneous order, manage resource in smart card, are User provides the application interface library for calling COS system internal resources;Application interface module is mainly by application interface library and application Interface management unit forms, and the application interface library includes multiple application interface functions;Application interface administrative unit is using journey Sequence provides download, more new tunnel, carries out the registration of application program, configures running environment for application program, and manage user and answer With the transmission of data.
Shared variable library is the set of shared global variable, is handed over for realizing the data of COS systems and customized application module Mutually, and data buffer storage is provided;The shared variable inventory is stored in shared variable area.
Customized application module is constituted by application environment dispensing unit, using log-on message unit and application function unit;It answers With environment configurations unit for carrying out application interface function initialization, to call COS system internal resources;Using log-on message list Member is for providing the information needed for application program operation for COS systems;Application function unit is matched for providing an application environment Function entrance address is set, to realize temporary transfer of the CPU pointers control to application program.
Further, application interface library includes memory management class library function, logical operation class library function, safety management class Library function, system operatio class library function and file system operation class library function;Memory management class library function is for being stored The reading of space correlation write-in, wipes, compares operation;Logical operation class library function for carry out logical AND, logic or exclusive or, From exclusive or and logical operation;Safety management class library function is for providing safety-related interface function;System operatio class libraries letter Number for user application for providing system generic operation function interface;File system operation class library function provides for application program File manipulation function.
Further, include the initial address of text sections of application program, using journey using the information in log-on message unit The end address of data sections of initial address, the application program of the end address, data sections of application program that text section of sequence, application program Bss sections of initial address, the end address of bss sections of application program, using initial configuration function entrance address, application function letter Number entry address.
Further, code storage unit is stored using electricity erasable memorizer, and variable storage unit is to use Random access memory is stored.
Further, shared global variable includes specified in ISO/IEC 7816-3 and ISO/IEC 7816-4 agreements Five command header variables of APDU, data cached, caching the random number of read-write equipment.
The workflow of above-mentioned COS systems includes downloading and updating application work flow, using workflow.
The download and update application work flow include the following steps:
Step 1:COS system operations wait for the order of exterior read-write equipment, when detect order be update application code When, download, the update of COS system executing applications.
Step 2:Application program is downloaded, after the completion of update, and whether COS system detectios application program is registered, such as application program It does not register, then jumps to step 4, if application program has been registered, then follow the steps three.
Step 3:COS systems are application program running configuration environment:Read initial position in area text sections of application code Log-on message, data sections of initial position and end position, application environment configuration function entry address, and move data sections of number According to using global variable district, last COS systems jump to application environment configuration function entry address, by the PC pointers of CPU Control hands to application program, application execution environment configuration.
Step 4:COS base commands are executed, judge whether the base command needs to download and/or update application, such as otherwise Power cut-off flow, otherwise then download and/or more new application.
Step 5:It returns, power cut-off flow.
The application workflow includes the following steps:
Step 1:Smart card powers on, and waits the reset instruction of read-write equipment to be received, is sent again to read-write equipment if receiving Position response simultaneously executes step 2.
Step 2:Whether COS system detectios are applied registers, if detecting, application is registered, and COS systems are that application configuration is transported Row environment, and step 3 is carried out, COS systems can handle base instruction if without registration, carry out step 4.
Step 3:COS systems are standby, wait the order to be received from card-reading apparatus.Order is divided into basis and refers to Enable processing and application processing, when being instructed based on order, execute step 4;When order is handled for application, step 5 is executed.
Step 4:COS systems obtain the control of CPU pointers, and instruction is read, from COS systems from COS system codes area Global variable district accesses data, completes command process, and execute step 6.
Step 5:COS systems give the control of CPU pointers to application program, and the pointer of application program controlling CPU is from answering Instruction is read with code area, accesses data from the global variable district of application, completes the processing of application function, and application program will be handled As a result COS systems are fed back to by shared variable area, and gives back the control of CPU pointers, and execute step 6.
Step 6:COS systems return to handling result to read-write equipment, if processing error, executes step 7, otherwise return Step 3.
Step 7:COS system exceptions, COS systems no longer respond the command request of read-write equipment, and read-write equipment at this time can be into Row system reset, restores COS systems, this flow terminates.
Description of the drawings
Fig. 1 is the schematic diagram of traditional COS system structures.
Fig. 2 is traditional COS system memory spaces distribution schematic diagram.
Fig. 3 is the COS system memory spaces distribution schematic diagram of the present invention.
Fig. 4 is the schematic diagram of the COS systems and application lift-off structure of the present invention.
Fig. 5 is the COS system function and variable mappings schematic diagram of the present invention.
Specific implementation mode
In order to improve versatility, flexibility and the development efficiency of smart card COS systems, design concept of the invention is:It will Traditional COS systems are divided into application interface and customized application two parts, and application interface belongs to COS systems, by chip production quotient into Row exploitation, for customized application independently of COS systems, user can self-developing according to demand.
Technical scheme of the present invention is described in detail below.
The chip is made of hardware and software.
The hardware includes CPU processor, memory module, peripheral circuit composition.
As shown in figure 3, memory module is the memory space of smart card, it is divided into code storage unit and variable storage list Member.To reduce the resource occupation of smart card random access memory to the greatest extent, COS systems provide the division in smart cards for storage space, determine The mode of each module of customized application, memory module is called to be divided into code storage unit and variable storage unit.Code storage unit It is to be stored using electricity erasable memorizer, variable storage unit is stored using random access memory.The code is deposited Storage unit stores executable file, including code(Text sections), initialization global variable(Data sections)And no initializtion is complete Office's variable(Bss sections).
The random access memory is only used for the access of variable.Code storage unit is divided into COS system codes area, system configuration Area and application code area.
Variable storage space is divided into shared variable area, COS system global variables area, application system global variable district, shares Stack area.
Software is introduced with reference to Fig. 4.
1.COS systems
COS system facing multiple users demands, mainly by main system control module, hardware resource management module, telecommunication management mould Several parts such as block, safety management module, application interface module are constituted.Application interface module is mainly connect by application interface library and application Mouth administrative unit composition.
COS systems are for providing a user application interface library so that user passes through without being concerned about chip bottom layer driving details Application interface calls COS internal resources, can effectively control the physical resource on smart card, complete opening for application specific functionality Hair.
Application interface library mainly has following a few class functions:Memory management class library function, logical operation class library function, safety Manage class library function, system operatio class library function, file system operation class library function.Wherein, memory management class library function into Row memory space is relevant the operations such as to read, is written, wiping, comparing;Logical operation class library function carries out common logical operation, Including logical AND, logic or exclusive or, from exclusive or, with etc. operations;Safety management class library function provides safety-related interface letter Number, such as signature, certification, encryption and decryption;System operatio class library function provides system generic operation function for user application Interface, including random number reading, internal system certification, exterior certification, the modification of smart card baud rate, power down protection etc.;Text Part system operatio class library function provides file manipulation function for user application, can locating file, reading file content, modification File content, deleting file data etc..
Application interface administrative unit provides download, more new tunnel for application program, carries out the registration of application program, for application Program configures good running environment, and manages the transmission that user applies data.Specifically, i.e. application interface management module Have the function of application program download management, is used for download online, update and the registration of management application.Electricity is first on smart cards Begin, whether application interface management module detection application program is registered, and such as detects using registered, just according to application registration Information carries out moving for the data of application program, and it is that the normal operation of application function gets out object to call application environment configuration function Manage environment.The transmission of application interface management module managing application data receives read-write equipment order, carries out applying data safety Property, legitimacy detection, filter out application function data content delivery to application, and treated data will be applied to read-write equipment Loopback.Bridge of the application interface management module as COS systems and customized application makes COS systems become independently of each other with application May, increase the safety of COS systems.
2. shared variable library
Shared variable library provides the channel of data interaction for COS systems and customized application, is the set of shared global variable, Including APDU specified in ISO/IEC 7816-3 and ISO/IEC 7816-4 agreements(Application Protocol Data Unit)Five command header variables, read-write equipment data buffer storage, the random number cache etc. transmitted.Shared variable inventory, which is stored in, to deposit Store up the shared variable area of module.
3. customized application module
Customized application module has specificity towards unique subscriber.Customized application module is mainly configured by application environment single Member is constituted using log-on message unit and application function unit.
Application environment dispensing unit is used to carry out the initialization of application interface library inner function, convenient for being called in application function COS system internal resources.
Using log-on message unit be towards COS systems, contained by provide and answer for COS systems using log-on message With the information needed for program operation, including the end address of the initial address of text sections of application program, text sections of application program, answer With the initial address of data sections of program, the end address of data sections of application program, the initial address of bss sections of application program, application The end address that bss section of program, using initial configuration function entrance address and application function function entrance address etc..These ground Location information can be obtained by being inserted into tag addresses variable in text, data and bss section of the threaded file in translation and compiling environment.
Application function unit is used for the realization of user's customized application function, and for COS systems, application function is one Application environment configuration function entry address, COS systems complete CPU pointers by accessing application environment configuration function entry address Temporary transfer of the control to application program.
In the present invention, COS systems and customized application are mutual indepedent on memory space, and sequence executes on the time, by altogether It enjoys variable range and carries out data interaction(As shown in Figure 3), by sharing stack space storage function(Any function please be demonstrate)'s Parameter value, local variable etc..
Fig. 5 show COS systems and accesses customized application function, variable or customized application access COS system application interface letters Several schematic diagrams.COS system codes area stores the operation program of COS systems, and the application interface library function for running program is linked Start in continuous memory space to the initial address positioned at COS system codes area, each application interface function pair answers one to consolidate Fixed entry address, customized application can access application interface function, reach operation intelligence by the fixation entry address indirect addressing The purpose of energy card bottom physical resource.Application code area stores application program, the effective address information in application program and function Entry address according to the prescribed form of COS systems be sequentially linked to the initial address positioned at application code area start it is continuous In memory space, each application interface function pair answers a fixed entry address, each variable to correspond to a fixed access Address, function access pass through direct addressin by indirect addressing mode, variables access.Shared variable area stores shared variable library Program, the application definition are shared and are become as the variable of COS systems and customized application data exchange channels, array and pointer etc. The initial address that each member in amount library is linked to shared variable area starts in continuous memory space.
The COS systems designed using the method for the embodiment of the present invention can be supported to apply download online and update.COS systems It is cured to the code areas COS of electric erasable memory block, COS system operations, smart card can work normally, and handle elementary instruction, complete At specified operation, customized application function is not supported at this time.Customized application compiles the executable file to be formed, and passes through intelligent card interface Download online completes registration and the running environment configuration of customized application to application code area.
The workflow of above-mentioned smart card is illustrated below.
COS systems are downloaded and update application work flow chart includes the following steps:
Step 1:COS system operations wait for the order of exterior read-write equipment, when detect order be update application code When, download, the update of COS system executing applications.
Step 2:Application program is downloaded, after the completion of update, and whether COS system detectios application program is registered, such as application program It does not register, then jumps to step 4, if application program has been registered, then follow the steps three.
Step 3:COS systems are application program running configuration environment.First, starting in area text sections of application code is read The log-on message of position:Data sections of initial position and end position, application environment configuration function entry address.Secondly, it moves Data sections of data are to global variable district is applied, since the data sections in application code area include the global variable after initialization, Data sections of chained address is that i.e. CPU, which will be arrived, to be read using global variable district using at the beginning of global variable using global variable district Initial value, therefore data sections of size of data need to be calculated, execute data sections of data-moving operation.Finally, COS systems, which jump to, answers With environment configurations function entrance address, the control of the PC pointers of smart card CPU is handed into application program, application program executes Environment configurations include mainly the functions such as clock environment configuration, application interface function registration and the configuration of intelligent card interface baud rate.
Step 4:COS base commands are executed, judge whether the base command needs to download and/or update application, such as otherwise Power cut-off flow, otherwise then download and/or more new application.
Step 5:It returns, power cut-off flow.
The workflow of COS systems includes the following steps:
Step 1:Smart card powers on, and waits the reset instruction of read-write equipment to be received, is sent again to read-write equipment if receiving Position response simultaneously executes step 2.
Step 2:Whether COS system detectios are applied registers, if detecting, application is registered, and COS systems are that application configuration is transported Row environment, and step 3 is carried out, COS systems can handle base instruction if without registration, carry out step 4.
Step 3:COS systems are standby, wait the order to be received from card-reading apparatus.Order is divided into basis and refers to Enable processing and application processing, when being instructed based on order, execute step 4;When order is handled for application, step 5 is executed.
Step 4:COS systems obtain the control of CPU pointers, and instruction is read, from COS systems from COS system codes area Global variable district accesses data, completes command process, and execute step 6.
Step 5:COS systems give the control of CPU pointers to application program, and the pointer of application program controlling CPU is from answering Instruction is read with code area, accesses data from the global variable district of application, completes the processing of application function, and application program will be handled As a result COS systems are fed back to by shared variable area, and gives back the control of CPU pointers, and execute step 6.
Step 6:COS systems return to handling result to read-write equipment, if processing error, executes step 7, otherwise return Step 3.
Step 7:COS system exceptions, COS systems no longer respond the command request of read-write equipment, and read-write equipment at this time can be into Row system reset, restores COS systems, this flow terminates.
Beneficial effects of the present invention are:
The present invention functionally distinguishes traditional COS systems, and then separate design is carried out in structure, depending on The application of particular user requirements is removed from traditional COS systems.The COS systems that the COS systems of the present invention are more traditional have more There are versatility and flexibility.Traditional COS systems need to carry out the exploitation and maintenance of multiple COS systems according to different user demands, Development intensity is big, difficulty is high, and later maintenance cost is high.The COS systems that method using the present invention is designed independently of Application function, facing multiple users have versatility, can reduce exploitation and test job amount, reduce development difficulty, improve exploitation effect Rate;And it supports the download online of application, update, is updated convenient for the application function in smart card later stage, maintenance cost can be reduced.

Claims (6)

1. a kind of smart card of COS systems application stripping, which is characterized in that the smart card includes chip, is embedded into chip COS systems, shared variable library, customized application module;
The chip is made of CPU, memory module, peripheral circuit;Memory module is divided into code storage unit and variable storage list Member, the code storage unit are divided into COS system codes area, system configuration code area, application code area;The variable storage list Member is divided into shared variable area, COS system global variables area, application system global variable district, shared stack area;
The COS systems include main system control module, hardware resource management module, communication management module, safety management module, answer Use interface module;The COS systems are used to control smart card and are exchanged with extraneous order, manage resource in smart card, are user The application interface library for calling COS system internal resources is provided;Application interface module is managed single by application interface library and application interface Member composition, the application interface library includes multiple application interface functions;Application interface administrative unit for application program provide download, More new tunnel carries out the registration of application program, and running environment is configured for application program, and manages the biography that user applies data It is defeated;
Shared variable library is the set of shared global variable, for realizing the data interaction of COS systems and customized application module, and Data buffer storage is provided;The shared variable inventory is stored in shared variable area;
Customized application module is constituted by application environment dispensing unit, using log-on message unit and application function unit;Using ring Border dispensing unit is for carrying out application interface function initialization, to call COS system internal resources;It is used using log-on message unit Required information is run in providing application program for COS systems;Application function unit configures letter for providing an application environment Number entry address, to realize temporary transfer of the CPU pointers control to application program.
2. the smart card of COS systems application stripping as described in claim 1, which is characterized in that application interface library includes storage Device manages class library function, logical operation class library function, safety management class library function, system operatio class library function and file system behaviour Make class library function;For carrying out, memory space is relevant to be read, is written, wiping, comparing operation memory management class library function;It patrols Volume operation class library function be used to carry out logical AND, logic or exclusive or, from exclusive or and logical operation;Safety management class library function For providing safety-related interface function;System operatio class library function is used to provide system generic operation letter for user application Number interface;File system operation class library function provides file manipulation function for application program.
3. the smart card of COS systems application stripping as described in claim 1, which is characterized in that using in log-on message unit Information include the initial address of text sections of application program, the end address of text sections of application program, data sections of application program The end of initial address, the end address of data sections of application program, the initial address of bss sections of application program, bss sections of application program Address, using initial configuration function entrance address, application function function entrance address.
4. the smart card of COS systems application stripping as described in claim 1, which is characterized in that code storage unit is to use Electricity erasable memorizer is stored, and variable storage unit is stored using random access memory.
5. the smart card of COS systems as described in claim 1 application stripping, which is characterized in that shared global variable includes Five command header variables of APDU specified in ISO/IEC 7816-3 and ISO/IEC7816-4 agreements, the caching of read-write equipment Data, the random number of caching.
6. the workflow of the smart card such as the application stripping of claim 1 ~ 5 any one of them COS systems, which is characterized in that The workflow includes downloading and updating application work flow, using workflow;
The download and update application work flow include the following steps:
Step 1:COS system operations wait for the order of exterior read-write equipment, when it is update application code to detect order, Download, the update of COS system executing applications;
Step 2:Application program is downloaded, after the completion of update, and whether COS system detectios application program is registered, as application program does not have Registration, then jump to step 4, if application program has been registered, then follow the steps three;
Step 3:COS systems are application program running configuration environment:Read the registration of initial position in area text sections of application code Information, data sections of initial position and end position, application environment configuration function entry address, and the data for moving data sections arrive Using global variable district, last COS systems jump to application environment configuration function entry address, by the control of the PC pointers of CPU Power hands to application program, application execution environment configuration;
Step 4:COS base commands are executed, judge whether the base command needs to download and/or update application, are such as otherwise terminated Workflow, otherwise then download and/or more new application;
Step 5:It returns, power cut-off flow;
The application workflow includes the following steps:
Step 1:Smart card powers on, and waits the reset instruction of read-write equipment to be received, as received, sends to reset to read-write equipment and answer It answers and executes step 2;
Step 2:Whether COS system detectios are applied registers, if detecting, application is registered, and COS systems are that application configuration runs ring Border, and step 3 is carried out, COS systems can handle base instruction if without registration, carry out step 4;
Step 3:COS systems are standby, wait the order to be received from card-reading apparatus;
Order is divided into base instruction processing and application processing, when being instructed based on order, executes step 4;When order is application When processing, step 5 is executed;
Step 4:COS systems obtain the control of CPU pointers, are read from COS system codes area and instruct, is global from COS systems Variable range accesses data, completes command process, and execute step 6;
Step 5:COS systems give the control of CPU pointers to application program, and the pointer of application program controlling CPU is from using generation Code area reads instruction, accesses data from the global variable district of application, completes the processing of application function, and application program is by handling result COS systems are fed back to by shared variable area, and give back the control of CPU pointers, and execute step 6;
Step 6:COS systems return to handling result to read-write equipment, if processing error, executes step 7, otherwise return to step Three;
Step 7:COS system exceptions, COS systems no longer respond the command request of read-write equipment, and read-write equipment can be at this time System resets, and restores COS systems, this flow terminates.
CN201610432049.3A 2016-06-17 2016-06-17 A kind of smart card and its working method of COS systems application stripping Active CN106127092B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610432049.3A CN106127092B (en) 2016-06-17 2016-06-17 A kind of smart card and its working method of COS systems application stripping

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610432049.3A CN106127092B (en) 2016-06-17 2016-06-17 A kind of smart card and its working method of COS systems application stripping

Publications (2)

Publication Number Publication Date
CN106127092A CN106127092A (en) 2016-11-16
CN106127092B true CN106127092B (en) 2018-08-28

Family

ID=57470542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610432049.3A Active CN106127092B (en) 2016-06-17 2016-06-17 A kind of smart card and its working method of COS systems application stripping

Country Status (1)

Country Link
CN (1) CN106127092B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798256B (en) * 2017-11-21 2020-02-21 成都三零嘉微电子有限公司 Smart card based on cryptographic algorithm separation storage and design method
CN109032960B (en) * 2018-06-29 2023-10-10 北京中电华大电子设计有限责任公司 Dynamic allocation method of smart card RAM and storage device of data structure
CN111800824A (en) * 2020-05-28 2020-10-20 上海诺行信息技术有限公司 Data transmission system of intelligent instrument, driving interface packaging device and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984449A (en) * 2010-11-30 2011-03-09 公安部第三研究所 Smart card COS operating system
CN104657683A (en) * 2013-11-20 2015-05-27 上海华虹集成电路有限责任公司 Intelligent card COS (chip operating system) multi-application isolation safety testing method
CN104778053A (en) * 2014-01-14 2015-07-15 国民技术股份有限公司 Initialization control method and device of smart card

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894290B (en) * 2010-04-06 2015-07-08 上海复旦微电子集团股份有限公司 Non-contact communication device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984449A (en) * 2010-11-30 2011-03-09 公安部第三研究所 Smart card COS operating system
CN104657683A (en) * 2013-11-20 2015-05-27 上海华虹集成电路有限责任公司 Intelligent card COS (chip operating system) multi-application isolation safety testing method
CN104778053A (en) * 2014-01-14 2015-07-15 国民技术股份有限公司 Initialization control method and device of smart card

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"一卡多用"中卡操作系统多应用管理的设计;吴俊军 等;《计算机应用与软件》;20060831;第23卷(第8期);68-70,105 *
RF_SIM卡的多应用COS研究与设计;李春丰 等;《计算机工程与应用》;20111231;第47卷(第2期);57-59 *
基于智能卡COS平台的应用开发技术;潘宇 等;《通信技术》;20131231;第46卷(第255期);104-106 *

Also Published As

Publication number Publication date
CN106127092A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
CN108563517B (en) Calling method and device of system interface
CN106897611A (en) Secure virtual mobile applications running environment system and method and application without root authority
CN105204393B (en) Single-chip microcomputer R&D and production instrument and its implementation based on empty core single-chip microcomputer
CN106127092B (en) A kind of smart card and its working method of COS systems application stripping
CN106528269B (en) The virtual machine access control system and control method of lightweight
CN107077379B (en) A kind of virtual machine creation method and device
EA006639B1 (en) Process for compiling and executing software applications in a multi-processor environment
CN103825915B (en) Service mobility management method and system under virtualized environment
US7182250B2 (en) Computing device with an embedded microprocessor or micro-controller
KR20110013192A (en) Storage device capable of separating execution of executable content, and device for configuring native execution environment in storage device
CN106598647A (en) Intelligent apparatus development platform
US11907931B2 (en) Method and system for managing virtual electronic card, secure chip, terminal and storage medium
CN110442422A (en) Active response formula is credible Python virtual machine and its method of execution
CN113360893A (en) Container-based intelligent contract execution method and device and storage medium
US9569241B2 (en) Sharing devices assigned to virtual machines using runtime exclusion
CN109460280B (en) Method and terminal for running program
CN111562436A (en) Equipment driving method and device of double-core intelligent electric meter
WO2013112283A1 (en) Method and apparatus for avoiding register interference
CN106161501A (en) The data sharing method of virtual desktop and device
KR101444070B1 (en) System and method for using memory of host terminal in storage device, host terminal and storage device, and recording medium thereof
CN106951288B (en) Development and application method and device of hot upgrade resource
CN115033348A (en) Method, system, equipment and medium for unified management of virtual machines and containers
CN102542226A (en) Secure access implementation method applying terminal access intelligent card
CN103034477B (en) A kind of assembly type open architecture model implementation method
CN108804236B (en) AIDL file sharing method and system

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